<form class="row g-3 auto-width" action="{{ route('enquiry-categories.update', $category->id)}}" method="post" enctype='multipart/form-data'>
    @csrf
    @method('patch')
    <div class="col-md-12">
        <label for="category_name" class="form-label">Category Name <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="category_name" name="category_name" value="{{$category->category_name}}" aria-describedby="inputGroupPrepend" required>
        <span class="text-danger error_category" style="display: none;">This field is required.</span>
        @if ($errors->has('category_name'))
            <span class="text-danger">{{ $errors->first('category_name') }}</span>
        @endif
    </div>
    <div class="col-md-12">
        <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="{{$category->priority}}">
        <span class="text-danger error_priority" style="display:none;">This field is required.</span>
    </div>
</form>