@php /** * 5-item collection mosaic (`section-banner-collection-v02`). * Mirrors html/home-headphone.html lines 2546-2615: * `
*
` with 5 `banner-image-text type-abs style-17 hover-img4` * items. Index 0,1,3,4 = small (428x317, item-1 & item-4 add `mb-20`), * index 2 = `large` (875x653, extra `

` description). * * This style emits its OWN outer section + container-full wrapper, so the * parent index must NOT double-wrap it (see $bareStyles in index.blade.php). * * Knobs: * spacing_class — outer spacing modifier (default `flat-spacing`, explicit '' allowed). * * @var \Botble\Shortcode\Compilers\Shortcode $shortcode * @var \Illuminate\Support\Collection $collections */ use Botble\Media\Facades\RvMedia; $collections = collect($collections)->values(); $spacingClass = $shortcode->spacing_class !== null ? trim((string) $shortcode->spacing_class) : 'flat-spacing'; @endphp

@foreach ($collections as $i => $collection) @php $isLarge = $i === 2; $itemClass = 'banner-image-text type-abs style-17 hover-img4'; if ($isLarge) { $itemClass .= ' large'; } if ($i === 0 || $i === 3) { $itemClass .= ' mb-20'; } $itemClass .= ' item-' . ($i + 1); $imgWidth = $isLarge ? 875 : 428; $imgHeight = $isLarge ? 653 : 317; @endphp @endforeach