@version(2) @load('css/shop.css')
@include('_currency') @if (($shop_config->show_shop_nav ?? 'Y') !== 'N') {{ $lang->shop_my_orders }} {{ $lang->shop_cart }} @if ($cart_count > 0){{ $cart_count }}@endif @endif
@if (($shop_config->category_layout ?? 'top') !== 'side' && count($shop_categories ?? [])) @endif @if (count($home_banners))
@if (count($home_banners) > 1)
@foreach ($home_banners as $shp_di => $shp_dv) @endforeach
@endif
@endif @php $shp_main_promos = array_values(array_filter($home_promotions ?? [], function($pm) { return ($pm->banner_data['main'] ?? 'N') === 'Y' && !empty($pm->banner_data['logo']); })); @endphp @if (count($shp_main_promos)) @endif @php $ss_tiles = array_values(array_filter($shop_categories ?? [], function($c) { return (int)($c->depth ?? 0) === 0; })); $ss_icon_map = []; $ss_icon_rows = $layout_info->cat_icons ?? null; if (is_string($ss_icon_rows)) { $ss_icon_rows = json_decode($ss_icon_rows, true); } $ss_icon_rows = is_array($ss_icon_rows) ? array_values($ss_icon_rows) : (is_object($ss_icon_rows) ? array_values((array)$ss_icon_rows) : []); $ss_props = is_object($layout_info) ? get_object_vars($layout_info) : []; if (!count($ss_icon_rows) && count($ss_props)) { for ($ss_i = 1; $ss_i <= 6; $ss_i++) { if (trim((string)($ss_props['cat_icon_' . $ss_i . '_cat_title'] ?? '')) === '') { continue; } $ss_icon_rows[] = ['cat_title' => $ss_props['cat_icon_' . $ss_i . '_cat_title'], 'icon_image' => (string)($ss_props['cat_icon_' . $ss_i . '_icon_image'] ?? ''), 'icon_text' => (string)($ss_props['cat_icon_' . $ss_i . '_icon_text'] ?? '')]; } } foreach ($ss_icon_rows as $ss_ic) { $ss_ic = (array)$ss_ic; $ss_ic_key = trim((string)($ss_ic['cat_title'] ?? '')); if ($ss_ic_key !== '') { $ss_icon_map[$ss_ic_key] = $ss_ic; } } @endphp @if (count($ss_tiles)) @endif @php $shp_side_cats = ($shop_config->category_layout ?? 'top') === 'side' && count($shop_categories ?? []); @endphp
@if ($shp_side_cats) @include('_sidecats') @endif
@if (count($home_promotions ?? []))

{{ $lang->shop_promotions }}

@endif @foreach ($home_sections as $section)

{{ $section->title }}

{{ $lang->shop_view_all }}
@endforeach