@foreach($products as $product)
{{-- Wishlist Toggle --}} @php // Check if product is in guest/user wishlist to set initial color $inWishlist = false; // In a real scenario, you'd pass an array of wishlisted IDs from the controller // or check relationship: auth()->user()?->wishlist->contains($product->id) @endphp {{ $product->name }}
{{ $product->name }}
{{ $product->category->name ?? 'Uncategorized' }}
₹{{ number_format($product->price, 2) }}
@endforeach