@props([ 'title' => 'Needs attention', 'items' => [], // array of strings or ['label'=>..] 'variant' => 'warning', 'icon' => 'alert-outline', ]) @php $items = collect($items)->map(fn ($i) => is_array($i) ? ($i['label'] ?? '') : $i)->filter()->values(); @endphp @if($items->isNotEmpty())