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