| } | } | ||||
| }else if(count($combineData) < 50){ | }else if(count($combineData) < 50){ | ||||
| if(date('m/Y', strtotime($d['activation'])) == $month.'/'.$year){ | if(date('m/Y', strtotime($d['activation'])) == $month.'/'.$year){ | ||||
| dd('kira ni pula'); | |||||
| if($d['contract'] == '12'){ | if($d['contract'] == '12'){ | ||||
| array_push($combineData, array( | array_push($combineData, array( | ||||
| 'index' => $d['index'], | 'index' => $d['index'], | ||||
| $update_dealer->total_claim = $c['total']; | $update_dealer->total_claim = $c['total']; | ||||
| $update_dealer->save(); | $update_dealer->save(); | ||||
| } | } | ||||
| // $i++; | |||||
| // array_push($final, array( | |||||
| // 'index' => $c['index'], | |||||
| // 'contract' => $c['contract'], | |||||
| // 'wo' => $c['wo'], | |||||
| // 'activated_dt' => $c['activation'], | |||||
| // 'name' => $c['name'], | |||||
| // 'address' => $c['address'], | |||||
| // 'package' => $c['package'], | |||||
| // 'retail_price' => $c['retail_price'], | |||||
| // 'incentives1' => $c['incentives1'], | |||||
| // 'incentives2' => $c['incentives2'], | |||||
| // 'total' => $c['total'], | |||||
| // 'claimed' => $c['claim'], | |||||
| // )); | |||||
| } | } | ||||
| } | } | ||||