users blade
This commit is contained in:
47
resources/views/admin/dashboards/users.blade.php
Normal file
47
resources/views/admin/dashboards/users.blade.php
Normal file
@@ -0,0 +1,47 @@
|
||||
@extends('admin.layouts.b4')
|
||||
@section('content')
|
||||
<div class="container-fluid">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
User Information
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table class="table table-striped table-bordered">
|
||||
<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
|
||||
No Permissions
|
||||
@endif
|
||||
</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>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user