| public function viewFormPackageD(Request $request) | public function viewFormPackageD(Request $request) | ||||
| { | { | ||||
| $data = array(); | $data = array(); | ||||
| if ($request->coverage == 'CYBERJAYA' && $request->subscription == '24') { | |||||
| $ip = $request->ip1; | |||||
| } else { | |||||
| $ip = $request->ip; | |||||
| } | |||||
| array_push($data, array( | array_push($data, array( | ||||
| 'coverage' => $request->coverage, | 'coverage' => $request->coverage, | ||||
| 'unit' => $request->unit, | 'unit' => $request->unit, | ||||
| 'company_fax' => $request->company_fax, | 'company_fax' => $request->company_fax, | ||||
| 'full_name' => $request->full_name, | 'full_name' => $request->full_name, | ||||
| 'nric_passport' => $request->nric_passport, | 'nric_passport' => $request->nric_passport, | ||||
| 'ip' => $request->ip, | |||||
| 'ip' => $ip, | |||||
| 'designation' => $request->designation, | 'designation' => $request->designation, | ||||
| 'contact_primary' => $request->contact_primary, | 'contact_primary' => $request->contact_primary, | ||||
| 'contact_secondary' => $request->contact_secondary, | 'contact_secondary' => $request->contact_secondary, | ||||
| $total = number_format((floatval($product->retail_price) * 1.06) + ($otc * 1.06) + $deposit + $ip_tax, 2); | $total = number_format((floatval($product->retail_price) * 1.06) + ($otc * 1.06) + $deposit + $ip_tax, 2); | ||||
| if ($request->coverage == 'CYBERJAYA' && $request->subscription == '24'){ | |||||
| $ip = $request->ip1; | |||||
| } else { | |||||
| $ip = $request->ip; | |||||
| } | |||||
| array_push($data, array( | array_push($data, array( | ||||
| 'coverage' => $request->coverage, | 'coverage' => $request->coverage, | ||||
| 'unit' => $request->unit, | 'unit' => $request->unit, | ||||
| 'subscription' => $request->subscription, | 'subscription' => $request->subscription, | ||||
| 'billing' => $request->billing, | 'billing' => $request->billing, | ||||
| 'voice' => $voice, | 'voice' => $voice, | ||||
| 'ip' => $ip, | |||||
| 'ip' => $request->ip, | |||||
| 'ip_fee' => $ip_fee, | 'ip_fee' => $ip_fee, | ||||
| 'ip_tax' => $ip_tax, | 'ip_tax' => $ip_tax, | ||||
| 'thedate' => $request->thedate, | 'thedate' => $request->thedate, |