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> <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"> <div class="container-fluid">
<div class="row"> <div class="row">
<div class="card"> <div class="card">
<div class="card-header"> <div class="card-header">
PI Taxes User Information
</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>Month</th> <th>Name</th>
<th>PI Taxes</th> <th>Role</th>
<th>Permissions</th>
<th>Action</th>
</thead> </thead>
<tbody> <tbody>
@foreach($pis as $pi) @foreach($userArr as $user)
<tr> <tr>
<td>{{ $pi['date'] }}</td> <td>{{ $user['name'] }}</td>
<td>{{ $pi['gross'] }}</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> </tr>
@endforeach @endforeach
</tbody> </tbody>