@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()
{{ $faculty->educationalInstitution->name }} -> {{ $faculty->name }} -> {{ $department->name }}

Название

{{ $department->name }}

Описание

{{ $department->description }}

Позиция

{{ $department->position }}

{{--

Факультеты

--}} {{-- @foreach($department->faculties as $faculty)--}} {{--

{{ $faculty->name }}

--}} {{-- @endforeach--}}
@endauth @endsection