


<?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">
                                        
<style>
    .buysell-cc-choosen {
    display: block;
    width: 100%;
    border: 1px solid #b6ebcd;
    border-radius: 4px;
    background-color: #b6ebcd;
}

.form-control {
    display: block;
    font-weight: 400;
    width: 100%;
    color: #1c2b46;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #1ee0ac;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.coin-btc .coin-icon .icon {
    color: #000;
}
    .cards {
      background-color: #086027;
      border-radius: 16px;
      padding: 24px;
      width: 100%;
      max-width: 400px;
      text-align: center;
    }
    
    .cardss {
      background: linear-gradient(135deg, #365240, #050122);
      border-radius: 16px;
    }
    
    .card {
      background: linear-gradient(135deg, #000, #365240);
      border-radius: 10px;
    }

    .currency-select {
      background-color: rgba(255, 255, 255, 0.15);
      padding: 8px 16px;
      border-radius: 10px;
      display: inline-flex;
      align-items: center;
      font-weight: bold;
      margin-bottom: 20px;
      margin-right: 10px;
    }

    .currency-select span {
      margin-left: 8px;
      color: green;
    }

    .balance {
    font-size: 25px;
    margin: 0px 0;
    position: relative;
    display: inline-block;
    }

    .balance .naira {
      font-weight: bold;
      color: #ffffff;
      margin-right: 4px;
    }

    .eye-icon {
      font-size: 16px;
      position: absolute;
      right: -30px;
      top: 10px;
      opacity: 0.6;
    }

    .actions {
      display: flex;
      justify-content: space-between;
      margin-top: 32px;
    }

    .action-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      flex: 1;
    }

    .action-icon {
      background-color: rgba(255, 255, 255, 0.15);
      width: 60px;
      height: 60px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 8px;
    }

    .action-label {
      font-size: 14px;
      font-weight: 500;
      color: #fff;
    }

    svg {
      fill: white;
      width: 24px;
      height: 24px;
    }
    
    .btn-outline-primary {
    color: #fff;
    border-color: #6576ff;
    background-color: #6576ff;
   }
   
   .nk-wgw-title {
       color: white;
   }
   
   .nk-wgw-inner {
       color: white;
   }
   
   .btn-primary {
    color: #fff;
    background: #046e2a;
    border-color: #046e2a;
}

.big-bal {
       font-weight: 600;
       color: #fff;
       font-family: cursive;
   }
   
   .ngn-circle {
      border-radius: 9999px;
      border: 1.5px #fff solid;
   }
   
   .rounded-full {
       border-radius: 9999px;
   }
   
   .balance2 {
    font-size: 15px;
    color: #b7c2d0;
   }
   
   .alert-warning {
    background-color: #b6ebcd;
    border-color: #000;
}
   
   .alert-primary {
    font-size: 15px;
    color: #000;
    font-style: italic;
    font-family: Georgia, serif;
    display: block;
   }
   
  </style>
</head>
<body>

  <div class="cards">
      <p class="balance2" style="text-align: left">Available Balance</p>
    <div class="balance">
      <span class="naira">₦</span><span class="big-bal"><?php echo e(number_format(Auth()->user()->balance,2) ?? "0.00"); ?></span>
      
    </div>
        <div class="buysell-field form-action"><button  type="#" class="btn btn-lg btn-block btn-primary" >Withdraw Funds</button></div>
      </div>
    </div>
  </div>
<div class="buysell-nav text-center">
<div class="alert alert-warning">
                                                                   
                                                                 <div class="alert alert-primary">
<div class="alert-cta flex-wrap flex-md-nowrap"><div class="alert-cta flex-wrap flex-md-nowrap">
                                            <div class="alert-text"><p> Boss <?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></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(); ?>