2017-08-24 03:59:15 +08:00
|
|
|
<table class="table table-hover table-responsive" id="airlines-table">
|
2017-06-09 09:02:52 +08:00
|
|
|
<thead>
|
|
|
|
<th>Code</th>
|
|
|
|
<th>Name</th>
|
2017-08-22 02:59:59 +08:00
|
|
|
<th class="text-center">Active</th>
|
2017-08-24 03:59:15 +08:00
|
|
|
<th></th>
|
2017-06-09 09:02:52 +08:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2017-06-09 09:46:50 +08:00
|
|
|
@foreach($airlines as $al)
|
2017-06-09 09:02:52 +08:00
|
|
|
<tr>
|
2019-06-20 01:07:03 +08:00
|
|
|
<td nowrap="true">
|
2018-02-13 00:51:04 +08:00
|
|
|
@if(filled($al->country))
|
2018-03-13 06:58:12 +08:00
|
|
|
<span class="flag-icon flag-icon-{{ $al->country }}"></span>
|
2018-02-13 00:51:04 +08:00
|
|
|
|
|
|
|
@endif
|
2019-06-20 01:07:03 +08:00
|
|
|
<a href="{{ route('admin.airlines.edit', [$al->id]) }}">{{ $al->iata }}/{{ $al->icao }}</a>
|
2018-02-13 00:51:04 +08:00
|
|
|
</td>
|
2018-03-13 06:58:12 +08:00
|
|
|
<td>{{ $al->name }}</td>
|
2017-08-22 02:59:59 +08:00
|
|
|
<td class="text-center">
|
|
|
|
@if($al->active == 1)
|
|
|
|
<span class="label label-success">Active</span>
|
|
|
|
@else
|
|
|
|
<span class="label label-default">Inactive</span>
|
|
|
|
@endif
|
2017-07-14 11:10:46 +08:00
|
|
|
</td>
|
2017-08-22 02:59:59 +08:00
|
|
|
<td class="text-right">
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ Form::open(['route' => ['admin.airlines.destroy', $al->id], 'method' => 'delete']) }}
|
|
|
|
<a href="{{ route('admin.airlines.edit', [$al->id]) }}"
|
2018-02-23 03:28:12 +08:00
|
|
|
class='btn btn-sm btn-success btn-icon'><i class="fas fa-pencil-alt"></i></a>
|
2018-03-13 06:58:12 +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() }}
|
2017-06-09 09:02:52 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
2017-06-09 09:46:50 +08:00
|
|
|
</table>
|