{{-- Care about people's approval and you will be their prisoner. --}}
Chat
@if (count($conversations) > 0) @foreach ($conversations as $conversation)
{{ $this->getChatUserInstance($conversation, $name = 'name') }}
@if(count($conversation->reclamationMessages)>0)
{{ $conversation->reclamationMessages->last()->message }}
@endif @if($conversation->read==0)
; @endif @php if(count($conversation->reclamationMessages->where('read',0)->where('user_id','!=',Auth()->user()->id))){ echo '
' . count($conversation->reclamationMessages->where('read',0)->where('user_id','!=',Auth()->user()->id)) .'
'; } @endphp
@endforeach @else Pas de conversation @endif