@if(request('realm_id') && request('character_guid'))
{{-- Left Column: Categories --}}
{{-- Unified Controls Panel --}}
@if(Auth::check() && request('realm_id') && request('character_guid'))
@include('pages.shop.partials._mini_cart')
@if($categories->flatMap->products->isNotEmpty() || $categories->flatMap->children->flatMap->products->isNotEmpty())
@foreach($categories as $category)
{{-- Render products for the parent category --}}
@if($category->products->isNotEmpty())
{{ __($category->name) }}
@foreach($category->products as $product)
@include('pages.shop.partials.product_row', ['product' => $product])
@endforeach
@endif
{{-- Render products for child categories --}}
@if($category->children->isNotEmpty())
@foreach($category->children as $child)
@if($child->products->isNotEmpty())
{{ __($child->name) }}
@foreach($child->products as $product)
@include('pages.shop.partials.product_row', ['product' => $product])
@endforeach
@endif
@endforeach
@endif
@endforeach
@else
{{ __('В данной категории или по вашему запросу ничего не найдено.') }}
@endif
@elseif(Auth::check() && request('realm_id'))
{{ __('Пожалуйста, выберите персонажа, чтобы увидеть доступные товары.') }}
@else
{{ __('Пожалуйста, выберите мир для начала.') }}
@endauth