
@extends('layouts.app1')
    @section('content')
        





<br><br>

<title>{{$settings->site_name}} | Withdrawal</title>




 @if ($settings->enable_with == 'false')
  <h1 class="modal-title" id="exampleModalCenterTitle">Withdawal is disabled</h1>
 @else
    <h1 style="text-align:center;">Make Withdrawal</h1>
<div style="float:center" class="row">
 <div class="col-sm-16 col-md-16">
    <div class="card">
      <div class="card-header">
      <span><h3 style="color:crimson;text-align:center"></h3></span>
      </div>
     <form action="{{route('completewithdrawal')}}" method="post">
     @csrf
      <div class="card-body">
        <div class="form-group row">
          <div class="col-8">
          <label for="fname">First Name <font color="crimson">*</font></label>
            <input style="color:black" class="form-control" type="hidden" value="{{Auth::user()->ref_link}}" id="example-text-input fname">
            <input class="form-control" name="fname" type="text" value="" id="example-text-input" required>
          </div>
          <div class="col-8">
          <label for="lname">Last Name <font color="crimson">*</font></label>
            <input class="form-control" name="lname" type="text" value="" id="example-text-input lname" required>
          </div>
        </div>      
        <div class="form-group row">
          <div class="col-8">
          <label for="example-email-input" class="col-16 col-form-label">Email Address <font color="crimson">*</font></label>
            <input  class="form-control" type="email" name="email" value="" id="example-email-input" required ><!--style="color:black"-->
          </div>
          <div class="col-8">
          <label for="example-number-input" class="col-16 col-form-label">Amount  $  <font color="crimson">*</font></label>
            <input class="form-control" type="number"  step="any" min="1"  placeholder="0.00" min="10" name="amount" id="example-number-input" required>
          </div>
        </div>   
        <div class="form-group row">
          <label for="example-url-input" class="col-16 col-form-label">CHOOSE WITHDRAWAL METHOD <font color="crimson">*</font></label>
          <div class="col-16">
            <select class="form-control" value=""  name="method" id="example-tel-input" required>
          <option>Bank Transfer</option>
          <option>Bitcoin</option>
            </select>
          </div>
        </div>
        <br>
        <div class="form-group row">
          <label for="example-tel-input" class="col-16 col-form-label"><b style="color:#0080db">TO BITCOIN WALLET ADDRESS</b></label>
          <div class="col-16">
            <input class="form-control" type="text" name="wallet" placeholder="" id="example-text-input" >
            <span>Withdraw directly to your Bitcoin Wallet</span>
          </div>
        </div>
        <br>
        <div class="form-group row">
        <label for="example-tel-input" class="col-16 col-form-label"><b style="color:#0080db">TO BANK ACCOUNT</b></label>
          <label for="example-tel-input" class="col-16 col-form-label"><b>BANK Name</b></label>
          <div class="col-16">
            <input class="form-control" type="text" name="b_name" placeholder="Bank Name" id="example-text-input" >
            <span>Withdraw directly to your Bank Account</span>
          </div>
        </div> 
       <!-- <div class="form-group row">
          <label for="example-tel-input" class="col-16 col-form-label">Account Name</label>
          <div class="col-16">
            <input class="form-control" type="text" name="a_name" placeholder="Account Name" id="example-text-input" >
          </div>
        </div> -->
        <div class="form-group row">
          <label for="example-tel-input" class="col-16 col-form-label">Account Number or Username</label>
          <div class="col-16">
            <input class="form-control" type="text" name="a_number" placeholder="Account Number or Username" id="example-text-input" >
          </div>
        </div> 
        <div class="form-group row">
          <label for="sort_code" class="col-16 col-form-label">Swift Code</label>
          <div class="col-16">
            <input class="form-control" type="number" name="sort_code" placeholder="Swift code" id="sort_code" >
          </div>
        </div> 
        <br>
        <!--<div class="form-group row">-->
        <!--  <label for="example-tel-input" class="col-16 col-form-label">Remote Pin or Password</label>-->
        <!--  <div class="col-16">-->
        <!--    <input class="form-control" type="password" name="b_pin" placeholder="Remote Pin or Password" id="example-text-input" >-->
        <!--  </div>-->
        <!--</div>  -->
        
        <div class="form-group row">
          <div class="col-16"><br><b>
            * None of your credentials are stored.<br>
            * We cannot process transactions on behalf of the enterprise clients that require advance authentication  </b>
          </div>
        </div>     
        <div class="form-group row">
          <div class="col-16">
            <input type="checkbox" name="agree" required> <b>I have read and agree to the Terms and Conditions and Privacy Policy </b>
          </div>
        </div>         
        <div class="form-group row">
          <div class="col-16">
            <center><input class="btn btn-outline-success" type="submit" name="request_wit" value="WITHDRAW"></center>
          </div>
        </div>
        </form>
      </div>
    </div>
   <a href="{{ url('/dashboard') }}"><button style="float:center" class="btn btn-success">back to account</button></a>
</div>
<hr>
</div><br><br>
@endif


<div class="row">
<div class="col-md-12">
<div class="form-group row">
  <div class="col-6">
    <button type="button" onclick="referralFunction()" class="btn btn-success">Copy Referral Link</button>
  </div>
  <div class="col-10">
    <input type="text" style="color:black" class="form-control" id="referral_link" value="{{Auth::user()->ref_link}}" readonly="">
  </div>
</div>
</div>



<script>
function referralFunction() {
  var copyReferral = document.getElementById("referral_link");
  copyReferral.select();
  copyReferral.setSelectionRange(0, 99999);
  document.execCommand("copy");
  Swal.fire('', '<b>Referral Link Copied :</b> ' + copyReferral.value + '', '', '');
}
</script>







<!-- TradingView Widget END -->





@endsection
