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

</form>
