This commit is contained in:
LAPTOP-DGCU80CH\user1
2020-11-26 16:53:16 +08:00
parent 9fcbcae462
commit 3eb90e2c89
7 changed files with 228 additions and 26 deletions
+5 -1
View File
@@ -27,6 +27,8 @@ Route::post('login', 'Auth\LoginController@authenticate');
Route::get('/', 'HomeController@index')->name('home');
Route::get('/home', 'HomeController@index')->name('home');
//Teller
Route::get('/pelanggan','CustomersController@index')->middleware('auth','teller');
Route::get('/customer_info',['as'=>'customer_info','uses'=>'CustomersController@info'])->middleware('auth','teller');
Route::get('/gadaian',['as'=>'gadaian','uses'=>'GadaianController@index'])->middleware('auth','teller');
@@ -37,4 +39,6 @@ Route::get('/harga_emas','HargaEmasController@index')->middleware('auth','teller
Route::get('/profile',['as'=>'profile','uses'=>'UserController@index'])->middleware('auth','teller');
Route::get('{user_type}/customer/search',['as'=>'customer.search','uses'=>'CustomersController@search'])->middleware('auth','teller');
Route::post('{user_type}/customer/store',['as'=>'customer.store','uses'=>'CustomersController@store'])->middleware('auth','teller');
Route::get('/test',['as'=>'test','uses'=>'CustomersController@test']);
//Penilai
Route::get('/gadaiansemasa',['as'=>'gadaian.semasa','uses'=>'GadaianController@gadaiansemasa'])->middleware('auth','penilai');