From 48baec8daef40db6c32da205a0fa924c25583992 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=20=D0=9B=D0=B0=D1=80?= =?UTF-8?q?=D0=B8=D0=BE=D0=BD=D0=BE=D0=B2?= Date: Wed, 15 May 2024 17:25:02 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D0=BC=D0=BC=D0=B8=D1=82=20=D0=B4=D0=BE?= =?UTF-8?q?=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BA=D0=B0=D1?= =?UTF-8?q?=80=D1=82=D0=B8=D0=BD=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/employers/messages.blade.php | 11 +++++++---- resources/views/workers/messages.blade.php | 18 +++++++++--------- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/resources/views/employers/messages.blade.php b/resources/views/employers/messages.blade.php index dce9c85..ef385b7 100644 --- a/resources/views/employers/messages.blade.php +++ b/resources/views/employers/messages.blade.php @@ -103,10 +103,13 @@ + @if ($type_message == 'input') @if ($it->user_to->is_worker) - @if (isset($it->user_to->workers->phote)) - + @if (isset($it->user_to->workers->photo)) + + @elseif(isset($it->user_to->file)) + @else @endif @@ -121,8 +124,8 @@ @if ($type_message == 'output') @if ($it->user_from->is_worker) - @if (isset($it->user_from->workers->phote)) - + @if (isset($it->user_from->workers->photo)) + @else @endif diff --git a/resources/views/workers/messages.blade.php b/resources/views/workers/messages.blade.php index f267a10..09c015c 100644 --- a/resources/views/workers/messages.blade.php +++ b/resources/views/workers/messages.blade.php @@ -44,36 +44,36 @@ --> - @if ($messages->count()) @foreach($messages as $it)
+
@if ($type_message == 'input') - @if ($it->user_to->is_worker) - @if (isset($it->user_to->workers->phote)) - + @if ($it->user_from->is_worker) + @if (isset($it->user_from->workers[0]->photo)) + @else @endif @else - @if (isset($it->user_to->employers->logo)) - + @if (isset($it->user_from->employers[0]->logo)) + @else - + @endif @endif @endif @if ($type_message == 'output') @if ($it->user_from->is_worker) - @if (isset($it->user_from->workers->phote)) - + @if (isset($it->user_from->workers[0]->photo)) + @else @endif -- 1.7.10.4