@extends('frontend.layouts.template-base') @section('meta_tags') @include('frontend.layouts.meta-tags', ['title' => 'My Salad', 'page' => 'salad']) @endsection @section('styles') @endsection @section('content') @php $vkGroups = $saladBowls->groupBy(fn ($b) => $b->mainCategory?->name ?? 'Others'); $vkGroupKeys = $vkGroups->keys(); $hasVkTabs = $vkGroupKeys->count() > 1; @endphp
@if ($hasVkTabs)
@foreach ($vkGroupKeys as $tabIndex => $catName) @endforeach
@endif

The Harvest Bowls

Total Items - {{ $saladBowls->count() }}
@if ($saladBowls->isEmpty())
No salad bowls available right now.
@elseif ($hasVkTabs) @foreach ($vkGroups as $catName => $bowlsInCat)
@foreach ($bowlsInCat as $saladBowl) @include('frontend.components.health-bowl-card', ['product' => $saladBowl, 'isVitalKitchen' => true]) @endforeach
@endforeach @else
@foreach ($saladBowls as $saladBowl) @include('frontend.components.health-bowl-card', ['product' => $saladBowl, 'isVitalKitchen' => true]) @endforeach
@endif
{{-- toast add to cart / wishlist --}}
Added to Cart
Cart
0 Items
@endsection @section('scripts') {{-- toast helper --}} {{-- Add-to-cart quantity controls — calls the real cart API (window.CK.api), same logic as frontend/health.blade.php since this page shares the same health-bowl-card.blade.php component. --}} {{-- Wishlist toggle — calls the real wishlist API (grocery product_id, or Vital Kitchen via type + salad_bowl_id). Guest-accessible, same as add-to-cart. --}} {{-- Pre-fill "already in cart" / "already wishlisted" state on page load, for a logged-in user or a guest with an existing X-Guest-Token. --}} @endsection