2017-11-23 01:52:02 +08:00
|
|
|
<div class="content table-responsive table-full-width">
|
2017-08-24 03:59:15 +08:00
|
|
|
<table class="table table-hover table-responsive" id="subfleets-table">
|
2017-06-23 09:55:45 +08:00
|
|
|
<thead>
|
|
|
|
<th>Airline</th>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Type</th>
|
2018-01-01 04:00:50 +08:00
|
|
|
{{--<th>Fuel Type</th>--}}
|
2017-08-24 03:59:15 +08:00
|
|
|
<th></th>
|
2017-06-23 09:55:45 +08:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach($subfleets as $subfleet)
|
|
|
|
<tr>
|
|
|
|
<td>{!! $subfleet->airline->name !!}</td>
|
|
|
|
<td>{!! $subfleet->name !!}</td>
|
|
|
|
<td>{!! $subfleet->type !!}</td>
|
2018-01-01 04:00:50 +08:00
|
|
|
{{--<td>
|
2017-07-05 22:55:36 +08:00
|
|
|
@if($subfleet->fuel_type === config('enums.fuel_types.100LL'))
|
|
|
|
100LL
|
|
|
|
@elseif($subfleet->fuel_type === config('enums.fuel_types.JETA'))
|
|
|
|
JETA
|
|
|
|
@elseif($subfleet->fuel_type === config('enums.fuel_types.MOGAS'))
|
|
|
|
MOGAS
|
|
|
|
@else
|
|
|
|
-
|
|
|
|
@endif
|
2018-01-01 04:00:50 +08:00
|
|
|
</td>--}}
|
2017-08-24 03:59:15 +08:00
|
|
|
<td class="text-right">
|
2017-06-23 09:55:45 +08:00
|
|
|
{!! Form::open(['route' => ['admin.subfleets.destroy', $subfleet->id], 'method' => 'delete']) !!}
|
2017-11-23 01:52:02 +08:00
|
|
|
|
|
|
|
<a href="{!! route('admin.subfleets.edit', [$subfleet->id]) !!}" class='btn btn-sm btn-success btn-icon'>
|
|
|
|
<i class="fa fa-pencil-square-o"></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?')"]) !!}
|
2017-06-23 09:55:45 +08:00
|
|
|
{!! Form::close() !!}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2017-11-23 01:52:02 +08:00
|
|
|
</div>
|