Roman_applicant-site/resources/views/admin/catalog/direction/show.blade.php

37 lines
1.4 KiB
PHP
Raw Normal View History

2024-02-10 11:23:38 +03:00
@php
use App\Models\Direction;
use App\Models\Department;
use App\Models\EducationalInstitution;use App\Models\Faculty;use Illuminate\Support\Collection;
/** @var Collection|Direction[] $direction */
$department = Department::find($direction->department->id);
$faculty = Faculty::find($department->faculty->id);
$educationalInstitution = EducationalInstitution::find($faculty->educationalInstitution->id);
@endphp
@extends('layouts.admin-layout')
@section('content')
@auth()
<h6>
<a href="{{ route('educational-institutions.show', $educationalInstitution) }}">
{{ $educationalInstitution->name }}
</a>
->
<a href="{{ route('faculties.show', $faculty) }}">{{ $faculty->name }}</a>
->
<a href="{{ route('faculties.show', $department) }}">{{ $department->name }}</a>
-> {{ $direction->name }}
</h6>
<div class="container mt-4">
<h2>Название</h2>
<p>{{ $direction->name }}</p>
<h2>Описание</h2>
<p>{{ $direction->description }}</p>
<h2>Позиция</h2>
<p>{{ $direction->position }}</p>
<h2>Кафедра</h2>
<p><a href="{{ route('departments.show', $department) }}">{{ $department->name }}</a></p>
</div>
@endauth
@endsection