@php use App\Support\Ui\EnterpriseDetail\FactPresentation; $header = $header ?? []; $header = is_array($header) ? $header : []; $statusBadges = array_values(array_filter($header['statusBadges'] ?? [], 'is_array')); $keyFacts = array_values(array_filter($header['keyFacts'] ?? [], 'is_array')); $primaryActions = array_values(array_filter($header['primaryActions'] ?? [], 'is_array')); @endphp @if ($primaryActions !== [])
@foreach ($primaryActions as $action) @if (filled($action['url'] ?? null)) @if (($action['openInNewTab'] ?? false) === true) {{ $action['label'] }} @else {{ $action['label'] }} @endif @endif @endforeach
@endif
@if ($statusBadges !== [])
@foreach ($statusBadges as $badge) {{ $badge['label'] ?? 'State' }} @endforeach
@endif @if (filled($header['descriptionHint'] ?? null))
{{ $header['descriptionHint'] }}
@endif @if ($keyFacts !== []) @include('filament.infolists.entries.enterprise-detail.section-items', [ 'items' => $keyFacts, 'variant' => 'header', ]) @endif