| } | } | ||||
| if(!empty($count_businessCyber)){ | if(!empty($count_businessCyber)){ | ||||
| dd($count_businessCyber[0]['retail_price']); | |||||
| for ($i=0;$i<count($count_businessCyber);$i++){ | for ($i=0;$i<count($count_businessCyber);$i++){ | ||||
| info('i' . $i); | |||||
| for($j=0;$j<51;$j++){ | for($j=0;$j<51;$j++){ | ||||
| info('j' . $j); | |||||
| $total = number_format(floatval(str_replace("RM ", "", $count_businessCyber[$j]['retail_price'])) * 2.0, 2); | $total = number_format(floatval(str_replace("RM ", "", $count_businessCyber[$j]['retail_price'])) * 2.0, 2); | ||||
| array_push($combineData, array( | array_push($combineData, array( | ||||
| 'index' => $count_businessCyber[$j]['index'], | 'index' => $count_businessCyber[$j]['index'], |