2017-07-06 07:48:32 +08:00
|
|
|
<div id="airports_table_wrapper">
|
2017-08-24 03:59:15 +08:00
|
|
|
<table class="table table-hover table-responsive" id="airports-table">
|
2017-07-06 07:48:32 +08:00
|
|
|
<thead>
|
|
|
|
<th>ICAO</th>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Location</th>
|
2017-12-31 23:42:31 +08:00
|
|
|
<th>Hub</th>
|
2018-02-24 05:48:50 +08:00
|
|
|
<th style="text-align: center;">GH Cost</th>
|
2019-07-23 20:41:20 +08:00
|
|
|
{{--<th style="text-align: center;">100LL</th>--}}
|
2017-07-06 07:48:32 +08:00
|
|
|
<th style="text-align: center;">JetA</th>
|
2019-07-23 20:41:20 +08:00
|
|
|
{{--<th style="text-align: center;">MOGAS</th>--}}
|
2017-08-24 03:59:15 +08:00
|
|
|
<th></th>
|
2017-07-06 07:48:32 +08:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach($airports as $airport)
|
|
|
|
<tr>
|
2018-03-13 06:58:12 +08:00
|
|
|
<td><a href="{{ route('admin.airports.edit', [$airport->id]) }}">{{ $airport->icao }}</a></td>
|
|
|
|
<td>{{ $airport->name }}</td>
|
|
|
|
<td>{{ $airport->location }}</td>
|
2017-12-31 23:42:31 +08:00
|
|
|
<td style="text-align: center;">
|
2018-01-01 10:59:26 +08:00
|
|
|
@if($airport->hub === true)
|
2017-12-31 23:42:31 +08:00
|
|
|
<span class="label label-success">Hub</span>
|
|
|
|
@endif
|
|
|
|
</td>
|
2018-02-24 05:48:50 +08:00
|
|
|
<td style="text-align: center;">
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ $airport->ground_handling_cost }}
|
2018-02-24 05:48:50 +08:00
|
|
|
</td>
|
2019-07-23 20:41:20 +08:00
|
|
|
{{--<td style="text-align: center;">
|
2018-03-13 06:58:12 +08:00
|
|
|
<a class="inline" href="#" data-pk="{{ $airport->id }}" data-name="fuel_100ll_cost">{{ $airport->fuel_100ll_cost }}</a>
|
2019-07-23 20:41:20 +08:00
|
|
|
</td>--}}
|
2017-07-06 07:48:32 +08:00
|
|
|
<td style="text-align: center;">
|
2018-03-13 06:58:12 +08:00
|
|
|
<a class="inline" href="#" data-pk="{{ $airport->id }}" data-name="fuel_jeta_cost">{{ $airport->fuel_jeta_cost }}</a>
|
2017-07-06 07:48:32 +08:00
|
|
|
</td>
|
2019-07-23 20:41:20 +08:00
|
|
|
{{--<td style="text-align: center;">
|
2018-03-13 06:58:12 +08:00
|
|
|
<a class="inline" href="#" data-pk="{{ $airport->id }}" data-name="fuel_mogas_cost">{{ $airport->fuel_mogas_cost }}</a>
|
2019-07-23 20:41:20 +08:00
|
|
|
</td>--}}
|
2017-07-14 11:10:46 +08:00
|
|
|
<td style="text-align: right;">
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ Form::open(['route' => ['admin.airports.destroy', $airport->id], 'method' => 'delete']) }}
|
|
|
|
<a href="{{ route('admin.airports.edit', [$airport->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-07-06 07:48:32 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|