@php error_reporting(0); function spencer_number_format($val){ return $val; } @endphp
Territorial 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_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 ID 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)}}