

<?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">
        <h2 class="title"><?php echo e($title); ?></h2>
        <div class="table-header">
            <form method="GET" action="<?php echo e(route('user.log.account-orders')); ?>" class="table-search-form">
                <div class="table-search">
                    <input type="text" name="search" class="search-input" placeholder="Search by order ID..." value="<?php echo e($search ?? ''); ?>">
                    <i class="ti ti-search"></i>
                </div>
                <button type="submit" class="btn btn-secondary search-btn">Search</button>
            </form>
        </div>
        <div class="table-responsive">
            <table class="table">
                <thead>
                    <tr>
                        <th>Date</th>
                        <th>Order ID</th>
                        <th>Amount</th>
                        <th>Action</th>
                    </tr>
                </thead>
                <tbody>
                    <?php $__empty_1 = true; $__currentLoopData = $orders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $order): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <tr>
                            <td><?php echo e($order->created_at?->format('Y-m-d H:i')); ?></td>
                            <td>#<?php echo e($order->id); ?></td>
                            <td><?php echo e($currency ?? ''); ?><?php echo e(number_format($order->total_amount, 2)); ?></td>
                            <td><a href="<?php echo e(route('user.log.account-orders.detail', ['id' => $order->id])); ?>" class="btn btn-sm btn-primary">View credentials</a></td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                        <tr><td colspan="4" class="text-center">No account orders yet.</td></tr>
                    <?php endif; ?>
                </tbody>
            </table>
        </div>
        <?php if($orders->hasPages()): ?>
            <?php echo e($orders->links('vendor.pagination.default')); ?>

        <?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:\Users\HP\Desktop\social\product\core\resources\views/frontend/user/log/account-orders.blade.php ENDPATH**/ ?>