| $dataAugustB = $this->returnDataB($company,'2020','8'); | $dataAugustB = $this->returnDataB($company,'2020','8'); | ||||
| $dataSeptember = $this->returnDataR($company,'2020','9'); | $dataSeptember = $this->returnDataR($company,'2020','9'); | ||||
| $dataOctober = $this->returnDataR($company,'2020','10'); | $dataOctober = $this->returnDataR($company,'2020','10'); | ||||
| foreach ($dataAugustR as $key => $d) { | foreach ($dataAugustR as $key => $d) { | ||||
| if(date('m/Y', strtotime($d['submission'])) == $month.'/'.$year){ | if(date('m/Y', strtotime($d['submission'])) == $month.'/'.$year){ | ||||
| if(date('d/m/Y', strtotime($d['submission'])) >= '11/8/2020'){ | if(date('d/m/Y', strtotime($d['submission'])) >= '11/8/2020'){ | ||||
| $countAugustR[] = $d; | $countAugustR[] = $d; | ||||
| } | } | ||||
| }else { | |||||
| if(date('m/Y', strtotime($d['activation'])) == $month.'/'.$year){ | |||||
| $combineData[] = $d; | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| // Store to combineData New Incentive August | // Store to combineData New Incentive August | ||||
| $countAugustB[] = $d; | $countAugustB[] = $d; | ||||
| } | } | ||||
| }else { | |||||
| if(date('m/Y', strtotime($d['activation'])) == $month.'/'.$year){ | |||||
| $combineData[] = $d; | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| // Store to combineData New Incentive August | // Store to combineData New Incentive August |