<form class="row g-3 auto-width" action="{{ route('blog-categories.update', $data->id)}}" method="post" enctype='multipart/form-data'>
    @csrf
    @method('PUT')
    <div class="col-md-12">
        <label for="validationCustomTitle" class="form-label">Section <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="validationCustomTitle" name="name" aria-describedby="inputGroupPrepend" required value="{!! $data->name !!}">
        @if ($errors->has('name'))
        <span class="text-danger">{{ $errors->first('name') }}</span>
        @endif
        <span class="text-danger error_section" style="display: none;">This field is required.</span>
    </div>
    <div class="col-md-12">
        <label for="validationCustomTitle" class="form-label">Priority <span class="text-danger"><b>*</b></span></label>
        <input type="numer" class="form-control" id="validationCustomTitle" name="priority" aria-describedby="inputGroupPrepend" required value="{!! $data->priority !!}">
        @if ($errors->has('priority'))
        <span class="text-danger">{{ $errors->first('priority') }}</span>
        @endif
        <span class="text-danger error_name" style="display: none;">This field is required.</span>
    </div>
    <div class="col-md-12">
        <label for="validationCustomOrder" class="form-label">Is Featured </label>
        <input name="is_featured" class="form-check-inputFeatured btn-lg isFeatured" type="checkbox" id="inlineCheckboxFeatured" value="1" {!! ($data->is_featured == 1) ? 'checked' : '' !!}>
        @if ($errors->has('is_featured'))
        <span class="text-danger">{{ $errors->first('is_featured') }}</span>
        @endif
        <span class="text-danger error_name" style="display: none;">This field is required.</span>
    </div>
</form>
