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