<form class="row g-3 auto-width tax_master" action="{{ route('voucher-track-status.store') }}" method="post" enctype='multipart/form-data'
    id="voucher_track_status">
    @csrf
    <!-- Module Code -->
    <div class="col-md-6">
        <div>
            <label for="module_code" class="form-label">Module Code <span class="text-danger"><b>*</b></span></label>
        </div>
        <div class="input-group">
            <select class="form-control" name="module_code">
                @foreach($module_code as $list)
                <option value="{{ $list->code }}">{{ $list->code }}</option>
                @endforeach
            </select>
            {{-- <div class="input-group-append" style="margin: auto 10px;">
                <button class="btn btn-success add_btn" id="create_tax_category" type="button"> + </button>
            </div> --}}
        </div>
        <span class="text-danger error_module_code" style="display: none;">This field is required.</span>
    </div>
    <!-- voucher_code -->
    <div class="col-md-6">
        <div>
            <label for="voucher_code" class="form-label">voucher Code <span class="text-danger"><b>*</b></span></label>
        </div>
        <div class="input-group">
            <select class="form-control" name="voucher_code">
                @foreach($voucher_master as $list)
                <option value="{{ $list->voucher_code }}">{{ $list->voucher_code }}</option>
                @endforeach
            </select>
            {{-- <div class="input-group-append" style="margin: auto 10px;">
                <button class="btn btn-success add_btn" id="create_tax_category" type="button"> + </button>
            </div> --}}
        </div>
        <span class="text-danger error_voucher_code" style="display: none;">This field is required.</span>
    </div>
    <!-- voucher_code -->
    <div class="col-md-6">
        <div>
            <label for="voucher_type_code" class="form-label">Voucher Type Code <span class="text-danger"><b>*</b></span></label>
        </div>
        <div class="input-group">
            <select class="form-control" name="voucher_type_code">
                @foreach($voucher_type as $list)
                <option value="{{ $list->code }}">{{ $list->code }}</option>
                @endforeach
            </select>
            {{-- <div class="input-group-append" style="margin: auto 10px;">
                <button class="btn btn-success add_btn" id="create_tax_category" type="button"> + </button>
            </div> --}}
        </div>
        <span class="text-danger error_voucher_type_code" style="display: none;">This field is required.</span>
    </div>

    <div class="col-md-6">
        <label for="name" class="form-label">Status Name <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="status_name" name="status_name" aria-describedby="inputGroupPrepend" placeholder="Status Name"
            required>
        <span class="text-danger error_status_name" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-6">
        <label for="name" class="form-label">Status Code <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="status_code" name="status_code" aria-describedby="inputGroupPrepend" placeholder="Status Code"
            required>
        <span class="text-danger error_name" style="display:none;">This field is required.</span>
    </div>


    <div class="col-md-6">
        <label for="priority" class="form-label">Priority <span class="text-danger"><b>*</b></span></label>
        <input type="number" class="form-control" name="priority" aria-describedby="inputGroupPrepend" required value="{!! $priority + 1 !!}">
        <span class="text-danger error_priority" style="display:none;">This field is required.</span>
    </div>


    <div class="col-md-12">
        <label for="detail" class="form-label">Details</label>
        <textarea class="form-control" max=100 id="detail" name="detail"></textarea>
    </div>
</form>
