{{$distrubutor['name']}}
Date: {{date('l, d-F-Y')}} Stock Report
{{-- --}} @if (collect($result)->count()>0) @foreach (collect($result) as $item) @if (collect($item->data['sellable'])->count()>0) @foreach ($item->data['sellable'] as $stock) {{-- --}} @if(collect($stock->prefs)->count()>0) @php $t = 0; @endphp @foreach ($stock->prefs as $pref) @php $t++ @endphp @endforeach @if((3-$t>0)) @for($i=1; $i<=(3-$t); $i++) @endfor @endif @else @endif @if(collect($stock->prefs)->count()>0) @php $t = 0; @endphp @foreach ($stock->prefs as $pref) @php $t++ @endphp @endforeach @if((3-$t>0)) @for($i=1; $i<=(3-$t); $i++) @endfor @endif @else @endif @endforeach @endif @if (collect($item->data['sellable_total'])->count()>0) @foreach ($item->data['sellable_total'] as $unit) @endforeach @endif @if (collect($item->data['damaged_total'])->count()>0) @foreach ($item->data['damaged_total'] as $unit) @endforeach @endif @endforeach @endif
Code ProductCategorySellable Damaged
Cartons/Bundles Box/Strips Pieces Cartons/Bundles Box/Strips Pieces
Brand: {{$item->brand_name}} Category: {{$item->main_category_name}}
{{$stock->item_sku}} {{$stock->item_name}}{{$stock->sub_category_name}}{{ ( ($pref['total_after_damage'] > 0) && $stock->resultType == 'minus') ? '-' : '' }}{{$pref['total_after_damage']}}0{{$pref['total_damage']}}0
Total:{{$unit->total_inventory}}{{$unit->total_inventory}}