<form class="row g-3 auto-width" action="{{ route('enquiry-qualities.update', $quality->id)}}" method="post" enctype='multipart/form-data'>
    @csrf
    @method('patch')

    <div class="col-md-12">
        <label for="enquiry_quality_name" class="form-label">Quality Name <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="enquiry_quality_name" name="enquiry_quality_name" aria-describedby="inputGroupPrepend" required value="{{$quality->enquiry_quality_name}}">
        <span class="text-danger error_enquiry_quality_name" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-12">
        <label for="code" class="form-label">Code <span class="text-danger"><b>*</b></span></label>
        <input readonly type="text" class="form-control" id="code" name="code" aria-describedby="inputGroupPrepend" required value="{{$quality->code}}">
        <span class="text-danger error_code" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-12">
        <label for="enquiry_quality_priority" class="form-label">Quality Priority <span class="text-danger"><b>*</b></span></label>
        <input type="number" class="form-control" id="enquiry_quality_priority" name="enquiry_quality_priority" aria-describedby="inputGroupPrepend" required value="{{$quality->enquiry_quality_priority}}">
        <span class="text-danger error_enquiry_quality_priority" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-6">
        <label for="color" class="form-label">Text Color <span class="text-danger"><b>*</b></span></label>
        <input type="color" class="form-control" style="width:55px;" id="color" name="color" aria-describedby="inputGroupPrepend" required value="{{$quality->color}}">
        <span class="text-danger error_color" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-6">
        <label for="bg_color" class="form-label">Background Color <span class="text-danger"><b>*</b></span></label>
        <input type="color" class="form-control" style="width:55px;" id="bg_color" name="bg_color" aria-describedby="inputGroupPrepend" required value="{{$quality->bg_color}}">
        <span class="text-danger error_bg_color" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-12">
        <label for="enquiry_quality_description" class="form-label">Quality Description</label>
        <textarea class="form-control" id="enquiry_quality_description" name="enquiry_quality_description" >{{$quality->enquiry_quality_description}}</textarea>
    </div>
</form>
