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