@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; })); @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 }}
@foreach ($section->items as $it) thumb)) style="background-image:url('{{ escape($it->thumb) }}')" @endif> @if (empty($it->thumb))@endif @if ($it->status === 'soldout'){{ $lang->shop_soldout }}@endif @if ($it->is_recommend === 'Y'){{ $lang->shop_badge_recommend }}@endif @foreach ($it->badge_list ?? [] as $shp_bg) @php $shp_bg_style = ''; if (!empty($shp_bg->bg_color)) { $shp_bg_style .= 'background:' . $shp_bg->bg_color . ';'; } if (!empty($shp_bg->color)) { $shp_bg_style .= 'color:' . $shp_bg->color . ';'; } @endphp {{ $shp_bg->title }} @endforeach @if ($it->is_new === 'Y')NEW@endif @if (!empty($it->card_brand ?? $it->brand_name ?? '')){{ $it->card_brand ?? $it->brand_name }}@endif {{ $it->item_name }} @if (!empty($it->review_count)) {{ $it->rating_avg }} ({{ number_format($it->review_count) }}) @endif @if (!empty($it->grade_price)) {{ shop_item_price($it, 'effective') }} {{ shop_item_price($it, 'grade') }} {{ $lang->shop_grade }} @elseif (shop_item_on_sale($it)) @php $ss_base = isset($it->disp_price) ? (int)$it->disp_price : (int)($it->price ?? 0); $ss_now = isset($it->disp_sale_price) ? (int)$it->disp_sale_price : (int)($it->sale_price ?? 0); $ss_off = $ss_base > 0 ? (int)round(($ss_base - $ss_now) / $ss_base * 100) : 0; @endphp @if ($ss_off > 0){{ $ss_off }}%@endif {{ shop_item_price($it, 'price') }} {{ shop_item_price($it, 'sale') }} @else {{ shop_item_price($it, 'price') }} @endif @if (function_exists('shop_timesale_badge')){!! shop_timesale_badge($it) !!}@endif @endforeach
@endforeach