@error('customerId') {{ $message }} @enderror
@foreach (['Dział', 'Kategoria', 'Szczegóły'] as $i => $label)
@php $n = $i + 1; @endphp
@if (! $loop->last)
@endif
@endforeach
@if ($step === 1)
@foreach ($this->categories as $category)
{{ mb_strtoupper(mb_substr($category->name, 0, 1)) }}
{{ $category->name }}
{{ $category->description }}
{{ $category->subcategories->count() }} podkategorie
@endforeach
@elseif ($step === 2)
@foreach ($this->selectedCategory?->subcategories ?? [] as $sub)
{{ $sub->name }}
{{ $sub->description }}
→
@endforeach
@elseif ($step === 3)
@endif