modified comments for web routes.

added new user modify button but no controls behind it yet.
This commit is contained in:
2019-05-21 23:52:24 -05:00
parent 1aff8da252
commit 85d1c30e81
7 changed files with 53 additions and 721 deletions

View File

@@ -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.');
}

View File

@@ -45,9 +45,13 @@
@endif
</td>
<td>
{!! Form::open(['action' => 'Dashboard\AdminController@displayModifyUser', 'method' => 'POST']) !!}
{{ Form::hidden('user', $user['name']) }}
{{ Form::submit('Modify User', ['class' => 'btn btn-primary']) }}
{!! Form::close() !!}
{!! Form::open(['action' => 'Dashboard\AdminController@removeUser', 'method' => 'POST']) !!}
{{ Form::hidden('user', $user['name']) }}
{{ Form::submit('Remove User', ['class' => 'btn btn-primary']) }}
{{ Form::submit('Remove User', ['class' => 'btn btn-danger']) }}
{!! Form::close() !!}
</td>
</tr>

View File

@@ -1,341 +0,0 @@
@extends('layouts.b4')
@section('content')
<div class="container">
<h2> Admin Dashboard</h2>
</div>
<br>
<nav>
<div class="nav nav-tabs" id="nav-tab" role="tablist">
<a class="nav-item nav-link active" id="user-tab" data-toggle="tab" href="#user" role="tab" aria-controls="user" aria-selected="true">User</a>
<a class="nav-item nav-link" id="permissions-tab" data-toggle="tab" href="#permissions" role="tab" aria-controls="permissions" aria-selected="false">Permissions</a>
<a class="nav-item nav-link" id="roles-tab" data-toggle="tab" href="#roles" role="tab" aria-controls="roles" aria-selected="false">Roles</a>
<a class="nav-item nav-link" id="logins-tab" data-toggle="tab" href="#logins" role="tab" aria-controls="logins" aria-selected="false">Logins</a>
<a class="nav-item nav-link" id="wiki-tab" data-toggle="tab" href="#wiki" role="tab" aria-controls="wiki" aria-selected="false">Wiki</a>
<a class="nav-item nav-link" id="taxes-tab" data-toggle="tab" href="#taxes" role="tab" aria-controls="taxes" aria-selected="false">Taxes</a>
</div>
</nav>
<br>
<div class="tab-content">
<div class="tab-pane fade show active" id="user" role="tabpanel" aria-labelledby="user-tab">
<div class="container">
<div class="row">
<table class="table table-striped">
<thead>
<th>Name</th>
<th>Role</th>
<th>Permissions</th>
<th>Action</th>
</thead>
<tbody>
@foreach($userArr as $user)
<tr>
<td>{{ $user['name'] }}</td>
<td>{{ $user['role'] }}</td>
<td>
@foreach($user['permissions'] as $perm)
{{ implode(', ', $perm) }}
@endforeach
</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 class="tab-pane fade" id="permissions" role="tabpanel" aria-labelledby="permissions-tab">
<div class="container">
<div class="row">
<div class="col-md-6 card">
<div class="card-header">
Add Permission for User
</div>
<div class="card-body">
{!! Form::open(['action' => 'Dashboard\AdminController@addPermission', 'method' => 'POST']) !!}
<div class="form-group">
{{ Form::label('user', 'User') }}
{{ Form::select('user', $users, null, ['class' => 'form-control']) }}
{{ Form::select('permission', $permissions, null, ['class' => 'form-control']) }}
</div>
{{ Form::submit('Submit', ['class' => 'btn btn-primary']) }}
{!! Form::close() !!}
</div>
</div>
</div>
</div>
</div>
<div class="tab-pane fade" id="roles" role="tabpanel" aria-labelledby="roles-tab">
<div class="container">
<div class="row">
<div class="col-md-6 card">
<div class="card-header">
Modify User Role
</div>
<div class="card-body">
{!! Form::open(['action' => 'Dashboard\AdminController@modifyRole', 'method' => 'POST']) !!}
<div class="form-group">
{{ Form::label('user', 'User') }}
{{ Form::select('user', $users, null, ['class' => 'form-control']) }}
</div>
{{ Form::submit('Submit', ['class' => 'btn btn-primary']) }}
{!! Form::close() !!}
</div>
</div>
</div>
</div>
</div>
<div class="tab-pane fade" id="logins" role="tabpanel" aria-labelledby="logins-tab">
<div class="container">
<div class="row">
<div class="col">
<div class="card">
<div class="card-header">
Add Allowed Login
</div>
<div class="card-body">
{!! Form::open(['action' => 'Dashboard\AdminController@addAllowedLogin', 'method' => 'POST']) !!}
<div class="form-group">
{{ Form::label('allowedEntityId', 'Allowed Entity ID') }}
{{ Form::text('allowedEntityId', '', ['class' => 'form-control']) }}
</div>
<div class="form-group">
{{ Form::label('allowedEntityType', 'Allowed Entity Type') }}
{{ Form::select('allowedEtntityType', ['Corporation' => 'Corporation', 'Alliance' => 'Alliance'], null, ['class' => 'form-control']) }}
</div>
<div class="form-group">
{{ Form::label('allowedEntityName', 'Allowed Entity Name') }}
{{ Form::text('allowedEntityName', '', ['class' => 'form-control']) }}
</div>
<div class="form-group">
{{ Form::label('allowedLoginType', 'Allowed Login Type') }}
{{ Form::select('allowedLoginType', ['Legacy' => 'Legacy', 'Renter' => 'Renter'], null, ['class' => 'form-control']) }}
</div>
{{ Form::submit('Submit', ['class' => 'btn btn-primary']) }}
{!! Form::close() !!}
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="card-header">
Remove Allowed Login
</div>
<div class="card-body">
{!! Form::open(['action' => 'Dashboard\AdminController@removeAllowedLogin', 'method' => 'POST']) !!}
<div class="form-group">
{{ Form::label('removeAllowedLogin', 'Remove Entity') }}
{{ Form::select('removeAllowedLogin', $entities, null, ['class' => 'form-control']) }}
</div>
{{ Form::submit('Submit', ['class' => 'btn btn-primary']) }}
{!! Form::close() !!}
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tab-pane fade" id="wiki" role="tabpanel" aria-labelledby="wiki-tab">
<div class="container">
<div class="row">
{!! Form::open(['action' => 'Wiki\WikiController@purgeUsers', 'method' => 'POST']) !!}
<div class="form-group">
{{ Form::label('admin', 'This action will log the administrator who peformed the action.') }}
{{ Form::hidden('admin', auth()->user()->character_id) }}
</div>
{{ Form::submit('Purge Wiki', ['class' => 'btn btn-primary']) }}
{!! Form::close() !!}
</div>
</div>
</div>
<div class="tab-pane fade" id="taxes" role="tabpanel" aria-labelledby="taxes-tab">
<div class="container-fluid">
<div class="row">
<div class="col">
<div class="card">
<div class="card-header">
PI Taxes
</div>
<div class="card-body">
<table class="table table-striped">
<thead>
<th>Month</th>
<th>PI Taxes</th>
</thead>
<tbody>
@foreach($pis as $pi)
<tr>
<td>{{ $pi['date'] }}</td>
<td>{{ $pi['gross'] }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="card-header">
Office Taxes
</div>
<div class="card-body">
<table class="table table-striped">
<thead>
<th>Month</th>
<th>Office Taxes</th>
</thead>
<tbody>
@foreach($offices as $office)
<tr>
<td>{{ $office['date'] }}</td>
<td>{{ $office['gross'] }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="card-header">
Industry Taxes
</div>
<div class="card-body">
<table class="table table-striped">
<thead>
<th>Month</th>
<th>Industry Taxes</th>
</thead>
<tbody>
@foreach($industrys as $industry)
<tr>
<td>{{ $industry['date'] }}</td>
<td>{{ $industry['gross'] }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<br>
<div class="container-fluid">
<div class="row">
<div class="col">
<div class="card">
<div class="card-header">
Reprocessing Taxes
</div>
<div class="card-body">
<table class="table table-striped">
<thead>
<th>Month</th>
<th>Reprocessing Taxes</th>
</thead>
<tbody>
@foreach($reprocessings as $reprocessing)
<tr>
<td>{{ $reprocessing['date'] }}</td>
<td>{{ $reprocessing['gross'] }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="card-header">
Market Taxes
</div>
<div class="card-body">
<table class="table table-striped">
<thead>
<th>Month</th>
<th>Market Taxes</th>
</thead>
<tbody>
@foreach($markets as $market)
<tr>
<td>{{ $market['date'] }}</td>
<td>{{ $market['gross'] }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="card-header">
Jump Gate Taxes
</div>
<div class="card-body">
<table class="table table-striped">
<thead>
<th>Month</th>
<th>Jump Gate Taxes</th>
</thead>
<tbody>
@foreach($jumpgates as $jumpgate)
<tr>
<td>{{ $jumpgate['date'] }}</td>
<td>{{ $jumpgate['gross'] }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col">
<div class="card">
<div class="card-header">
PI Transactions
</div>
<div class="card-body">
<table class="table table-striped">
<thead>
<th>Month</th>
<th>PI Transactions</th>
</thead>
<tbody>
@foreach($pigross as $pi)
<tr>
<td>{{ $pi['date'] }}</td>
<td>{{ $pi['gross'] }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
<div class="col">
</div>
<div class="col">
</div>
</div>
</div>
</div>
</div>
@endsection

View File

@@ -1,330 +0,0 @@
@extends('layouts.b4')
@section('content')
<div class="container">
<h2> Admin Dashboard</h2>
</div>
<br>
<nav>
<ul class="nav nav-tabs">
<li class="nav-item active"><a class="nav-link active" data-toggle="tab" href="#user">User</a></li>
<li class="nav-item"><a class="nav-link" data-toggle="tab" href="#permissions">Permissions</a></li>
<li class="nav-item"><a class="nav-link" data-toggle="tab" href="#roles">Roles</a></li>
<li class="nav-item"><a class="nav-link" data-toggle="tab" href="#logins">Login</a></li>
<li class="nav-item"><a class="nav-link" data-toggle="tab" href="#wiki">Wiki</a></li>
<li class="nav-item"><a class="nav-link" data-toggle="tab" href="#taxes">Taxes</a></li>
</ul>
<br>
<div class="tab-content">
<div id="user" class="tab-pane active">
<div class="container">
<div class="row">
<table class="table table-striped">
<thead>
<th>Name</th>
<th>Role</th>
<th>Permissions</th>
<th>Action</th>
</thead>
<tbody>
@foreach($userArr as $user)
<tr>
<td>{{ $user['name'] }}</td>
<td>{{ $user['role'] }}</td>
<td>
@foreach($user['permissions'] as $perm)
{{ implode(', ', $perm) }}
@endforeach
</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 id="permissions" class="tab-pane fade">
<div class="container">
<div class="row">
<div class="col-md-6 card">
<div class="card-header">
Add Permission for User
</div>
<div class="card-body">
{!! Form::open(['action' => 'Dashboard\AdminController@addPermission', 'method' => 'POST']) !!}
<div class="form-group">
{{ Form::label('user', 'User') }}
{{ Form::select('user', $users, null, ['class' => 'form-control']) }}
{{ Form::select('permission', $permissions, null, ['class' => 'form-control']) }}
</div>
{{ Form::submit('Submit', ['class' => 'btn btn-primary']) }}
{!! Form::close() !!}
</div>
</div>
</div>
</div>
</div>
<div id="roles" class="tab-pane fade">
<div class="container">
<div class="row">
<div class="col-md-6 card">
<div class="card-header">
Modify User Role
</div>
<div class="card-body">
{!! Form::open(['action' => 'Dashboard\AdminController@modifyRole', 'method' => 'POST']) !!}
<div class="form-group">
{{ Form::label('user', 'User') }}
{{ Form::select('user', $users, null, ['class' => 'form-control']) }}
</div>
{{ Form::submit('Submit', ['class' => 'btn btn-primary']) }}
{!! Form::close() !!}
</div>
</div>
</div>
</div>
</div>
<div id="logins" class="tab-pane fade">
<div class="container">
<div class="row">
<div class="col">
<div class="card">
<div class="card-header">
Add Allowed Login
</div>
<div class="card-body">
{!! Form::open(['action' => 'Dashboard\AdminController@addAllowedLogin', 'method' => 'POST']) !!}
<div class="form-group">
{{ Form::label('allowedEntityId', 'Allowed Entity ID') }}
{{ Form::text('allowedEntityId', '', ['class' => 'form-control']) }}
</div>
<div class="form-group">
{{ Form::label('allowedEntityType', 'Allowed Entity Type') }}
{{ Form::select('allowedEtntityType', ['Corporation' => 'Corporation', 'Alliance' => 'Alliance'], null, ['class' => 'form-control']) }}
</div>
<div class="form-group">
{{ Form::label('allowedEntityName', 'Allowed Entity Name') }}
{{ Form::text('allowedEntityName', '', ['class' => 'form-control']) }}
</div>
<div class="form-group">
{{ Form::label('allowedLoginType', 'Allowed Login Type') }}
{{ Form::select('allowedLoginType', ['Legacy' => 'Legacy', 'Renter' => 'Renter'], null, ['class' => 'form-control']) }}
</div>
{{ Form::submit('Submit', ['class' => 'btn btn-primary']) }}
{!! Form::close() !!}
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="card-header">
Remove Allowed Login
</div>
<div class="card-body">
{!! Form::open(['action' => 'Dashboard\AdminController@removeAllowedLogin', 'method' => 'POST']) !!}
<div class="form-group">
{{ Form::label('removeAllowedLogin', 'Remove Entity') }}
{{ Form::select('removeAllowedLogin', $entities, null, ['class' => 'form-control']) }}
</div>
{{ Form::submit('Submit', ['class' => 'btn btn-primary']) }}
{!! Form::close() !!}
</div>
</div>
</div>
</div>
</div>
</div>
<div id="wiki" class="tab-pane fade">
This is a placeholder
</div>
<div id="taxes" class="tab-pane fade">
<div class="container-fluid">
<div class="row">
<div class="col">
<div class="card">
<div class="card-header">
PI Taxes
</div>
<div class="card-body">
<table class="table table-striped">
<thead>
<th>Month</th>
<th>PI Taxes</th>
</thead>
<tbody>
@foreach($pis as $pi)
<tr>
<td>{{ $pi['date'] }}</td>
<td>{{ $pi['gross'] }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="card-header">
Office Taxes
</div>
<div class="card-body">
<table class="table table-striped">
<thead>
<th>Month</th>
<th>Office Taxes</th>
</thead>
<tbody>
@foreach($offices as $office)
<tr>
<td>{{ $office['date'] }}</td>
<td>{{ $office['gross'] }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="card-header">
Industry Taxes
</div>
<div class="card-body">
<table class="table table-striped">
<thead>
<th>Month</th>
<th>Industry Taxes</th>
</thead>
<tbody>
@foreach($industrys as $industry)
<tr>
<td>{{ $industry['date'] }}</td>
<td>{{ $industry['gross'] }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<br>
<div class="container-fluid">
<div class="row">
<div class="col">
<div class="card">
<div class="card-header">
Reprocessing Taxes
</div>
<div class="card-body">
<table class="table table-striped">
<thead>
<th>Month</th>
<th>Reprocessing Taxes</th>
</thead>
<tbody>
@foreach($reprocessings as $reprocessing)
<tr>
<td>{{ $reprocessing['date'] }}</td>
<td>{{ $reprocessing['gross'] }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="card-header">
Market Taxes
</div>
<div class="card-body">
<table class="table table-striped">
<thead>
<th>Month</th>
<th>Market Taxes</th>
</thead>
<tbody>
@foreach($markets as $market)
<tr>
<td>{{ $market['date'] }}</td>
<td>{{ $market['gross'] }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="card-header">
Jump Gate Taxes
</div>
<div class="card-body">
<table class="table table-striped">
<thead>
<th>Month</th>
<th>Jump Gate Taxes</th>
</thead>
<tbody>
@foreach($jumpgates as $jumpgate)
<tr>
<td>{{ $jumpgate['date'] }}</td>
<td>{{ $jumpgate['gross'] }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col">
<div class="card">
<div class="card-header">
PI Transactions
</div>
<div class="card-body">
<table class="table table-striped">
<thead>
<th>Month</th>
<th>PI Transactions</th>
</thead>
<tbody>
@foreach($pigross as $pi)
<tr>
<td>{{ $pi['date'] }}</td>
<td>{{ $pi['gross'] }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
<div class="col">
</div>
<div class="col">
</div>
</div>
</div>
</div>
</div>
@endsection

View File

@@ -1,35 +0,0 @@
<div class="container">
<div class="row">
<table class="table table-striped table-bordered">
<thead>
<th>Name</th>
<th>Role</th>
<th>Permissions</th>
<th>Action</th>
</thead>
<tbody>
@foreach($userArr as $user)
<tr>
<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>
<table>
</div>
</div>

View File

@@ -20,15 +20,21 @@ Route::get('/', function () {
})->name('/');
Route::group(['middleware' => ['auth']], function(){
//Dashboard Controller Display pages
/**
* Dashboard Controller Display pages
*/
Route::get('/dashboard', 'Dashboard\DashboardController@index');
//Moon Controller display pages
/**
* Moon Controller display pages
*/
Route::get('/moons/display', 'Moons\MoonsController@displayMoons');
Route::get('/moons/display/worth', 'Moons\MoonsController@displayTotalWorthForm');
Route::post('displayTotalWorth', 'Moons\MoonsController@displayTotalWorth');
//Moon Admin Controller display pages
/**
* Moon Admin Controller display pages
*/
Route::get('/moons/admin/addmoon', 'Moons\MoonsAdminController@addMoon');
Route::post('/moon/admin/addmoon', 'Moons\MoonsAdminController@storeMoon');
Route::get('/moons/admin/display', 'Moons\MoonsAdminController@displayMoonsAdmin');
@@ -37,33 +43,45 @@ Route::group(['middleware' => ['auth']], function(){
Route::get('/moons/admin/journal', 'Moons\MoonsAdminController@showJournalEntries');
Route::post('/moons/admin/display', 'Moons\MoonsAdminController@updateMoonPaid');
//Wiki Controller display pages
/**
* Wiki Controller display pages
*/
Route::get('/wiki/register', 'Wiki\WikiController@displayRegister');
Route::post('/wiki/register', 'Wiki\WikiController@storeRegister');
Route::get('/wiki/changepassword', 'Wiki\WikiController@displayChangePassword');
Route::post('/wiki/changepassword', 'Wiki\WikiController@changePassword');
Route::post('/wiki/purge', 'Wiki\WikiController@purgeUsers');
//Admin Controller display pages
/**
* Admin Controller display pages
*/
Route::get('/admin/dashboard', 'Dashboard\AdminController@displayDashboard');
Route::post('/admin/add/role', 'Dashboard\AdminController@addRole');
Route::post('/admin/remove/role', 'Dashboard\AdminController@removeRole');
Route::post('/admin/add/permission', 'Dashboard\AdminController@addPermission');
Route::post('/admin/remove/user', 'Dashboard\AdminController@removeUser');
Route::post('/admin/modify/role', 'Dashboard\AdminController@modifyRole');
Route::post('/admin/modify/user/display', 'Dashboard\AdminController@displayModifyUser');
Route::post('/admin/modify/user', 'Dashboard\AdminController@modifyUser');
Route::post('/admin/add/allowedlogin', 'Dashboard\AdminController@addAllowedLogin');
Route::post('/admin/rmoeve/allowedlogin', 'Dashboard\AdminController@removeAllowedLogin');
//Register Structures Controller display pages
/**
* Register structure controller display pages
*/
Route::get('/structures/register', 'Structures\RegisterStructureController@displayRegisterstructure');
Route::post('/structures/register', 'Structures\RegisterStructureController@storeStructure');
//Structure Admin Controller display pages
/**
* Structure Admin Controller display pages
*/
Route::get('/structures/admin/dashboard', 'Structures\StructureAdminController@displayDashboard');
Route::post('/structures/admin/add/taxratio', 'Strutures\StructureAdminController@storeTaxRatio');
Route::post('/structures/admin/update/taxratio', 'Structures\StructureAdminController@updateTaxRatio');
//Structure Controller display pages
/**
* Structure Controller display pages
* To be removed in future release. Functionality will be removed as well.
*/
Route::get('/structures/taxes/display', 'Structures\StructureController@displayTaxes');
Route::get('/structures/admin/taxes/display', 'Structures\StructureController@chooseCorpTaxes');
Route::get('/structures/admin/taxes/display/execute', 'Structures\StructureController@displayCorpTaxes');
@@ -71,11 +89,15 @@ Route::group(['middleware' => ['auth']], function(){
Route::get('/structures/admin/taxes/reprocessing', 'Structures\StructureController@displayReprocessingTaxes');
Route::get('/structures/admin/display', 'Structures\StructureController@displayAdminPanel');
//Scopes Controller display pages
/**
* Scopes Controller display pages
*/
Route::get('/scopes/select', 'Auth\EsiScopeController@displayScopes');
Route::post('redirectToProvider', 'Auth\EsiScopeController@redirectToProvider');
//Contract Controller display pages
/**
* Contract Controller display pages
*/
Route::get('/contracts/display/all', 'Contracts\ContractController@displayContracts');
Route::get('/contracts/display/public', 'Contracts\ContractController@displayPublicContracts');
Route::get('/contracts/display/private', 'Contracts\ContractController@displayPrivateContracts');
@@ -86,7 +108,9 @@ Route::group(['middleware' => ['auth']], function(){
Route::post('/contracts/modify/bid', 'Contracts\ContractController@modifyBid');
Route::post('/contracts/bids/store', 'Contracts\ContractController@storeBid');
//Contract Admin Controller display pages
/**
* Contract Admin Controller display pages
*/
Route::get('/contracts/admin/display', 'Contracts\ContractAdminController@displayContractDashboard');
Route::get('/contracts/admin/past', 'Contracts\ContractAdminController@displayPastContracts');
Route::get('/contracts/admin/new', 'Contracts\ContractAdminController@displayNewContract');
@@ -98,7 +122,9 @@ Route::group(['middleware' => ['auth']], function(){
});
//Login display pages
/**
* Login Display pages
*/
Route::get('/login', 'Auth\LoginController@redirectToProvider')->name('login');
Route::get('/callback', 'Auth\LoginController@handleProviderCallback')->name('callback');
Route::get('/logout', 'Auth\LoginController@logout')->name('logout');