
@extends('layouts.dasht')
@section('title', $title)
@section('content')
<div class="udex-main" id="main">
	<x-danger-alert />
    <x-success-alert />
    {{-- <script src="https://tradersrite.net/js/validation.js"></script> --}}
    <ul class="breadcrumb shadow-none p-0" style="background-color: transparent">
		<li class="breadcrumb-item"><a href="{{route('dashboard')}}">Home</a></li>
		<li class="breadcrumb-item active">Withdrawal</li>
	</ul><h1 class="clearfix">Complete Withdraw<div class="float-right"></div></h1>
			<div class="bg-white p-4 mt-3 rounded mb-5">
				<div class="mb-3">
					<h4 class="h2"> <i class="bi bi-cursor"></i> {{ $payment_mode }}</h4>
				</div>
				<form method="POST" action="{{ route('completewithdrawal') }}">
					@csrf

    <input  type="hidden" name="method" value="{{$payment_mode}}"  >
                  
                   
                    <label class="">Enter Amount to
                        withdraw({{ Auth::user()->currency }})</label>
					<div class="input-group mb-3">
                       
						<div class="input-group-prepend">
							<span class="input-group-text">{{ $settings->currency }}</span>
						</div>
						
						<input type="number" required name="amount" placeholder="Amount" class="form-control" />
					</div>
                  
	      @if($payment_mode=="Bank Transfer")
		  <fieldset>
            <div class="row">
                <div class="mb-3 col-md-6">
                    <label class="">Bank Name</label>
                    <input type="text" name="bank_name"  class="form-control "
                        placeholder="Enter bank name">
                </div>
                <div class="mb-3 col-md-6">
                    <label class="">Account Name</label>
                    <input type="text" name="account_name" 
                        class="form-control " placeholder="Enter Account name">
                </div>
                <div class="mb-3 col-md-6">
                    <label class="">Account Number</label>
                    <input type="text" name="account_no"
                        class="form-control " placeholder="Enter Account Number">
                </div>
                <div class="mb-3 col-md-6">
                    <label class="">Swift Code</label>
                    <input type="text" name="swiftcode"  class="form-control "
                        placeholder="Enter Swift Code">
                </div>
            </div>
        </fieldset>  
		  @else
                    <label class="">Enter {{ $payment_mode }} Wallet Address </label>
                    <div class="input-group mb-3">
                       
					
						<input type="text" required name="details" placeholder="Enter {{ $payment_mode }} wallet address" class="form-control" />
					</div>
@endif
					
					<button class="btn btn-primary">Complete Withdrawal</button>
				</form>
			</div>
			
			


@endsection
