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)