@php /** * 3-card slider used by the home-mental "Rest Better / Nourish / Find Your Calm" * Collection block. Mirrors html/home-mental.html lines 1688-1775 * (`box-image_v02` cards inside a swiper). * * Renders inside the parent index.blade.php's `
` already. */ $items = collect($collections); @endphp
@foreach ($items as $index => $collection) @php // Middle card uses dark/text-white styling in the demo (slide 2). $isDark = $index === 1; $delay = $index === 0 ? null : ($index * 0.1) . 's'; @endphp @endforeach