<form class="row g-3 auto-width" action="{{ route('enquiry-statuses.update', $status->id)}}" method="post" enctype='multipart/form-data'>
    @csrf
    @method('patch')
    <div class="col-md-12">
        <label for="enquiry_status_name" class="form-label">Status Name <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="enquiry_status_name" name="enquiry_status_name" aria-describedby="inputGroupPrepend" required value="{{$status->enquiry_status_name}}">
        <span class="text-danger error_enquiry_status_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="{{$status->code}}">
        <span class="text-danger error_code" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-12">
        <label for="enquiry_status_priority" class="form-label">Status Priority <span class="text-danger"><b>*</b></span></label>
        <input type="number" class="form-control" id="enquiry_status_priority" name="enquiry_status_priority" aria-describedby="inputGroupPrepend" required value="{{$status->enquiry_status_priority}}">
        <span class="text-danger error_enquiry_status_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="{{$status->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="{{$status->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_status_description" class="form-label">Status Description</label>
        <textarea class="form-control" id="enquiry_status_description" name="enquiry_status_description" required>{{$status->enquiry_status_description}}</textarea>
    </div>
</form>
