<?php $__env->startSection('body'); ?>
                  <!-- content @s  -->
                <div class="nk-content ">
                    <div class="container wide-xl">
                        <div class="nk-content-inner">

                            <div class="nk-content-body">
                                <div class="nk-content-wrap">
                                    <div class="nk-block-head nk-block-head-lg">

                                          <div class="caption font-dark float-right">
                                        <i class="icon-settings font-dark"></i>
                                        <a href="<?php echo e(route('plan.create')); ?>" class="btn btn-primary bold"><i class="fa fa-plus"></i> <?php echo e(app('translator')->getFromJson('Add New')); ?> </a>
                                    </div>
                                        <div class="nk-block-between-md g-4">
                                            <div class="nk-block-head-content">
                                                <h2 class="nk-block-title fw-normal"> <?php echo e(app('translator')->getFromJson($page_title)); ?></h2>
                                                <div class="nk-block-des">
                                                    <p>You can change or manage system multilevel plans here</p>
                                                </div>

                                            </div>

                                        </div>

                                    </div><!-- .nk-block-head -->




                                    <div class="nk-block">
                                        <div class="row g-gs">
                                        <?php $__currentLoopData = $plan; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <div class="col-md-4">
                                                <div class="price-plan card card-bordered text-center">
                                                    <div class="card-inner">
                                                        <div class="price-plan-media">
                                                            <img src="<?php echo e(asset('core-img/plan.svg')); ?>" width="100" alt="">
                                                        </div>
                                                          <?php if($data->status == 1): ?>
                                                                <span class="badge badge-success"><?php echo e(app('translator')->getFromJson('Active')); ?></span>
                                                                <?php else: ?>
                                                                <span class="badge badge-danger"><?php echo e(app('translator')->getFromJson('Deactive')); ?></span>
                                                            <?php endif; ?>

                                                        <div class="price-plan-info">
                                                            <h5 class="title"><?php echo e($data->name); ?></h5>

                                                        </div>
                                                        <div class="price-plan-amount">
                                                            <div class="amount">Price: <?php echo e($data->price); ?> <?php echo e($basic->currency); ?></div>
                                                            
                                                            <div class="amount">Discount: <?php echo e($data->discount); ?> %</div>
                                                            <span class="bill">Ref Bonus: <?php echo e($data->ref_bonus); ?> <?php echo e($basic->currency); ?></span>
                                                        </div>

                                                            <div class="price-plan-action">
                                                            <a href="<?php echo e(route('plan.edit', $data->id)); ?>" class="btn btn-primary"><?php echo e(app('translator')->getFromJson('Edit')); ?></a>
                                                        </div>
                                                    </div>
                                                </div><!-- .price-item -->
                                            </div><!-- .col -->




                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </div><!-- .row -->
                                    </div><!-- .nk-block -->
                                    <div class="nk-block">
                                        <div class="card card-bordered">
                                            <table class="table table-features">
                                                <thead class="tb-ftr-head thead-light">
                                                    <tr class="tb-ftr-item">
                                                        <th class="tb-ftr-info">Name</th>
                                                        <th class="tb-ftr-plan">Price</th>
                                                        <th class="tb-ftr-plan">Subscribers</th>
                                                        
                                                    </tr><!-- .tb-ftr-item -->
                                                </thead>
                                                <tbody class="tb-ftr-body">
                                                  <?php $__currentLoopData = $plan; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <tr class="tb-ftr-item">
                                                        <td class="tb-ftr-info"><?php echo e($data->name); ?></td>
                                                        <td class="tb-ftr-plan"><em class="icon ni ni-check-thick"></em> <span class="plan-name"><?php echo e($basic->currency_sym); ?> <?php echo e($data->price); ?> </span></td>
                                                        <td class="tb-ftr-plan"><em class="icon ni ni-check-thick"></em> <span class="plan-name"><?php echo e(App\User::wherePlan_id($data->id)->count()); ?> User(s)</span></td>
                                                        
                                                    </tr><!-- .tb-ftr-item -->






                                             <div class="modal fade" id="levComModal<?php echo e($data->id); ?>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                            <div class="modal-dialog">
                                <div class="modal-content">
                                    <div class="modal-header">
                                        <h4 class="modal-title" id="myModalLabel"> <?php echo e(app('translator')->getFromJson($data->name.' Level Commissions')); ?></h4>
                                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                                    </div>
                                    <div class="modal-body">
                                        <ul  class="list-group">
                                            <?php $__currentLoopData = $data->plan_level; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $lv): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <li class="list-group-item">
                                                    <p class="text-center"><?php echo e(app('translator')->getFromJson('Level ')); ?><?php echo e($lv->level); ?> : <?php echo e($lv->amount); ?> <?php echo e($basic->currency); ?></p>
                                                </li>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </ul>
                                    </div>
                                    <div class="modal-footer">
                                        <button type="button" class="btn btn-danger" data-dismiss="modal"><i class="fa fa-times"></i> <?php echo e(app('translator')->getFromJson('Close')); ?></button>
                                    </div>
                                </div>
                            </div>
                        </div><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                </tbody>
                                            </table>
                                        </div>
                                    </div><!-- .nk-block -->
                                </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('include.admindashboard', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>