@include('admin.layouts.alert-modal') 
<form method="post" action="{{ request()->url() }}" id="input_form">
	@csrf
    <div class="form-group">
        <label>Status <text class="text-danger">*</text></label>
        <select class="form-control" name="status" id="status" data-toggle="select2">
            <option value="" selected>Pilih...</option>
            @foreach($status_list as $item)
                <option value="{{ $item }}" {{ old('status') ? (old('status') == $item ? 'selected' : '') : ($target->status == $item ? 'selected' : '')  }}>{{ $item }}</option>
            @endforeach
        </select>
        <small id="status"></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>