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
>
@php
$show_categories = Arr::where($categories, fn($category, $index) => !in_array($index, $hiddenCategories));
@endphp
{{-- @foreach(collect($show_categories)->chunk($rowMax) as $chunk_categories)--}}
@foreach($show_categories as $index => $category)
@php
$component = data_get($components, $index);
$hasError = false;
@endphp
@foreach(data_get($validationKeys, $index, []) as $name)
@error($name)
@php
$hasError = true;
@endphp
@enderror
@endforeach
@endforeach
{{-- @endforeach--}}
@for($i = 0; $i < count($categories); $i++)
{{ ${"slot_{$i}"} }}
@endfor