@include('laravel-crm::partials.form.hidden',[ 'name' => 'products['.$value.'][delivery_product_id]', 'attributes' => [ 'wire:model' => 'delivery_product_id.'.$value, ] ]) @include('laravel-crm::partials.form.hidden',[ 'name' => 'products['.$value.'][order_product_id]', 'attributes' => [ 'wire:model' => 'order_product_id.'.$value, ] ]) @include('laravel-crm::partials.form.hidden',[ 'name' => 'products['.$value.'][product_id]', 'attributes' => [ 'wire:model' => 'product_id.'.$value, ] ]) @include('laravel-crm::partials.form.text',[ 'name' => 'products['.$value.'][name]', 'label' => ucfirst(__('laravel-crm::lang.name')), 'attributes' => [ 'wire:model' => 'name.'.$value, 'readonly' => 'readonly' ] ]) @if(!isset($fromOrder)) @endif
@if($fromOrder) @include('laravel-crm::partials.form.select',[ 'name' => 'products['.$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, ] ]) @else @include('laravel-crm::partials.form.select',[ 'name' => 'products['.$value.'][quantity]', 'label' => ucfirst(__('laravel-crm::lang.quantity')), 'options' => $this->delivery_quantities[$value], 'value' => $this->quantity[$value] ?? null, 'attributes' => [ 'wire:model' => 'quantity.'.$value, 'data-value' => $value, ] ]) @endif