79 lines
3.6 KiB
PHP
79 lines
3.6 KiB
PHP
<?php
|
|
|
|
use App\Http\Controllers\admin\AdmissionController;
|
|
use App\Http\Controllers\admin\Catalog\DepartmentController;
|
|
use App\Http\Controllers\admin\Catalog\Direction\CostController;
|
|
use App\Http\Controllers\admin\Catalog\Direction\DirectionProfileController;
|
|
use App\Http\Controllers\admin\Catalog\Direction\EducationFormController;
|
|
use App\Http\Controllers\admin\Catalog\Direction\EducationLevelController;
|
|
use App\Http\Controllers\admin\Catalog\Direction\EntranceExaminationController;
|
|
use App\Http\Controllers\admin\Catalog\Direction\ExaminationTypeController;
|
|
use App\Http\Controllers\admin\Catalog\Direction\PeriodController;
|
|
use App\Http\Controllers\admin\Catalog\Direction\PlaceController;
|
|
use App\Http\Controllers\admin\Catalog\Direction\PlaceTypeController;
|
|
use App\Http\Controllers\admin\Catalog\Direction\SubjectController;
|
|
use App\Http\Controllers\admin\Catalog\Direction\SubjectTypeController;
|
|
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\UserController;
|
|
|
|
Route::middleware(['auth', 'verified'])->prefix('admin')->group(function () {
|
|
Route::get('/dashboard', function () {
|
|
return view('admin');
|
|
})->name('dashboard');
|
|
|
|
Route::get('/documents/create/{admission}', [DocumentController::class, 'createFromAdmission'])
|
|
->name('document_create_from_admission');
|
|
Route::post('/documents/store_from_admission', [DocumentController::class, 'storeFromAdmission'])
|
|
->name('document_store_from_admission');
|
|
Route::get('/documents/download/{document}', [DocumentController::class, 'download'])
|
|
->name('document_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::resource('/faculties', FacultyController::class)
|
|
->scoped(['faculty' => 'slug']);
|
|
Route::resource('/faculties', FacultyController::class)
|
|
->scoped(['faculty' => 'slug']);
|
|
Route::resource('/admissions', AdmissionController::class);
|
|
|
|
Route::resource('/education_levels', EducationLevelController::class)
|
|
->scoped(['education_level' => 'slug']);
|
|
|
|
Route::resource('/education_forms', EducationFormController::class)
|
|
->scoped(['education_form' => 'slug']);
|
|
|
|
Route::resource('/examination_types', ExaminationTypeController::class)
|
|
->scoped(['examination_type' => 'slug']);
|
|
|
|
Route::resource('/subjects', SubjectController::class)
|
|
->scoped(['subject' => 'slug']);
|
|
|
|
Route::resource('/subject_types', SubjectTypeController::class)
|
|
->scoped(['subject_type' => 'slug']);
|
|
|
|
Route::resource('/entrance_examinations', EntranceExaminationController::class);
|
|
|
|
Route::resource('/place_types', PlaceTypeController::class)
|
|
->scoped(['place_type' => 'slug']);
|
|
|
|
Route::resource('/places', PlaceController::class);
|
|
Route::resource('/costs', CostController::class);
|
|
Route::resource('/periods', PeriodController::class);
|
|
|
|
Route::resource('/direction_profiles', DirectionProfileController::class)
|
|
->scoped(['direction_profile' => 'slug']);
|
|
|
|
Route::resources([
|
|
'/documents' => DocumentController::class,
|
|
'/users' => UserController::class,
|
|
]);
|
|
});
|