<form class="row g-3 auto-width primary_unit" method="post" action="{{ route('primary-units.store')}}" id="primary_unit_form">
    @csrf
    @method('post')
    <div class="col-12">
        <label for="description" 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_primary_name" style="display:none;">This field is required.</span>
    </div>
    <div class="col-6">
        <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-6">
        <label for="unit_type" class="form-label">Unit Type<span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control unit_type" id="unit_type" name="unit_type" aria-describedby="inputGroupPrepend" placeholder="Unit Type">
        <span class="text-danger error_unit_type" style="display:none;">This field is required.</span>
    </div>
    <div class="col-12">
        <label for="code" class="form-label">Priority<span class="text-danger"><b></b></span></label>
        <input type="text" class="form-control" id="priority" name="priority" aria-describedby="inputGroupPrepend" placeholder="priority" value="{!! $priority+1 !!}">
    </div>
    <div class="col-12">
        <label for="description" class="form-label">Description
        </label>
        <textarea name="description" id="description" class="form-control description" cols="30" rows="2"></textarea>
    </div>
</form>