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