2017-08-18 04:39:00 +08:00
|
|
|
<div class="content table-responsive table-full-width">
|
2017-08-24 03:59:15 +08:00
|
|
|
<table class="table table-hover" id="flights-table">
|
2017-06-18 06:25:36 +08:00
|
|
|
<thead>
|
|
|
|
<th>Flight #</th>
|
|
|
|
<th>Dep</th>
|
|
|
|
<th>Arr</th>
|
2017-12-23 05:11:27 +08:00
|
|
|
{{--<th>Route</th>--}}
|
2017-06-18 06:25:36 +08:00
|
|
|
<th>Dpt Time</th>
|
|
|
|
<th>Arr Time</th>
|
|
|
|
<th>Notes</th>
|
2017-07-14 11:10:46 +08:00
|
|
|
<th style="text-align: center;">Active</th>
|
|
|
|
<th colspan="3" style="text-align: right;">Action</th>
|
2017-06-18 06:25:36 +08:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach($flights as $flight)
|
|
|
|
<tr>
|
|
|
|
<td>
|
2018-03-13 06:58:12 +08:00
|
|
|
<a href="{{ route('admin.flights.edit', [$flight->id]) }}">
|
|
|
|
{{ $flight->airline->code }}{{ $flight->flight_number }}
|
2017-06-20 00:50:25 +08:00
|
|
|
@if($flight->route_code)
|
2018-03-13 06:58:12 +08:00
|
|
|
(C: {{ $flight->route_code }} L: {{ $flight->route_leg }})
|
2017-06-20 00:50:25 +08:00
|
|
|
@endif
|
2017-06-20 03:29:10 +08:00
|
|
|
</a>
|
2017-06-18 06:25:36 +08:00
|
|
|
</td>
|
2018-03-13 06:58:12 +08:00
|
|
|
<td>{{ $flight->dpt_airport->icao }}</td>
|
2017-06-20 00:50:25 +08:00
|
|
|
<td>
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ $flight->arr_airport->icao }}
|
2017-06-20 00:50:25 +08:00
|
|
|
@if($flight->alt_airport)
|
2018-03-13 06:58:12 +08:00
|
|
|
(Alt: {{ $flight->alt_airport->icao }})
|
2017-06-20 00:50:25 +08:00
|
|
|
@endif
|
|
|
|
</td>
|
2018-03-13 06:58:12 +08:00
|
|
|
{{--<td>{{ $flight->route }}</td>--}}
|
|
|
|
<td>{{ $flight->dpt_time }}</td>
|
|
|
|
<td>{{ $flight->arr_time }}</td>
|
|
|
|
<td>{{ $flight->notes }}</td>
|
2017-07-14 11:10:46 +08:00
|
|
|
<td style="text-align: center;">
|
2017-08-22 02:59:59 +08:00
|
|
|
@if($flight->active == 1)
|
|
|
|
<span class="label label-success">Active</span>
|
|
|
|
@else
|
|
|
|
<span class="label label-default">Inactive</span>
|
|
|
|
@endif
|
2017-07-14 11:10:46 +08:00
|
|
|
</td>
|
|
|
|
<td style="text-align: right;">
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ Form::open(['route' => ['admin.flights.destroy', $flight->id], 'method' => 'delete']) }}
|
|
|
|
<a href="{{ route('admin.flights.edit', [$flight->id]) }}" class='btn btn-sm btn-success btn-icon'><i class="fas fa-pencil-alt"></i></a>
|
|
|
|
{{ Form::button('<i class="fa fa-times"></i>', ['type' => 'submit', 'class' => 'btn btn-sm btn-danger btn-icon', 'onclick' => "return confirm('Are you sure?')"]) }}
|
|
|
|
{{ Form::close() }}
|
2017-06-18 06:25:36 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2017-08-18 04:39:00 +08:00
|
|
|
</div>
|