added routes for the help desk in preparation for service
This commit is contained in:
@@ -36,7 +36,7 @@ class HelpDeskController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function displayMyTickets() {
|
public function displayMyTickets() {
|
||||||
//Get the active tickets from the database
|
//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 the view with the tickets variable
|
||||||
return view('helpdesk.mytickets')->with('tickets', $tickets);
|
return view('helpdesk.mytickets')->with('tickets', $tickets);
|
||||||
|
|||||||
@@ -81,6 +81,12 @@ Route::group(['middleware' => ['auth']], function(){
|
|||||||
Route::post('/jumpbridges/getcorps', 'JumpBridgeController@ajaxCorpUsage');
|
Route::post('/jumpbridges/getcorps', 'JumpBridgeController@ajaxCorpUsage');
|
||||||
Route::get('/jumpbridges/structures', 'JumpBridgeController@displayStructureUsage');
|
Route::get('/jumpbridges/structures', 'JumpBridgeController@displayStructureUsage');
|
||||||
Route::get('/jumpbridges/getstructures', 'JumpBridgeController@ajaxStructureUsage');
|
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
|
//Login display pages
|
||||||
|
|||||||
Reference in New Issue
Block a user