<?php $__env->startSection('content'); ?>
<script type="text/javascript">
    if (window.performance && window.performance.navigation.type == window.performance.navigation.TYPE_BACK_FORWARD) {
        location.reload();
    }
</script>
 <div class="nk-content">
                        <div class="container-fluid">                            <div class="nk-content-body">
                                <div class="buysell widse-xs m-aussto">
                                <br><br><br>

                                    <div class="buysell-block">
                                        


                                        <form method="post" class="buysell-form" action="<?php echo e(route('internetdatapost2')); ?>">
                                        <?php echo csrf_field(); ?>


                                        <div class="buysell-field form-group">

                                                <div class="form-pm-group">
                                                    <ul class="buysell-pm-list">

                                                        <li class="buysell-pm-item">
                                                            <input class="buysell-pm-control"  checked type="radio" name="network" value="<?php echo e($network->code); ?>" id="pm-paypal<?php echo e($network->id); ?>" />
                                                            <label class="buysell-pm-label" for="pm-paypal<?php echo e($network->id); ?>">
                                                                <span class="pm-name"><?php echo e($network->name); ?></span><span class="pm-icon"><div class="user-avatar sm"><img src="<?php echo e(asset($network->image)); ?> " width="100"
                             alt="Avatar"></div></span>
                                                            </label>
                                                        </li>

                                                                                                           </ul>
                                                </div>
                                            </div>



                                            <div class="buysell-field form-group">
                                                  <div class="invest-field form-group">
                                                    <div class="form-label-group"><label class="form-label">Select Data Plan</label></div>


                                                     <script type="text/javascript">

                                                        function goDoSomething1(identifier){

                                                  var discount = $(identifier).data('discount');
                                                  var amount = $(identifier).data('amount');
                                                  document.getElementById("amount").value = amount-discount;
                                                  document.getElementById("plan").value = $(identifier).data('plan');
                                                  document.getElementById("name").value = $(identifier).data('name');
                                                   }

                                                    </script>

                                                    <div class="invest-amount-group g-2">
                                                    <?php $__currentLoopData = $plans; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                        <div class="invest-amount-item">
                                                            <input type="radio" class="invest-amount-control" name="iv-amount"  onclick="goDoSomething1(this);"  data-plan="<?php echo e($data['plan']); ?>"  data-name="<?php echo e($data['name']); ?>"  data-discount="<?php echo e($data['cost']/100*$discount); ?>"  onclick="goDoSomething1(this);"  data-plan="<?php echo e($data['plan']); ?>"  data-name="<?php echo e($data['name']); ?>"  data-amount="<?php echo e($data['cost']); ?>" id="iv-amount-<?php echo e($data['plan']); ?>" /><label class="invest-amount-label" for="iv-amount-<?php echo e($data['plan']); ?>"><?php echo e($data['name']); ?><br><small >Amount: <?php echo e($data['cost']); ?><?php echo e($basic->currency); ?></small></label>
                                                        </div>
                                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    </div>
                                                </div>
                                                </div>
                                            </div>
                                            <br>

<div class="alert alert-danger">
                                        <div class="alert-cta flex-wrap flex-md-nowrap">
                                            <div class="alert-text"> <b>You Have <?php echo e($discount); ?>% Discount, Upgrade your account now for more discounts!</b></div>
                                            
<ul class="alert-actions gx-3 mt-3 mb-1 my-md-0">
                                                <li class="order-md-last"><a href="#" class="btn btn-sm btn-warning" type="button" class="close" data-dismiss="alert" aria-label="Close">Later</a></li>
                                                <li class="order-md-last"><a href="/user/upgrade-downgrade" class="btn btn-sm btn-primary" type="button"   aria-label="Close">Upgrade Now</a></li>

                                            </ul>
                                        </div>
                                    </div>


                        

                                            <div class="buysell-field form-group">
                                                <div class="form-control-group">
                                                    <input type="text" class="form-control form-control-lg form-control-number" readonly  id="amount" name="amount" placeholder="0.00" />
                                                    <div class="form-dropdown">
                                                        <div class="text"><?php echo e($basic->currency_sym); ?><span></span></div>

                                                    </div>
                                                </div>

                                            </div>
                                            <input id="plan" name="plan" hidden>
                                            <input id="name" name="name" hidden>


                                             <div class="buysell-field form-group">
                                                <div class="form-label-group"><label class="form-label" for="buysell-amount">Enter Phone Number</label></div>
                                                <div class="form-control-group">
                                                    <input type="number" class="form-control form-control-lg form-control-number" id="buysell-amount" name="phone" placeholder="08114313795" />

                                                </div>
                                             </div>

                                             <?php if(Auth::user()->setpin == 1): ?>
                                            <div class="buysell-field form-action"><a href="#" class="btn btn-lg btn-block btn-primary" data-toggle="modal" data-target="#enterpin">Continue</a></div>
                                            <?php else: ?>
                                             <div class="buysell-field form-action"><button type="submit" class="btn btn-lg btn-block btn-primary">Continue</button></div>
                                            </form>
                                            <?php endif; ?>
                                            <div class="form-note text-base text-center">Note: get a VTU website like this, Contact <a href="https://api.whatsapp.com/send?phone=2348114313795&amp;text=Hello%20Ofofonobs">Ofofonobs</a>.</div>

                                    </div>
                                </div>
                            </div>
                        </div>

         <div class="modal fade" tabindex="-1" id="enterpin">
            <div class="modal-dialog modal-dialog-centered modal-md">
                <div class="modal-content">
                    <div class="modal-body modal-body-md text-center">
                        <div class="nk-modal">
                            <h4 class="nk-modal-title">Enter Transaction Password</h4>
                            <div class="nk-modal-text">
                                <p>
                                    Please enter your Wallet Transaction Password in order complete this transaction or click on the cancel button to discontinue transaction process..
                                </p>
                            </div>
                            <div class="nk-modal-form">
                                <div class="form-group"><input type="password" name="pin" class="form-control form-control-password-big text-center" /></div>
                            </div>
                            <div class="nk-modal-action">
                                <button type="submit" class="btn btn-lg btn-mw btn-primary" >Confirm Process</button>
                                <div class="sub-text sub-text-alt mt-3 mb-4">This transaction will be debited from your deposit wallet balance.</div>
                                <a href="#" class="link link-soft" data-dismiss="modal">Cancel and return</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
 </form>
<?php $__env->stopSection(); ?>

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