{{-- On-screen preview of a letter. The document is the PDF template rendered to HTML (passed in as $document) and embedded in an isolated iframe so its print CSS cannot leak into the app shell, what you see here is exactly what the downloaded PDF contains. --}}
@php // Joined toolbar segments: one compact row, scrolls sideways on phones. $seg = 'inline-flex h-8 shrink-0 items-center gap-1.5 whitespace-nowrap px-3 text-xs font-medium transition'; @endphp
{{ __('Letters') }} / {{ $letter->letter_number ?: __('Draft') }}