New-OMIS/Modules/Admin/routes/route.genders.php
2024-04-11 16:44:09 +05:45

18 lines
1.0 KiB
PHP

<?php
use Illuminate\Support\Facades\Route;
use Modules\Admin\Http\Controllers\GendersController;
Route::prefix("gender")->as('genders.')->group(function () {
Route::get('/', [GendersController::class, 'index'])->name('index');
Route::get('/create', [GendersController::class, 'create'])->name('create');
Route::post('/store', [GendersController::class, 'store'])->name('store');
Route::post('/sort', [GendersController::class, 'sort'])->name('sort');
Route::post('/updatealias', [GendersController::class, 'updatealias'])->name('updatealias');
Route::get('/show/{id}', [GendersController::class, 'show'])->name('show');
Route::get('/edit/{id}', [GendersController::class, 'edit'])->name('edit');
Route::post('/update/{id}', [GendersController::class, 'update'])->name('update');
Route::get('/destroy/{id}', [GendersController::class, 'destroy'])->name('destroy');
Route::get('/toggle/{id}', [GendersController::class, 'toggle'])->name('toggle');
Route::get('/clone/{id}', [GendersController::class, 'clone'])->name('clone');
});