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