diff --git a/resources/views/employers/messages.blade.php b/resources/views/employers/messages.blade.php index fdafc89..1bfb81b 100644 --- a/resources/views/employers/messages.blade.php +++ b/resources/views/employers/messages.blade.php @@ -102,9 +102,8 @@ - - @if ($type_message == 'input') + @if (isset($it->user_from->is_worker)) @if ($it->user_from->is_worker) @if (isset($it->user_from->workers[0]->photo)) @@ -118,21 +117,28 @@ @endif @endif + @else + + @endif @endif @if ($type_message == 'output') - @if ($it->user_from->is_worker) - @if (isset($it->user_from->workers[0]->photo)) - + @if (isset($it->user_from->is_worker)) + @if ($it->user_from->is_worker) + @if (isset($it->user_from->workers[0]->photo)) + + @else + + @endif @else - + @if (isset($it->user_from->employers[0]->logo)) + + @else + + @endif @endif @else - @if (isset($it->user_from->employers[0]->logo)) - - @else - - @endif + @endif @endif diff --git a/resources/views/workers/messages.blade.php b/resources/views/workers/messages.blade.php index 6b8a4d9..f08f282 100644 --- a/resources/views/workers/messages.blade.php +++ b/resources/views/workers/messages.blade.php @@ -55,36 +55,44 @@ @if ($type_message == 'input') - @if ($it->user_from->is_worker) - @if (isset($it->user_from->workers[0]->photo)) - + @if (isset($it->user_from->is_worker)) + @if ($it->user_from->is_worker) + @if (isset($it->user_from->workers[0]->photo)) + + @else + + @endif @else - + @if (isset($it->user_from->employers[0]->logo)) + + @else + + @endif @endif @else - @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[0]->photo)) - + @if (isset($it->user_from->is_worker)) + @if ($it->user_from->is_worker) + @if (isset($it->user_from->workers[0]->photo)) + + @else + + @endif @else - + @if (isset($it->user_from->employers->logo)) + + @else + + @endif @endif @else - @if (isset($it->user_from->employers->logo)) - - @else - - @endif + @endif @endif