@php $saved = $editingId !== null; $inputCls = 'block w-full rounded-xl border-slate-300 text-sm shadow-sm focus:border-indigo-500 focus:ring-indigo-500'; @endphp
{{-- Toolbar --}}
{{ __('Letterhead') }} / {{ $saved ? __('Edit letter') : __('New letter') }}
@if ($editingId) @endif {{ __('Print') }} {{ __('Download') }} {{ __('Send email') }} {{ __('Save') }}
{{-- Editor --}}
{{-- Settings sidebar --}}
{{-- Letter meta --}}

{{ __('Letter details') }}

{{ __('Turn off to print on pre-printed letterhead paper.') }}

{{-- Recipient --}}

{{ __('Recipient') }}

{{-- Referenced documents --}} @if ($party_id)

{{ __('Related documents') }}

{{ __('Attach, insert a summary, or ignore each document.') }}

@php $docs = $this->partyDocuments; @endphp @if ($docs->isEmpty())

{{ __('No documents found for this recipient.') }}

@else
@foreach ($docs as $doc)
{{ $doc['number'] }}
{{ $doc['doc_label'] }}@if ($doc['date']) · {{ $doc['date'] }}@endif @if (! is_null($doc['total'])) · {{ trim(($doc['currency'] ?? '').' '.number_format((float) $doc['total'], 2)) }}@endif
@endforeach
@endif
@endif