added new features to the admin panel

This commit is contained in:
2019-05-20 01:09:52 -05:00
parent 30d2b3679a
commit 96f8fa3375

View File

@@ -38,28 +38,30 @@
</div> </div>
<div id="userTable" class="tab-pane fade"> <div id="userTable" class="tab-pane fade">
<div class="container"> <div class="container">
<table class="table table-striped"> <div class="row">
<thead> <table class="table table-striped">
<th>Name</th> <thead>
<th>Role</th> <th>Name</th>
<th>Permissions</th> <th>Role</th>
<th>Action</th> <th>Permissions</th>
</thead> <th>Action</th>
<tbody> </thead>
@foreach($userArr as $user) <tbody>
<tr> @foreach($userArr as $user)
<td>{{ $user['name'] }}</td> <tr>
<td>{{ $user['role'] }}</td> <td>{{ $user['name'] }}</td>
<td> <td>{{ $user['role'] }}</td>
@foreach($user['permissions'] as $perm) <td>
{{ implode(', ', $perm) }} @foreach($user['permissions'] as $perm)
{{ implode(', ', $perm) }}
@endforeach
</td>
<td>Remove, Modify</td>
</tr>
@endforeach @endforeach
</td> </tbody>
<td>Remove, Modify</td> <table>
</tr> </div>
@endforeach
</tbody>
<table>
</div> </div>
</div> </div>
<div id="permissions" class="tab-pane fade"> <div id="permissions" class="tab-pane fade">