@php $hoy = Carbon\Carbon::now(); @endphp
@if($search != null)

Cargando...

@endif @if(!empty($users) && $search != null) @foreach($users as $user)
{{$user->display_name}}
{{$user->display_name}}
@endforeach @elseif(empty($users) && $search != null)

No hay Usuarios con ese Nombre

@endif @if(!empty($chats) && $search == null) @foreach($chats as $chat) @if($chat->messages->where('status', 0)->where('user_id', '!=', Auth::user()->ID)->count())
{{$chat->messages->where('status', 0)->where('user_id', '!=', Auth::user()->ID)->count()}}
@endif
{{($chat->user_sent != Auth::user()->ID) ? $chat->usersent->display_name : $chat->userrecive->display_name}}
{{($chat->user_sent != Auth::user()->ID) ? $chat->usersent->display_name : $chat->userrecive->display_name}}
{{$chat->messages[0]->menssage}}
{{$hoy->diffForHumans($chat->messages[0]->created_at)}}
@endforeach @if(count($chats) == 0)

No has iniciado una conversación usa el buscador y encuentra a la persona que buscas

@endif @endif
@if(!empty($chatid))
{{$usuariochat->display_name}}
{{$usuariochat->display_name}}
Te has desconectado
@else
{{Auth::user()->display_name}}
{{Auth::user()->display_name}}
Te has desconectado
@endif
@if(!empty($chatid)) @foreach($conversaciones as $convers) @if($convers->user_id != Auth::user()->ID)
{{$convers->user->display_name}}
{{$convers->user->display_name}}
{{$convers->menssage}}
{{ $hoy->diffForHumans($convers->created_at) }}
@else
{{Auth::user()->display_name}}
TU
{{$convers->menssage}}
{{ $hoy->diffForHumans($convers->created_at) }}
@endif @endforeach @else
logo
@endif
@if(!empty($chatid))
Te has desconectado
@error('mensajes') {{ $message }} @enderror
@endif
@push('script') @endpush