phpvms/resources/views/admin/subfleets/table.blade.php
2017-12-31 14:00:50 -06:00

43 lines
1.6 KiB
PHP

<div class="content table-responsive table-full-width">
<table class="table table-hover table-responsive" id="subfleets-table">
<thead>
<th>Airline</th>
<th>Name</th>
<th>Type</th>
{{--<th>Fuel Type</th>--}}
<th></th>
</thead>
<tbody>
@foreach($subfleets as $subfleet)
<tr>
<td>{!! $subfleet->airline->name !!}</td>
<td>{!! $subfleet->name !!}</td>
<td>{!! $subfleet->type !!}</td>
{{--<td>
@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
</td>--}}
<td class="text-right">
{!! Form::open(['route' => ['admin.subfleets.destroy', $subfleet->id], 'method' => 'delete']) !!}
<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?')"]) !!}
{!! Form::close() !!}
</td>
</tr>
@endforeach
</tbody>
</table>
</div>