@include('laravel-crm::partials.form.hidden',[ 'name' => 'products['.$value.'][quote_product_id]', 'attributes' => [ 'wire:model' => 'quote_product_id.'.$value, ] ]) @include('laravel-crm::partials.form.select',[ 'name' => 'products['.$value.'][product_id]', 'label' => ucfirst(__('laravel-crm::lang.name')), 'options' => [ $this->product_id[$value] ?? null => $this->name[$value] ?? null, ], 'attributes' => [ 'wire:model' => 'product_id.'.$value, 'data-value' => $value ] ])
@include('laravel-crm::partials.form.text',[ 'name' => 'products['.$value.'][unit_price]', 'label' => ucfirst(__('laravel-crm::lang.price')), 'type' => 'number', 'prepend' => '', 'attributes' => [ 'wire:model' => 'unit_price.'.$value, 'wire:change' => 'calculateAmounts', 'step' => .01 ] ]) @include('laravel-crm::partials.form.text',[ 'name' => 'products['.$value.'][quantity]', 'label' => ucfirst(__('laravel-crm::lang.quantity')), 'type' => 'number', 'attributes' => [ 'wire:model' => 'quantity.'.$value, 'wire:change' => 'calculateAmounts' ] ]) @include('laravel-crm::partials.form.text',[ 'name' => 'products['.$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' => 'products['.$value.'][amount]', 'label' => ucfirst(__('laravel-crm::lang.amount')), 'type' => 'number', 'prepend' => '', 'attributes' => [ 'wire:model' => 'amount.'.$value, 'step' => .01, 'readonly' => 'readonly' ] ])
@include('laravel-crm::partials.form.text',[ 'name' => 'products['.$value.'][comments]', 'label' => ucfirst(__('laravel-crm::lang.comments')), 'attributes' => [ 'wire:model' => 'comments.'.$value, ] ])