@php
    $recipient = $this->dsar->institution?->display_name;
    $client    = $this->dsar->claim?->client?->fullName ?? $this->dsar->claim?->client?->display_name ?? null;
    $context   = $recipient ?: ($client ?: 'DSAR evidence');
@endphp
<div class="flex-grow-1 d-flex flex-column" style="min-height:0;">
    <livewire:dsar.evidence-viewer
        :attachment="$this->attachment"
        :dsar-id="$this->dsar->id"
        :back-url="route('dsars.view', $this->dsar)"
        :file-name="$this->attachment->filename"
        :context-label="$context"
        :key="'viewer-' . $this->attachment->id"
    />
</div>
