made a new scratchpad for blades for troubleshooting

This commit is contained in:
2019-05-20 01:51:14 -05:00
parent 2c9ab8fdfc
commit bc900f87cc

View File

@@ -0,0 +1,31 @@
<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>
@foreach($user['permissions'] as $perm)
{{ implode(', ', $perm) }}
@endforeach
</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>