From 75452eff7daa89128bdfec8fefe013632850a109 Mon Sep 17 00:00:00 2001 From: aslan Date: Mon, 19 Feb 2024 11:00:44 +0300 Subject: [PATCH] any fix in Subject type resource --- .../admin/Catalog/Direction/SubjectTypeController.php | 4 ++-- resources/views/admin/catalog/direction/show.blade.php | 2 +- .../catalog/direction/subject_type/show.blade.php | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/Http/Controllers/admin/Catalog/Direction/SubjectTypeController.php b/app/Http/Controllers/admin/Catalog/Direction/SubjectTypeController.php index 10fee30..f092bf8 100644 --- a/app/Http/Controllers/admin/Catalog/Direction/SubjectTypeController.php +++ b/app/Http/Controllers/admin/Catalog/Direction/SubjectTypeController.php @@ -36,9 +36,9 @@ class SubjectTypeController extends Controller return redirect()->route('subject_types.index'); } - public function show(SubjectType $type): View + public function show(SubjectType $subjectType): View { - return view('admin.catalog.direction.subject_type.show', compact('type')); + return view('admin.catalog.direction.subject_type.show', compact('subjectType')); } public function edit(SubjectType $subjectType): View diff --git a/resources/views/admin/catalog/direction/show.blade.php b/resources/views/admin/catalog/direction/show.blade.php index 91b2171..cfb1c67 100644 --- a/resources/views/admin/catalog/direction/show.blade.php +++ b/resources/views/admin/catalog/direction/show.blade.php @@ -8,7 +8,7 @@ -> {{ $faculty->name }} -> - {{ $department->name }} + {{ $department->name }} -> {{ $direction->name }} diff --git a/resources/views/admin/catalog/direction/subject_type/show.blade.php b/resources/views/admin/catalog/direction/subject_type/show.blade.php index dea2bd5..d0f13b3 100644 --- a/resources/views/admin/catalog/direction/subject_type/show.blade.php +++ b/resources/views/admin/catalog/direction/subject_type/show.blade.php @@ -3,15 +3,15 @@ @auth()

Название

-

{{ $type->name }}

+

{{ $subjectType->name }}

Описание

-

{{ $type->description }}

+

{{ $subjectType->description }}

URL

-

{{ $type->slug }}

+

{{ $subjectType->slug }}

Позиция

-

{{ $type->position }}

+

{{ $subjectType->position }}

Вступительные испытания

- @foreach($type->entranceExaminations as $entranceExamination) + @foreach($subjectType->entranceExaminations as $entranceExamination)

{{ $entranceExamination->name }}

@endforeach