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