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">
|
2018-01-04 10:56:46 +08:00
|
|
|
<div class="col-sm-9">
|
2017-08-03 12:22:51 +08:00
|
|
|
<h5>
|
|
|
|
<a class="text-c" href="{!! route('frontend.flights.show', [$flight->id]) !!}">
|
|
|
|
{!! $flight->airline->code !!}{!! $flight->flight_number !!}
|
|
|
|
@if($flight->route_code)
|
2018-01-04 10:56:46 +08:00
|
|
|
Code: {!! $flight->route_code !!}
|
|
|
|
@endif
|
|
|
|
@if($flight->route_leg)
|
|
|
|
Leg: {!! $flight->route_leg !!}
|
2017-08-03 12:22:51 +08:00
|
|
|
@endif
|
|
|
|
</a>
|
|
|
|
</h5>
|
2017-08-03 04:12:26 +08:00
|
|
|
</div>
|
2018-01-04 10:56:46 +08:00
|
|
|
<div class="col-sm-3 text-right">
|
2017-08-03 12:22:51 +08:00
|
|
|
<!-- 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>
|
2018-01-04 10:56:46 +08:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
2018-01-04 11:40:05 +08:00
|
|
|
<div class="col-sm-5">
|
|
|
|
<span class="title">DEP </span>
|
|
|
|
{!! $flight->dpt_airport->icao !!}@if($flight->dpt_time), {!! $flight->dpt_time !!}@endif
|
|
|
|
<br />
|
|
|
|
<span class="title">ARR </span>
|
|
|
|
{!! $flight->arr_airport->icao !!}@if($flight->arr_time), {!! $flight->arr_time !!}@endif
|
|
|
|
<br />
|
|
|
|
@if($flight->distance)
|
|
|
|
<span class="title">DISTANCE </span>
|
|
|
|
{!! $flight->distance !!} {!! setting('general.distance_unit') !!}
|
|
|
|
@endif
|
|
|
|
<br />
|
|
|
|
@if($flight->level)
|
|
|
|
<span class="title">LEVEL </span>
|
|
|
|
{!! $flight->level !!} {!! setting('general.altitude_unit') !!}
|
|
|
|
@endif
|
2017-08-03 12:22:51 +08:00
|
|
|
</div>
|
2018-01-04 11:40:05 +08:00
|
|
|
<div class="col-sm-7">
|
2017-08-03 12:22:51 +08:00
|
|
|
<div class="row">
|
2017-08-03 04:12:26 +08:00
|
|
|
<div class="col-sm-12">
|
2018-01-04 11:40:05 +08:00
|
|
|
<span class="title">ROUTE </span>
|
2017-08-03 04:12:26 +08:00
|
|
|
{!! $flight->route !!}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@endforeach
|