From f97851ffbbebc4f5e558e7666522f0db80b502bb 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 15:43:50 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D0=BC=D0=BC=D0=B8=D1=82=20=D0=BF=D0=BE?= =?UTF-8?q?=20=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D1=8F=D0=BC=20?= =?UTF-8?q?=D0=B5=D1=89=D0=B5=20=D0=BE=D0=B4=D0=B8=D0=BD?= 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