2017-08-24 03:59:15 +08:00
|
|
|
<table class="table table-hover table-responsive" id="aircrafts-table">
|
2017-06-09 09:37:51 +08:00
|
|
|
<thead>
|
2017-06-24 06:33:18 +08:00
|
|
|
<th>Subfleet</th>
|
2017-06-25 03:00:56 +08:00
|
|
|
<th>Name</th>
|
2017-06-09 09:37:51 +08:00
|
|
|
<th>Registration</th>
|
2017-06-14 22:39:02 +08:00
|
|
|
<th style="text-align: center;">Active</th>
|
2017-08-24 03:59:15 +08:00
|
|
|
<th style="text-align: right;"></th>
|
2017-06-09 09:37:51 +08:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach($aircraft as $ac)
|
|
|
|
<tr>
|
2017-06-24 06:33:18 +08:00
|
|
|
<td>
|
2017-06-25 03:00:56 +08:00
|
|
|
@if($ac->subfleet_id)
|
2017-07-03 04:11:27 +08:00
|
|
|
<a href="{!! route('admin.subfleets.edit', [$ac->subfleet_id]) !!}">
|
2017-06-24 06:33:18 +08:00
|
|
|
{!! $ac->subfleet->name !!}
|
2017-07-03 04:11:27 +08:00
|
|
|
</a>
|
2017-06-24 06:33:18 +08:00
|
|
|
@else
|
|
|
|
-
|
|
|
|
@endif
|
|
|
|
</td>
|
2017-11-30 08:01:07 +08:00
|
|
|
<td><a href="{!! route('admin.aircraft.edit', [$ac->id]) !!}">{!! $ac->name !!}</a></td>
|
2017-06-09 09:37:51 +08:00
|
|
|
<td>{!! $ac->registration !!}</td>
|
2017-06-14 22:39:02 +08:00
|
|
|
<td style="text-align: center;">
|
2017-08-22 02:59:59 +08:00
|
|
|
@if($ac->active == 1)
|
|
|
|
<span class="label label-success">Active</span>
|
|
|
|
@else
|
|
|
|
<span class="label label-default">Inactive</span>
|
|
|
|
@endif
|
2017-06-14 22:39:02 +08:00
|
|
|
</td>
|
2017-08-22 02:59:59 +08:00
|
|
|
<td style="width: 10%; text-align: right;">
|
2017-06-09 09:37:51 +08:00
|
|
|
{!! Form::open(['route' => ['admin.aircraft.destroy', $ac->id], 'method' => 'delete']) !!}
|
2017-08-22 02:59:59 +08:00
|
|
|
<a href="{!! route('admin.aircraft.edit', [$ac->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-09 09:37:51 +08:00
|
|
|
{!! Form::close() !!}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|