user table added

This commit is contained in:
2019-05-20 02:03:20 -05:00
parent 25cd1e9a7f
commit fba7c28051

View File

@@ -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="container-fluid">
<div class="row">
<div class="card"> <div class="card">
<div class="card-header"> <div class="card-header">
User Information PI Taxes
</div> </div>
<div class="card-body"> <div class="card-body">
<table class="table table-striped table-bordered"> <table class="table table-striped table-bordered">
<thead> <thead>
<th>Name</th> <th>Month</th>
<th>Role</th> <th>PI Taxes</th>
<th>Permissions</th>
<th>Action</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>
@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> </tr>
@endforeach @endforeach
</tbody> </tbody>
<table> </table>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>