2024-02-07 16:32:42 +03:00
|
|
|
<?php
|
|
|
|
|
2024-02-08 15:59:44 +03:00
|
|
|
use App\Http\Controllers\Catalog\DepartmentController;
|
2024-02-10 11:23:38 +03:00
|
|
|
use App\Http\Controllers\Catalog\DirectionController;
|
2024-02-08 15:59:44 +03:00
|
|
|
use App\Http\Controllers\Catalog\EducationalInstitutionController;
|
|
|
|
use App\Http\Controllers\Catalog\FacultyController;
|
2024-02-09 14:30:42 +03:00
|
|
|
use App\Http\Controllers\DocumentController;
|
2024-02-07 16:32:42 +03:00
|
|
|
use App\Http\Controllers\ReceptionScreenController;
|
|
|
|
use App\Http\Controllers\UserController;
|
|
|
|
|
2024-02-08 18:34:45 +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');
|
|
|
|
|
|
|
|
Route::get('/files/create/{document?}', [DocumentController::class, 'create'])->name('document_create');
|
|
|
|
Route::get('/files/download/{Document}', [DocumentController::class, 'download'])->name('document.download');
|
2024-02-07 16:32:42 +03:00
|
|
|
|
2024-02-08 18:34:45 +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)
|
|
|
|
->scoped(['educational_institution' => 'slug']);
|
|
|
|
|
2024-02-07 16:32:42 +03:00
|
|
|
Route::resources([
|
2024-02-09 14:30:42 +03:00
|
|
|
'/files' => DocumentController::class,
|
2024-02-07 16:32:42 +03:00
|
|
|
'/users' => UserController::class,
|
|
|
|
'/admin-reception-screen' => ReceptionScreenController::class,
|
|
|
|
'/faculties' => FacultyController::class,
|
2024-02-08 15:59:44 +03:00
|
|
|
'/departments' => DepartmentController::class,
|
2024-02-07 16:32:42 +03:00
|
|
|
]);
|
|
|
|
});
|