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