{{-- Мобильный нижний бар (fixed, 5 кнопок). Только на узких экранах. --}} @php $authed = auth()->check(); $items = [ [ 'label' => 'Главная', 'icon' => 'house', 'href' => route('home'), 'active' => request()->routeIs('home'), ], [ 'label' => 'Каталог', 'icon' => 'layout-grid', 'href' => null, // Тот же ящик, что у бургера в шапке; повторное нажатие его закрывает. 'click' => '$store.catalog.open ? $store.catalog.hide() : $store.catalog.show()', 'active' => request()->routeIs('catalog.*') || request()->routeIs('search.*'), ], [ 'label' => 'Корзина', 'icon' => 'shopping-cart', 'href' => $authed ? route('account.cart.index') : null, 'active' => request()->routeIs('account.cart.*'), 'badge' => 'cart', ], [ 'label' => 'Избранное', 'icon' => 'heart', 'href' => $authed ? route('account.favorites.index') : null, 'active' => request()->routeIs('account.favorites.*'), 'badge' => 'favorites', ], [ 'label' => 'Кабинет', 'icon' => 'user-round', 'href' => $authed ? route('account.dashboard') : null, 'active' => request()->routeIs('account.dashboard') || request()->routeIs('account.orders.*') || request()->routeIs('account.profile.*') || request()->routeIs('account.addresses.*') || request()->routeIs('account.chat.*') || request()->routeIs('account.notifications.*'), ], ]; @endphp {{-- Макет «Teeu Mobile»: активная вкладка подсвечена целиком (тинт, радиус 10), иконка 22px, подпись 10.5px; счётчики 14px на углу иконки — синий у корзины, красный у избранного. Высота цели — от 44px. --}}