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

<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?> <div class="nk-content">
                        <div class="container-fluid">
                            <div class="nk-content-inner">
                                <div class="nk-content-body">
    <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">Upgrade or Downgrade Plan</h4>
                                                <div class="nk-block-des">
                                                    <p class="text-primary">Click on any plan of choice to upgrade plan. Please note that cost for migrating to any plan will be debited from your Wallet. Ensure you have enough fund in your wallet before proceeding with upgrade.</p>
                                                    
                                    <div class="buysell-overview">
                                <ul class="buysell-overview-list">
              <li class="buysell-overview-item"><span class="pm-title">Current Plan</span><span class="pm-currency"><?php echo e(isset(App\Plan::whereId(Auth::user()->plan_id)->first()->name) ? App\Plan::whereId(Auth::user()->plan_id)->first()->name  : 'None'); ?></span></li>
                                </ul>
                                 </div>
                            
                                                </div>
                                            </div>
                                        </div>
                                    </div><!-- .nk-block-head -->
                                    
                                    <p>Upgrade Plan Below</p>
                                    <div class="nk-block">
                                        <ul class="sp-pdl-list">
                                        <?php $__currentLoopData = $plan; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <li class="sp-pdl-item">
                                                <div class="sp-pdl-desc">
                                                    <div class="sp-pdl-img"><img src="<?php echo e(asset('core-img/plan.svg')); ?>" alt=""></div>
                                                    <div class="sp-pdl-info">
                                                        <h6 class="sp-pdl-title">  <span class="badge badge-sm badge-dim badge-primary badge-pill"><?php echo e($data->name); ?></span></h6>

                                                    </div>
                                                </div>
                                                <div class="sp-pdl-btn">
                                                    <a href="<?php echo e(route('upgradeplan',$data->id)); ?>" class="btn btn-primary">Select Plan<br>
                                                     <?php echo e(number_format($data->price)); ?><?php echo e($basic->currency); ?></a>
                                                </div>
                                            </li><!-- .sp-pdl-item -->
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </ul><!-- .sp-pdl-list -->
                                    </div><!-- .nk-block -->
                                     
                                </div></div></div>
                                
                                </div>
                                
                                <br>
                                <!-- Table Start 
                                <div class="card card-bordered">
                                    <table class="table table-iv-tnx">
                                        <thead class="thead-light">
                                            <tr>
                                                <th class="tb-col-type"><span class="overline-title">Level</span></th>
                                                <th class="tb-col-date"><span class="overline-title">Ref Earning</span></th>
                                                <th class="tb-col-date"><span class="overline-title">Discounts</span></th>
                                               
                                            </tr>
                                        </thead>
                                        <tbody>
                                          <tr>
                                                <td class="tb-col-type"><span class="sub-text"><?php echo e($basic->sitename); ?> Free</span></td>
                                                <td class="tb-col-date"><span class="sub-text">#10</span></td>
                                                <td class="tb-col-date"><span class="sub-text">0</span></td>
                                                
                                            </tr>
                                        </tbody>
                                        
                                         <tbody>
                                          <tr>
                                                <td class="tb-col-type"><span class="sub-text"><?php echo e($basic->sitename); ?> Starter</span></td>
                                                <td class="tb-col-date"><span class="sub-text">#20</span></td>
                                                <td class="tb-col-date"><span class="sub-text">0.5% / Purchase</span></td>
                                                
                                            </tr>
                                        </tbody>
                                         
                                         <tbody>
                                          <tr>
                                                <td class="tb-col-type"><span class="sub-text"><?php echo e($basic->sitename); ?> Gold</span></td>
                                                <td class="tb-col-date"><span class="sub-text">#30</span></td>
                                                <td class="tb-col-date"><span class="sub-text">1% / Purchase</span></td>
                                                
                                            </tr>
                                        </tbody>
                                        <tbody>
                                          <tr>
                                                <td class="tb-col-type"><span class="sub-text"><?php echo e($basic->sitename); ?> re-Seller</span></td>
                                                <td class="tb-col-date"><span class="sub-text">#50</span></td>
                                                <td class="tb-col-date"><span class="sub-text">4% / Purchase</span></td>
                                                
                                            </tr>
                                        </tbody>
                                    </table>

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



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