@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