@php use App\Support\Ui\EnterpriseDetail\FactPresentation; $items = $items ?? []; $items = is_array($items) ? array_values(array_filter($items, 'is_array')) : []; $action = $action ?? null; $action = is_array($action) ? $action : null; @endphp
@foreach ($items as $item) @php $displayValue = FactPresentation::value($item); $badge = is_array($item['badge'] ?? null) ? $item['badge'] : null; @endphp
{{ $item['label'] ?? 'Detail' }}
@if ($displayValue !== null) {{ $displayValue }} @endif @if ($badge !== null) {{ $badge['label'] ?? 'State' }} @endif
@if (filled($item['hint'] ?? null))
{{ $item['hint'] }}
@endif
@endforeach
@if ($action !== null && filled($action['url'] ?? null))
@if (filled($action['icon'] ?? null)) @endif {{ $action['label'] }}
@endif