diff --git a/app/Controllers/EmployeeRestController.php b/app/Controllers/EmployeeRestController.php index d7379215..d7ba79f2 100644 --- a/app/Controllers/EmployeeRestController.php +++ b/app/Controllers/EmployeeRestController.php @@ -1754,7 +1754,7 @@ public function iAgreeForAddOn() { $postData = json_decode($this->request->getBody(), true); $client_policy_id = $postData['client_policy_id']; - + sort($client_policy_id); // Alternatively, you can use echo to see the type $emp_code = $postData['emp_code']; $client_id = $postData['client_id']; @@ -1796,6 +1796,7 @@ public function iAgreeForAddOn() $params ['emp_code'] = $emp_code; $params ['client_id'] = $client_id; $params ['notification'] = $notification; + // print_r($params);die; $wholeData =sendMailNotification::sendMailNotification('member_review_and_summary_mail', $params); $mail_send_return = MailHelper::send_email($wholeData[0]); $this->myLogger->logme("info", $mail_send_return); diff --git a/app/Helpers/sendMailNotification.php b/app/Helpers/sendMailNotification.php index 57cb5051..5a35ccd2 100644 --- a/app/Helpers/sendMailNotification.php +++ b/app/Helpers/sendMailNotification.php @@ -12,6 +12,7 @@ class sendMailNotification { public static function sendMailNotification($action, $params) { + print_r($params);die; if ($action == 'member_welcome_mail') { $dataToInsert = $params['dataToInsert']; $notification = $params['notification']; @@ -37,7 +38,6 @@ class sendMailNotification return $wholeData; } else if($action == 'member_reminder_mail'){ - // print_r($params);die; $EmployeeModel = new EmployeeModel(); $emp_data = $params['emp_data']; $notification_data = $params['notification_data']; @@ -157,12 +157,12 @@ class sendMailNotification // Step 1: Replace the placeholder with an HTML table structure $mail = ''; - // print_r($array_list);die; $table_content = ''; $addtional_premium = 0; $gst = 0; $Addon_list = []; $name = ''; + $emp_code = ''; foreach ($array_list as $item) { if(count($item) != 0){ $table_content .= '