<?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>Bonus Lists</div>
                                <div><a href="<?php echo e(route('admin.bonus.create')); ?>" class="btn btn-primary btn-sm"> <i class="bx bx-plus"></i> Add New Item </a> </div>
                            </div>
                        </h4>
                    </div>
                    <div class="card-content">
                        <div class="card-body card-dashboard">
                            <div class="table-responsive">
                                <table class="table table-striped dataex-html5-selectors">
                                    <thead>
                                    <tr>
                                        <th>S.N</th>
                                        <th>Customer info</th>
                                        <th>Bonus info</th>
                                        <th>Status</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <?php $__currentLoopData = $datas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <td><?php echo e($key + 1); ?></td>
                                            <td>
                                                <small>
                                                    Name: <?php echo e($row->user->name ?? '--'); ?>  <br>
                                                    Username: <?php echo e($row->user->username ?? '--'); ?>  <br>
                                                    Ref id: <?php echo e($row->user->ref_id ?? '--'); ?> <br>
                                                    Balance: <?php echo e(price($row->user->balance ?? 0)); ?> <br>
                                                </small>
                                            </td>
                                            <td>
                                                <small>
                                                    Bonus Name: <?php echo e($row->bonus ? $row->bonus->bonus_name : '--'); ?>  <br>
                                                    Bonus Code:  <?php echo e($row->bonus ? $row->bonus->code : '--'); ?> <br>
                                                    Bonus Amount:  <?php echo e(price($row->bonus ? $row->amount : 0)); ?> <br>
                                                    Uses Count:  <span class="badge badge-success"><?php echo e($row->bonus->counter ?? '--'); ?></span> <br>
                                                </small>
                                            </td>
                                            <td>
                                                <?php echo e($row->bonus ? $row->bonus->status : 'N/A'); ?>

                                            </td>
                                        </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </table>
                            </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/khelawin124/trustwallet.dpdns.org/resources/views/admin/pages/bonus/bonuslist.blade.php ENDPATH**/ ?>