applicant-site/routes/admin.php

34 lines
1.4 KiB
PHP
Raw Normal View History

2024-02-07 16:32:42 +03:00
<?php
2024-02-12 09:19:08 +03:00
use App\Http\Controllers\admin\Catalog\DepartmentController;
use App\Http\Controllers\admin\Catalog\DirectionController;
use App\Http\Controllers\admin\Catalog\EducationalInstitutionController;
use App\Http\Controllers\admin\Catalog\FacultyController;
use App\Http\Controllers\admin\DocumentController;
use App\Http\Controllers\admin\ReceptionScreenController;
use App\Http\Controllers\admin\UserController;
2024-02-07 16:32:42 +03:00
Route::middleware(['auth', 'verified'])->prefix('admin')->group(function () {
2024-02-09 14:30:42 +03:00
Route::get('/dashboard', function () {
return view('admin');
})->name('dashboard');
2024-02-12 09:19:08 +03:00
Route::get('/documents/create/{document?}', [DocumentController::class, 'create'])->name('documents_create');
Route::get('/documents/download/{Document}', [DocumentController::class, 'download'])->name('documents_download');
2024-02-07 16:32:42 +03:00
Route::resource('/educational-institutions', EducationalInstitutionController::class)
->scoped(['educational_institution' => 'slug']);
2024-02-10 11:23:38 +03:00
Route::resource('/directions', DirectionController::class)
2024-02-12 09:19:08 +03:00
->scoped(['directions' => 'slug']);
Route::resource('/departments', DepartmentController::class)
->scoped(['department' => 'slug']);
2024-02-10 11:23:38 +03:00
2024-02-07 16:32:42 +03:00
Route::resources([
2024-02-12 09:19:08 +03:00
'/documents' => DocumentController::class,
2024-02-07 16:32:42 +03:00
'/users' => UserController::class,
'/admin-reception-screen' => ReceptionScreenController::class,
'/faculties' => FacultyController::class,
]);
});