

<?php $__env->startSection('content'); ?>
    <?php echo $__env->make('frontend.components.accordion', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

    <div class="card mp-20 social-logs-page">
        <div class="social-logs-header">
            <h2 class="title"><?php echo e($title); ?></h2>
            <p class="social-logs-desc">Browse and buy account credentials. Balance will be deducted on purchase.</p>
        </div>

        <div class="social-logs-search">
            <form method="GET" action="<?php echo e(route('user.accounts.products')); ?>" class="table-search-form social-logs-search-form">
                <div class="table-search">
                    <input type="text" name="search" class="search-input" placeholder="Search by product name or category..." value="<?php echo e($search ?? ''); ?>">
                    <i class="ti ti-search"></i>
                </div>
                <button type="submit" class="search-btn"><i class="ti ti-search"></i> Search</button>
            </form>
        </div>

        <div class="social-logs-grid">
            <?php $__empty_1 = true; $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $p): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                <a href="<?php echo e(route('user.accounts.product', $p->id)); ?>" class="social-logs-card">
                    <?php if($p->image): ?>
                        <div class="social-logs-card-image">
                            <img src="<?php echo e(asset($p->image)); ?>" alt="">
                        </div>
                    <?php else: ?>
                        <div class="social-logs-card-placeholder">
                            <i class="ti ti-shopping-bag"></i>
                        </div>
                    <?php endif; ?>
                    <div class="social-logs-card-body">
                        <h3 class="social-logs-card-title"><?php echo e($p->name); ?></h3>
                        <p class="social-logs-card-category"><?php echo e($p->productCategory->name ?? '-'); ?></p>
                        <div class="social-logs-card-meta">
                            <span class="social-logs-card-price"><?php echo e($currency); ?><?php echo e(number_format($p->price, 2)); ?></span>
                            <span class="social-logs-card-stock">In stock: <?php echo e($p->in_stock); ?></span>
                        </div>
                        <span class="social-logs-card-cta">View & buy</span>
                    </div>
                </a>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                <div class="social-logs-empty">
                    <i class="ti ti-package-off"></i>
                    <p>No products available.</p>
                </div>
            <?php endif; ?>
        </div>

        <?php if($products->hasPages()): ?>
            <div class="social-logs-pagination"><?php echo e($products->links('vendor.pagination.default')); ?></div>
        <?php endif; ?>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('frontend.layout.dash', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\jjd\socialnum\sstack\mine\core\resources\views/frontend/user/accounts/products.blade.php ENDPATH**/ ?>