admin test dashboard

This commit is contained in:
2020-04-03 01:53:59 -05:00
parent fd4dcf88a9
commit dd6ebb366b
2 changed files with 57 additions and 10 deletions
@@ -4,10 +4,18 @@
<h2>Admin Dashboard Test</h2><br>
<div class="card">
<div class="card-header">
<h2>user Information</h2>
<h2>User Information</h2>
</div>
<div class="card-body">
Form<br>
<div class="container">
{!! Form::open(['action' => 'Dashboard\AdminController@searchUsers', 'method' => 'POST']) !!}
<div class="form-group">
{{ Form::label('parameter', 'Seach For A User') }}
{{ Form::text('parameter', '', ['class' => 'form-control', 'placeholder' => 'CCP Antiquarian']) }}
</div>
{{ Form::submit('Search', ['class' => 'btn btn-primary']) }}
{!! Form::close() !!}
</div>
<table class="table table-striped table-bordered">
<thead>
<th>Name</th>
@@ -16,14 +24,23 @@
<th>Action</th>
</thead>
<tbody>
@for ($i = 0; $i < 50; $i++)
@foreach($usersArr as $user)
<tr>
<td>Name</td>
<td>Role</td>
<td>Permissions</td>
<td>Form</td>
</tr>
@endfor
<td>{{ $user->name }}</td>
<td>{{ $user->role }}</td>
<td>{{ $user->permission }}</td>
<td>
{!! Form::open(['action' => 'Dashboard\AdminController@displayModifyUser', 'method' => 'POST']) !!}
{{ Form::hidden('user', $user->name) }}
{{ Form::submit('Modify User', ['class' => 'btn btn-primary']) }}
{!! Form::close() !!}
{!! Form::open(['action' => 'Dashboard\AdminController@removeUser', 'method' => 'POST']) !!}
{{ Form::hidden('user', $user->name) }}
{{ Form::submit('Remove User', ['class' => 'btn btn-danger']) }}
{!! Form::close() !!}
</td>
</tr>
@endforeach
</tbody>
</table>
</div>