has_tasks || ! empty($tasks) ? 'data-bind="visible: $root.hasItems"' : '') !!}> @if ($isTasks) @endif @if ($account->customLabel('product1')) @endif @if ($account->customLabel('product2')) @endif @if ($account->customLabel('product1')) @endif @if ($account->customLabel('product2')) @endif
{{ $invoiceLabels[$isTasks ? 'service' : 'item'] }} {{ $invoiceLabels['description'] }}{{ $account->present()->customLabel('product1') }}{{ $account->present()->customLabel('product2') }}{{ $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->customLabel('product1'), '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->customLabel('product2'), '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() !!}