{{-- x-filter-bar Two supported shapes: 1. Blank/slot form: ...your markup... 2. Declarative: --}} @props(['action' => null, 'method' => 'GET', 'filters' => [], 'search' => true, 'statuses' => []]) @php $hasSlot = trim((string) $slot) !== ''; $hasStatusFilter = collect($filters)->contains(fn($filter) => ($filter['name'] ?? null) === 'status'); @endphp @if ($hasSlot)