@php
$p=1;
@endphp
@forelse ($orderedProduct as $i=>$item)
| {{ ($p++) }} |
{{ $item->first()->product->name_eng }}
|
{{ $transactions->where('product_id',$i)->where('dr_cr',1)->sum('quantity')-$transactions->where('product_id',$i)->where('dr_cr',2)->sum('quantity') }}
|
{{ $transactions->where('product_id',$i)->where('transaction_type','!=',3)->sum('order_qty') }}
|
@forelse ($showRooms as $k=>$showRoom)
@if($k!='')
{{ $item->where('party_id',$k)->where('transaction_type','!=',3)->sum('order_qty') }} |
|
@endif
@empty
@endforelse
@php
$closing= ($transactions->where('product_id',$i)->where('dr_cr',1)->sum('quantity')-$transactions->where('product_id',$i)->where('dr_cr',2)->sum('quantity')) - $item->where('transaction_type','!=',3)->sum('allocated_qty');
@endphp
{{$item->where('transaction_type','!=',3)->sum('allocated_qty') }} |
{{ $closing }} |
|
@empty
@endforelse