@props([ 'statement', 'evidence' => collect(), // all confirmed evidence 'contextualEvidence' => collect(), // section-scoped (or all when toggled) 'exhibits' => collect(), 'progress' => null, 'activeSectionTitle' => null, 'showAllEvidence' => false, 'editable' => true, ]) @php $exhibitedItemIds = $exhibits->pluck('dsar_evidence_item_id')->filter()->all(); $items = $showAllEvidence ? $evidence : $contextualEvidence; @endphp
merge(['class' => 'witness-evidence-panel']) }}>

Evidence

Evidence Review
{{-- Scope toggle: this section vs all --}}
@if(! $showAllEvidence && $activeSectionTitle)

Supporting {{ $activeSectionTitle }}

@endif @if($items->isEmpty())
@if($showAllEvidence) No confirmed evidence for this claim yet. @else No evidence linked to this section. @if($evidence->isNotEmpty()) @endif @endif
@else @endif @if($progress)
@endif