@extends('layouts.account') @section('title', $other?->name ?? __('Conversation')) @section('heading', $other?->name ?? __('Conversation')) @section('subheading', $conversation->listing?->title) @section('actions')
@csrf
@csrf
@endsection @section('account') @if (session('error')) {{ session('error') }} @endif @if ($conversation->listing)

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

{{ $conversation->listing->formattedPrice() }}

@endif
@foreach ($conversation->messages as $message) @php($mine = $message->isFrom($user))
$mine])>
$mine, 'border border-border bg-surface text-text' => ! $mine, ])>

{{ $message->body }}

@if ($message->attachments->isNotEmpty()) @endif

{{ $message->created_at->diffForHumans() }} @if ($mine && $message->isRead()) · {{ __('Read') }} @endif

@endforeach
@if ($conversation->isBlocked()) {{ __('Neither of you can write here until it is unblocked.') }} @else
@csrf
@error('body')

{{ $message }}

@enderror

{{ __('Only the two of you can open these.') }}

@endif @endsection