@props(['column' => 3, 'categoryPath' => []])
{{-- Static root category --}}
@error('final_category_id')

{{ $message }}

@enderror
{{-- Preload subcategories based on the path --}} @if (!empty($categoryPath))
@foreach($categoryPath as $index => $selected) @if($index === 0) @continue @endif @php $children = $selected->parent ? $selected->parent->children : collect(); @endphp
@endforeach
@endif {{-- Dynamic select options go here --}}
@push('scripts') @endpush