<?php $__env->startSection('admin_content'); ?>
    <section id="dashboard-ecommerce">
        <div class="row">
            <div class="col-sm-12">
                <div class="card">
                    <div class="card-header pb-0">
                        <h4 class="card-title">
                            <div class="d-flex justify-content-between">
                                <div>Customers Lists</div>
                                <div>
                                    <a href="<?php echo e(route('admin.search.user')); ?>" class="btn btn-success"><i class="bx bx-user"></i> Search A User</a>
                                </div>
                            </div>
                        </h4>
                    </div>
                    <div class="card-content">
                        <div class="card-body card-dashboard">
                            <div class="table-responsive">
                                <table class="table table-striped">
                                    <thead>
                                    <tr>
                                        <th>S.N</th>
                                        <th>Photo</th>
                                        <th>Referral id</th>
                                        <th>Name</th>
                                        <th>VIP Name</th>
                                        <th>Purchase Date</th>
                                        <th>Status</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <?php $__currentLoopData = $purchases; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <td><?php echo e($key + 1); ?></td>
                                            <td>
                                                <a href="<?php echo e(asset($row->user->photo ? view_image($row->user->photo) : not_found_img())); ?>"
                                                   target="_blank">
                                                    <img width="40"
                                                         src="<?php echo e(asset($row->user->photo ? view_image($row->user->photo) : not_found_img())); ?>"
                                                         alt="Package Photo">
                                                </a>
                                            </td>
                                            <td><?php echo e($row->user->ref_id); ?></td>
                                            <td><?php echo e($row->user->name ?? $row->user->username); ?></td>
                                            <td><?php echo e($row->package->name); ?> <?php if($row->package->is_default == '1'): ?> <span class="text-danger " style="font-size: 10px">Is_Default</span> <?php endif; ?></td>
                                            <td><?php echo e($row->created_at); ?></td>
                                            <td><?php echo e($row->status); ?></td>
                                        </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </table>
                                <?php echo e($purchases->links("pagination::bootstrap-4")); ?>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
<?php $__env->stopSection(); ?>



<?php echo $__env->make('admin.partials.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/gxkfcpnf/public_html/resources/views/admin/pages/users/purchase-record.blade.php ENDPATH**/ ?>