%PDF- %PDF-
Direktori : /home/silvzytp/dsr_code/routes/ |
Current File : /home/silvzytp/dsr_code/routes/web.php |
<?php use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Route; use App\Http\Controllers\Auth\AuthController; use App\Http\Controllers\Backend\AdminController; use App\Http\Controllers\Backend\AgentController; use App\Http\Controllers\CompareManagerController; use App\Http\Controllers\Backend\ManagerController as ManagerControllerName; use App\Http\Controllers\Backend\Super\RoleController; use App\Http\Controllers\Backend\Super\ProfileController; use App\Http\Controllers\Backend\Super\DashboardController; use App\Http\Controllers\Backend\Super\UserManageController; use App\Http\Controllers\Backend\Super\MonthlyDataController; use App\Http\Controllers\Backend\Super\MonthlyCommitmentController; Auth::routes([ 'register' => false, // 404 disabled 'password.reset' => false, // 404 disabled 'password.update' => false, // 404 disabled 'password.request' => false, // 404 disabled 'password.email' => false, // 404 disabled 'password.confirm' => false, // 404 disabled 'logout' => false // 404 disabled ]); //------------------------ Logout -----------------------// Route::get('logout', [AuthController::class, 'logout'])->name('logout'); Route::get('forgot-password', [AuthController::class, 'forgotShowForm'])->name('forgot-password'); Route::post('forgot-email', [AuthController::class, 'forgotEmail'])->name('forgot-email'); Route::get('forgot-password/{id}/{email}', [AuthController::class, 'forgotPassword'])->name('forgot.email.password'); Route::post('forgot-password', [AuthController::class, 'resetPassword'])->name('forgot.password'); //---------------- Route List ------------// Route::get('route-list', function(){ $routes = Route::getRoutes(); return view('layouts.route', compact('routes')); }); //----------------------- Super Admin ---------------------// Route::name('super.')->middleware('auth','is_super_admin','permission')->group(function(){ //--------------------- Dashboard -------------------// Route::get('/',[DashboardController::class, 'dashboard'])->name('dashboard'); Route::get('filter',[DashboardController::class, 'filter'])->name('dashboard.filter'); Route::post('chart-bar',[DashboardController::class, 'dashboardChart'])->name('dashboard.chart-bar'); //--------------------- Activity Log ----------------// Route::get('activities', [DashboardController::class, 'activityLogs'])->name('activities.index'); //---------------------- Profile ---------------------// Route::get('profile',[ProfileController::class, 'profile'])->name('profile.index'); Route::post('profile/update',[ProfileController::class, 'profileUpdate'])->name('profile.update'); //--------------------- Password --------------------// Route::get('password', [ProfileController::class, 'password'])->name('password.index'); Route::post('password/update', [ProfileController::class, 'passwordUpdate'])->name('password.update'); //---------------------- System --------------------// Route::prefix('system')->group(function(){ //---------------------- Role ---------------------// Route::resource('roles', RoleController::class)->only(['index','edit','update']); Route::post('roles/destroy/{id}', [RoleController::class, 'destroy'])->name('roles.destroy'); //---------------------- Admin Manage -----------------------// Route::resource('admins', AdminController::class)->except('show','destroy'); Route::post('admins/destroy', [AdminController::class, 'destroy'])->name('admins.destroy'); Route::post('admins/get-data',[AdminController::class, 'getData'])->name('admins.get-data'); Route::post('admins/status',[AdminController::class, 'status'])->name('admins.status'); Route::get('admins/{id}', [AdminController::class, 'show'])->name('admins.show'); Route::post('admins/bulk-deletable',[AdminController::class, 'bulkDestroy']) ->name('admins.bulk-destroy'); //---------------------- Manager Manage -------------------// Route::resource('managers', ManagerControllerName::class)->except('show','destroy'); Route::post('managers/destroy', [ManagerControllerName::class, 'destroy'])->name('managers.destroy'); Route::post('managers/get-data',[ManagerControllerName::class, 'getData'])->name('managers.get-data'); Route::post('managers/status',[ManagerControllerName::class, 'status'])->name('managers.status'); Route::get('managers/{id}', [ManagerControllerName::class, 'show'])->name('managers.show'); Route::post('managers/bulk-deletable',[ManagerControllerName::class, 'bulkDestroy']) ->name('managers.bulk-destroy'); //---------------------- Agent Manage -----------------------// Route::resource('agents', AgentController::class)->except('show','destroy'); Route::post('agents/destroy', [AgentController::class, 'destroy'])->name('agents.destroy'); Route::post('agents/get-data',[AgentController::class, 'getData'])->name('agents.get-data'); Route::post('agents/status',[AgentController::class, 'status'])->name('agents.status'); Route::get('agents/{id}', [AgentController::class, 'show'])->name('agents.show'); Route::post('agents/bulk-deletable',[AgentController::class, 'bulkDestroy']) ->name('agents.bulk-destroy'); }); //-------------------------- Monthly Commitment --------------------------// Route::resource('monthly', MonthlyCommitmentController::class)->except('show','destroy'); Route::post('monthly/destroy', [MonthlyCommitmentController::class, 'destroy'])->name('monthly.destroy'); Route::post('monthly/get-data', [MonthlyCommitmentController::class, 'getData'])->name('monthly.get-data'); Route::post('monthly/manager', [MonthlyCommitmentController::class, 'managerSelect'])->name('monthly-commit.manager.select'); Route::post('monthly/agent-selected', [MonthlyCommitmentController::class, 'agentSelected'])->name('monthly.agent.select'); Route::post('monthly/destroy', [MonthlyCommitmentController::class, 'destroy'])->name('monthly.destroy'); //------------------------ Monthly Data ----------------------// Route::resource('monthly-data', MonthlyDataController::class)->except('show','destroy'); Route::post('monthly-data/get-data', [MonthlyDataController::class, 'getData'])->name('monthly-data.get-data'); Route::post('monthly-data/manager', [MonthlyDataController::class, 'managerSelect'])->name('monthly-data.manager.select'); Route::post('monthly-data/agent-selected', [MonthlyDataController::class, 'agentSelected'])->name('monthly-data.agent.select'); Route::post('monthly-data/destroy', [MonthlyDataController::class, 'destroy'])->name('monthly-data.destroy'); Route::post('monthly-data/remark', [MonthlyDataController::class, 'remark'])->name('monthly-data.remark'); //---------------------- Compare Manager --------------------// Route::get('compare', [CompareManagerController::class, 'index'])->name('compare.index'); Route::post('compare/get-data', [CompareManagerController::class, 'getData'])->name('compare.get-data'); Route::get('compare/data', [CompareManagerController::class, 'compareData'])->name('compare.data'); });