32 lines
1.2 KiB
PHP
32 lines
1.2 KiB
PHP
@php
|
|
use App\Models\Department;
|
|
use App\Models\Faculty;
|
|
use Illuminate\Support\Collection;
|
|
/** @var Collection|Department[] $department */
|
|
|
|
$faculty = Faculty::find($department->faculty->id)
|
|
@endphp
|
|
@extends('layouts.admin-layout')
|
|
@section('content')
|
|
@auth()
|
|
<h6>
|
|
<a href="{{ route('educational-institutions.show', $faculty->educationalInstitution) }}">
|
|
{{ $faculty->educationalInstitution->name }}
|
|
</a>-> <a href="{{ route('faculties.show', $faculty) }}">{{ $faculty->name }}</a>
|
|
-> {{ $department->name }}
|
|
</h6>
|
|
<div class="container mt-4">
|
|
<h2>Название</h2>
|
|
<p>{{ $department->name }}</p>
|
|
<h2>Описание</h2>
|
|
<p>{{ $department->description }}</p>
|
|
<h2>Позиция</h2>
|
|
<p>{{ $department->position }}</p>
|
|
{{-- <h2>Факультеты</h2>--}}
|
|
{{-- @foreach($department->faculties as $faculty)--}}
|
|
{{-- <p><a href="{{ route('faculties.show', $faculty) }}">{{ $faculty->name }}</a></p>--}}
|
|
{{-- @endforeach--}}
|
|
</div>
|
|
@endauth
|
|
@endsection
|