@php error_reporting(0); function spencer_number_format($val){ return $val; } @endphp @if($report_type== 'RegionWise') @elseif($report_type== 'ProductWise') @endif
Area Sales Trend Summary Product Sales Trend Report Product: @foreach($product_info as $product_info1) {{$product_info1->item_name}}({{$product_info1->item_sku}}), @endforeach
Period From: {{date('M-Y',strtotime($start_date))}}
Period To: {{date('M-Y',strtotime($end_date))}}
@foreach($mnth_list as $month) @endforeach @foreach($mnth_list as $month) @php $ym = $month['year']."-".$month['month']; $terr_total += $terriwise[$pre_terr_id][$ym]; @endphp @endforeach @foreach($mnth_list as $month) @php $ym = $month['year']."-".$month['month']; $area_total += $areawise[$pre_area_id][$ym]; @endphp @endforeach @foreach($mnth_list as $month) @php $ym = $month['year']."-".$month['month']; @endphp @endforeach
Dist Name Town{{date('F-Y',strtotime("{$month['year']}-{$month['month']}-1"))}}Total
Territory {{$pre_terr_name}} Total {{spencer_number_format($terriwise[$pre_terr_id][$ym])}}{{spencer_number_format($terr_total)}}
Area {{$pre_area_name}} Total {{spencer_number_format($areawise[$pre_area_id][$ym])}}{{spencer_number_format($area_total)}}
GRAND TOTAL {{spencer_number_format($monthwise[$ym])}}{{spencer_number_format($grand_total)}}
@foreach($regions_data as $region) @endforeach
{{$region->region_name}} Total {{spencer_number_format($region->total_sale)}}
National {{spencer_number_format($national[0]->total_sale)}}