<form class="row g-3 auto-width payment" action="{{ route('account-payments.store')}}" method="post" enctype='multipart/form-data'>
    @csrf
    <input type="hidden" name="account_id" data-id="{!! $id !!}">
    <div class="col-md-12">
        <div>
            <label for="payment_mode_id" class="form-label">Payment Mode <span class="text-danger"><b>*</b></span></label>
        </div>
        <div class="input-group">
            <select class="single-select form-control" name="payment_mode_id">
                @foreach($types as $list)
                <option value="{{ $list->id }}" {!! $list->is_default == 1 ? 'selected' : '' !!}>{{ $list->mode }}</option>
                @endforeach
            </select>
        </div>
        <span class="text-danger error_payment_mode_id" style="display: none;">This field is required.</span>
    </div>
    <div class="col-md-12">
        <label for="priority" 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" required value="{!! $priority + 1 !!}">
        <span class="text-danger error_priority" style="display: none;">This field is required.</span>
    </div>
</form>