@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)
@php
$j++;
@endphp
@endforeach
@if ($j == 1)
@endif
@php
$i++;
@endphp
@if($skey < ($size_len-1))
@endif
@endforeach
@else
@endif