2017-11-23 01:52:02 +08:00
|
|
|
<div class="content table-responsive table-full-width">
|
2020-02-02 02:05:56 +08:00
|
|
|
<table class="table table-hover table-responsive" id="subfleets-table">
|
2017-06-23 09:55:45 +08:00
|
|
|
<thead>
|
2020-02-02 02:05:56 +08:00
|
|
|
<th>Name</th>
|
|
|
|
<th>Airline</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Aircraft</th>
|
|
|
|
<th></th>
|
2017-06-23 09:55:45 +08:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach($subfleets as $subfleet)
|
2020-02-02 02:05:56 +08:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<a href="{{ route('admin.aircraft.index') }}?subfleet={{$subfleet->id}}">
|
|
|
|
{{ $subfleet->name }}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td>{{ optional($subfleet->airline)->name }}</td>
|
|
|
|
<td>{{ $subfleet->type }}</td>
|
|
|
|
<td>{{ $subfleet->aircraft->count() }}</td>
|
|
|
|
<td class="text-right">
|
|
|
|
{{ Form::open(['route' => ['admin.subfleets.destroy', $subfleet->id], 'method' => 'delete']) }}
|
2017-11-23 01:52:02 +08:00
|
|
|
|
2020-02-02 02:05:56 +08:00
|
|
|
<a href="{{ route('admin.subfleets.edit', [$subfleet->id]) }}" class='btn btn-sm btn-success btn-icon'>
|
|
|
|
<i class="fas fa-pencil-alt"></i></a>
|
2017-11-23 01:52:02 +08:00
|
|
|
|
2020-02-02 02:05:56 +08:00
|
|
|
{{ 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>
|
2017-06-23 09:55:45 +08:00
|
|
|
@endforeach
|
|
|
|
</tbody>
|
2020-02-02 02:05:56 +08:00
|
|
|
</table>
|
2017-11-23 01:52:02 +08:00
|
|
|
</div>
|