@props([ 'categories' => [], 'components' => [], 'rowMax' => 50, ])
has('wire:model')) x-data="{tab: @entangle($attributes->wire('model'))}" @else x-data="{tab: 0}" @endif x-init="$focus.focus($focus.focusables()[tab]);" x-cloak >
@foreach(collect($categories)->chunk($rowMax) as $chunk_categories)
@foreach($chunk_categories as $index => $category) @php $component = data_get($components, $index); @endphp @endforeach
@endforeach
@for($i = 0; $i < count($categories); $i++)
{{ ${"slot_{$i}"} }}
@endfor