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