@php $i =1; $j =1; $color = []; if (count($product->sizeChild) > 0) { if ($request->type == 1){ $size = $product->sizeChild; } else { $size = $product->storeSerial->pluck('size')->unique('id'); $grpBySize = $product->storeSerial->groupBy('size_id'); } } @endphp @if ($product->expiarable_product == 1 && $request->tran_type != 8 && $request->tran_type != 9) @include('inventory.global.product_serial.warrenty') @endif {{-- --}} @if ($product->serialized_product == 1)
@endif @if (count($product->colorChild) > 0) @php $color = $product->colorChild; @endphp
@elseif (count($product->sizeChild) > 0)
@else
@endif @if ($product->size_id || $product->color_id) @php $size_len = count($size); @endphp @foreach($size as $skey => $s) @php $clr_center = intval(count($color)/2); @endphp @foreach($color as $ckey => $c)
serialized_product != 1 ? 'step=".01"' : 'readonly') }} value="0" min="0" id="quantity{{ $index }}{{ $j }}" name="quantity{{ $index }}[]" {{ (($product->serialized_product == 1) ? 'onchange="addSerialField('.$index.', '.$j.', this.value, '.$product->manufacture_code.')"' : '') }} class="form-control addQty{{ $index }}">
@if ($product->serialized_product == 1)
@endif
@php $j++; @endphp @endforeach @if ($j == 1)
serialized_product != 1? 'step=".01"' : 'readonly') }} min="0" id="quantity{{ $index }}{{ $i }}" name="quantity{{ $index }}[]" {{ (($product->serialized_product == 1) ? 'onchange="addSerialField('.$index.', '.$i.', this.value, '.$product->manufacture_code.')"':' ')}} class="form-control addQty{{ $index }}">
@endif @php $i++; @endphp @if($skey < ($size_len-1))
@endif @endforeach @else
serialized_product != 1? 'step=".01"':'readonly') }} min="0" id="quantity{{ $index }}1" name="quantity{{ $index }}[]" {{ (($product->serialized_product == 1) ? 'onchange="addSerialField('.$index.', 1, this.value, '.$product->manufacture_code.')"' : '') }} class="form-control addQty{{ $index }}">
@endif