@forelse ($conversations as $conversation) @php $isActive = $activeConversation && (int) $activeConversation->id === (int) $conversation->id; $contactUser = $conversation->counterparty ?? $conversation->other_user; $listing = $conversation->listing; @endphp
  • @include('usermessaging::user.partials.inbox-user-card', [ 'contactUser' => $contactUser, 'compact' => true, ]) @if ($listing) {{ Str::limit(html_decode($listing->title), 48) }} @endif @if ($conversation->latestMessage) {{ Str::limit(conversation_message_display($conversation->latestMessage->body, false), 64) }} @else {{ html_decode($conversation->subject) }} @endif @if ($conversation->last_message_at) {{ $conversation->last_message_at->diffForHumans(null, true) }} @endif @if ($conversation->unread_count > 0) {{ $conversation->unread_count > 9 ? '9+' : $conversation->unread_count }} @endif
  • @empty
  • {{ __('translate.No messages yet') }}

  • @endforelse