@include('laravel-crm::partials.form.hidden',[ 'name' => 'invoiceLines['.$value.'][order_product_id]', 'attributes' => [ 'wire:model' => 'order_product_id.'.$value, ] ]) @include('laravel-crm::partials.form.hidden',[ 'name' => 'invoiceLines['.$value.'][invoice_line_id]', 'attributes' => [ 'wire:model' => 'invoice_line_id.'.$value, ] ]) @if($fromOrder) @include('laravel-crm::partials.form.hidden',[ 'name' => 'invoiceLines['.$value.'][product_id]', 'attributes' => [ 'wire:model' => 'product_id.'.$value, ] ]) @include('laravel-crm::partials.form.text',[ 'name' => 'invoiceLines['.$value.'][name]', 'label' => ucfirst(__('laravel-crm::lang.name')), 'attributes' => [ 'wire:model' => 'name.'.$value, 'readonly' => 'readonly' ] ]) @else @include('laravel-crm::partials.form.select',[ 'name' => 'invoiceLines['.$value.'][product_id]', 'label' => ucfirst(__('laravel-crm::lang.name')), 'options' => [ $this->product_id[$value] ?? null => $this->name[$value] ?? null, ], 'value' => $this->product_id[$value] ?? null, 'attributes' => [ 'wire:model' => 'product_id.'.$value, 'data-value' => $value ] ]) @endif @if(!$fromOrder) @endif @if($fromOrder) @include('laravel-crm::partials.form.text',[ 'name' => 'invoiceLines['.$value.'][price]', 'label' => ucfirst(__('laravel-crm::lang.price')), 'type' => 'number', 'prepend' => '', 'attributes' => [ 'wire:model' => 'price.'.$value, 'wire:change' => 'calculateAmounts', 'step' => .01, 'readonly' => 'readonly' ] ]) @else @include('laravel-crm::partials.form.text',[ 'name' => 'invoiceLines['.$value.'][price]', 'label' => ucfirst(__('laravel-crm::lang.price')), 'type' => 'number', 'prepend' => '', 'attributes' => [ 'wire:model' => 'price.'.$value, 'wire:change' => 'calculateAmounts', 'step' => .01 ] ]) @endif @if($fromOrder) @include('laravel-crm::partials.form.select',[ 'name' => 'invoiceLines['.$value.'][quantity]', 'label' => ucfirst(__('laravel-crm::lang.quantity')), 'options' => $this->order_quantities[$value], 'value' => $this->quantity[$value] ?? null, 'attributes' => [ 'wire:model' => 'quantity.'.$value, 'data-value' => $value, 'wire:change' => 'calculateAmounts' ] ]) @else @include('laravel-crm::partials.form.text',[ 'name' => 'invoiceLines['.$value.'][quantity]', 'label' => ucfirst(__('laravel-crm::lang.quantity')), 'type' => 'number', 'attributes' => [ 'wire:model' => 'quantity.'.$value, 'wire:change' => 'calculateAmounts' ] ]) @endif @include('laravel-crm::partials.form.text',[ 'name' => 'invoiceLines['.$value.'][tax_amount]', 'label' => $taxName . ' (' . $tax_rate[$value] . '%)', 'type' => 'number', 'prepend' => '', 'attributes' => [ 'wire:model' => 'tax_amount.'.$value, 'step' => .01, 'readonly' => 'readonly' ] ]) @include('laravel-crm::partials.form.text',[ 'name' => 'invoiceLines['.$value.'][amount]', 'label' => ucfirst(__('laravel-crm::lang.amount')), 'type' => 'number', 'prepend' => '', 'attributes' => [ 'wire:model' => 'amount.'.$value, 'step' => .01, 'readonly' => 'readonly' ] ]) @if($fromOrder) @include('laravel-crm::partials.form.text',[ 'name' => 'invoiceLines['.$value.'][comments]', 'label' => ucfirst(__('laravel-crm::lang.comments')), 'attributes' => [ 'wire:model' => 'comments.'.$value, 'readonly' => 'readonly' ] ]) @else @include('laravel-crm::partials.form.text',[ 'name' => 'invoiceLines['.$value.'][comments]', 'label' => ucfirst(__('laravel-crm::lang.comments')), 'attributes' => [ 'wire:model' => 'comments.'.$value, ] ]) @endif