My Wishlist
{{ number_format($wishlistItems->count()) }} {{ $wishlistItems->count() === 1 ? 'title' : 'titles' }}
{{-- resources/views/home/index.blade.php --}} {{-- Wishlist grid section — replace your existing .wishlist-grid block with this --}}
@forelse ($wishlistItems as $favourite)
@php
$badge = $favourite->badge ?? null;
$product = $favourite->product;
$img = $favourite->bookType->img_path ?? 'images/no-image.png';
$priceNow = $favourite->displayPrice;
$priceWas = $favourite->displayPriceWas;
$discount = $favourite->offerLabel;
$channel = $favourite->channel;
@endphp
@if($badge)
@empty
@endforelse
{{ $badge }}
@endif
{{ $product->name }}
₹{{ number_format($priceNow) }}
@if($priceWas != $priceNow)
₹{{ number_format($priceWas) }}
@endif
@if($discount)
(-{{ $discount }} %)
@endif