#23 refactoring for ranks

This commit is contained in:
Nabeel Shahzad
2017-06-21 13:44:30 -05:00
parent 4f295cec79
commit cb631292b9
22 changed files with 228 additions and 195 deletions

View File

@@ -0,0 +1,33 @@
<table class="table table-responsive" id="ranks-table">
<thead>
<th>Name</th>
<th>Hours</th>
<th>Auto Approve Acars</th>
<th>Auto Approve Manual</th>
<th>Auto Promote</th>
<th colspan="3">Action</th>
</thead>
<tbody>
@foreach($ranks as $rank)
<tr>
<td>{!! $rank->name !!}</td>
<td>{!! $rank->hours !!}</td>
<td>{!! $rank->auto_approve_acars !!}</td>
<td>{!! $rank->auto_approve_manual !!}</td>
<td>{!! $rank->auto_promote !!}</td>
<td>
{!! Form::open(['route' => ['admin.ranks.destroy', $rank->id], 'method' => 'delete']) !!}
<div class='btn-group'>
<a href="{!! route('admin.ranks.show', [$rank->id]) !!}"
class='btn btn-default btn-xs'><i
class="glyphicon glyphicon-eye-open"></i></a>
<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>