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