|
@include('laravel-crm::partials.form.hidden',[
'name' => 'purchaseOrderLines['.$value.'][order_product_id]',
'attributes' => [
'wire:model' => 'order_product_id.'.$value,
]
])
@include('laravel-crm::partials.form.hidden',[
'name' => 'purchaseOrderLines['.$value.'][purchase_order_line_id]',
'attributes' => [
'wire:model' => 'purchase_order_line_id.'.$value,
]
])
@if($fromOrder)
@include('laravel-crm::partials.form.hidden',[
'name' => 'purchaseOrderLines['.$value.'][product_id]',
'attributes' => [
'wire:model' => 'product_id.'.$value,
]
])
@include('laravel-crm::partials.form.text',[
'name' => 'purchaseOrderLines['.$value.'][name]',
'label' => ucfirst(__('laravel-crm::lang.name')),
'attributes' => [
'wire:model' => 'name.'.$value,
'readonly' => 'readonly'
]
])
@else
@include('laravel-crm::partials.form.select',[
'name' => 'purchaseOrderLines['.$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)
|
@if($fromOrder)
@include('laravel-crm::partials.form.text',[
'name' => 'purchaseOrderLines['.$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' => 'purchaseOrderLines['.$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' => 'purchaseOrderLines['.$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' => 'purchaseOrderLines['.$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' => 'purchaseOrderLines['.$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' => 'purchaseOrderLines['.$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' => 'purchaseOrderLines['.$value.'][comments]',
'label' => ucfirst(__('laravel-crm::lang.comments')),
'attributes' => [
'wire:model' => 'comments.'.$value,
'readonly' => 'readonly'
]
])
@else
@include('laravel-crm::partials.form.text',[
'name' => 'purchaseOrderLines['.$value.'][comments]',
'label' => ucfirst(__('laravel-crm::lang.comments')),
'attributes' => [
'wire:model' => 'comments.'.$value,
]
])
@endif
|