<form class="row g-3 auto-width tax_master" action="{{ route('voucher-track-status.update', $track->id) }}" method="post" enctype='multipart/form-data'
    id="source_form">
    @csrf
    @method("PATCH")
    <!-- Module code -->
    <div class="col-md-6">
        <label for="validationCustom01" class="form-label">Module Code <span class="text-danger"><b>*</b></span></label>
        <select class="form-control" name="module_code">
            @foreach ($module_code as $list)
            <option value="{{ $list->code }}" {{ $list->code == $track->module_code ? 'selected':'' }}>{{ $list->code }}</option>
            @endforeach
        </select>
        <span class="text-danger error_country_id" style="display:none;">This field is required.</span>
    </div>
    <!-- voucher code -->
    <div class="col-md-6">
        <label for="validationCustom01" class="form-label">Voucher Code <span class="text-danger"><b>*</b></span></label>
        <select class="form-control" name="voucher_code">
            @foreach ($voucher_master as $list)
            <option value="{{ $list->voucher_code }}" {{ $list->voucher_code == $track->voucher_code ? 'selected':'' }}>{{ $list->voucher_code }}</option>
            @endforeach
        </select>
        <span class="text-danger error_country_id" style="display:none;">This field is required.</span>
    </div>
    <!-- voucher  type code -->
    <div class="col-md-6">
        <label for="validationCustom01" class="form-label">Voucher Type Code <span class="text-danger"><b>*</b></span></label>
        <select class="form-control" name="voucher_type_code">
            @foreach ($voucher_type as $list)
            <option value="{{ $list->code }}" {{ $list->code == $track->voucher_type_code ? 'selected':'' }}>{{ $list->code }}</option>
            @endforeach
        </select>
        <span class="text-danger error_country_id" style="display:none;">This field is required.</span>
    </div>

    <!-- status name -->
    <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" required value="{{$track->status_name}}">
        <span class="text-danger error_status_name" style="display:none;">This field is required.</span>
    </div>
    <!-- status Code -->
    <div class="col-md-6">
        <label for="name" class="form-label">Status code <span class="text-danger"><b>*</b></span></label>
        <input type="text" disabled  class="form-control" id="status_code" name="status_code" aria-describedby="inputGroupPrepend" required value="{{$track->status_code}}">
        <span class="text-danger error_status_code" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-6">
        <label for="priority" class="form-label">Priority </label>
        <input type="number" class="form-control" id="priority" name="priority" aria-describedby="inputGroupPrepend" required value="{{$track->priority}}">
        <span class="text-danger error_priority" style="display:none;">This field is required.</span>
    </div>

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