@foreach($conversations as $conversation)
@if($conversation->users->where('id', auth()->user()->id)->first()->pivot->unread)
@endif
@if($conversation->isPrivate()) @if($conversation->recipient()->avatar) @else @endif @else @endif
{{ $conversation->recipient()->name }} {!! !$conversation->isPrivate() ? '+' . ($conversation->users->count() - 2) . ' ' . __('more') . '' : '' !!}
{{ $conversation->latest ? ($conversation->latest->user_id === auth()->user()->id ? 'You' : $conversation->latest->user->name) . ': ' . $conversation->latest->message : '' }}
{{ $conversation->messages->count() }} {{ __('messages') }}
{{ $conversation->latest ? $conversation->latest->created_at->format('j F Y H:i:s') : '' }}
@endforeach