{{-- resources/views/home/index.blade.php --}} @extends('layouts.app') @section('title', 'Your Wishlist - Bargain Book Hut') @push('styles') @endpush @section('content')

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)
{{ $badge }}
@endif
{{ $product->name }}
{{ $product->name }}
{{ $product->author }}
₹{{ number_format($priceNow) }} @if($priceWas != $priceNow) ₹{{ number_format($priceWas) }} @endif @if($discount) (-{{ $discount }} %) @endif
@empty
Your wishlist is empty

Tap the heart on any book to save it here for later.

Browse Books
@endforelse
@endsection @push('scripts') @endpush