<?php if(empty($cart)): ?>
<div class="empty-cart">
    <div style="font-size: 48px; margin-bottom: 10px;">🛒</div>
    <p>Cart is empty</p>
    <small>Click on products to add</small>
</div>
<?php else: ?>
    <?php $__currentLoopData = $cart; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <div class="cart-item-row" data-id="<?php echo e($item['id']); ?>" data-price="<?php echo e($item['price']); ?>" data-quantity="<?php echo e($item['quantity']); ?>">
        <div class="d-flex gap-3">
            <?php if(isset($item['image']) && $item['image'] && Storage::disk('public')->exists($item['image'])): ?>
                <img src="<?php echo e(Storage::url($item['image'])); ?>" 
                     alt="<?php echo e($item['name']); ?>" 
                     class="cart-item-image">
            <?php else: ?>
                <img src="<?php echo e(asset('images/no-image.png')); ?>" 
                     alt="No image" 
                     class="cart-item-image">
            <?php endif; ?>
            
            <div style="flex: 1;">
                <div class="cart-item-name fw-bold"><?php echo e($item['name']); ?></div>
                <div class="cart-item-price text-muted small">$<?php echo e(number_format($item['price'], 2)); ?> each</div>
                <div class="quantity-controls">
                    <button class="qty-btn qty-minus" data-id="<?php echo e($item['id']); ?>">-</button>
                    <input type="number" class="qty-input" data-id="<?php echo e($item['id']); ?>" 
                           value="<?php echo e($item['quantity']); ?>" min="1" max="<?php echo e($item['stock']); ?>" step="1">
                    <button class="qty-btn qty-plus" data-id="<?php echo e($item['id']); ?>">+</button>
                    <button class="btn btn-sm btn-link text-danger ms-auto remove-item" 
                            data-id="<?php echo e($item['id']); ?>" style="padding: 0;">🗑️</button>
                </div>
                <div class="item-total mt-1">
                    <strong>Total: $<?php echo e(number_format($item['price'] * $item['quantity'], 2)); ?></strong>
                </div>
            </div>
        </div>
    </div>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?><?php /**PATH D:\filament\pos-system\resources\views/pos/cart-items.blade.php ENDPATH**/ ?>