This commit is contained in:
tanch0
2024-06-21 13:29:04 +05:45
parent 5b3c44aa33
commit 25760ad989
50 changed files with 1180 additions and 111 deletions

View File

@ -0,0 +1,15 @@
<?php
use App\Http\Controllers\PopupsController;
use Illuminate\Support\Facades\Route;
Route::prefix("popups")->group(function () {
Route::get('/', [PopupsController::class, 'index'])->name('popups.index');
Route::get('/create', [PopupsController::class, 'create'])->name('popups.create');
Route::post('/store', [PopupsController::class, 'store'])->name('popups.store');
Route::post('/sort', [PopupsController::class, 'sort'])->name('popups.sort');
Route::post('/updatealias', [PopupsController::class, 'updatealias'])->name('popups.updatealias');
Route::get('/show/{id}', [PopupsController::class, 'show'])->name('popups.show');
Route::get('/edit/{id}', [PopupsController::class, 'edit'])->name('popups.edit') ;
Route::post('/update/{id}', [PopupsController::class, 'update'])->name('popups.update');
Route::delete('/destroy/{id}', [PopupsController::class, 'destroy'])->name('popups.destroy');
Route::get('/toggle/{id}', [PopupsController::class, 'toggle'])->name('popups.toggle');
});

15
routes/route.popups.php Normal file
View File

@ -0,0 +1,15 @@
<?php
use App\Http\Controllers\PopupsController;
use Illuminate\Support\Facades\Route;
Route::prefix("popups")->group(function () {
Route::get('/', [PopupsController::class, 'index'])->name('popups.index');
Route::get('/create', [PopupsController::class, 'create'])->name('popups.create');
Route::post('/store', [PopupsController::class, 'store'])->name('popups.store');
Route::post('/sort', [PopupsController::class, 'sort'])->name('popups.sort');
Route::post('/updatealias', [PopupsController::class, 'updatealias'])->name('popups.updatealias');
Route::get('/show/{id}', [PopupsController::class, 'show'])->name('popups.show');
Route::get('/edit/{id}', [PopupsController::class, 'edit'])->name('popups.edit') ;
Route::post('/update/{id}', [PopupsController::class, 'update'])->name('popups.update');
Route::delete('/destroy/{id}', [PopupsController::class, 'destroy'])->name('popups.destroy');
Route::get('/toggle/{id}', [PopupsController::class, 'toggle'])->name('popups.toggle');
});

View File

@ -112,6 +112,7 @@ Route::middleware('auth')->group(function () {
require __DIR__ . '/route.roles.php';
require __DIR__ . '/route.permissions.php';
require __DIR__ . '/route.users.php';
require __DIR__ . '/route.popups.php';
});