#41 add fuel type to subfleet table

This commit is contained in:
Nabeel Shahzad
2017-07-05 09:55:36 -05:00
parent cdd315f8bb
commit e6b338cd32
7 changed files with 59 additions and 14 deletions

View File

@@ -3,6 +3,7 @@
<th>Airline</th>
<th>Name</th>
<th>Type</th>
<th>Fuel Type</th>
<th colspan="3">Action</th>
</thead>
<tbody>
@@ -11,6 +12,17 @@
<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>
{!! Form::open(['route' => ['admin.subfleets.destroy', $subfleet->id], 'method' => 'delete']) !!}
<div class='btn-group'>