<form class="row g-3 auto-width sections" action="{{ route('sections.store')}}" method="post" enctype='multipart/form-data'>
    @csrf
    <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="section" aria-describedby="inputGroupPrepend" required>
        @if ($errors->has('section'))
        <span class="text-danger">{{ $errors->first('section') }}</span>
        @endif
        <span class="text-danger error_section" 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 type="text" class="form-control" id="code" name="code" aria-describedby="inputGroupPrepend" required>
        <span class="text-danger error_code" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-12">
        <label for="validationCustomTitle" class="form-label">Priority </label>
        <input type="number" class="form-control" name="priority" aria-describedby="inputGroupPrepend" required value="{!! $priority + 1 !!}">
        @if ($errors->has('priority'))
        <span class="text-danger">{{ $errors->first('priority') }}</span>
        @endif
        <span class="text-danger error_priority" style="display: none;">This field is required.</span>
    </div>
</form>
