@php $sectionItems = $section->products ->map(fn ($p) => ['type' => 'product', 'sort' => (int) ($p->pivot->sort_order ?? 0), 'item' => $p]) ->concat($section->saladBowls->map(fn ($b) => ['type' => 'bowl', 'sort' => (int) ($b->pivot->sort_order ?? 0), 'item' => $b])) ->sortBy('sort') ->take(6); @endphp @if ($sectionItems->isNotEmpty())
{{-- align-items-start keeps "See all" level with the title; the description flows underneath instead of pushing it to the middle --}}

{{ $section->name }}

@if ($section->short_description)

{{ $section->short_description }}

@endif
@foreach ($sectionItems as $entry) @if ($entry['type'] === 'bowl') @include('frontend.components.home-bowl-card', ['bowl' => $entry['item']]) @else @include('frontend.components.home-product-card', ['product' => $entry['item'], 'timerEndsAt' => $section->scheduled_to]) @endif @endforeach
@endif