


<?php $__env->startSection('content'); ?>
     <div class="nk-content nk-content-fluid">
                        <div class="container-xl wide-lg">
                            <div class="nk-content-body">
                                <div class="buysell  ">
                                    <div class="buysell-nav text-center">

<div class="alert alert-warning">
                                        <div class="alert-cta flex-wrap flex-md-nowrap">
                                            <div class="alert-text"><p> <?php echo e(Auth::User()->username); ?>!, Kindly set up your personal bank details <a href="/user/payment-account" class="link link-primary">click here</a>, if you've already done that... please proceed to withdraw below</p> </div>
                                               </div>
                                    </div>

    
                                    </div>
                                    <div class="buysell-title text-center"><h4 class="title">Transfer Fund To Bank!</h4></div>
                                    <div class="buysell-block">

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



                                        <script type="text/javascript">

                                            function goDoSomething(identifier){

                                     document.getElementById("gateway").innerHTML = $(identifier).data('id');
                                     document.getElementById("gate").value = $(identifier).data('id4');
                                     document.getElementById("icon").innerHTML = $(identifier).data('id3');
                                     document.getElementById("slogan").innerHTML = $(identifier).data('id2');
                                              }

                                        </script>
                                            <div class="buysell-field form-group">
                                                <div class="form-label-group"><label class="form-label">Select Method</label></div>

                                                <div class="dropdown buysell-cc-dropdown">
                                                    <a href="#" class="buysell-cc-choosen dropdown-indicator" data-toggle="dropdown">
                                                        <div class="coin-item coin-btc">
                                                            <div class="coin-icon" id="icon"><em class="icon ni ni-sign-paypal-alt" ></em></div>
                                                            <div class="coin-info"><span class="coin-name" id="gateway">Payment Method</span><span class="coin-text" id="slogan">Select Payment Method</span></div>
                                                        </div>
                                                    </a>
                                                    <div class="dropdown-menu dropdown-menu-auto dropdown-menu-mxh">
                                                        <ul class="buysell-cc-list">
                                                        <?php $__currentLoopData = $withdrawMethod; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $gate): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                        
                                                         <li class="buysell-cc-item"  onclick="goDoSomething(this);"  data-id="<?php echo e($gate->name); ?>" data-id4="<?php echo e($gate->id); ?>"  data-id3="<?php echo e($gate->icon); ?>" data-id2="<?php echo e($gate->slogan); ?>">
                                                                <a href="#" class="buysell-cc-opt" data-currency="eth">
                                                                    <div class="coin-item coin-eth">
                                                                        <div class="coin-icon"><em class="icon ni ni-<?php echo e($gate->symbol); ?>"></em></div>
                                                                        <div class="coin-info"><span class="coin-name"><?php echo e($gate->name); ?></span><span class="coin-text"><?php echo e($gate->slogan); ?></span></div>
                                                                    </div>
                                                                </a>
                                                            </li>
                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


                                                        </ul>
                                                    </div>
                                                </div>
                                            </div>
                                            
                                            <div class="buysell-overview">
                                <ul class="buysell-overview-list">
                                    
                                    <li class="buysell-overview-item"><span class="pm-title">Our Fee</span><span class="pm-currency"><?php echo e($basic->currency_sym); ?><?php echo e(number_format($basic->withdrawcharge, $basic->decimal)); ?></span></li>
                                   
                                    </ul>
                            </div>
                                            
                                            <input id="gate" name="method_id" hidden>
                                            <div class="buysell-field form-group">
                                                <div class="form-label-group"><label class="form-label" for="buysell-amount">Amount</label></div>
                                                <div class="form-control-group">
                                                    <input type="number" class="form-control form-control-lg form-control-number" name="amount" placeholder=" 0.00" id="mySelect3" onkeyup="myFunction1()" />
                                                    <div class="form-dropdown">

                                                        <div class="dropdown">
                                                            <a href="#" class="dropdown-indicator-caret" data-toggle="dropdown" data-offset="0,2"><?php echo e($basic->currency); ?></a>

                                                        </div>
                                                    </div>
                                                </div>
                                                 </div>
                                                 
                                                 
                                                 
                                                 
                                                 
                                        <?php if(Auth::user()->setpin == 1): ?>
                                                  <div class="buysell-field form-group">
                                                <div class="form-label-group"><label class="form-label" for="buysell-amount">Enter Transaction Pin</label></div>
                                                <div class="form-control-group">
                                                    <input type="password" class="form-control form-control-lg form-control-number" name="pin" placeholder=" Enter Transaction Pin"  />
                                                     
                                                </div>
                                                 </div>
                                        <?php endif; ?>
                                                 
                                                 

                                            <div class="buysell-field form-action"><button  type="submit" class="btn btn-lg btn-block btn-primary" >Transfer</button></div>

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

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