any fix in Subject type resource
Tests & Lint & Deploy to Railway / build (2.6.6, 20.x, 8.3) (push) Successful in 2m14s Details
Tests & Lint & Deploy to Railway / deploy (push) Successful in 20s Details

This commit is contained in:
aslan 2024-02-19 11:00:44 +03:00
parent 7d08fb0e12
commit 75452eff7d
3 changed files with 8 additions and 8 deletions

View File

@ -36,9 +36,9 @@ class SubjectTypeController extends Controller
return redirect()->route('subject_types.index'); 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 public function edit(SubjectType $subjectType): View

View File

@ -8,7 +8,7 @@
-> ->
<a href="{{ route('faculties.show', $faculty) }}">{{ $faculty->name }}</a> <a href="{{ route('faculties.show', $faculty) }}">{{ $faculty->name }}</a>
-> ->
<a href="{{ route('faculties.show', $department) }}">{{ $department->name }}</a> <a href="{{ route('departments.show', $department) }}">{{ $department->name }}</a>
-> {{ $direction->name }} -> {{ $direction->name }}
</h6> </h6>

View File

@ -3,15 +3,15 @@
@auth() @auth()
<div class="container mt-4"> <div class="container mt-4">
<h2>Название</h2> <h2>Название</h2>
<p>{{ $type->name }}</p> <p>{{ $subjectType->name }}</p>
<h2>Описание</h2> <h2>Описание</h2>
<p>{{ $type->description }}</p> <p>{{ $subjectType->description }}</p>
<h2>URL</h2> <h2>URL</h2>
<p>{{ $type->slug }}</p> <p>{{ $subjectType->slug }}</p>
<h2>Позиция</h2> <h2>Позиция</h2>
<p>{{ $type->position }}</p> <p>{{ $subjectType->position }}</p>
<h2>Вступительные испытания</h2> <h2>Вступительные испытания</h2>
@foreach($type->entranceExaminations as $entranceExamination) @foreach($subjectType->entranceExaminations as $entranceExamination)
<p><a href="{{ route('entrance_examinations.show', $entranceExamination) }}">{{ $entranceExamination->name }}</a></p> <p><a href="{{ route('entrance_examinations.show', $entranceExamination) }}">{{ $entranceExamination->name }}</a></p>
@endforeach @endforeach
</div> </div>