@php /** * 3-card layout from demo template: tall hero card on the left, * two stacked cards on the right. Falls back to a flat row when more * or fewer than 3 collections are supplied. */ $collections = collect($collections); $first = $collections->first(); $rest = $collections->slice(1, 2)->values(); @endphp
@if ($first)
{!! \Botble\Media\Facades\RvMedia::image($first->image, $first->name, '', false, ['class' => 'w-100', 'loading' => 'lazy']) !!}
@endif
@foreach ($rest as $collection) @endforeach