@php use Botble\Base\Facades\BaseHelper; use Botble\Media\Facades\RvMedia; /** * Mirrors html/home-baby.html ยง7 "Bundle" (lines 5185-5323): a centered * `sect-heading type-2` above a 2-up swiper. Each slide is a * `banner-lookbook wrap-lookbook_hover` banner image (690x640, radius-16) * carrying its own hotspot pins. * * Hotspots are grouped into slides by their `column` field (1, 2, 3...). * Each slide's banner image is taken from `image` (col 1), `image_2` * (col 2), `image_3` (col 3) on the shortcode. */ $hotspots = collect($hotspots ?? []); // Group hotspots into slides keyed by column; preserve column order. $slides = $hotspots->groupBy('column')->sortKeys(); $bannerFor = function (int $column) use ($shortcode) { $key = $column <= 1 ? 'image' : 'image_' . $column; return $shortcode->{$key} ?? ($shortcode->image ?? null); }; @endphp
{!! BaseHelper::clean($shortcode->subtitle) !!}
@endif