@php /** * Style-5 grid card — icon spread. * Action icons sit in the centre of the image area and fan outwards on hover. * Image stays static; only the actions list is animated by CSS. */ use Botble\Media\Facades\RvMedia; $showQuickView = $showQuickView ?? true; $showQuickShop = $showQuickShop ?? true; // Style-5 cards are always square (demo: `card-product_wrapper square`), // so use the square `thumb` size — not the 4:5 `product-grid` crop. $primaryImage = RvMedia::getImageUrl($product->image, 'thumb', 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, 'thumb', false, null); if ($hoverImage) { break; } } } @endphp