<form class="row g-3 auto-width" action="{{ route('sections.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="section" aria-describedby="inputGroupPrepend" required value="{!! $data->section !!}">
        @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 readonly 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 <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>
</form>
