@php /** * Style-1 list card — wide row layout for shop list view. * Image left (with badges + sale marquee + countdown), info right * (name, rating, price, description, swatch preview, action row). * * Inputs: * $product \Botble\Ecommerce\Models\Product * $showQuickView bool * $showQuickShop bool */ use Botble\Media\Facades\RvMedia; $primaryImage = RvMedia::getImageUrl($product->image, 'product-grid', false, RvMedia::getDefaultImage()); $hoverImage = null; if (! empty($product->images) && is_iterable($product->images)) { foreach ($product->images as $img) { if (! is_string($img) || trim($img) === '' || $img === $product->image) { continue; } $hoverImage = RvMedia::getImageUrl($img, 'product-grid', false, null); if ($hoverImage) { break; } } } $isOnSale = $product->front_sale_price !== null && $product->price > 0 && (float) $product->front_sale_price < (float) $product->price; $salePercent = $isOnSale ? (int) round((1 - ((float) $product->front_sale_price / (float) $product->price)) * 100) : 0; @endphp
{{ \Illuminate\Support\Str::limit(strip_tags($product->description), 220) }}
@endif @include(EcommerceHelper::viewPath('includes.product.style-1.actions'), [ 'product' => $product, 'showQuickView' => true, 'showQuickShop' => false, ])