phpvms/resources/views/admin/airlines/table.blade.php

27 lines
1.1 KiB
PHP
Raw Normal View History

2017-06-09 09:02:52 +08:00
<table class="table table-responsive" id="airlines-table">
<thead>
<th>Code</th>
<th>Name</th>
2017-06-09 09:46:50 +08:00
<th>Active?</th>
2017-06-09 09:02:52 +08:00
<th colspan="3">Action</th>
</thead>
<tbody>
2017-06-09 09:46:50 +08:00
@foreach($airlines as $al)
2017-06-09 09:02:52 +08:00
<tr>
2017-06-09 09:46:50 +08:00
<td>{!! $al->code !!}</td>
<td>{!! $al->name !!}</td>
<td>{!! $al->active !!}</td>
2017-06-09 09:02:52 +08:00
<td>
2017-06-20 00:50:25 +08:00
{!! Form::open(['route' => ['admin.airlines.destroy', $al->id], 'method' => 'delete']) !!}
2017-06-09 09:02:52 +08:00
<div class='btn-group'>
2017-06-20 00:50:25 +08:00
<a href="{!! route('admin.airlines.show', [$al->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-eye-open"></i></a>
<a href="{!! route('admin.airlines.edit', [$al->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-edit"></i></a>
2017-06-09 09:02:52 +08:00
{!! 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>
2017-06-09 09:46:50 +08:00
</table>