@php /** * Style-3 grid card — image zoom + text overlay. * Title + price are positioned absolutely on top of the (zooming) image * via the `card-product-style-3__overlay` wrapper. CSS handles zoom transform. */ use Botble\Media\Facades\RvMedia; $showQuickView = $showQuickView ?? true; $showQuickShop = $showQuickShop ?? true; $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; } } } @endphp
{{ $product->name }} @if ($hoverImage) {{ $product->name }} @endif @include(EcommerceHelper::viewPath('includes.product.badges'), ['product' => $product]) @include(EcommerceHelper::viewPath('includes.product.countdown'), ['product' => $product])
@include(Theme::getThemeNamespace('views.ecommerce.includes.product.store-name'), ['product' => $product]) {{ $product->name }} @include(EcommerceHelper::viewPath('includes.product.style-3.price'), ['product' => $product]) @include(EcommerceHelper::viewPath('includes.product.style-3.actions'), [ 'product' => $product, 'showQuickView' => $showQuickView, 'showQuickShop' => $showQuickShop, ])
@include(EcommerceHelper::viewPath('includes.product.style-3.rating'), ['product' => $product])