2020-04-26 04:09:32 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Web Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
|
|
| contains the "web" middleware group. Now create something great!
|
|
|
|
|
|
|
|
|
*/
|
2020-05-13 21:47:51 +00:00
|
|
|
Route::group(['prefix' => 'auth', 'middleware' => ['usernameUUID']], function (){
|
|
|
|
|
|
|
|
Auth::routes();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
Route::get('/','HomeController@index')
|
|
|
|
->middleware('eligibility');
|
|
|
|
|
2020-04-27 06:28:00 +00:00
|
|
|
Route::post('/form/contact', 'ContactController@create')
|
|
|
|
->name('sendSubmission');
|
2020-04-29 02:20:00 +00:00
|
|
|
|
|
|
|
|
2020-06-26 23:32:33 +00:00
|
|
|
Route::group(['middleware' => ['auth', 'forcelogout']], function(){
|
2020-04-29 02:20:00 +00:00
|
|
|
|
2020-05-11 15:44:47 +00:00
|
|
|
Route::get('/dashboard', 'DashboardController@index')
|
|
|
|
->name('dashboard')
|
|
|
|
->middleware('eligibility');
|
2020-05-02 05:54:14 +00:00
|
|
|
|
2020-04-30 15:38:54 +00:00
|
|
|
Route::group(['prefix' => '/applications'], function (){
|
|
|
|
|
2020-05-22 02:49:16 +00:00
|
|
|
Route::get('/my-applications', 'ApplicationController@showUserApps')
|
2020-05-11 15:44:47 +00:00
|
|
|
->name('showUserApps')
|
|
|
|
->middleware('eligibility');
|
2020-04-30 21:53:57 +00:00
|
|
|
|
2020-05-29 23:20:39 +00:00
|
|
|
|
2020-05-22 02:49:16 +00:00
|
|
|
Route::get('/view/{id}', 'ApplicationController@showUserApp')
|
|
|
|
->name('showUserApp');
|
|
|
|
|
2020-06-26 23:32:33 +00:00
|
|
|
Route::post('/{application}/comments', 'CommentController@insert')
|
|
|
|
->name('addApplicationComment');
|
|
|
|
|
|
|
|
Route::delete('/comments/{comment}/delete', 'CommentController@delete')
|
|
|
|
->name('deleteApplicationComment');
|
|
|
|
|
|
|
|
|
2020-05-29 23:20:39 +00:00
|
|
|
Route::patch('/notes/save/{applicationID}', 'AppointmentController@saveNotes')
|
|
|
|
->name('saveNotes');
|
|
|
|
|
|
|
|
|
2020-05-22 02:49:16 +00:00
|
|
|
Route::patch('/update/{id}/{newStatus}', 'ApplicationController@updateApplicationStatus')
|
|
|
|
->name('updateApplicationStatus');
|
2020-05-01 04:42:19 +00:00
|
|
|
|
2020-05-01 05:21:44 +00:00
|
|
|
Route::get('/staff/outstanding', 'ApplicationController@showAllPendingApps')
|
|
|
|
->name('staffPendingApps');
|
|
|
|
|
|
|
|
Route::get('/staff/peer-review', 'ApplicationController@showPeerReview')
|
|
|
|
->name('peerReview');
|
2020-05-01 04:42:19 +00:00
|
|
|
|
2020-05-02 05:54:14 +00:00
|
|
|
Route::get('/staff/pending-interview', 'ApplicationController@showPendingInterview')
|
|
|
|
->name('pendingInterview');
|
|
|
|
|
2020-05-08 05:06:24 +00:00
|
|
|
|
2020-05-29 23:20:39 +00:00
|
|
|
Route::post('{id}/staff/vote', 'VoteController@vote')
|
|
|
|
->name('voteApplication');
|
|
|
|
|
|
|
|
|
2020-05-01 04:42:19 +00:00
|
|
|
});
|
|
|
|
|
2020-05-22 02:49:16 +00:00
|
|
|
Route::group(['prefix' => 'appointments'], function (){
|
|
|
|
|
|
|
|
Route::post('schedule/appointments/{applicationID}', 'AppointmentController@saveAppointment')
|
|
|
|
->name('scheduleAppointment');
|
|
|
|
|
|
|
|
Route::patch('update/appointments/{applicationID}/{status}', 'AppointmentController@updateAppointment')
|
|
|
|
->name('updateAppointment');
|
|
|
|
|
|
|
|
});
|
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
Route::group(['prefix' => 'apply', 'middleware' => ['eligibility']], function (){
|
2020-05-08 05:06:24 +00:00
|
|
|
|
|
|
|
Route::get('positions/{vacancySlug}', 'ApplicationController@renderApplicationForm')
|
|
|
|
->name('renderApplicationForm');
|
|
|
|
|
2020-05-08 07:10:25 +00:00
|
|
|
Route::post('positions/{vacancySlug}/submit', 'ApplicationController@saveApplicationAnswers')
|
|
|
|
->name('saveApplicationForm');
|
|
|
|
|
2020-05-08 05:06:24 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
Route::group(['prefix' => '/profile'], function (){
|
|
|
|
|
2020-05-13 21:47:51 +00:00
|
|
|
Route::get('/settings', 'ProfileController@showProfile')
|
|
|
|
->name('showProfileSettings');
|
|
|
|
|
|
|
|
Route::patch('/settings/save', 'ProfileController@saveProfile')
|
|
|
|
->name('saveProfileSettings');
|
|
|
|
|
2020-06-26 23:32:33 +00:00
|
|
|
Route::get('user/{user}', 'ProfileController@showSingleProfile')
|
|
|
|
->name('showSingleProfile');
|
2020-05-13 21:47:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
Route::get('/settings/account', 'UserController@showAccount')
|
|
|
|
->name('showAccountSettings');
|
|
|
|
|
|
|
|
|
|
|
|
Route::patch('/settings/account/change-password', 'UserController@changePassword')
|
|
|
|
->name('changePassword');
|
|
|
|
|
|
|
|
Route::patch('/settings/account/change-email', 'UserController@changeEmail')
|
|
|
|
->name('changeEmail');
|
|
|
|
|
|
|
|
Route::post('/settings/account/flush-sessions', 'UserController@flushSessions')
|
|
|
|
->name('flushSessions');
|
2020-05-08 05:06:24 +00:00
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
2020-05-02 23:45:29 +00:00
|
|
|
Route::group(['prefix' => '/hr'], function (){
|
|
|
|
|
2020-05-03 03:31:02 +00:00
|
|
|
Route::get('staff-members', 'UserController@showStaffMembers')
|
|
|
|
->name('staffMemberList');
|
|
|
|
|
|
|
|
Route::get('players', 'UserController@showPlayers')
|
|
|
|
->name('registeredPlayerList');
|
2020-05-02 23:45:29 +00:00
|
|
|
|
2020-06-26 23:32:33 +00:00
|
|
|
Route::post('players/search', 'UserController@showPlayersLike')
|
|
|
|
->name('searchRegisteredPLayerList');
|
|
|
|
|
|
|
|
Route::patch('staff-members/terminate/{user}', 'UserController@terminate')
|
|
|
|
->name('terminateStaffMember');
|
|
|
|
|
2020-05-02 23:45:29 +00:00
|
|
|
});
|
|
|
|
|
2020-05-03 04:04:26 +00:00
|
|
|
Route::group(['prefix' => 'admin'], function (){
|
|
|
|
|
2020-06-26 23:32:33 +00:00
|
|
|
Route::post('players/ban/{user}', 'BanController@insert')
|
|
|
|
->name('banUser');
|
|
|
|
|
|
|
|
Route::delete('players/unban/{user}', 'BanController@delete')
|
|
|
|
->name('unbanUser');
|
|
|
|
|
|
|
|
Route::delete('players/delete/{user}', 'UserController@delete')
|
|
|
|
->name('deleteUser');
|
|
|
|
|
|
|
|
Route::patch('players/update/{user}', 'UserController@update')
|
|
|
|
->name('updateUser');
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-07 23:24:56 +00:00
|
|
|
Route::get('positions', 'VacancyController@index')
|
|
|
|
->name('showPositions');
|
|
|
|
|
|
|
|
Route::post('positions/save', 'VacancyController@store')
|
|
|
|
->name('savePosition');
|
|
|
|
|
|
|
|
|
|
|
|
Route::patch('positions/availability/{status}/{id}', 'VacancyController@updatePositionAvailability')
|
|
|
|
->name('updatePositionAvailability');
|
|
|
|
|
2020-05-03 04:04:26 +00:00
|
|
|
|
2020-05-06 22:16:34 +00:00
|
|
|
Route::get('forms/builder', 'FormController@showFormBuilder')
|
2020-05-06 02:44:39 +00:00
|
|
|
->name('showFormBuilder');
|
|
|
|
|
|
|
|
Route::post('forms/save', 'FormController@saveForm')
|
|
|
|
->name('saveForm');
|
2020-05-03 04:04:26 +00:00
|
|
|
|
2020-05-06 23:36:33 +00:00
|
|
|
Route::delete('forms/destroy/{id}', 'FormController@destroy')
|
|
|
|
->name('destroyForm');
|
|
|
|
|
2020-05-06 22:16:34 +00:00
|
|
|
Route::get('forms', 'FormController@index')
|
|
|
|
->name('showForms');
|
|
|
|
|
2020-05-29 23:20:39 +00:00
|
|
|
|
|
|
|
Route::get('devtools', 'DevToolsController@index')
|
|
|
|
->name('devTools');
|
|
|
|
|
|
|
|
// we could use route model binding
|
|
|
|
Route::post('devtools/vote-evaluation/force', 'DevToolsController@forceVoteCount')
|
|
|
|
->name('devToolsForceVoteCount');
|
|
|
|
|
2020-05-03 04:04:26 +00:00
|
|
|
});
|
|
|
|
|
2020-04-29 02:20:00 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
//Route::get('/dashboard/login', '');
|