@php use Botble\Base\Facades\BaseHelper; use Botble\Media\Facades\RvMedia; /** * Mirrors html/home-electronics.html "Product Thumbs" section (lines 3552-3715): * LEFT col with heading + subtitle + 4 lifestyle thumb buttons + CTA; * RIGHT col with a swiper of 4 wg-thumb-v1 slides, each carrying a lifestyle * image and an overlay product card (image + name + prices + add-to-cart icon). * * Per-slide thumb image is read from `thumb_1..4` shortcode attrs; falls back * to the matching product's image. `button_text` + `button_url` configure the * left-column CTA. Up to 4 products are paired with their thumbs in order. */ $items = []; foreach ($products->take(4) as $i => $product) { $idx = $i + 1; $thumb = trim((string) ($shortcode->{"thumb_$idx"} ?? '')) ?: $product->image; $items[] = [ 'thumb' => $thumb, 'product' => $product, ]; } $buttonText = trim((string) ($shortcode->button_text ?? '')) ?: __('View All Products'); $buttonUrl = trim((string) ($shortcode->button_url ?? '')) ?: '#'; @endphp @if (! empty($items)) {{-- .banner-thumbs-product.slider-thumb-wrap layout (split thumbs LEFT, lifestyle swiper RIGHT) lives in assets/sass/component/_inline-migrated.scss. --}}
htmlAttributes() !!} class="tf-section banner-thumbs-product-grid">
@endif