Account next invoice, and authorisations

This commit is contained in:
Deon George
2019-07-04 14:55:05 +10:00
parent 59a8ef2476
commit 21ea60c4f9
26 changed files with 532 additions and 102 deletions

View File

@@ -35,15 +35,22 @@ Route::group(['middleware'=>['theme:adminlte-be','auth','role:reseller'],'prefix
Route::get('supplier/create', 'SuppliersController@create');
Route::post('supplier/store', 'SuppliersController@store');
Route::get('switch/start/{id}','\Leenooks\Controllers\AdminController@user_switch_start')->name('switch.user.stop');
Route::get('home/{o}', 'UserHomeController@user');
//Route::get('home/{o}', 'UserHomeController@user');
});
// Our User Routes
Route::group(['middleware'=>['theme:adminlte-be','auth'],'prefix'=>'u'], function() {
Route::get('home', 'UserHomeController@home');
Route::get('invoice/{o}', 'UserHomeController@invoice');
Route::get('invoice/{o}/pdf','UserHomeController@invoice_pdf');
Route::get('service/{o}', 'UserHomeController@service');
Route::get('account/{o}', 'User\AccountController@view')
->middleware('can:view,o');
Route::get('account/{o}/invoice', 'User\AccountController@view_invoice_next')
->middleware('can:view,o');
Route::get('invoice/{o}', 'UserHomeController@invoice')
->middleware('can:view,o');
Route::get('invoice/{o}/pdf','UserHomeController@invoice_pdf')
->middleware('can:view,o');
Route::get('service/{o}', 'UserHomeController@service')
->middleware('can:view,o');
});
// Frontend Routes (Non-Authed Users)