has_tasks || ! empty($tasks) ? 'data-bind="visible: $root.hasItems"' : '') !!}> @if ($isTasks) @endif @if ($account->showCustomField('custom_invoice_item_label1')) @endif @if ($account->showCustomField('custom_invoice_item_label2')) @endif @if ($account->showCustomField('custom_invoice_item_label1')) @endif @if ($account->showCustomField('custom_invoice_item_label2')) @endif
{{ $invoiceLabels[$isTasks ? 'service' : 'item'] }} {{ $invoiceLabels['description'] }}{{ $account->present()->customProductLabel1 }}{{ $account->present()->customProductLabel2 }}{{ $invoiceLabels[$isTasks ? 'rate' : 'unit_cost'] }} {{ $invoiceLabels[$isTasks ? 'hours' : 'quantity'] }} {{ $invoiceLabels['discount'] }} {{ trans('texts.tax') }} {{ trans('texts.line_total') }}
@include('partials.custom_field', [ 'field' => 'custom_invoice_item_label1', 'label' => $account->custom_invoice_item_label1, 'databind' => "value: custom_value1, valueUpdate: 'afterkeydown', attr: {name: 'invoice_items[" . ($isTasks ? 'T' : '') . "' + \$index() + '][custom_value1]'}", 'raw' => true, ]) @include('partials.custom_field', [ 'field' => 'custom_invoice_item_label2', 'label' => $account->custom_invoice_item_label2, 'databind' => "value: custom_value2, valueUpdate: 'afterkeydown', attr: {name: 'invoice_items[" . ($isTasks ? 'T' : '') . "' + \$index() + '][custom_value2]'}", 'raw' => true, ]) {!! Former::select('') ->addOption('', '') ->options($taxRateOptions) ->data_bind('value: tax1, event:{change:onTax1Change}') ->addClass($account->enable_second_tax_rate ? 'tax-select' : '') ->raw() !!}
{!! Former::select('') ->addOption('', '') ->options($taxRateOptions) ->data_bind('value: tax2, event:{change:onTax2Change}') ->addClass('tax-select') ->raw() !!}