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