From 5a462a08234ae7c4787b6e9f0028577e5c29f4bc Mon Sep 17 00:00:00 2001 From: aslan Date: Wed, 14 Feb 2024 09:45:55 +0300 Subject: [PATCH] add field URL to show views from department, direction, documents --- .../admin/catalog/department/show.blade.php | 2 ++ .../admin/catalog/direction/show.blade.php | 2 ++ .../views/admin/documents/show.blade.php | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 resources/views/admin/documents/show.blade.php diff --git a/resources/views/admin/catalog/department/show.blade.php b/resources/views/admin/catalog/department/show.blade.php index 2d8c097..5c5de88 100644 --- a/resources/views/admin/catalog/department/show.blade.php +++ b/resources/views/admin/catalog/department/show.blade.php @@ -14,6 +14,8 @@

{{ $department->description }}

Позиция

{{ $department->position }}

+

URL

+

{{ $department->slug }}

Направления подготовки

@foreach($department->directions as $direction)

{{ $direction->name }}

diff --git a/resources/views/admin/catalog/direction/show.blade.php b/resources/views/admin/catalog/direction/show.blade.php index 8cbf2ae..89d7b05 100644 --- a/resources/views/admin/catalog/direction/show.blade.php +++ b/resources/views/admin/catalog/direction/show.blade.php @@ -19,6 +19,8 @@

{{ $direction->description }}

Позиция

{{ $direction->position }}

+

URL

+

{{ $direction->slug }}

Кафедра

{{ $department->name }}

diff --git a/resources/views/admin/documents/show.blade.php b/resources/views/admin/documents/show.blade.php new file mode 100644 index 0000000..1991910 --- /dev/null +++ b/resources/views/admin/documents/show.blade.php @@ -0,0 +1,19 @@ +@extends('layouts.admin_layout') +@section('content') + @auth() +
+

Отображаемое имя документа

+

{{ $document->name }}

+

Имя файла

+

{{ $document->file_name }}

+

Описание

+

{{ $document->description }}

+

Позиция

+

{{ $document->position }}

+

URL

+

{{ $document->url }}

+

Экран Приема

+

{{ $document->admission->name }}

+
+ @endauth +@endsection