Commit 40d22381b48fbb585cdf7ce9ae7a0012cb61c482

Authored by Hayk Nazaryan
1 parent 39e5f3a375
Exists in master

fix chat

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

resources/views/chats/chats_list.blade.php
... ... @@ -44,13 +44,13 @@
44 44 <b id="chat_name">
45 45 @if ($chat->employer && $chat->employer->name_company)
46 46 {{ $chat->employer->name_company }}
47   - @else
  47 + @elseif($chat->user)
48 48 {{ $chat->user->surname . ' ' . $chat->user->name_man . ' ' . $chat->user->surname2 }}
49 49 @endif
50 50 </b>
51 51 </div>
52 52 <div>
53   - {{ $chat->last_message->text }}
  53 + {{ $chat->last_message->text ?? '' }}
54 54 </div>
55 55 </div>
56 56 </a>