add field URL to show views from department, direction, documents

This commit is contained in:
aslan 2024-02-14 09:45:55 +03:00
parent 4b094339f0
commit 5a462a0823
3 changed files with 23 additions and 0 deletions

View File

@ -14,6 +14,8 @@
<p>{{ $department->description }}</p> <p>{{ $department->description }}</p>
<h2>Позиция</h2> <h2>Позиция</h2>
<p>{{ $department->position }}</p> <p>{{ $department->position }}</p>
<h2>URL</h2>
<p>{{ $department->slug }}</p>
<h2>Направления подготовки</h2> <h2>Направления подготовки</h2>
@foreach($department->directions as $direction) @foreach($department->directions as $direction)
<p><a href="{{ route('faculties.show', $direction) }}">{{ $direction->name }}</a></p> <p><a href="{{ route('faculties.show', $direction) }}">{{ $direction->name }}</a></p>

View File

@ -19,6 +19,8 @@
<p>{{ $direction->description }}</p> <p>{{ $direction->description }}</p>
<h2>Позиция</h2> <h2>Позиция</h2>
<p>{{ $direction->position }}</p> <p>{{ $direction->position }}</p>
<h2>URL</h2>
<p>{{ $direction->slug }}</p>
<h2>Кафедра</h2> <h2>Кафедра</h2>
<p><a href="{{ route('departments.show', $department) }}">{{ $department->name }}</a></p> <p><a href="{{ route('departments.show', $department) }}">{{ $department->name }}</a></p>
</div> </div>

View File

@ -0,0 +1,19 @@
@extends('layouts.admin_layout')
@section('content')
@auth()
<div class="container mt-4">
<h2>Отображаемое имя документа</h2>
<p>{{ $document->name }}</p>
<h2>Имя файла</h2>
<p>{{ $document->file_name }}</p>
<h2>Описание</h2>
<p>{{ $document->description }}</p>
<h2>Позиция</h2>
<p>{{ $document->position }}</p>
<h2>URL</h2>
<p>{{ $document->url }}</p>
<h2>Экран Приема</h2>
<p>{{ $document->admission->name }}</p>
</div>
@endauth
@endsection