@extends('Reports.template') @section('title') Product Consumption Data @endsection @section('ExternalCss') @parent @endsection @section('Content') @php $currentTime = \Carbon\Carbon::now(); if($consumptionBy == "SQ"){ $reportType = "Product Sales Qty"; $reportTitle = "Product Consumption By Sales Qty Data"; }elseif($consumptionBy == "SV"){ $reportType = "Product Sales Value"; $reportTitle = "Product Consumption By Sales Value Data"; }elseif($consumptionBy == "PQ"){ $reportType = "Product Purchase Qty"; $reportTitle = "Product Consumption By Purchase Qty Data"; }else{ $reportType = "Product Purchase Value"; $reportTitle = "Product Consumption By Purchase Value Data"; } @endphp @foreach($monthData as $value) @endforeach @php $sr = 1; $productNameTemp = ""; @endphp @foreach ($productConsumptionData as $value) @if($value->product_name != $productNameTemp) @foreach($monthData as $k=>$v) @php $consumption = $productWiseConsumptionData[$value->product_id][$k]; @endphp @if(($consumptionBy == "SQ")||($consumptionBy == "PQ")) @else @endif @endforeach @endif @php $productNameTemp = $value->product_name; @endphp @endforeach
@if($businessEntityMasterData[0]->logo != null) Pharmacy Logologo )}}"/> @endif
{{ $businessEntityMasterData[0]->name }}
{{$businessEntityMasterData[0]->add1. " " .$businessEntityMasterData[0]->add2 ." ".$businessEntityMasterData[0]->city." : " .$businessEntityMasterData[0]->pincode }}
{{"Phone : ".$businessEntityMasterData[0]->tel1}}
{{$reportTitle}} Store : {{$storeName}} As On : {{$currentTime->format('d/m/Y H:i:s ')}}
Sr No   Product Name Unit (SUOM) {{$reportType}}
{{$value}}
{{$sr++}}   {{ $value->product_name }} {{ $value->unit_abbrev }}{{\Helper::zeroValueToSpace($consumption)}}{{\Helper::customAmountFormat($consumption)}}
Back
@endsection @section('ExternalJs') @endsection