
@extends('template.app')

@section('title', 'Create - Area')

@push('css')
   
@endpush

@section('content')
    <div class="row justify-content-center">
        <div class="col-md-6 col-sm-6">
            <div class="card card-box">
                <div class="card-head text-white " style="background-color:#3FCC7E;">
                    <header>Withdraw Balance To Your Gateway</header>
                </div>
                <div class="card-body " id="bar-parent">
                    <form method="post" action="{{ route('admin.withdraw.submit') }}">
                        @csrf
                        <div class="form-group">
                            <label for="method">Select method</label>
                            <select id="method" name="method" class="form-control">
                                @foreach(\App\Models\PaymentGateway::get() as $gateway)
                                    <option value="{{ $gateway->id }}">{{ $gateway->gateway_name }}</option>
                                @endforeach
                            </select>
                        </div>
                        <div class="form-group">
                            <label for="amount">Amount to withdraw</label>
                            <input type="number" name="amount" class="form-control" id="area" placeholder="Enter amount">
                        </div>
                         <div class="form-group">
                            <label for="payout_to">Payout To</label>
                            <input type="text" name="payout_to" class="form-control" id="payout_to" placeholder="Payout method">
                        </div>
                        
                        <button type="submit" class="btn btn-success m-t-15 waves-effect">SUBMIT</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
@endsection

@push('js')
    
@endpush
