staffmanager/routes/web.php

88 lines
2.5 KiB
PHP
Raw Normal View History

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!
|
*/
Auth::routes();
2020-04-26 04:09:32 +00:00
Route::get('/','HomeController@index');
Route::post('/form/contact', 'ContactController@create')
->name('sendSubmission');
Route::group(['middleware' => 'auth'], function(){
2020-05-02 05:54:14 +00:00
Route::get('/dashboard', 'DashboardController@index');
Route::group(['prefix' => '/applications'], function (){
Route::get('/pending', 'ApplicationController@showPendingUserApps')
->name('userPendingApps');
Route::get('/denied', 'ApplicationController@showDeniedUserApps')
->name('userDeniedApps');
Route::get('/approved', 'ApplicationController@showApprovedApps')
->name('userApprovedApps');
});
Route::group(['prefix' => '/profile'], function (){
Route::get('/settings', 'ProfileController@index');
});
Route::group(['prefix' => '/applications'], function (){
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-02 05:54:14 +00:00
Route::get('/staff/pending-interview', 'ApplicationController@showPendingInterview')
->name('pendingInterview');
});
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-03 04:04:26 +00:00
Route::group(['prefix' => 'admin'], function (){
Route::resource('positions', 'VacancyController');
Route::get('forms/builder', 'FormController@showFormBuilder')
->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');
Route::get('forms', 'FormController@index')
->name('showForms');
2020-05-03 04:04:26 +00:00
});
});
//Route::get('/dashboard/login', '');