@version(2) thumb)) style="background-image:url('{{ escape($it->thumb) }}')" @endif> @if (empty($it->thumb)) @endif @if ($it->status === 'soldout') {{ lang('commerce.shop_soldout') }} @endif @if ($it->is_recommend === 'Y'){{ lang('commerce.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 @if (trim((string)($shp_bg->title ?? "")) !== ""){{ $shp_bg->title }}@endif @endforeach @if ($it->is_new === 'Y')NEW@endif @if ($it->is_adult === 'Y')19@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('commerce.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