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