@php use Botble\Base\Facades\BaseHelper; use Botble\Media\Facades\RvMedia; /** * `tf-lookbook-hover lookbook-hover-v2` โ€” banner LEFT (with pinned dropdowns) + * Bundle & Save right column (numbered bundle-prd-v2 cards). Mirrors home-furniture * ยง7 demo (lines 2338-2557). * *
*
* *
*
*
*

Bundle & Save

{subtitle}

*
    *
  • *
    {N}
    *
    * *
    {price-new}{price-old}
    *
  • *
*
*
*
* * Pin numbering ties pin#N โ†’ bundle item .pinN via shared class for hover sync * (theme JS handles cross-highlight). * * Demo's color/material select dropdowns inside each bundle card are NOT rendered * here (would require per-product variation data). The base bundle-prd-v2 markup * + numbered cards + names + prices is the v1 deliverable. * * Hotspot data comes from parent index โ€” uses each hotspot's product. * Right-column "Bundle & Save" subtitle comes from `subtitle` attr (default copy fallback). */ $bannerImage = $shortcode->image ?? null; $bundleHeading = trim((string) ($shortcode->bundle_heading ?? __('Bundle & Save'))); $bundleSubtitle = trim((string) ($shortcode->bundle_subtitle ?? ($shortcode->subtitle ?? ''))); // Pin position class names follow demo: position10, position11, position12 (etc). // Allows per-hotspot positioning via theme CSS. $positions = ['position10', 'position11', 'position12', 'position13', 'position14', 'position15']; // Dropdown placement alternates per demo (dropend / dropstart) for visual balance. $dropdowns = ['dropdown dropup-center dropdown-custom dropend', 'dropdown dropup-center dropdown-custom dropstart']; @endphp

{!! BaseHelper::clean($bundleHeading) !!}

@if ($bundleSubtitle !== '')

{!! BaseHelper::clean($bundleSubtitle) !!}

@endif
    @foreach ($hotspots as $i => $h) @php $product = $h['product']; $pinNum = $i + 1; $priceNew = format_price($product->front_sale_price_with_taxes ?? $product->sale_price ?? $product->price); $priceOld = ($product->front_sale_price && $product->front_sale_price < $product->price) ? format_price($product->price) : null; @endphp
  • {{ $pinNum }}
    {!! RvMedia::image($product->image ?? null, $product->name, 'thumb', false, ['width' => 100, 'height' => 100, 'loading' => 'lazy']) !!}
    {{ $priceNew }} @if ($priceOld) {{ $priceOld }} @endif
  • @endforeach