Commit 8102d1f792f7373618e504603d2fc712166807a1

Authored by Андрей Ларионов
Exists in master

Merge branch 'master' of http://gitlab.nologostudio.ru/alarionov/rekamore-su

Showing 1 changed file Side-by-side Diff

resources/views/chats/chats_list.blade.php
1   -@if ($chats->count())
2   - @csrf
  1 +@csrf
3 2  
4   - @if($admin_chat)
5   - <div class="messages__item hover-shadow admin-chat-wrap">
6   - <a class="messages__item-info" href="{{ route($user_type . '.dialog', ['chat' => $admin_chat->id]) }}">
7   - @include('svg.logo_icon')
8   - <div class="messages__item-text">
9   - <div>
10   - <b>Администратор сайта</b>
11   - </div>
12   - <div>
13   - {{ $admin_chat->last_message->text }}
14   - </div>
  3 +@if($admin_chat)
  4 + <div class="messages__item hover-shadow admin-chat-wrap">
  5 + <a class="messages__item-info" href="{{ route($user_type . '.dialog', ['chat' => $admin_chat->id]) }}">
  6 + @include('svg.logo_icon')
  7 + <div class="messages__item-text">
  8 + <div>
  9 + <b>Администратор сайта</b>
15 10 </div>
16   - </a>
17   -
18   - <div class="messages__item-actions" data-chat-id="{{ $admin_chat->id }}">
19   - <div class="messages__item-date max-content">{{ date(' H:i, d.m.Y', strtotime($admin_chat->created_at)) }}</div>
20   - <div class="messages__item-buttons">
21   - @if($admin_chat->admin_chat_unread_messages_count > 0)
22   - <div class="unread-messages-count mr-15">{{ $admin_chat->admin_chat_unread_messages_count }}</div>
23   - @endif
  11 + <div>
  12 + {{ $admin_chat->last_message->text }}
24 13 </div>
25 14 </div>
  15 + </a>
  16 +
  17 + <div class="messages__item-actions" data-chat-id="{{ $admin_chat->id }}">
  18 + <div class="messages__item-date max-content">{{ date(' H:i, d.m.Y', strtotime($admin_chat->created_at)) }}</div>
  19 + <div class="messages__item-buttons">
  20 + @if($admin_chat->admin_chat_unread_messages_count > 0)
  21 + <div class="unread-messages-count mr-15">{{ $admin_chat->admin_chat_unread_messages_count }}</div>
  22 + @endif
  23 + </div>
26 24 </div>
27   - @endif
  25 + </div>
  26 +@endif
28 27  
  28 +@if ($chats->count())
29 29 @foreach($chats as $chat)
30 30 <div class="messages__item hover-shadow {{ intval($chat->is_fixed) == 1 ? 'chat-fixed' : '' }}">
31 31 <a class="messages__item-info" href="{{ route($user_type . '.dialog', ['chat' => $chat->id]) }}">