<?php $__empty_1 = true; $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
    <div class="bg-white rounded-xl shadow-md border border-[#d1d5db] p-4">
        <div class="flex items-start gap-4 mb-3">
            <div class="flex-shrink-0">
                <?php if($product->primaryImage): ?>
                    <img src="<?php echo e($product->primaryImage->image_data_url); ?>" alt="<?php echo e($product->name); ?>" class="w-20 h-20 object-cover rounded-lg border border-[#d1d5db]">
                <?php else: ?>
                    <div class="w-20 h-20 bg-gradient-to-br from-[#d1d5db] to-[#e6d5b8] rounded-lg border border-[#d1d5db]"></div>
                <?php endif; ?>
            </div>
            <div class="flex-1 min-w-0">
                <h3 class="font-semibold text-black text-lg mb-1"><?php echo e($product->name); ?></h3>
                <p class="text-sm text-black mb-2"><?php echo e($product->category->name); ?></p>
                <div class="flex flex-wrap gap-2 mb-2">
                    <?php if($product->featured): ?>
                        <span class="px-2 py-1 rounded-full text-xs font-semibold bg-[#d1fae5] text-[#065f46]">Featured</span>
                    <?php endif; ?>
                    <?php if($product->availability): ?>
                        <span class="px-2 py-1 rounded-full text-xs font-semibold bg-[#d1fae5] text-[#065f46]">Available</span>
                    <?php else: ?>
                        <span class="px-2 py-1 rounded-full text-xs font-semibold bg-[#fee2e2] text-[#991b1b]">Unavailable</span>
                    <?php endif; ?>
                </div>
                <div class="mb-3">
                    <?php if($product->is_on_sale): ?>
                        <div class="flex flex-col">
                            <span class="text-black font-semibold text-lg">R<?php echo e(number_format($product->sale_price, 2)); ?></span>
                            <span class="text-xs text-black line-through">R<?php echo e(number_format($product->price, 2)); ?></span>
                        </div>
                    <?php else: ?>
                        <span class="text-black font-semibold text-lg">R<?php echo e(number_format($product->price, 2)); ?></span>
                    <?php endif; ?>
                </div>
            </div>
        </div>
        <div class="flex flex-wrap gap-2 pt-3 border-t border-[#d1d5db]">
            <a href="<?php echo e(route('admin.products.edit', $product->id)); ?>" class="text-black hover:text-black transition-colors font-medium text-sm">Edit</a>
            <form method="POST" action="<?php echo e(route('admin.products.destroy', $product->id)); ?>" onsubmit="return confirm('Are you sure?')" class="inline">
                <?php echo csrf_field(); ?>
                <?php echo method_field('DELETE'); ?>
                <button type="submit" class="text-black hover:text-[#b86a4f] transition-colors font-medium text-sm">Delete</button>
            </form>
        </div>
    </div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
    <div class="bg-white rounded-xl shadow-md border border-[#d1d5db] p-8 text-center">
        <p class="text-black">No products found.</p>
    </div>
<?php endif; ?>















<?php /**PATH C:\xampp\htdocs\catalogue-builder\resources\views/admin/products/partials/mobile-cards.blade.php ENDPATH**/ ?>