@extends('layouts.account') @section('title', __('Messages')) @section('heading', __('Messages')) @section('subheading', __('Your conversations with buyers and sellers.')) @section('account') @if ($conversations->isEmpty()) @else
@foreach ($conversations as $conversation) @php($other = $conversation->otherParty($user)) @php($unread = $conversation->unreadFor($user)) @if ($conversation->listing?->cover_image) @endif

$unread])> {{ $other?->name ?? __('Deleted account') }}

{{ $conversation->last_message_at?->diffForHumans() }}
@if ($conversation->listing)

{{ $conversation->listing->title }}

@endif

$unread, 'text-text-secondary' => ! $unread, ])>{{ $conversation->last_message }}

@if ($unread) {{ $unread }} @endif @if ($conversation->isBlocked()) {{ __('Blocked') }} @endif
@endforeach
{{ $conversations->links() }}
@endif @endsection