diff --git a/resources/views/chats/chats_list.blade.php b/resources/views/chats/chats_list.blade.php index 7887c3a..f2ea458 100644 --- a/resources/views/chats/chats_list.blade.php +++ b/resources/views/chats/chats_list.blade.php @@ -1,31 +1,32 @@ -@csrf +@if ($chats->count() || $admin_chat) + @csrf -@if($admin_chat) -
- - @include('svg.logo_icon') -
-
- Администратор сайта -
-
- {{ $admin_chat->last_message->text }} + @if($admin_chat) + - + -
-
{{ date(' H:i, d.m.Y', strtotime($admin_chat->created_at)) }}
-
- @if($admin_chat->admin_chat_unread_messages_count > 0) -
{{ $admin_chat->admin_chat_unread_messages_count }}
- @endif +
+
{{ date(' H:i, d.m.Y', strtotime($admin_chat->created_at)) }}
+
+ @if($admin_chat->admin_chat_unread_messages_count > 0) +
{{ $admin_chat->admin_chat_unread_messages_count }}
+ @endif +
-
-@endif + @endif -@if ($chats->count()) + @if ($chats->count()) @foreach($chats as $chat)