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