diff --git a/resources/views/chats/chats_list.blade.php b/resources/views/chats/chats_list.blade.php index 72cc9ad..7887c3a 100644 --- a/resources/views/chats/chats_list.blade.php +++ b/resources/views/chats/chats_list.blade.php @@ -1,31 +1,31 @@ -@if ($chats->count()) - @csrf +@csrf - @if($admin_chat) -
- - @include('svg.logo_icon') -
-
- Администратор сайта -
-
- {{ $admin_chat->last_message->text }} -
+@if($admin_chat) +
+ + @include('svg.logo_icon') +
+
+ Администратор сайта
-
- -
-
{{ 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 +
+ {{ $admin_chat->last_message->text }}
+ + +
+
{{ 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()) @foreach($chats as $chat)