added routes for the help desk in preparation for service

This commit is contained in:
2018-12-26 02:26:20 -06:00
parent ebe0a24d80
commit e478ef0694
2 changed files with 7 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ class HelpDeskController extends Controller
*/
public function displayMyTickets() {
//Get the active tickets from the database
$tickets = HelpDeskTicket::where(['user_id' => auth()->user()->character_id, 'active' => 1])->get();
$tickets = HelpDeskTicket::where(['user_id' => auth()->user()->character_id])->get();
//Return the view with the tickets variable
return view('helpdesk.mytickets')->with('tickets', $tickets);

View File

@@ -81,6 +81,12 @@ Route::group(['middleware' => ['auth']], function(){
Route::post('/jumpbridges/getcorps', 'JumpBridgeController@ajaxCorpUsage');
Route::get('/jumpbridges/structures', 'JumpBridgeController@displayStructureUsage');
Route::get('/jumpbridges/getstructures', 'JumpBridgeController@ajaxStructureUsage');
//Help Desk Controller display pages
Route::get('/helpdesk/tickets', 'HelpDeskController@displayMyTickets');
Route::get('/helpdesk/tickets/edit', 'HelpDeskController@editTicket');
Route::get('/helpdesk/tickets/new', 'HelpDeskController@displayNewTicket');
Route::post('/helpdesk/tickets/new', 'HelpDeskController@storeTicket');
});
//Login display pages