2017-06-22 09:18:01 +08:00
|
|
|
<div id="ranks_table_wrapper">
|
|
|
|
<table class="table table-responsive">
|
|
|
|
<thead>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Hours</th>
|
2017-07-14 11:10:46 +08:00
|
|
|
<th style="text-align: center;">Auto Approve Acars</th>
|
|
|
|
<th style="text-align: center">Auto Approve Manual</th>
|
|
|
|
<th style="text-align: center">Auto Promote</th>
|
|
|
|
<th colspan="3" style="text-align: right;">Action</th>
|
2017-06-22 09:18:01 +08:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach($ranks as $rank)
|
|
|
|
<tr>
|
|
|
|
<td>{!! $rank->name !!}</td>
|
|
|
|
<td>{!! $rank->hours !!}</td>
|
2017-07-14 11:10:46 +08:00
|
|
|
<td style="text-align: center;">
|
|
|
|
<i class="fa fa-{{$rank->auto_approve_acars == 1?"check":""}}-square-o" aria-hidden="true"
|
|
|
|
style="color: {{$rank->auto_approve_acars==1?"darkgreen":"darkred"}};font-size:20px;"></i>
|
|
|
|
</td>
|
|
|
|
<td style="text-align: center;">
|
|
|
|
<i class="fa fa-{{$rank->auto_approve_manual == 1?"check":""}}-square-o" aria-hidden="true"
|
|
|
|
style="color: {{$rank->auto_approve_manual==1?"darkgreen":"darkred"}};font-size:20px;"></i>
|
|
|
|
</td>
|
|
|
|
<td style="text-align: center;">
|
|
|
|
<i class="fa fa-{{$rank->auto_promote == 1?"check":""}}-square-o" aria-hidden="true"
|
|
|
|
style="color: {{$rank->auto_promote==1?"darkgreen":"darkred"}};font-size:20px;"></i>
|
|
|
|
</td>
|
|
|
|
<td style="text-align: right;">
|
2017-06-22 09:18:01 +08:00
|
|
|
{!! Form::open(['route' => ['admin.ranks.destroy', $rank->id], 'method' => 'delete']) !!}
|
|
|
|
<div class='btn-group'>
|
2017-07-02 10:06:55 +08:00
|
|
|
{{--<a href="{!! route('admin.ranks.show', [$rank->id]) !!}"
|
2017-06-22 09:18:01 +08:00
|
|
|
class='btn btn-default btn-xs'><i
|
2017-07-02 10:06:55 +08:00
|
|
|
class="glyphicon glyphicon-eye-open"></i></a>--}}
|
2017-06-22 09:18:01 +08:00
|
|
|
<a href="{!! route('admin.ranks.edit', [$rank->id]) !!}"
|
|
|
|
class='btn btn-default btn-xs'><i class="glyphicon glyphicon-edit"></i></a>
|
|
|
|
{!! 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>
|
|
|
|
</table>
|
|
|
|
</div>
|