user table added

This commit is contained in:
2019-05-20 02:05:19 -05:00
parent 249d1d7323
commit ec6889d815

View File

@@ -17,23 +17,40 @@
<br>
<div class="tab-content">
<div id="user" class="tab-pane active">
<div class="container">
<div class="container-fluid">
<div class="row">
<div class="card">
<div class="card-header">
PI Taxes
User Information
</div>
<div class="card-body">
<table class="table table-striped table-bordered">
<thead>
<th>Month</th>
<th>PI Taxes</th>
<th>Name</th>
<th>Role</th>
<th>Permissions</th>
<th>Action</th>
</thead>
<tbody>
@foreach($pis as $pi)
@foreach($userArr as $user)
<tr>
<td>{{ $pi['date'] }}</td>
<td>{{ $pi['gross'] }}</td>
<td>{{ $user['name'] }}</td>
<td>{{ $user['role'] }}</td>
<td>
@if($user['permissions'])
@foreach($user['permissions'] as $perm)
{{ implode(', ', $perm) }}
@endforeach
@else
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>