@props(['promos' => []]) @php $items = collect($promos)->filter(fn($p)=>is_array($p) && !empty($p['id']) && !empty($p['title'])); @endphp @if($items->isNotEmpty())

Promotions

@foreach($items as $p)

{{ $p['title'] }}

@if(!empty($p['desc']))

{{ $p['desc'] }}

@endif
@if(!empty($p['href']) && !empty($p['cta'])) {{ $p['cta'] }} @endif
@endforeach
@endif