@php use Botble\Base\Facades\BaseHelper; use Botble\Media\Facades\RvMedia; /** * Mirrors html/home-fashion.html `section-lookbook-hover-v02` (line 2453-2627): * LEFT — swipeable bundle-hover-item product carousel (one slide per hotspot) * RIGHT — banner image with numbered pin buttons that drive the carousel via * `data-slide` on swiper-button class (handled by theme JS that's already * shipped with the lookbook-hotspot family). * * Each hotspot drives BOTH a carousel slide AND a pinned dot, indexed by loop order. */ $bannerImage = $shortcode->image ?? null; $items = array_values($hotspots); @endphp
@foreach ($items as $i => $h) @php $product = $h['product']; $pinNumber = $i + 1; @endphp
@php // Overline = explicit hotspot field (preferred for storytelling // sections where the label isn't a real category) → product's // first category name fallback. $overline = $h['overline'] ?? ''; if ($overline === '') { $overline = optional($product->categories?->first())->name ?: ''; } @endphp @if ($overline !== '')

{{ $overline }}

@endif {!! BaseHelper::clean($product->name) !!} @if (! empty($product->description))

{{ \Illuminate\Support\Str::limit(strip_tags((string) $product->description), 80) }}

@endif {{ __('Order Now') }}
@endforeach