From 46bf23a74af6ce36b96ecdc28239eae4afecbfd1 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 19:08:24 +0700 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0?= =?UTF-8?q?=B8=D0=B5=20=D0=BA=D0=B0=D1=80=D1=82=D0=B8=D0=BD=D0=BE=D0=BA=20-=20?= =?UTF-8?q?=D0=B4=D0=B8=D0=B0=D0=BB=D0=BE=D0=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/employers/messages.blade.php | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/resources/views/employers/messages.blade.php b/resources/views/employers/messages.blade.php index ef385b7..fdafc89 100644 --- a/resources/views/employers/messages.blade.php +++ b/resources/views/employers/messages.blade.php @@ -105,17 +105,15 @@ @if ($type_message == 'input') - @if ($it->user_to->is_worker) - @if (isset($it->user_to->workers->photo)) - - @elseif(isset($it->user_to->file)) - + @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 @@ -124,14 +122,14 @@ @if ($type_message == 'output') @if ($it->user_from->is_worker) - @if (isset($it->user_from->workers->photo)) - + @if (isset($it->user_from->workers[0]->photo)) + @else @endif @else - @if (isset($it->user_from->employers->logo)) - + @if (isset($it->user_from->employers[0]->logo)) + @else @endif -- 1.7.10.4