

<?php $__env->startSection('title', 'Wishlist'); ?>

<?php $__env->startSection('content'); ?>
<div class="space-y-6">
    <div class="rounded-3xl bg-white p-8 shadow-sm">
        <h1 class="text-2xl font-semibold">Wishlist</h1>
        <p class="text-slate-600 mt-2">Save items for later and come back when you are ready to buy.</p>
    </div>

    <?php if($items->isEmpty()): ?>
        <div class="rounded-3xl bg-white p-8 shadow-sm text-slate-600">You haven’t added any products to your wishlist yet.</div>
    <?php else: ?>
        <div class="grid gap-6 md:grid-cols-2 xl:grid-cols-3">
            <?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="rounded-3xl bg-white p-5 shadow-sm">
                    <img src="<?php echo e($item->image); ?>" alt="<?php echo e($item->name); ?>" class="h-48 w-full rounded-3xl object-cover">
                    <div class="mt-4 space-y-3">
                        <h2 class="text-lg font-semibold"><?php echo e($item->name); ?></h2>
                        <p class="text-slate-900 font-bold">₹<?php echo e(number_format($item->display_price, 2)); ?></p>
                        <div class="flex gap-2">
                            <form method="POST" action="<?php echo e(route('cart.add', $item->id)); ?>" class="flex-1">
                                <?php echo csrf_field(); ?>
                                <button type="submit" class="w-full rounded-full bg-slate-900 py-2 text-white text-sm font-semibold hover:bg-slate-800">Add to Cart</button>
                            </form>
                            <form method="POST" action="<?php echo e(route('wishlist.remove', $item->id)); ?>" class="flex-1">
                                <?php echo csrf_field(); ?>
                                <button type="submit" class="w-full rounded-full border border-slate-300 py-2 text-slate-700 text-sm font-semibold hover:bg-slate-50">Remove</button>
                            </form>
                        </div>
                    </div>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
    <?php endif; ?>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\phunt\resources\views/wishlist/index.blade.php ENDPATH**/ ?>