2024-02-07 16:32:42 +03:00
|
|
|
<?php
|
|
|
|
|
2024-02-13 15:37:41 +03:00
|
|
|
use App\Http\Controllers\admin\AdmissionController;
|
2024-02-12 09:19:08 +03:00
|
|
|
use App\Http\Controllers\admin\Catalog\DepartmentController;
|
2024-02-26 10:58:02 +03:00
|
|
|
use App\Http\Controllers\admin\Catalog\Direction\DirectionProfileController;
|
2024-02-16 09:06:48 +03:00
|
|
|
use App\Http\Controllers\admin\Catalog\Direction\EducationFormController;
|
|
|
|
use App\Http\Controllers\admin\Catalog\Direction\EducationLevelController;
|
2024-02-19 10:51:20 +03:00
|
|
|
use App\Http\Controllers\admin\Catalog\Direction\EntranceExaminationController;
|
2024-02-16 10:43:55 +03:00
|
|
|
use App\Http\Controllers\admin\Catalog\Direction\ExaminationTypeController;
|
2024-02-17 11:30:32 +03:00
|
|
|
use App\Http\Controllers\admin\Catalog\Direction\SubjectController;
|
2024-02-17 12:31:22 +03:00
|
|
|
use App\Http\Controllers\admin\Catalog\Direction\SubjectTypeController;
|
2024-02-12 09:19:08 +03:00
|
|
|
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;
|
2024-03-20 13:09:39 +03:00
|
|
|
use App\Http\Controllers\NewsController;
|
2024-03-11 14:31:45 +03:00
|
|
|
use Rap2hpoutre\LaravelLogViewer\LogViewerController;
|
2024-02-07 16:32:42 +03:00
|
|
|
|
2024-02-08 18:34:45 +03:00
|
|
|
Route::middleware(['auth', 'verified'])->prefix('admin')->group(function () {
|
2024-03-11 14:31:45 +03:00
|
|
|
Route::get('/logs', [LogViewerController::class, 'index']);
|
2024-03-14 16:12:44 +03:00
|
|
|
Route::get('/export_excel', [DirectionController::class, 'exportXls'])->name('export_excel');
|
2024-03-11 14:31:45 +03:00
|
|
|
|
2024-02-09 14:30:42 +03:00
|
|
|
Route::get('/dashboard', function () {
|
|
|
|
return view('admin');
|
|
|
|
})->name('dashboard');
|
|
|
|
|
2024-02-14 10:22:04 +03:00
|
|
|
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');
|
2024-02-07 16:32:42 +03:00
|
|
|
|
2024-02-12 14:52:55 +03:00
|
|
|
Route::resource('/educational_institutions', EducationalInstitutionController::class)
|
2024-02-08 18:34:45 +03:00
|
|
|
->scoped(['educational_institution' => 'slug']);
|
2024-02-10 11:23:38 +03:00
|
|
|
Route::resource('/directions', DirectionController::class)
|
2024-02-26 14:20:16 +03:00
|
|
|
->scoped(['direction' => 'slug']);
|
2024-02-12 09:19:08 +03:00
|
|
|
|
2024-03-04 09:53:33 +03:00
|
|
|
Route::post('/directions.duplication/{direction}', [DirectionController::class, 'duplication'])
|
|
|
|
->name('directions.duplication');
|
|
|
|
|
2024-02-12 09:19:08 +03:00
|
|
|
Route::resource('/departments', DepartmentController::class)
|
|
|
|
->scoped(['department' => 'slug']);
|
2024-02-12 14:52:55 +03:00
|
|
|
Route::resource('/faculties', FacultyController::class)
|
|
|
|
->scoped(['faculty' => 'slug']);
|
2024-02-13 15:37:41 +03:00
|
|
|
Route::resource('/faculties', FacultyController::class)
|
|
|
|
->scoped(['faculty' => 'slug']);
|
|
|
|
Route::resource('/admissions', AdmissionController::class);
|
2024-02-10 11:23:38 +03:00
|
|
|
|
2024-02-14 15:00:28 +03:00
|
|
|
Route::resource('/education_levels', EducationLevelController::class)
|
|
|
|
->scoped(['education_level' => 'slug']);
|
|
|
|
|
2024-02-15 09:58:01 +03:00
|
|
|
Route::resource('/education_forms', EducationFormController::class)
|
|
|
|
->scoped(['education_form' => 'slug']);
|
|
|
|
|
2024-02-16 10:43:55 +03:00
|
|
|
Route::resource('/examination_types', ExaminationTypeController::class)
|
|
|
|
->scoped(['examination_type' => 'slug']);
|
|
|
|
|
2024-02-17 11:30:32 +03:00
|
|
|
Route::resource('/subjects', SubjectController::class)
|
|
|
|
->scoped(['subject' => 'slug']);
|
|
|
|
|
2024-02-17 12:31:22 +03:00
|
|
|
Route::resource('/subject_types', SubjectTypeController::class)
|
|
|
|
->scoped(['subject_type' => 'slug']);
|
|
|
|
|
2024-02-19 10:51:20 +03:00
|
|
|
Route::resource('/entrance_examinations', EntranceExaminationController::class);
|
|
|
|
|
2024-02-26 10:58:02 +03:00
|
|
|
Route::resource('/direction_profiles', DirectionProfileController::class)
|
|
|
|
->scoped(['direction_profile' => 'slug']);
|
|
|
|
|
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,
|
2024-03-20 13:09:39 +03:00
|
|
|
'/news' => NewsController::class,
|
2024-02-07 16:32:42 +03:00
|
|
|
]);
|
|
|
|
});
|