| @@ -3001,20 +3001,8 @@ class DealerController extends Controller | |||
| $d['retail_price'] = 129; | |||
| } | |||
| } | |||
| if(date('d/m/Y', strtotime($d['activation'])) >= '11/8/2020'){ | |||
| $countSeptemberR[] = $d; | |||
| } | |||
| }else { | |||
| if(date('d/m/Y', strtotime($d['activation'])) >= '11/8/2020'){ | |||
| $countSeptemberR[] = $d; | |||
| }else { | |||
| $combineData[] = $d; | |||
| } | |||
| } | |||
| } | |||
| // Store to combineData New Incentive September | |||
| foreach ($countSeptemberR as $key => $d) { | |||
| if(count($dataSeptemberR) >= 50){ | |||
| if(date('m/Y', strtotime($d['activation'])) == $month.'/'.$year){ | |||
| if($d['contract'] == '12'){ | |||
| @@ -3102,20 +3090,9 @@ class DealerController extends Controller | |||
| $d['retail_price'] = 249; | |||
| } | |||
| } | |||
| if(date('d/m/Y', strtotime($d['activation'])) >= '11/8/2020'){ | |||
| $countSeptemberB[] = $d; | |||
| } | |||
| }else { | |||
| if(date('d/m/Y', strtotime($d['activation'])) >= '11/8/2020'){ | |||
| $countSeptemberB[] = $d; | |||
| }else { | |||
| $combineData[] = $d; | |||
| } | |||
| $countSeptemberB[] = $d; | |||
| } | |||
| } | |||
| // Store to combineData New Incentive September | |||
| foreach ($countSeptemberB as $key => $d) { | |||
| if(count($dataSeptemberB) >= 50){ | |||
| if(date('m/Y', strtotime($d['activation'])) == $month.'/'.$year){ | |||
| if($d['contract'] == '12'){ | |||