<form class="row g-3 auto-width" action="{{ route('enquiry-types.update', $type->id)}}" method="post" enctype='multipart/form-data'>
    @csrf
    @method('patch')
    <div class="col-md-12">
        <label for="enquiry_type_name" class="form-label">Type Name <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="enquiry_type_name" name="enquiry_type_name" aria-describedby="inputGroupPrepend" required value="{{$type->enquiry_type_name}}">
        <span class="text-danger error_enquiry_type_name" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-12">
        <label for="enquiry_type_priority" class="form-label">Type Priority <span class="text-danger"><b>*</b></span></label>
        <input type="number" class="form-control" id="enquiry_type_priority" name="enquiry_type_priority" aria-describedby="inputGroupPrepend" required value="{{$type->enquiry_type_priority}}">
        <span class="text-danger error_enquiry_type_priority" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-12">
        <label for="enquiry_type_details" class="form-label">Type Description</label>
        <textarea class="form-control" id="enquiry_type_details" name="enquiry_type_details" required>{{$type->enquiry_type_details}}</textarea>
    </div>
</form>