@php error_reporting(0); function spencer_number_format($val){ return $val; } @endphp
Company Sales Trend Summary
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_area_id][$ym]; @endphp @endforeach @foreach($mnth_list as $month) @php $ym = $month['year']."-".$month['month']; $area_total += $areawise[$pre_region_id][$ym]; @endphp @endforeach @foreach($mnth_list as $month) @php $ym = $month['year']."-".$month['month']; @endphp @endforeach
Dist ID Dist Name Region Area Territory Town{{date('F-Y',strtotime("{$month['year']}-{$month['month']}-1"))}}Total
Area {{$pre_area_name}} Total {{spencer_number_format($terriwise[$pre_area_id][$ym])}}{{spencer_number_format($terr_total)}}
Region {{$pre_region_name}} Total {{spencer_number_format($areawise[$pre_region_id][$ym])}}{{spencer_number_format($area_total)}}
GRAND TOTAL {{spencer_number_format($monthwise[$ym])}}{{spencer_number_format($grand_total)}}