@foreach($product->colors as $color) {{$product->product_code}} {{ $vendor->name }} {{ $color->name }} @php $productSizes=$product->sizes->pluck('size')->toArray() @endphp {{ min($productSizes) .'-'. max($productSizes) }} @foreach($sizes as $size) @php $qty='' @endphp @if(in_array($size->size_id,$product_sizes)) @isset($sizeArr[$product->id][$color->id][$size->size_id]) @php $qty=$sizeArr[$product->id][$color->id][$size->size_id] @endphp @endisset @endif @endforeach {{ $product->po_fob }} {{ $product->freight_duty }} {{ ($product->fabrics) ? implode('/',$product->fabrics->pluck('name')->toArray()) : '' }} @endforeach