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

30 lines
1.4 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>
<th style="text-align: center;">Active</th>
<th colspan="3" style="text-align: right;">Action</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>
2017-06-09 09:46:50 +08:00
<td>{!! $al->code !!}</td>
<td>{!! $al->name !!}</td>
<td style="text-align: center;">
<i class="fa fa-{{$al->active == 1?"check":""}}-square-o" aria-hidden="true"
style="color: {{$al->active==1?"darkgreen":"darkred"}};font-size:20px;"></i>
</td>
<td style="text-align: right;">
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>