diff --git a/app/Http/Controllers/Dashboard/AdminController.php b/app/Http/Controllers/Dashboard/AdminController.php index e552d3314..0cd35cea5 100644 --- a/app/Http/Controllers/Dashboard/AdminController.php +++ b/app/Http/Controllers/Dashboard/AdminController.php @@ -132,7 +132,15 @@ class AdminController extends Controller ->with('pigross', $pigross); } - public function modifyRole(Request $request) { + public function displayModifyUser($name) { + //Get the user information from the name + $user = User::where(['name' => $name])->get()->toArray(); + + //Pass the user information to the page for hidden text entries + return view('admin.user.modify')->with('user', $user); + } + + public function modifyUser(Request $request) { return redirect('/admin/dashboard')->with('error', 'Not implemented yet.'); } diff --git a/resources/views/admin/dashboard.blade.php b/resources/views/admin/dashboard.blade.php index 3b575d3d8..8cf255650 100644 --- a/resources/views/admin/dashboard.blade.php +++ b/resources/views/admin/dashboard.blade.php @@ -45,9 +45,13 @@ @endif
| Name | -Role | -Permissions | -Action | - - - @foreach($userArr as $user) -
|---|---|---|---|
| {{ $user['name'] }} | -{{ $user['role'] }} | -- @foreach($user['permissions'] as $perm) - {{ implode(', ', $perm) }} - @endforeach - | -- {!! Form::open(['action' => 'Dashboard\AdminController@removeUser', 'method' => 'POST']) !!} - {{ Form::hidden('user', $user['name']) }} - {{ Form::submit('Remove User', ['class' => 'btn btn-primary']) }} - {!! Form::close() !!} - | -
| Month | -PI Taxes | - - - @foreach($pis as $pi) -
|---|---|
| {{ $pi['date'] }} | -{{ $pi['gross'] }} | -
| Month | -Office Taxes | - - - @foreach($offices as $office) -
|---|---|
| {{ $office['date'] }} | -{{ $office['gross'] }} | -
| Month | -Industry Taxes | - - - @foreach($industrys as $industry) -
|---|---|
| {{ $industry['date'] }} | -{{ $industry['gross'] }} | -
| Month | -Reprocessing Taxes | - - - @foreach($reprocessings as $reprocessing) -
|---|---|
| {{ $reprocessing['date'] }} | -{{ $reprocessing['gross'] }} | -
| Month | -Market Taxes | - - - @foreach($markets as $market) -
|---|---|
| {{ $market['date'] }} | -{{ $market['gross'] }} | -
| Month | -Jump Gate Taxes | - - - @foreach($jumpgates as $jumpgate) -
|---|---|
| {{ $jumpgate['date'] }} | -{{ $jumpgate['gross'] }} | -
| Month | -PI Transactions | - - - @foreach($pigross as $pi) -
|---|---|
| {{ $pi['date'] }} | -{{ $pi['gross'] }} | -