
<?php $__env->startSection('content'); ?>

<!-- content @s  -->
                <div class="nk-content ">
                    <div class="container wide-xl">
                            <div class="nk-content-body">
                                <div class="nk-content-wrap">
                                    <div class="nk-block-head nk-block-head-lg">
                                        <div class="nk-block-between-md g-4">
                                            <div class="nk-block-head-content">
                                                <h4 class="nk-block-title fw-normal">Choose Suitable MLM Plan</h4>
                                                <div class="nk-block-des">

                                                </div>
                                            </div>
                                        </div>
                                    </div><!-- .nk-block-head -->
                                    <div class="nk-block">
                                        <div class="row g-gs">
                                        <?php $__currentLoopData = $plans; $__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')); ?>" alt="">
                                                        </div>
                                                        <div class="price-plan-info">
                                                            <h5 class="title"><?php echo e($data->name); ?></h5>
                                                            <div class="amount h4"><span><?php echo e($basic->currency_sym); ?></span><?php echo e(number_format($data->price, $basic->decimal)); ?>

                                                            <span><h6>Referral Bonus: <?php echo e($basic->currency_sym); ?><?php echo e(number_format($data->refbonus, $basic->decimal)); ?></h6></span></div>

                                                        </div>
                                                        <div class="price-plan-amount">

                                                            <span> <?php $total = 0; ?>
                                                                <?php $__currentLoopData = $data->plan_level; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $lv): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                                    <?php if($key+1 <= $basic->matrix_height): ?>
                                                                        <li>
                                                                            <strong>  <?php echo e(app('translator')->getFromJson('L'.$lv->level.' ')); ?>
                                                                            : <?php echo e($basic->currency_sym); ?> <?php echo e($lv->amount); ?>

                                                                            X <?php echo e(pow($basic->matrix_width,$key+1)); ?> <i class="fa fa-users"></i> =
                                                                           <?php echo e($basic->currency_sym); ?><?php echo e($lv->amount*pow($basic->matrix_width,$key+1)); ?></strong>
                                                                        </li>
                                                                        <?php $total += $lv->amount*pow($basic->matrix_width,$key+1); ?>
                                                                    <?php endif; ?>
                                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                                 <h6>Total: <?php echo e($basic->currency_sym); ?> <?php echo e($total); ?> </h6>


                                <?php
                                    $per = intval($total/$data->price*100);
                                ?>

                                <strong><?php echo e(app('translator')->getFromJson('Returns')); ?>  <span class="sec-color"><?php echo e($per); ?>%</span> <?php echo e(app('translator')->getFromJson('of Price')); ?></strong>

                                                             </span>
                                                        </div>
                                                        <div class="price-plan-action">
                                                            <a href="#confirm-mlm<?php echo e($data->id); ?>"  data-toggle="modal" class="btn btn-primary">Select Plan</a>
                                                        </div>
                                                    </div>
                                                </div><!-- .price-item -->
                                            </div><!-- .col -->


                                              <!-- @@ Confirm Coin Modal @e  -->
    <div class="modal fade" tabindex="-1" role="dialog" id="confirm-mlm<?php echo e($data->id); ?>">
        <div class="modal-dialog modal-dialog-centered modal-md" role="document">
            <div class="modal-content">
                <a href="#" class="close" data-dismiss="modal"><em class="icon ni ni-cross-sm"></em></a>
                <div class="modal-body modal-body-lg text-center">
                    <div class="nk-modal">
                        <em class="nk-modal-icon icon icon-circle icon-circle-xxl ni ni-alert bg-success"></em>
                        <h4 class="nk-modal-title">Plan Price:  <?php echo e($basic->currency_sym); ?><?php echo e(number_format($data->price, $basic->decimal)); ?></h4>
                        <div class="nk-modal-text">
                            <p class="caption-text">By proceeding with this process, <?php echo e(__($data->price)); ?> <?php echo e($basic->currency); ?> will be debited from your deposit balance and
                            you will be subscribed to <?php echo e($data->name); ?> Multilevel Plan</p>
                             </div>
                        <div class="nk-modal-action-lg">
                            <ul class="btn-group gx-4">
                                 <form method="post" action="<?php echo e(route('plan.purchase')); ?>">
                            <?php echo csrf_field(); ?>
                            <div class="modal-sfooter">
                                <button type="submit" name="plan_id" value="<?php echo e($data->id); ?>"
                                        class="btn btn-primary bold uppercase"><i
                                            class="fa fa-send"></i> <?php echo e(app('translator')->getFromJson('Subscribe')); ?></button>
                                <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>
                        </form>
                            </ul>
                        </div>
                    </div>
                </div><!-- .modal-body -->
                <div class="modal-footer bg-lighter">
                    <div class="text-center w-100">
                        <p>Earn upto <?php echo e($per); ?>% in multi level plan by subscribing to this plan!!! <a href="<?php echo e(route('referral')); ?>">Invite friends</a></p>
                    </div>
                </div>
            </div><!-- .modal-content -->
        </div><!-- .modla-dialog -->
    </div><!-- .modal -->

                                           <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </div><!-- .row -->
                                    </div><!-- .nk-block -->

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

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