From f482d036e1d2fca12cbde6ae40fd0b6bcd2d8b0b Mon Sep 17 00:00:00 2001 From: aslan Date: Wed, 28 Feb 2024 15:05:54 +0300 Subject: [PATCH] any fix --- .../Controllers/admin/Catalog/Direction/CostController.php | 2 -- .../admin/Catalog/Direction/EntranceExaminationController.php | 4 ++-- .../admin/Catalog/Direction/ExaminationTypeController.php | 2 -- .../Controllers/admin/Catalog/Direction/PeriodController.php | 2 -- .../Controllers/admin/Catalog/Direction/SubjectController.php | 2 -- 5 files changed, 2 insertions(+), 10 deletions(-) diff --git a/app/Http/Controllers/admin/Catalog/Direction/CostController.php b/app/Http/Controllers/admin/Catalog/Direction/CostController.php index 2c452b8..a8c9d33 100644 --- a/app/Http/Controllers/admin/Catalog/Direction/CostController.php +++ b/app/Http/Controllers/admin/Catalog/Direction/CostController.php @@ -4,9 +4,7 @@ namespace App\Http\Controllers\admin\Catalog\Direction; use App\Http\Controllers\Controller; use App\Http\Requests\admin\Catalog\Direction\StoreCostRequest; -use App\Http\Requests\admin\Catalog\Direction\StorePlaceRequest; use App\Http\Requests\admin\Catalog\Direction\UpdateCostRequest; -use App\Http\Requests\admin\Catalog\Direction\UpdatePlaceRequest; use App\Models\Cost; use App\Models\Direction; use App\Models\EducationForm; diff --git a/app/Http/Controllers/admin/Catalog/Direction/EntranceExaminationController.php b/app/Http/Controllers/admin/Catalog/Direction/EntranceExaminationController.php index fba5a32..2cc0e29 100644 --- a/app/Http/Controllers/admin/Catalog/Direction/EntranceExaminationController.php +++ b/app/Http/Controllers/admin/Catalog/Direction/EntranceExaminationController.php @@ -23,7 +23,7 @@ class EntranceExaminationController extends Controller public function create(): View { - $directions = Direction::pluck('name', 'id'); + $directions = Direction::pluck('full_name', 'id'); $examination_types = ExaminationType::pluck('name', 'id'); $subjects = Subject::pluck('name', 'id'); $subjectTypes = SubjectType::pluck('name', 'id'); @@ -64,7 +64,7 @@ class EntranceExaminationController extends Controller public function edit(EntranceExamination $entranceExamination): View { - $directions = Direction::pluck('name', 'id'); + $directions = Direction::pluck('full_name', 'id'); $examination_types = ExaminationType::pluck('name', 'id'); $subjects = Subject::pluck('name', 'id'); $subjectTypes = SubjectType::pluck('name', 'id'); diff --git a/app/Http/Controllers/admin/Catalog/Direction/ExaminationTypeController.php b/app/Http/Controllers/admin/Catalog/Direction/ExaminationTypeController.php index 0423be8..1bf134b 100644 --- a/app/Http/Controllers/admin/Catalog/Direction/ExaminationTypeController.php +++ b/app/Http/Controllers/admin/Catalog/Direction/ExaminationTypeController.php @@ -6,9 +6,7 @@ use App\Http\Controllers\Controller; use App\Http\Requests\admin\Catalog\Direction\StoreExaminationTypeRequest; use App\Http\Requests\admin\Catalog\Direction\UpdateExaminationTypeRequest; use App\Models\ExaminationType; -use Illuminate\Contracts\View\Factory; use Illuminate\Contracts\View\View; -use Illuminate\Foundation\Application; use Illuminate\Http\RedirectResponse; class ExaminationTypeController extends Controller diff --git a/app/Http/Controllers/admin/Catalog/Direction/PeriodController.php b/app/Http/Controllers/admin/Catalog/Direction/PeriodController.php index 645e1cd..77c5ede 100644 --- a/app/Http/Controllers/admin/Catalog/Direction/PeriodController.php +++ b/app/Http/Controllers/admin/Catalog/Direction/PeriodController.php @@ -3,9 +3,7 @@ namespace App\Http\Controllers\admin\Catalog\Direction; use App\Http\Controllers\Controller; -use App\Http\Requests\admin\Catalog\Direction\StoreCostRequest; use App\Http\Requests\admin\Catalog\Direction\StorePeriodRequest; -use App\Http\Requests\admin\Catalog\Direction\UpdateCostRequest; use App\Http\Requests\admin\Catalog\Direction\UpdatePeriodRequest; use App\Models\Direction; use App\Models\EducationForm; diff --git a/app/Http/Controllers/admin/Catalog/Direction/SubjectController.php b/app/Http/Controllers/admin/Catalog/Direction/SubjectController.php index 800ae0d..ba7d26a 100644 --- a/app/Http/Controllers/admin/Catalog/Direction/SubjectController.php +++ b/app/Http/Controllers/admin/Catalog/Direction/SubjectController.php @@ -3,9 +3,7 @@ namespace App\Http\Controllers\admin\Catalog\Direction; use App\Http\Controllers\Controller; -use App\Http\Requests\admin\Catalog\Direction\StoreExaminationTypeRequest; use App\Http\Requests\admin\Catalog\Direction\StoreSubjectRequest; -use App\Http\Requests\admin\Catalog\Direction\UpdateExaminationTypeRequest; use App\Http\Requests\admin\Catalog\Direction\UpdateSubjectRequest; use App\Models\Subject; use Illuminate\Contracts\View\View;