2017-07-06 07:48:32 +08:00
|
|
|
<div id="airports_table_wrapper">
|
2020-02-09 02:29:34 +08:00
|
|
|
<table class="table table-hover table-responsive" id="airports-table">
|
|
|
|
<thead>
|
|
|
|
<th>ICAO</th>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Location</th>
|
|
|
|
<th>Hub</th>
|
|
|
|
<th style="text-align: center;">GH Cost</th>
|
|
|
|
<th style="text-align: center;">JetA</th>
|
|
|
|
<th></th>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach($airports as $airport)
|
|
|
|
<tr>
|
|
|
|
<td><a href="{{ route('admin.airports.edit', [$airport->id]) }}">{{ $airport->icao }}</a></td>
|
|
|
|
<td>{{ $airport->name }}</td>
|
|
|
|
<td>{{ $airport->location }}</td>
|
|
|
|
<td style="text-align: center;">
|
|
|
|
@if($airport->hub === true)
|
|
|
|
<span class="label label-success">Hub</span>
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
<td style="text-align: center;">
|
|
|
|
{{ $airport->ground_handling_cost }}
|
|
|
|
</td>
|
|
|
|
<td style="text-align: center;">
|
|
|
|
<a class="inline" href="#" data-pk="{{ $airport->id }}"
|
|
|
|
data-name="fuel_jeta_cost">{{ $airport->fuel_jeta_cost }}</a>
|
|
|
|
</td>
|
|
|
|
<td style="text-align: right;">
|
|
|
|
{{ 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() }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2017-07-06 07:48:32 +08:00
|
|
|
</div>
|