@include('admin.layouts.alert-modal') 
<form method="post" action="{{ request()->url() }}" id="input_form">
	@csrf
    <div class="form-group">
        <label>Pengguna <text class="text-danger">*</text></label>
        <select class="form-control" name="user_id" id="user_id" data-toggle="select2">
            <option value="" selected>Pilih...</option>
            @foreach($users as $item)
                <option value="{{ $item->id }}">{{ $item->username }} ({{ $item->full_name }})</option>
            @endforeach
        </select>
        <small id="user_id"></small>
    </div>
    <div class="form-group">
        <label>Metode <text class="text-danger">*</text></label>
        <select class="form-control" name="deposit_method_id" id="deposit_method_id" data-toggle="select2">
            <option value="" selected>Pilih...</option>
            @foreach($methods as $item)
                <option value="{{ $item->id }}">{{ $item->name }} ({{ $item->payment }} - {{ $item->type }})</option>
            @endforeach
        </select>
        <small id="deposit_method_id"></small>
    </div>
    <div class="form-group">
        <label>Jumlah <text class="text-danger">*</text></label>
        <input type="text" class="form-control autonumeric-currency" name="amount" id="amount" value="{{ old('amount') }}">
        <small id="amount"></small>
    </div>
    <hr />
    <div class="button-items d-grid gap-2 hidden" id="process-button">
        <button type="button" class="btn btn-primary btn-block waves-effect waves-light mt-0" disabled>Mohon Tunggu...</button>
    </div>
    <div class="row" id="main-button">
        <div class="col-6">
            <div class="button-items d-grid gap-2">
                <button type="reset" class="btn btn-secondary btn-block waves-effect waves-light mt-0"><i class="mdi mdi-refresh"></i> Reset</button>
            </div>
        </div>
        <div class="col-6">
            <div class="button-items d-grid gap-2">
                <button type="submit" class="btn btn-custom btn-block waves-effect waves-light mt-0"><i class="mdi mdi-send-outline"></i> Submit</button>
            </div>
        </div>
    </div>
</form>
<script src="{{ asset('assets/js/modal-form.js') }}"></script>
<script src="{{ asset('assets/js/app.js') }}"></script>