<form class="row g-3 auto-width budget_types" action="{{ route('budget-types.store')}}" method="post" enctype='multipart/form-data'>
    @csrf
    <div class="col-md-12">
        <label for="validationCustomTitle" 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>
    <div class="col-md-12">
        <label for="budget_calculation" class="form-label" >Budget Calculation <span class="text-danger"><b>*</b></span></label>
        <select class="form-select" aria-label="budget_calculation" name="budget_calculation">
            <option selected value="">Select Budget Calculation</option>
            <option value="income">Income</option>
            <option value="expense">Expense</option>
          </select>
        <span class="text-danger error_budget_calculation" style="display:none;">This field is required.</span>
    </div>
    <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>
