@php $totalCost = 0; $quantityBefourChange = 0; $quantityChange = 0; $quantityAfterChange = 0; $costAfterChange = 0; $inventoryValue = 0; $totalItemSold = 0; $totalItemOrder = 0; $totalItemPending = 0; $totalItemReceived = 0; @endphp @if(!empty($setActual)) @foreach($setActual as $key => $dList) @php //echo '
';print_r($dList);
	$totalCost += ($dList['product_cost'])?$dList['product_cost']:0.00;
	$quantityBefourChange += $dList['quantity_befour_change'];
	$quantityChange += $dList['quantity_change'];
	$quantityAfterChange += $dList['quantity_after_change'];
	//$inventoryValue += ($dList['inventory_value'])?$dList['inventory_value']:0.00;
	$totalItemSold += ($dList['total_item_sold'])?$dList['total_item_sold']:0.00;
	$totalItemOrder += ($dList['item_ordered_qty'])?$dList['item_ordered_qty']:0.00;
	$totalItemReceived += ($dList['item_received_qty'])?$dList['item_received_qty']:0.00;
	$totalItemPending += ($dList['item_remaining_qty'])?$dList['item_remaining_qty']:0.00;
@endphp
@endforeach
@else
	
@endif

{{ __('lbl.set_actual') }} Report

{{ __('lbl.from') }} {{$timeFilter['start']}} {{ __('lbl.to') }} {{$timeFilter['end']}}
{{ __('lbl.establishment') }} {{$storeName}}
{{ __('lbl.product_name') }} {{ __('lbl.cost') }} {{ __('lbl.qty_befour_change') }} {{ __('lbl.qty_change') }} {{ __('lbl.qty_after_change') }} {{ __('lbl.inventory_value') }} {{ __('lbl.total_item_sold') }} {{ __('lbl.total_item_ordered') }} {{ __('lbl.total_item_pending') }} {{ __('lbl.total_item_received') }}
{{ $dList['product_name'] }}
SKU:{{$dList['product_sku']}}
Barcode:{{$dList['product_barcode']}}
{{storecurrency().$dList['product_cost']?number_format($dList['product_cost'],2) : 0.00 }} {{$dList['quantity_befour_change']}} {{$dList['quantity_change']}} {{$dList['quantity_after_change']}} {{storecurrency().$dList['inventory_value'] }} {{$dList['total_item_sold'] }} {{($dList['item_received_qty'])?$dList['item_received_qty']:0 }} {{($dList['item_ordered_qty'])?$dList['item_ordered_qty']:0 }} {{($dList['item_remaining_qty'])?$dList['item_remaining_qty']:0 }}
{{ __('lbl.no_record_found') }}
{{ __('lbl.total') }} {{storecurrency().number_format($totalCost,2) }} {{$quantityBefourChange }} {{$quantityChange }} {{$quantityAfterChange }} {{$totalItemSold}} {{$totalItemOrder}} {{$totalItemReceived}} {{$totalItemPending}}
@php //exit; @endphp