{{-- --}}

Chats

@if($searched_users) @foreach ($searched_users as $user)
@if (array_search($user->id, $users_present) !== false) @else @endif
{{$user->first_name}} {{$user->last_name}} {{-- time --}}
{{--
I’ve updated my passport dates...
--}}
@endforeach @else @foreach ($chats as $chat)
@foreach ($chat->users() as $participient)
@if (array_search($participient->id, $users_present) !== false) @else @endif
{{$participient->first_name}} {{$participient->last_name}} @if($chat->latestMsg) {{-- @livewire('conversation.partials.get-time',['time' => $chat->latestMsg->created_at], key(rand())) --}} {{-- --}} @endif
@if($chat->latestMsg) @if($chat->blocked())
@if($chat->muted()) @endif @if($chat->blocked()) @endif
@else {{Str::limit(strip_tags($chat->latestMsg->message_body),10)}} @endif @endif @if($chat->muted())
@endif
@endforeach
@if($loop->iteration == count($chats) - 2 && $hasMorePagesChats)
{{$pageNumberChats}}
@endif @endforeach @endif
@if($chat_room && $chat_room->id) @livewire('conversation.chat-view',['chat_room' => $chat_room, 'users_present' => $users_present], key("chat_room_view".$chat_room->id)) @endif
@if($chat_room && $chat_room->users()) @foreach($chat_room->users() as $participient) @livewire('conversation.chat-details',['user' => $participient,'chat_room' => $chat_room, 'users_present' => $users_present], key(rand())) @endforeach @endif @if($chat_room && $chat_room->id) @livewire('conversation.chat-document-main-view',['chat_room' => $chat_room], key('details'.$chat_room->id)) @endif
@push('modals') @livewire('conversation.partials.modals.mute-notificatons') @livewire('conversation.partials.modals.save-media') @livewire('conversation.partials.modals.save-files') @livewire('conversation.partials.modals.block-chat') @livewire('dashboard.mail.send-email-one-person') {{-- @livewire('conversation.partials.modals.call-audio') --}} @endpush