@if($users->count() > 0) @foreach($users as $user)
profile_photo_path == null) src="https://ui-avatars.com/api/?name={{ $user->name}}&background=359bd0&color=fff" @else src="{{ $user->profile_photo_path }}" @endif >

{{ $user->full_name }}

@if(in_array($user->id, $sender_new_messages))

New

@endif
@endforeach @endif

Messages to this chat are now secured with end-to-end encryption.

@if(count($chats) > 0) @foreach($chats as $chat)
id) style="background-color: #E2F7CB" @else style="background-color: #F2F2F2" @endif> {{-- @if($chat->sender_id != Auth::user()->id)

{{ $chat->sender->full_name }}

@endif --}}

{{ $chat['message'] }}

{{ $chat['createdAt'] }}

@endforeach @endif
@error('message')

{{ $message }}

@enderror @error('sender')

{{ $message }}

@enderror
@section('scripts') {{-- Script de chat --}} @include('layouts.partials.scripts.firestore') @endsection