Files
w4rpservices/resources/views/admin/scratchpad.blade.php
2019-05-20 01:54:02 -05:00

35 lines
1.2 KiB
PHP

<div class="container">
<div class="row">
<table class="table table-striped">
<thead>
<th>Name</th>
<th>Role</th>
<th>Permissions</th>
<th>Action</th>
</thead>
<tbody>
@foreach($userArr as $user)
<tr>
<td>{{ $user['name'] }}</td>
<td>{{ $user['role'] }}</td>
<td>
@if($user['permissions'])
@foreach($user['permissions'] as $perm)
{{ implode(', ', $perm) }}
@endforeach
@else
None
@endif
</td>
<td>
{!! Form::open(['action' => 'Dashboard\AdminController@removeUser', 'method' => 'POST']) !!}
{{ Form::hidden('user', $user['name']) }}
{{ Form::submit('Remove User', ['class' => 'btn btn-primary']) }}
{!! Form::close() !!}
</td>
</tr>
@endforeach
</tbody>
<table>
</div>
</div>