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