2017-11-23 01:52:02 +08:00
|
|
|
<div class="content table-responsive table-full-width">
|
2017-08-24 03:59:15 +08:00
|
|
|
<table class="table table-hover table-responsive" id="subfleets-table">
|
2017-06-23 09:55:45 +08:00
|
|
|
<thead>
|
|
|
|
<th>Name</th>
|
2018-02-21 11:30:36 +08:00
|
|
|
<th>Airline</th>
|
2017-06-23 09:55:45 +08:00
|
|
|
<th>Type</th>
|
2018-03-24 09:30:31 +08:00
|
|
|
<th>Aircraft</th>
|
2017-08-24 03:59:15 +08:00
|
|
|
<th></th>
|
2017-06-23 09:55:45 +08:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach($subfleets as $subfleet)
|
|
|
|
<tr>
|
2018-02-21 11:30:36 +08:00
|
|
|
<td>
|
2018-03-24 09:30:31 +08:00
|
|
|
<a href="{{ route('admin.aircraft.index') }}?subfleet={{$subfleet->id}}">
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ $subfleet->name }}
|
2018-02-21 11:30:36 +08:00
|
|
|
</a>
|
|
|
|
</td>
|
2018-03-13 06:58:12 +08:00
|
|
|
<td>{{ $subfleet->airline->name }}</td>
|
|
|
|
<td>{{ $subfleet->type }}</td>
|
2018-03-24 09:30:31 +08:00
|
|
|
<td>{{ $subfleet->aircraft->count() }}</td>
|
2017-08-24 03:59:15 +08:00
|
|
|
<td class="text-right">
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ Form::open(['route' => ['admin.subfleets.destroy', $subfleet->id], 'method' => 'delete']) }}
|
2017-11-23 01:52:02 +08:00
|
|
|
|
2018-03-13 06:58:12 +08:00
|
|
|
<a href="{{ route('admin.subfleets.edit', [$subfleet->id]) }}" class='btn btn-sm btn-success btn-icon'>
|
2018-02-23 03:28:12 +08:00
|
|
|
<i class="fas fa-pencil-alt"></i></a>
|
2017-11-23 01:52:02 +08:00
|
|
|
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ Form::button('<i class="fa fa-times"></i>',
|
2017-11-23 01:52:02 +08:00
|
|
|
['type' => 'submit', 'class' => 'btn btn-sm btn-danger btn-icon',
|
2018-03-13 06:58:12 +08:00
|
|
|
'onclick' => "return confirm('Are you sure?')"]) }}
|
|
|
|
{{ Form::close() }}
|
2017-06-23 09:55:45 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2017-11-23 01:52:02 +08:00
|
|
|
</div>
|