{{-- is_before_tax --}}
{{ Form::label('is_before_tax', __('Deduction Calculation'), ['class' => 'col-form-label']) }} {!! Form::select('is_before_tax', ['1' => 'Excluding Tax (Before Tax)', '0' => 'Including Tax (After Tax)'], @$invoiceItem->deduction ? (@$invoiceItem->deduction->is_before_tax ? 1 : 0) : ($invoiceItem->invoice->is_deduction_excluding_vat ? 1 : 0), ['class' => 'form-select', 'data-kt-select2' => 'true', 'id' => 'is_before_tax', 'disabled' => 'disabled']) !!}
{{-- Downpayment Deduction --}}
{{ Form::label('downpayment_id', __(' Down payment'), ['class' => 'col-form-label']) }}
{{-- is_fixed_amount --}}
{{-- Downpayment Rates --}}
{{ Form::label('dp_rate_id', __('Down payment Rate'), ['class' => 'col-form-label']) }}
{{-- calculation_source --}}
{{ Form::label('calculation_source', __('Percentage Calculation Source'), ['class' => 'col-form-label']) }} {!! Form::select('calculation_source', ['Deductible' => 'Item Total', 'Down Payment' => 'Down Payment Total'], $invoiceItem->deduction->calculation_source ??null, [ 'class' => 'form-control', 'data-kt-select2' => 'true', 'data-placeholder' => __('Calculation Source'), 'data-allow-clear' => 'true', ])!!}
{{-- Downpayment Deduction --}}
{{ Form::label('downpayment_amount', __('Downpayment Amount'), ['class' => 'col-form-label']) }} {!! Form::number('downpayment_amount', @$invoiceItem->deduction->manual_amount ? @$invoiceItem->deduction->manual_amount : ($invoiceItem->deduction->amount ?? 0), [ 'class' => 'form-control', 'disabled' => @$invoiceItem->deduction->dp_rate_id ? true : false, 'placeholder' => __('Downpayment Amount') ]) !!}
{{-- Adjust Deduction --}}