@php use Botble\Base\Facades\BaseHelper; use Botble\Media\Facades\RvMedia; /** * lookbook-hotspot style-decor-swiper-banners — 1-up numbered swiper of * shoppable `banner-lookbook wrap-lookbook_hover style-2` cards with a * `box-nav-pag` "Shop The Look" prev/next/fraction navigation footer. * * Mirrors html/home-decor.html §5 (lines 1813-1992): two 1920x640 banners, * each with 2 preset-position pins (position4 + position5), wrapped in * `
` and the demo's `swiper-type-number * rounded-top-20` swiper class. The index renders no outer flat-spacing * for this style — only a `
` wrapper. * * Hotspots use the same `column` split as style-swiper-banners (column 1 * → first banner, column 2 → second banner). Up to 2 pins per banner. * * Knobs (shortcode attrs): * nav_title — "Shop The Look" (default). Drives the box-nav-pag h6 label. */ $hotspots = $hotspots ?? []; $image1 = $shortcode->image ?? null; $image2 = $shortcode->image_2 ?? null; $navTitle = trim((string) ($shortcode->nav_title ?? '')) ?: __('Shop The Look'); // Split hotspots into the two banners by `column` (default column 1). $banner1Pins = []; $banner2Pins = []; foreach ($hotspots as $h) { if ((int) ($h['column'] ?? 1) === 2) { $banner2Pins[] = $h; } else { $banner1Pins[] = $h; } } $banners = []; if (! empty($image1)) { $banners[] = ['image' => $image1, 'pins' => $banner1Pins]; } if (! empty($image2)) { $banners[] = ['image' => $image2, 'pins' => $banner2Pins]; } @endphp
@foreach ($banners as $banner)
@endforeach

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