2017-06-09 09:37:51 +08:00
|
|
|
<table class="table table-responsive" id="aircrafts-table">
|
|
|
|
<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>
|
|
|
|
<th style="text-align: center;">Actions</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-06-25 03:00:56 +08:00
|
|
|
<td><a href="{!! route('admin.aircraft.show', [$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;">
|
|
|
|
<i class="fa fa-{{$ac->active == 1?"check":""}}-square-o" aria-hidden="true"
|
|
|
|
style="color: {{$ac->active==1?"darkgreen":"darkred"}};font-size:20px;"></i>
|
|
|
|
</td>
|
|
|
|
<td style="width: 10%; text-align: center;" class="form-inline">
|
2017-06-09 09:37:51 +08:00
|
|
|
{!! Form::open(['route' => ['admin.aircraft.destroy', $ac->id], 'method' => 'delete']) !!}
|
|
|
|
<div class='btn-group'>
|
|
|
|
<a href="{!! route('admin.aircraft.show', [$ac->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-eye-open"></i></a>
|
|
|
|
<a href="{!! route('admin.aircraft.edit', [$ac->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-edit"></i></a>
|
|
|
|
{!! Form::button('<i class="glyphicon glyphicon-trash"></i>', ['type' => 'submit', 'class' => 'btn btn-danger btn-xs', 'onclick' => "return confirm('Are you sure?')"]) !!}
|
|
|
|
</div>
|
|
|
|
{!! Form::close() !!}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|