<form class="row g-3 auto-width" method="post" action="{{ route('departments.store')}}" id="department_form">
    @csrf
    @method('post')
    <div class="col-12">
        <label for="name" class="form-label">Name<span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control name" id="name" name="name" aria-describedby="inputGroupPrepend" placeholder="Name">
        <span class="text-danger error_department_name" style="display:none;">This field is required.</span>
    </div>
    <div class="col-12">
        <label for="code" class="form-label">code<span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control code" id="code" name="code" aria-describedby="inputGroupPrepend" placeholder="code">
        <span class="text-danger error_code" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-6">
        <label for="priority" class="form-label">Priority </label>
        <input type="number" class="form-control" name="priority" aria-describedby="inputGroupPrepend" required value="{!! $priority + 1 !!}">
        <span class="text-danger error_priority" style="display:none;">This field is required.</span>
    </div>
    <div class="col-6">
        <label for="details" class="form-label">Description
        </label>
        <textarea name="description" id="details" class="form-control details" cols="30" rows="2"></textarea>
    </div>
</form>
