Product Categories

@if(count($categoriesWithCounts) > 0)
    @foreach($categoriesWithCounts as $category)
  • @endforeach
@else

No categories available

@endif
@foreach($categoriesWithCounts as $category)

{{ $category['name'] }}

{{ $category['total_count'] }} {{ Str::plural('item', $category['total_count']) }} available

@if(count($category['subcategories']) > 0)
@foreach($category['subcategories'] as $subcategory) {{ $subcategory['name'] }} ({{ $subcategory['count'] }}) @endforeach
@else

No subcategories available for {{ $category['name'] }}

@endif
@endforeach
Loading categories...