@php use Botble\Base\Facades\BaseHelper; use Botble\Media\Facades\RvMedia; /** * Mirrors html/home-fashion-2.html "Product Thumbs" section (lines 3803-3953). * * theme.css already ships full `.section-thumbs-v2` styling for the demo's exact * markup hierarchy: *
*
<-- big square images *
*
*
<-- heading + subhead *
<-- per-product card *
*
<-- big centered image *
<-- white overlay card *
<-- 88px thumb *
name + price-wrap *
*
prev/next nav * * Both swipers are auto-initialized by `assets/js/carousel.js` lines 160-191 * (the `.tf-sw-thumbs && .sw-thumb && .sw-main-thumb` block). They become * controller-paired so swiping one syncs the other. * * `square_image_1..3` overrides the per-slide square hero image; falls back to the * matching product's main image. Up to 3 products supported. */ $items = []; foreach ($products->take(3) as $i => $product) { $idx = $i + 1; $square = trim((string) ($shortcode->{"square_image_$idx"} ?? '')) ?: $product->image; $items[] = [ 'product' => $product, 'square' => $square, ]; } $heading = trim((string) ($shortcode->heading ?? '')); $subheading = trim((string) ($shortcode->subheading ?? '')); @endphp @if (! empty($items)) {{-- .section-thumbs-v2 { position: relative } anchor rule lives in assets/sass/component/_inline-migrated.scss. --}}
@foreach ($items as $item)
{!! RvMedia::image($item['square'], $item['product']->name, '', false, ['width' => 960, 'height' => 960, 'loading' => 'lazy']) !!}
@endforeach
@endif