@php $primaryContact = $institution?->contacts?->firstWhere('is_primary', true) ?? $institution?->contacts?->first(); $showRail = in_array($activeTab, ['overview', 'correspondence']); $client = $dsar->claim->client; // Built from the raw columns rather than $client->fullName — reading the // accessor caches a joined value that a later toArray() would feed back // through the set mutator and corrupt (see ValidateRecipientAction::nameOf). $clientName = trim(collect([ $client->title, $client->name_first, $client->name_last, ])->filter()->implode(' ')); @endphp
Subject Access Request for {{ $clientName ?: 'Client' }} @if($dsar->reference) {{ $dsar->reference }} @endif
No contact on file.
@endif