@extends('layouts.app') @section('title', 'Каталог — teeu') @section('meta_description', 'Все категории товаров на маркетплейсе teeu: от строительства и ремонта до электроники и товаров для дома.') @section('seo') @include('partials.seo.meta', ['canonical' => route('catalog.index'), 'ogTitle' => 'Каталог — teeu']) @endsection @section('content')

Каталог

{{-- Хаб перелинковки: подкатегории уехали сюда из шапки, поэтому здесь они обычными и без JS (SEO §7). Список подрезан — остальное берётся со страницы самого раздела, где выводятся все его дети. --}} @php($visibleChildren = 12)
@foreach ($roots as $root) @php($children = $childrenMap[$root['id']] ?? [])
@if ($root['icon']) @else {{ mb_substr($root['name'], 0, 1) }} @endif

{{ $root['name'] }}

@if ($children)
@foreach (array_slice($children, 0, $visibleChildren) as $child) {{ $child['name'] }} @endforeach @if (count($children) > $visibleChildren) Все разделы ({{ count($children) }}) @endif
@endif
@endforeach
@endsection