{{ Form::label('client_id', __('messages.invoice.client') . ':', ['class' => 'form-label required mb-3']) }} {{ Form::select('client_id', $clients, $client_id ?? null, ['class' => 'form-select io-select2', 'id' => 'client_id', 'placeholder' => __('messages.invoice.client'), 'required', 'data-control' => 'select2']) }}
@if (!empty(getSettingValue('invoice_no_prefix')) || !empty(getSettingValue('invoice_no_suffix')))
{{ Form::label('paid_amount', __('messages.invoice.invoice_number') . ':', ['class' => 'form-label mb-3 required']) }}
@if (!empty(getSettingValue('invoice_no_prefix'))) {{ getSettingValue('invoice_no_prefix') }} @endif {{ Form::text('invoice_id', \App\Models\Invoice::generateUniqueInvoiceId(), ['class' => 'form-control', 'required', 'id' => 'invoiceId', 'maxlength' => 6, 'onkeypress' => 'return blockSpecialChar(event)']) }} @if (!empty(getSettingValue('invoice_no_suffix'))) {{ getSettingValue('invoice_no_suffix') }} @endif
@else
{{ __('messages.invoice.invoice') }} # {{ Form::text('invoice_id', \App\Models\Invoice::generateUniqueInvoiceId(), ['class' => 'form-control mt-3', 'required', 'id' => 'invoiceId', 'maxlength' => 6, 'onkeypress' => 'return blockSpecialChar(event)']) }}
@endif
{{ Form::label('invoice_date', __('messages.invoice.invoice_date') . ':', ['class' => 'form-label required mb-3']) }} {{ Form::text('invoice_date', null, ['class' => 'form-select', 'id' => 'invoice_date', 'autocomplete' => 'off', 'required']) }}
{{ Form::label('due_date', __('messages.invoice.due_date') . ':', ['class' => 'form-label required mb-3']) }} {{ Form::text('due_date', null, ['class' => 'form-select', 'id' => 'due_date', 'autocomplete' => 'off', 'required']) }}
{{ Form::label('status', __('messages.common.status') . ':', ['class' => 'form-label required mb-3']) }} {{ Form::select('status', $statusArr, null, ['class' => 'form-select io-select2', 'id' => 'status', 'required', 'data-control' => 'select2']) }}
{{ Form::label('templateId', __('messages.setting.invoice_template') . ':', ['class' => 'form-label mb-3']) }} {{ Form::select('template_id', $template, getInvoiceTemplateId() ?? null, ['class' => 'form-select io-select2', 'id' => 'templateId', 'required', 'data-control' => 'select2']) }}
{{ Form::label('payment_qr_code_id', __('messages.payment_qr_codes.payment_qr_code') . ':', ['class' => 'form-label mb-3']) }} {{ Form::select('payment_qr_code_id', $paymentQrCodes, $defaultPaymentQRCode ?? null, ['class' => 'form-select io-select2 payment-qr-code', 'data-control' => 'select2', 'placeholder' => 'Select Payment QR Code']) }}
{{ Form::label('invoiceCurrencyType', __('messages.setting.currencies') . ':', ['class' => 'form-label mb-3']) }}
{{ Form::label('recurringCycle', __('messages.invoice.recurring_cycle') . ':', ['class' => 'form-label mb-3']) }} {{ Form::number('recurring_cycle', null, ['class' => 'form-control', 'id' => 'recurringCycle', 'autocomplete' => 'off', 'placeholder' => __('messages.invoice.recurring_days'), 'oninput' => "validity.valid||(value=value.replace(/[e\+\-]/gi,''))"]) }}
# {{ __('messages.product.product') }} {{ __('messages.invoice.qty') }} {{ __('messages.product.unit_price') }} {{ __('messages.invoice.tax') }} {{ __('messages.invoice.amount') }} {{ __('messages.common.action') }}
1 {{ Form::select('product_id[]', $products, null, ['class' => 'form-select product io-select2', 'required', 'placeholder' => __('messages.quote.select_product'), 'data-control' => 'select2']) }} {{ Form::number('quantity[]', null, ['class' => 'form-control qty form-control-solid', 'required', 'type' => 'number', 'min' => '0', 'step' => '.01', 'oninput' => "validity.valid||(value=value.replace(/[e\+\-]/gi,''))"]) }} {{ Form::number('price[]', null, ['class' => 'form-control price-input price form-control-solid', 'oninput' => "validity.valid||(value=value.replace(/[e\+\-]/gi,''))", 'min' => '0', 'value' => '0', 'step' => '.01', 'pattern' => "^\d*(\.\d{0,2})?$", 'required', 'onKeyPress' => 'if(this.value.length==8) return false;']) }} @if (!getSettingValue('currency_after_amount')) {{ getCurrencySymbol() }} @endif 0.00 @if (getSettingValue('currency_after_amount')) {{ getCurrencySymbol() }} @endif
{{ Form::label('discount', __('messages.invoice.discount') . ':', ['class' => 'form-label mb-1']) }}
{{ Form::number('discount', 0, ['id' => 'discount', 'class' => 'form-control ', 'oninput' => "validity.valid||(value=value.replace(/[e\+\-]/gi,''))", 'min' => '0', 'value' => '0', 'step' => '.01', 'pattern' => "^\d*(\.\d{0,2})?$"]) }}
{{ Form::select('discount_type', $discount_type, 0, ['class' => 'form-select io-select2 discount-type', 'id' => 'discountType', 'data-control' => 'select2']) }}
{{ Form::label('tax2', __('messages.invoice.tax') . ':', ['class' => 'form-label mb-1']) }}
{{ __('messages.invoice.sub_total') . ':' }} @if (!getSettingValue('currency_after_amount')) {{ getCurrencySymbol() }} @endif 0 @if (getSettingValue('currency_after_amount')) {{ getCurrencySymbol() }} @endif
{{ __('messages.invoice.discount') . ':' }} @if (!getSettingValue('currency_after_amount')) {{ getCurrencySymbol() }} @endif 0 @if (getSettingValue('currency_after_amount')) {{ getCurrencySymbol() }} @endif
{{ __('messages.invoice.total_tax') . ':' }} @if (!getSettingValue('currency_after_amount')) {{ getCurrencySymbol() }} @endif 0 @if (getSettingValue('currency_after_amount')) {{ getCurrencySymbol() }} @endif
{{ __('messages.invoice.total') . ':' }} @if (!getSettingValue('currency_after_amount')) {{ getCurrencySymbol() }} @endif 0 @if (getSettingValue('currency_after_amount')) {{ getCurrencySymbol() }} @endif
{{ Form::label('note', __('messages.invoice.note') . ':', ['class' => 'form-label fs-6 fw-bolder text-gray-700 mb-3', 'rows' => '5']) }} {{ Form::textarea('note', null, ['class' => 'form-control', 'id' => 'note']) }}
{{ Form::label('term', __('messages.invoice.terms') . ':', ['class' => 'form-label fs-6 fw-bolder text-gray-700 mb-3', 'rows' => '5']) }} {{ Form::textarea('term', null, ['class' => 'form-control', 'id' => 'term']) }}
{{ Form::hidden('amount', 0, ['class' => 'form-control', 'id' => 'total_amount']) }} {{ Form::hidden('final_amount', 0, ['class' => 'form-control', 'id' => 'finalTotalAmt']) }}
{{ __('messages.common.cancel') }}