@php $owner = $this->document->owner; $claim = $owner instanceof \App\Models\Claim\Claim ? $owner : ($owner && method_exists($owner, 'claim') ? $owner->claim : null); $client = $claim?->client?->fullName ?? $claim?->client?->display_name ?? null; $context = $client ?: 'Document evidence'; @endphp