2017-08-03 04:12:26 +08:00
|
|
|
@foreach($flights as $flight)
|
2017-08-10 13:08:38 +08:00
|
|
|
<div class="card border-blue-bottom">
|
2017-08-03 04:12:26 +08:00
|
|
|
<div class="card-block" style="min-height: 0px">
|
|
|
|
<div class="row">
|
2017-08-03 12:22:51 +08:00
|
|
|
<div class="col-sm-3">
|
|
|
|
<h5>
|
|
|
|
<a class="text-c" href="{!! route('frontend.flights.show', [$flight->id]) !!}">
|
|
|
|
{!! $flight->airline->code !!}{!! $flight->flight_number !!}
|
|
|
|
@if($flight->route_code)
|
|
|
|
(C: {!! $flight->route_code !!} L: {!! $flight->route_leg !!})
|
|
|
|
@endif
|
|
|
|
</a>
|
|
|
|
</h5>
|
2017-08-03 04:12:26 +08:00
|
|
|
</div>
|
2017-08-03 12:22:51 +08:00
|
|
|
<div class="col-sm-9 text-sm-right">
|
|
|
|
<!-- use for saved: btn-outline-primary -->
|
2017-08-04 10:02:02 +08:00
|
|
|
<button class="btn btn-icon btn-icon-mini btn-round
|
|
|
|
{{ in_array($flight->id, $saved) ? 'btn-danger':'' }}
|
|
|
|
save_flight" x-id="{!! $flight->id !!}" type="button">
|
2017-08-03 12:22:51 +08:00
|
|
|
<i class="now-ui-icons ui-2_favourite-28"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="col-sm-3">
|
2017-08-03 04:12:26 +08:00
|
|
|
<div class="row">
|
2017-08-03 12:22:51 +08:00
|
|
|
<div class="col-sm-6">
|
|
|
|
<span class="title">DEP </span>
|
|
|
|
{!! $flight->dpt_airport->icao !!}
|
2017-08-03 04:12:26 +08:00
|
|
|
|
2017-08-03 12:22:51 +08:00
|
|
|
<span class="title">ARR </span>
|
|
|
|
{!! $flight->arr_airport->icao !!}
|
2017-08-03 04:12:26 +08:00
|
|
|
</div>
|
2017-08-03 12:22:51 +08:00
|
|
|
<div class="col-sm-6 text-right">
|
|
|
|
|
|
|
|
<span class="description">{!! $flight->dpt_time !!}</span>
|
|
|
|
<span class="description">{!! $flight->arr_time !!}</span>
|
2017-08-03 04:12:26 +08:00
|
|
|
</div>
|
2017-08-03 12:22:51 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-9">
|
|
|
|
<div class="row">
|
2017-08-03 04:12:26 +08:00
|
|
|
<div class="col-sm-12">
|
|
|
|
<span class="description">ROUTE </span>
|
|
|
|
{!! $flight->route !!}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@endforeach
|