{{-- One appointment, seen from whichever end the reader is at. The actions offered come from the status's own transition map rather than from a condition written here, so the screen cannot drift from the rules the service actually enforces. --}} @php $isSeller = $appointment->isSeller($user); $other = $isSeller ? $appointment->buyer : $appointment->seller; $transitions = $appointment->status->allowedTransitions(); @endphp
{{ $appointment->status->label() }} {{ $appointment->type->label() }}

{{ $appointment->whenLabel() }}

@if ($appointment->previous_scheduled_at)

{{ __('Moved from :when', ['when' => $appointment->previous_scheduled_at->format('D j M, H:i')]) }}

@endif @if ($appointment->listing)

{{ $appointment->listing->title }}

@endif

{{ $isSeller ? __('Requested by :name', ['name' => $appointment->name]) : __('With :name', ['name' => $other?->name ?? __('the seller')]) }} @if ($isSeller && $appointment->contactLabel()) {{ $appointment->contactLabel() }} @endif

@if ($appointment->location)

{{ $appointment->location }}

@endif @if ($appointment->note)

โ€œ{{ $appointment->note }}โ€

@endif @if ($appointment->response_note)

{{ $appointment->response_note }}

@endif
@if ($transitions && ! $appointment->isPast())
@csrf @method('PUT')
@foreach ($transitions as $target) @endforeach
{{-- Proposing a time needs a time; nothing else does. --}}
@endif