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