forked from aslan/applicant-site
34 lines
1.4 KiB
PHP
34 lines
1.4 KiB
PHP
<?php
|
|
|
|
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;
|
|
|
|
Route::middleware(['auth', 'verified'])->prefix('admin')->group(function () {
|
|
Route::get('/dashboard', function () {
|
|
return view('admin');
|
|
})->name('dashboard');
|
|
|
|
Route::get('/documents/create/{document?}', [DocumentController::class, 'create'])->name('documents_create');
|
|
Route::get('/documents/download/{Document}', [DocumentController::class, 'download'])->name('documents_download');
|
|
|
|
Route::resource('/educational-institutions', EducationalInstitutionController::class)
|
|
->scoped(['educational_institution' => 'slug']);
|
|
Route::resource('/directions', DirectionController::class)
|
|
->scoped(['directions' => 'slug']);
|
|
|
|
Route::resource('/departments', DepartmentController::class)
|
|
->scoped(['department' => 'slug']);
|
|
|
|
Route::resources([
|
|
'/documents' => DocumentController::class,
|
|
'/users' => UserController::class,
|
|
'/admin-reception-screen' => ReceptionScreenController::class,
|
|
'/faculties' => FacultyController::class,
|
|
]);
|
|
});
|