@if ($section->tabs->isNotEmpty())

{{ $section->name }}

@if ($section->short_description)

{{ $section->short_description }}

@endif
@foreach ($section->tabs as $tab) @php // Grocery products and Vital Kitchen bowls share the tab; bowls // display after products (100000 offset), each type in its saved order. $tabItems = $tab->products ->map(fn ($p) => ['type' => 'product', 'sort' => (int) ($p->pivot->sort_order ?? 0), 'item' => $p]) ->concat($tab->saladBowls->map(fn ($b) => ['type' => 'bowl', 'sort' => 100000 + (int) ($b->pivot->sort_order ?? 0), 'item' => $b])) ->sortBy('sort') ->take(6); @endphp
@foreach ($tabItems 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
@endforeach
@endif