Raffales-LMS/routes/CRUDgenerated/route.registrations.php
2024-04-16 15:43:24 +05:45

25 lines
2.1 KiB
PHP

<?php
use App\Http\Controllers\RegistrationsController;
use Illuminate\Support\Facades\Route;
Route::prefix("registrations")->group(function () {
Route::match(['get', 'post'], '/', [RegistrationsController::class, 'index'])->name('registrations.index');
Route::match(['get', 'post'], '/campaigns/{alias}', [RegistrationsController::class, 'bycampaign'])->name('registrations.bycampaign');
Route::match(['get', 'post'], '/categories/{alias}', [RegistrationsController::class, 'bycategory'])->name('registrations.bycategory');
Route::match(['get', 'post'], '/sources/{alias}', [RegistrationsController::class, 'bysource'])->name('registrations.bysource');
Route::match(['get', 'post'], '/countries/{alias}', [RegistrationsController::class, 'bycountry'])->name('registrations.bycountry');
Route::match(['get', 'post'], '/agents/{alias}', [RegistrationsController::class, 'byagent'])->name('registrations.byagent');
Route::get('/create', [RegistrationsController::class, 'create'])->name('registrations.create');
Route::post('/sendbulksms', [RegistrationsController::class, 'sendbulksms'])->name('registrations.sms.send');
Route::post('/store', [RegistrationsController::class, 'store'])->name('registrations.store');
Route::post('/sort', [RegistrationsController::class, 'sort'])->name('registrations.sort');
Route::post('/updatealias', [RegistrationsController::class, 'updatealias'])->name('registrations.updatealias');
Route::get('/show/{id}', [RegistrationsController::class, 'show'])->name('registrations.show');
Route::get('/edit/{id}', [RegistrationsController::class, 'edit'])->name('registrations.edit');
Route::get('/ajaxedit/{id}', [RegistrationsController::class, 'ajaxedit'])->name('registrations.edit.ajax');
Route::post('/update/{id}', [RegistrationsController::class, 'update'])->name('registrations.update');
Route::delete('/destroy/{id}', [RegistrationsController::class, 'destroy'])->name('registrations.destroy');
Route::get('/toggle/{id}', [RegistrationsController::class, 'toggle'])->name('registrations.toggle');
});