{{ Form::label('client_id', __('messages.quote.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.quote.client'), 'required', 'data-control' => 'select2']) }}
{{ Form::label('quote_id', __('messages.quote.quote') . ' #', ['class' => 'form-label mb-3']) }} {{ Form::text('quote_id', \App\Models\Quote::generateUniqueQuoteId(), ['class' => 'form-control', 'required', 'id' => 'quoteId', 'maxlength' => 6, 'onkeypress' => 'return blockSpecialChar(event)']) }}
{{ Form::label('quote_date', __('messages.quote.quote_date') . ':', ['class' => 'form-label required mb-3']) }} {{ Form::text('quote_date', null, ['class' => 'form-select', 'id' => 'quote_date', 'autocomplete' => 'off', 'required']) }}
{{ Form::label('due_date', __('messages.quote.due_date') . ':', ['class' => 'form-label required mb-3']) }} {{ Form::text('due_date', null, ['class' => 'form-select', 'id' => 'quoteDueDate', '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, \App\Models\Setting::DEFAULT_TEMPLATE ?? null, ['class' => 'form-select', 'id' => 'templateId', 'required', 'data-control' => 'select2']) }}
# {{ __('messages.product.product') }} {{ __('messages.quote.qty') }} {{ __('messages.product.unit_price') }} {{ __('messages.quote.amount') }} {{ __('messages.common.action') }}
1 {{ Form::select('product_id[]', $products, null, ['class' => 'form-select product-quote io-select2', 'required', 'placeholder' => __('messages.quote.select_product'), 'data-control' => 'select2']) }} {{ Form::number('quantity[]', null, ['class' => 'form-control qty-quote', '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-quote', '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', 'id' => 'discountType', 'data-control' => 'select2']) }}
{{ __('messages.quote.sub_total') . ':' }} @if (!getSettingValue('currency_after_amount')) {{ getCurrencySymbol() }} @endif 0.00 @if (getSettingValue('currency_after_amount')) {{ getCurrencySymbol() }} @endif
{{ __('messages.quote.discount') . ':' }} @if (!getSettingValue('currency_after_amount')) {{ getCurrencySymbol() }} @endif 0.00 @if (getSettingValue('currency_after_amount')) {{ getCurrencySymbol() }} @endif
{{ __('messages.quote.total') . ':' }} @if (!getSettingValue('currency_after_amount')) {{ getCurrencySymbol() }} @endif 0 @if (getSettingValue('currency_after_amount')) {{ getCurrencySymbol() }} @endif
{{ Form::label('note', __('messages.quote.note') . ':', ['class' => 'form-label fs-6 fw-bolder text-gray-700 mb-3']) }} {{ Form::textarea('note', null, ['class' => 'form-control', 'id' => 'quoteNote', 'rows' => '5']) }}
{{ Form::label('term', __('messages.quote.terms') . ':', ['class' => 'form-label fs-6 fw-bolder text-gray-700 mb-3']) }} {{ Form::textarea('term', null, ['class' => 'form-control', 'id' => 'quoteTerm', 'rows' => '5']) }}
{{ Form::hidden('amount', 0, ['class' => 'form-control', 'id' => 'quoteTotalAmount']) }}
{{ __('messages.common.cancel') }}