group(function () { Route::get('/', [StudentsController::class, 'index'])->name('students.index'); Route::match(['get', 'post'], '/campaigns/{alias}', [StudentsController::class, 'bycampaign'])->name('students.bycampaign'); Route::match(['get', 'post'], '/categories/{alias}', [StudentsController::class, 'bycategory'])->name('students.bycategory'); Route::match(['get', 'post'], '/sources/{alias}', [StudentsController::class, 'bysource'])->name('students.bysource'); Route::match(['get', 'post'], '/countries/{alias}', [StudentsController::class, 'bycountry'])->name('students.bycountry'); Route::match(['get', 'post'], '/agents/{alias}', [StudentsController::class, 'byagent'])->name('students.byagent'); Route::get('/create', [StudentsController::class, 'create'])->name('students.create'); Route::post('/store', [StudentsController::class, 'store'])->name('students.store'); Route::post('/sort', [StudentsController::class, 'sort'])->name('students.sort'); Route::post('/updatealias', [StudentsController::class, 'updatealias'])->name('students.updatealias'); Route::get('/show/{id}', [StudentsController::class, 'show'])->name('students.show'); Route::get('/edit/{id}', [StudentsController::class, 'edit'])->name('students.edit') ; Route::post('/update/{id}', [StudentsController::class, 'update'])->name('students.update'); Route::delete('/destroy/{id}', [StudentsController::class, 'destroy'])->name('students.destroy'); Route::get('/toggle/{id}', [StudentsController::class, 'toggle'])->name('students.toggle'); });