admin test dashboard
This commit is contained in:
@@ -1,48 +1,46 @@
|
|||||||
@extends('admin.layouts.b4')
|
@extends('layouts.admin.b4')
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="container-fluid">
|
<div class="card">
|
||||||
<div class="card">
|
<div class="card-header">
|
||||||
<div class="card-header">
|
<h2>User Information</h2>
|
||||||
<h2>User Information</h2>
|
</div>
|
||||||
</div>
|
<div class="card-body">
|
||||||
<div class="card-body">
|
<div class="container">
|
||||||
<div class="container">
|
{!! Form::open(['action' => 'Dashboard\AdminController@searchUsers', 'method' => 'POST']) !!}
|
||||||
{!! Form::open(['action' => 'Dashboard\AdminController@searchUsers', 'method' => 'POST']) !!}
|
<div class="form-group">
|
||||||
<div class="form-group">
|
{{ Form::label('parameter', 'Seach For A User') }}
|
||||||
{{ Form::label('parameter', 'Seach For A User') }}
|
{{ Form::text('parameter', '', ['class' => 'form-control', 'placeholder' => 'CCP Antiquarian']) }}
|
||||||
{{ Form::text('parameter', '', ['class' => 'form-control', 'placeholder' => 'CCP Antiquarian']) }}
|
|
||||||
</div>
|
|
||||||
{{ Form::submit('Search', ['class' => 'btn btn-primary']) }}
|
|
||||||
{!! Form::close() !!}
|
|
||||||
</div>
|
</div>
|
||||||
<table class="table table-striped table-bordered">
|
{{ Form::submit('Search', ['class' => 'btn btn-primary']) }}
|
||||||
<thead>
|
{!! Form::close() !!}
|
||||||
<th>Name</th>
|
|
||||||
<th>Role</th>
|
|
||||||
<th>Permissions</th>
|
|
||||||
<th>Action</th>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
@foreach($usersArr as $user)
|
|
||||||
<tr>
|
|
||||||
<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>
|
</div>
|
||||||
|
<table class="table table-striped table-bordered">
|
||||||
|
<thead>
|
||||||
|
<th>Name</th>
|
||||||
|
<th>Role</th>
|
||||||
|
<th>Permissions</th>
|
||||||
|
<th>Action</th>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
@foreach($usersArr as $user)
|
||||||
|
<tr>
|
||||||
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
Reference in New Issue
Block a user