group(function () { Route::get('/', [DepartmentsController::class, 'index'])->name('departments.index'); Route::get('/create', [DepartmentsController::class, 'create'])->name('departments.create'); Route::post('/store', [DepartmentsController::class, 'store'])->name('departments.store'); Route::post('/sort', [DepartmentsController::class, 'sort'])->name('departments.sort'); Route::post('/updatealias', [DepartmentsController::class, 'updatealias'])->name('departments.updatealias'); Route::get('/show/{id}', [DepartmentsController::class, 'show'])->name('departments.show'); Route::get('/edit/{id}', [DepartmentsController::class, 'edit'])->name('departments.edit') ; Route::post('/update/{id}', [DepartmentsController::class, 'update'])->name('departments.update'); Route::get('/destroy/{id}', [DepartmentsController::class, 'destroy'])->name('departments.destroy'); Route::get('/toggle/{id}', [DepartmentsController::class, 'toggle'])->name('departments.toggle'); Route::get('/clone/{id}', [DepartmentsController::class, 'clone'])->name('departments.clone'); });