@php /** * Section-highlight pattern from home-jewelry.html (lines 3601-3653): * single hero image with a swiper of multiple text-only slides * (heading + description) overlaid via flex layout. Reads tabbed * fields named feature_1..feature_4 (heading) + content_1..content_4. */ $count = max(1, min(8, (int) ($shortcode->quantity ?? 4))); $slides = []; for ($i = 1; $i <= $count; $i++) { $heading = trim((string) ($shortcode->{"heading_$i"} ?? '')); $content = trim((string) ($shortcode->{"content_$i"} ?? '')); if ($heading !== '' || $content !== '') { $slides[] = ['heading' => $heading, 'content' => $content]; } } @endphp @if (! empty($slides))
@if (! empty($shortcode->image ?? '')) {!! RvMedia::image($shortcode->image, $shortcode->heading_1 ?? '', 'hero-banner', false, ['class' => 'img-cover', 'width' => 1770, 'height' => 720, 'loading' => 'lazy']) !!} @endif
@foreach ($slides as $i => $slide)
0) data-wow-delay="0.{{ $i }}s" @endif>
@if (! empty($slide['heading']))

{!! BaseHelper::clean($slide['heading']) !!}

@endif @if (! empty($slide['content']))

{!! BaseHelper::clean($slide['content']) !!}

@endif
@endforeach
@endif