From 71329f175c9a5c7691a1335fb6cc8b24b755f3aa Mon Sep 17 00:00:00 2001 From: Sergey Panarin Date: Sat, 10 Aug 2024 11:49:30 +0200 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/chats/chats_list.blade.php | 46 +++++++++++++++------------- 1 file changed, 24 insertions(+), 22 deletions(-) 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)