user table added
This commit is contained in:
@@ -17,42 +17,29 @@
|
|||||||
<br>
|
<br>
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div id="user" class="tab-pane active">
|
<div id="user" class="tab-pane active">
|
||||||
<div class="card">
|
<div class="container-fluid">
|
||||||
<div class="card-header">
|
<div class="row">
|
||||||
User Information
|
<div class="card">
|
||||||
</div>
|
<div class="card-header">
|
||||||
<div class="card-body">
|
PI Taxes
|
||||||
<table class="table table-striped table-bordered">
|
</div>
|
||||||
<thead>
|
<div class="card-body">
|
||||||
<th>Name</th>
|
<table class="table table-striped table-bordered">
|
||||||
<th>Role</th>
|
<thead>
|
||||||
<th>Permissions</th>
|
<th>Month</th>
|
||||||
<th>Action</th>
|
<th>PI Taxes</th>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach($userArr as $user)
|
@foreach($pis as $pi)
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $user['name'] }}</td>
|
<td>{{ $pi['date'] }}</td>
|
||||||
<td>{{ $user['role'] }}</td>
|
<td>{{ $pi['gross'] }}</td>
|
||||||
<td>
|
</tr>
|
||||||
@if($user['permissions'])
|
@endforeach
|
||||||
@foreach($user['permissions'] as $perm)
|
</tbody>
|
||||||
{{ implode(', ', $perm) }}
|
</table>
|
||||||
@endforeach
|
</div>
|
||||||
@else
|
</div>
|
||||||
None
|
|
||||||
@endif
|
|
||||||
</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>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user