@php use Botble\Base\Facades\BaseHelper; use Botble\Media\Facades\RvMedia; /** * Mirrors html/home-cosmetic.html `section-lookbook-hover` (line 1858): * - LEFT col-lg-6: heading + 2-up product carousel (one slide per hotspot) + CTA * - RIGHT col-lg-6: banner image with one pin overlay positioned via first hotspot * * Demo uses `flex-wrap-reverse` so on mobile the banner stacks above the carousel. */ $bannerImage = $shortcode->image ?? null; $items = array_values($hotspots); $title = trim((string) ($shortcode->title ?? '')); $subtitle = trim((string) ($shortcode->subtitle ?? '')); $btnText = trim((string) ($shortcode->button_text ?? '')); $btnUrl = trim((string) ($shortcode->button_url ?? '')); $pinX = isset($items[0]) ? $items[0]['x'] : 50; $pinY = isset($items[0]) ? $items[0]['y'] : 50; @endphp
@if ($title !== '' || $subtitle !== '')
@if ($title !== '')

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

@endif @if ($subtitle !== '')

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

@endif
@endif @if (! empty($items))
@foreach ($items as $i => $h) @php $product = $h['product']; $pinNumber = $i + 1; @endphp @endforeach
@endif @if ($btnText !== '') @endif