Files
wticreatorstudio/Modules/Staff/Routes/web.php
T
2024-05-14 11:23:57 +08:00

27 lines
1.6 KiB
PHP

<?php
/*
|--------------------------------------------------------------------------
| 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!
|
*/
Route::prefix('admin')->middleware(['auth','admin'])->as('admin.')->group(function () {
Route::get('/staffs', 'StaffAdminController@index')->name('staffs.index');
Route::get('/staffs/data', 'StaffAdminController@data')->name('staffs.data');
Route::get('/staffs/uplines', 'StaffAdminController@uplines')->name('staffs.uplines');
Route::post('/staffs/store', 'StaffAdminController@store')->name('staffs.store');
Route::post('/staffs/update/{id}', 'StaffAdminController@update')->name('staffs.update');
Route::post('/staffs/update/{id}/status', 'StaffAdminController@updateStatus')->name('staffs.update-status');
Route::post('/staffs/update/{id}/badges', 'StaffAdminController@updateBadges')->name('staffs.update-badges');
Route::post('/staffs/update/{id}/password', 'StaffAdminController@updatePassword')->name('staffs.update-password');
Route::get('/staffs/details/{id}', 'StaffAccountController@index')->name('staffs.details');
Route::get('/staffs/details/{id}/jobs/data', 'StaffAccountController@jobsData')->name('staffs.details.jobs');
Route::get('/staffs/details/{id}/videos/statistics', 'StaffAccountController@videosStatistics')->name('staffs.details.videos');
});