@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))