@php use Botble\Theme\Facades\Theme; use Botble\Media\Facades\RvMedia; $productImages = $productImages ?? ($product->images ?: [$product->image]); $productImages = array_values(array_filter((array) $productImages)); $mainImage = $productImages[0] ?? $product->image; $thumbnailImages = array_slice($productImages, 0, 6); @endphp {{-- Close button is a SIBLING of the scrollable panel — placed first inside .modal-content so it anchors to Bootstrap's position:relative on the modal-content and stays pinned to its top-right while the scrollable `.tf-product-modal-content` below scrolls beneath it on mobile. --}}
{{-- LEFT: gallery (image on the left at md+, full width on mobile) --}}
{{-- RIGHT: scrollable content --}}
{{-- $isQuickView swaps the Share modal-trigger for an inline social share row and skips the nested #share modal — Bootstrap 5 doesn't reliably stack modals, so the original "Share" button never opened. --}} @include(Theme::getThemeNamespace('views.ecommerce.includes.product-detail'), [ 'product' => $product, 'isQuickView' => true, ])