@if (! empty($group['renderingError']))
{{ $group['renderingError'] }}
@endif
@if (is_array($messages) && $messages !== [])
{{ data_get($group, 'gapSummary.has_gaps') ? 'Coverage gaps' : 'Diagnostic notes' }}
@foreach ($messages as $message)
- {{ $message }}
@endforeach
@foreach (($group['items'] ?? []) as $item)
@php
$itemFidelitySpec = BadgeRenderer::spec(BadgeDomain::BaselineSnapshotFidelity, $item['fidelity'] ?? null);
$itemGapSpec = BadgeRenderer::spec(BadgeDomain::BaselineSnapshotGapStatus, data_get($item, 'gapSummary.badge_state'));
@endphp
{{ $item['label'] ?? 'Snapshot item' }}
{{ $item['typeLabel'] ?? 'Policy type' }}
{{ $item['referenceStatus'] ?? 'Captured metadata' }}
{{ $itemFidelitySpec->label }}
{{ $itemGapSpec->label }}
Identity
{{ $item['identityHint'] ?? '—' }}
Observed
{{ $formatTimestamp($item['observedAt'] ?? null) }}
Source reference
{{ $item['sourceReference'] ?? '—' }}
@if (is_array(data_get($item, 'gapSummary.messages')) && data_get($item, 'gapSummary.messages') !== [])
{{ implode(' ', data_get($item, 'gapSummary.messages', [])) }}
@endif
@if (($item['structuredAttributes'] ?? []) !== [])
@foreach (($item['structuredAttributes'] ?? []) as $attribute)
-
{{ $attribute['label'] ?? 'Attribute' }}
-
{{ $attribute['value'] ?? '—' }}
@endforeach
@endif
@endforeach