{{-- An inline reference to one of the charity's own documents, dropped into the description by a merge tag (`document:` โ€” see Charity::setUpRichContent). Rendered from the row rather than written as a link by hand, so the reference follows the document: a re-typed address, or a copy mirrored onto our disk, changes what this opens without anyone re-editing the prose. The icon is a masked span, not an : this markup goes back through the editor's own renderer, which sanitises its output with Symfony's allowSafeElements() โ€” that drops svg and keeps class, so the icon has to live in the stylesheet. Contract: $document (App\Models\CharityDocument). --}} @php $url = $document->publicUrl(); $meta = collect([$document->year, $document->isPdf() ? 'PDF' : null])->filter()->join(' ยท '); @endphp @if ($url){{ $document->displayTitle() }}@if ($meta !== ''){{ $meta }}@endif@else{{ $document->displayTitle() }}@endif