Merge branch 'dev' of bitbucket.org:jubilian/nhance-enrollment into dev
This commit is contained in:
commit
6858e77c94
2
.vscode/settings.json
vendored
Normal file
2
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{
|
||||||
|
}
|
||||||
@ -1748,6 +1748,7 @@ class EmployeeRestController extends AdminController
|
|||||||
$clientPolicy = $this->clientPolicyModel->where('client_id',$this->request->getGet('client_id'))
|
$clientPolicy = $this->clientPolicyModel->where('client_id',$this->request->getGet('client_id'))
|
||||||
->where('client_branch_id',$this->request->getGet('client_branch_id'))
|
->where('client_branch_id',$this->request->getGet('client_branch_id'))
|
||||||
->where('policy_status', 1)
|
->where('policy_status', 1)
|
||||||
|
->where('is_active', 1)
|
||||||
->findAll();
|
->findAll();
|
||||||
|
|
||||||
if(count($clientPolicy))
|
if(count($clientPolicy))
|
||||||
|
|||||||
@ -52,6 +52,8 @@ class NotificationController extends AdminController
|
|||||||
$form_data['subject'] = $this->request->getPost('subject');
|
$form_data['subject'] = $this->request->getPost('subject');
|
||||||
$form_data['mail_content'] = $this->request->getPost('mailContent');
|
$form_data['mail_content'] = $this->request->getPost('mailContent');
|
||||||
$form_data['client_id'] = $this->request->getPost('client_id');
|
$form_data['client_id'] = $this->request->getPost('client_id');
|
||||||
|
$form_data['mail_content_json'] = $this->request->getPost('mailJson');
|
||||||
|
|
||||||
$notificationModel = new NotificationModel();
|
$notificationModel = new NotificationModel();
|
||||||
|
|
||||||
$find_notification = $notificationModel->where('client_id',$form_data['client_id'])->where('template_name',$form_data['template_name'])->first();
|
$find_notification = $notificationModel->where('client_id',$form_data['client_id'])->where('template_name',$form_data['template_name'])->first();
|
||||||
@ -80,10 +82,10 @@ class NotificationController extends AdminController
|
|||||||
$checkboxNames = [
|
$checkboxNames = [
|
||||||
'member_welcome_mail_btn',
|
'member_welcome_mail_btn',
|
||||||
'member_reminder_mail_btn',
|
'member_reminder_mail_btn',
|
||||||
'member_ecard_mail_btn',
|
// 'member_ecard_mail_btn',
|
||||||
'member_review_and_summary_mail_btn',
|
'member_review_and_summary_mail_btn',
|
||||||
'account_maneger_summary_mail_btn',
|
// 'account_maneger_summary_mail_btn',
|
||||||
'client_hr_summary_mail_btn'
|
// 'client_hr_summary_mail_btn'
|
||||||
];
|
];
|
||||||
$data = [];
|
$data = [];
|
||||||
|
|
||||||
@ -101,7 +103,6 @@ class NotificationController extends AdminController
|
|||||||
$clientData['reply_to'] = $this->request->getPost('reply_to');
|
$clientData['reply_to'] = $this->request->getPost('reply_to');
|
||||||
$clientData['mail_domain'] = $this->request->getPost('mail_domain');
|
$clientData['mail_domain'] = $this->request->getPost('mail_domain');
|
||||||
$clientModel->update($id,$clientData);
|
$clientModel->update($id,$clientData);
|
||||||
|
|
||||||
foreach ($data as $key => $value)
|
foreach ($data as $key => $value)
|
||||||
{
|
{
|
||||||
$find = $notificationModel->where('client_id',$this->request->getPost('client_id'))->where('template_name', $key)->first();
|
$find = $notificationModel->where('client_id',$this->request->getPost('client_id'))->where('template_name', $key)->first();
|
||||||
|
|||||||
@ -49,13 +49,13 @@ class sendMailNotification
|
|||||||
$nhance_logo = $_ENV['NHANCE_LOGO'];
|
$nhance_logo = $_ENV['NHANCE_LOGO'];
|
||||||
$client_logo = base_url() . "public/uploads/logo/" . $client_data['client_logo'];
|
$client_logo = base_url() . "public/uploads/logo/" . $client_data['client_logo'];
|
||||||
|
|
||||||
$mail_content = str_replace("[[client_logo]]", "<img src='$client_logo' alt='Client Logo' width='20'>", $mail_content);
|
$mail_content = str_replace(["[[client_logo]]", "{{client_logo}}"], "<img src='$client_logo' alt='Client Logo' width='20'>", $mail_content);
|
||||||
$mail_content = str_replace("[[nhance_logo]]", "<img src='$nhance_logo' alt='Nhance Logo' width='20'>", $mail_content);
|
$mail_content = str_replace(["[[nhance_logo]]", "{{nhance_logo}}"], "<img src='$nhance_logo' alt='Nhance Logo' width='20'>", $mail_content);
|
||||||
$mail_content = str_replace("[[member_name]]", $employee_name, $mail_content);
|
$mail_content = str_replace(["[[member_name]]", "{{member_name}}"], $employee_name, $mail_content);
|
||||||
$mail_content = str_replace("[[member_mobile]]", $employee_mobile_no, $mail_content);
|
$mail_content = str_replace(["[[member_mobile]]", "{{member_mobile}}"], $employee_mobile_no, $mail_content);
|
||||||
$mail_content = str_replace("[[client_name]]", $client_data['client_name'], $mail_content);
|
$mail_content = str_replace(["[[client_name]]", "{{client_name}}"], $client_data['client_name'], $mail_content);
|
||||||
|
|
||||||
$mail_content = str_replace("[[app_link]]", "<a href='$app_link'>Review Details</a>", $mail_content);
|
$mail_content = str_replace(["[[app_link]]", "{{app_link}}"], "<a href='$app_link'>Review Details</a>", $mail_content);
|
||||||
if ($dataToInsert['relationship'] == 'Self' && $mail != null || $mail != '') {
|
if ($dataToInsert['relationship'] == 'Self' && $mail != null || $mail != '') {
|
||||||
$wholeData = ['mail' => $mail, 'subject' => $subject,'message'=> $mail_content,'bcc'=> $client_data['common_mails'], 'reply_to' => $client_data['reply_to'], 'attachments' => $attachments, 'common' => $common];
|
$wholeData = ['mail' => $mail, 'subject' => $subject,'message'=> $mail_content,'bcc'=> $client_data['common_mails'], 'reply_to' => $client_data['reply_to'], 'attachments' => $attachments, 'common' => $common];
|
||||||
}
|
}
|
||||||
@ -77,16 +77,16 @@ class sendMailNotification
|
|||||||
$client_logo = base_url() . "public/uploads/logo/" . $client_data['client_logo'];
|
$client_logo = base_url() . "public/uploads/logo/" . $client_data['client_logo'];
|
||||||
|
|
||||||
|
|
||||||
$mail_content = str_replace("[[client_name]]", $client_data['client_name'], $mail_content);
|
$mail_content = str_replace(["[[client_name]]", "{{client_name}}"], $client_data['client_name'], $mail_content);
|
||||||
$mail_content = str_replace("[[nhance_logo]]", "<img src='$nhance_logo' alt='Nhance Logo' width='20'>", $mail_content);
|
$mail_content = str_replace(["[[nhance_logo]]", "{{nhance_logo}}"], "<img src='$nhance_logo' alt='Nhance Logo' width='20'>", $mail_content);
|
||||||
$mail_content = str_replace("[[client_logo]]", "<img src='$client_logo' alt='Client Logo' width='20'>", $mail_content);
|
$mail_content = str_replace(["[[client_logo]]", "{{client_logo}}"], "<img src='$client_logo' alt='Client Logo' width='20'>", $mail_content);
|
||||||
$mail_content = str_replace("[[app_link]]", "<a href='$app_link'>Review Details</a>", $mail_content);
|
$mail_content = str_replace(["[[app_link]]", "{{app_link}}"], "<a href='$app_link'>Review Details</a>", $mail_content);
|
||||||
|
|
||||||
|
|
||||||
$employee_name =$emp_data['name'];
|
$employee_name =$emp_data['name'];
|
||||||
$employee_mobile_no =$emp_data['mobile'];
|
$employee_mobile_no =$emp_data['mobile'];
|
||||||
$mail_content = str_replace("[[member_name]]", $employee_name, $mail_content);
|
$mail_content = str_replace(["[[member_name]]", "{{member_name}}"], $employee_name, $mail_content);
|
||||||
$mail_content = str_replace("[[member_mobile]]", $employee_mobile_no, $mail_content);
|
$mail_content = str_replace(["[[member_mobile]]", "{{member_mobile}}"], $employee_mobile_no, $mail_content);
|
||||||
$mail = $emp_data['email_corporate'];
|
$mail = $emp_data['email_corporate'];
|
||||||
|
|
||||||
$wholeData = ['mail' => $mail, 'subject' => $subject,'message'=> $mail_content, 'bcc'=> $client_data['common_mails'], 'reply_to' => $client_data['reply_to'], 'common' => $common];
|
$wholeData = ['mail' => $mail, 'subject' => $subject,'message'=> $mail_content, 'bcc'=> $client_data['common_mails'], 'reply_to' => $client_data['reply_to'], 'common' => $common];
|
||||||
@ -113,7 +113,7 @@ class sendMailNotification
|
|||||||
|
|
||||||
$subject = $cleanedText;
|
$subject = $cleanedText;
|
||||||
|
|
||||||
$link = generate_download_link($rand_string);
|
$link = generate_download_link($rand_string).'/1';
|
||||||
|
|
||||||
$app_link = $_ENV['App_Url'];
|
$app_link = $_ENV['App_Url'];
|
||||||
$name = $get_emp_email_and_other_details['name'];
|
$name = $get_emp_email_and_other_details['name'];
|
||||||
@ -128,16 +128,17 @@ class sendMailNotification
|
|||||||
$client_logo = base_url() . "public/uploads/logo/" . $client_data['client_logo'];
|
$client_logo = base_url() . "public/uploads/logo/" . $client_data['client_logo'];
|
||||||
// $client_logo = $nhance_logo;
|
// $client_logo = $nhance_logo;
|
||||||
|
|
||||||
$mail_content = str_replace("[[nhance_logo]]", "<img src='$nhance_logo' alt='Nhance Logo' width='20'>", $mail_content);
|
$mail_content = str_replace(["[[nhance_logo]]", "{{nhance_logo}}"], "<img src='$nhance_logo' alt='Nhance Logo' width='20'>", $mail_content);
|
||||||
$mail_content = str_replace("[[client_logo]]", "<img src='$client_logo' alt='Client Logo' width='20'>", $mail_content);
|
$mail_content = str_replace(["[[client_logo]]", "{{client_logo}}"], "<img src='$client_logo' alt='Client Logo' width='20'>", $mail_content);
|
||||||
|
|
||||||
$mail_content = str_replace("[[member_name]]", $name, $mail_content);
|
$mail_content = str_replace(["[[member_name]]", "{{member_name}}"], $name, $mail_content);
|
||||||
$mail_content = str_replace("[[member_mobile]]", $employee_mobile_no, $mail_content);
|
$mail_content = str_replace(["[[member_mobile]]", "{{member_mobile}}"], $employee_mobile_no, $mail_content);
|
||||||
$mail_content = str_replace("[[app_link]]", "<a href='$app_link'>Review Details</a>", $mail_content);
|
$mail_content = str_replace(["[[app_link]]", "{{app_link}}"], "<a href='$app_link'>Review Details</a>", $mail_content);
|
||||||
$mail_content = str_replace("[[post_enrollment_app_link]]", "<a href='$post_enrollment_app_link'>Review Details</a>", $mail_content);
|
$mail_content = str_replace(["[[post_enrollment_app_link]]", "{{post_enrollment_app_link}}"], "<a href='$post_enrollment_app_link'>Review Details</a>", $mail_content);
|
||||||
// $mail_content = str_replace("[[tpa_id]]", $tpa_id, $mail_content);
|
// $mail_content = str_replace("[[tpa_id]]", $tpa_id, $mail_content);
|
||||||
$mail_content = str_replace("[[ecard_download_link]]", "<a href='$link/1'>Download Insurance Card</a>", $mail_content);
|
$mail_content = str_replace(["[[ecard_download_link]]", "{{ecard_download_link}}"], "<a href='$link/1'>Download Insurance Card</a>", $mail_content);
|
||||||
$mail_content = str_replace("[[client_name]]", $client_data['client_name'], $mail_content);
|
$mail_content = str_replace(["[[client_name]]", "{{client_name}}"], $client_data['client_name'], $mail_content);
|
||||||
|
|
||||||
$wholeData = ['mail' => $mail, 'subject' => $subject,'message'=> $mail_content,'bcc'=> $client_data['common_mails'], 'reply_to' => $client_data['reply_to'], 'common' => $common];
|
$wholeData = ['mail' => $mail, 'subject' => $subject,'message'=> $mail_content,'bcc'=> $client_data['common_mails'], 'reply_to' => $client_data['reply_to'], 'common' => $common];
|
||||||
|
|
||||||
return $wholeData;
|
return $wholeData;
|
||||||
@ -172,11 +173,11 @@ class sendMailNotification
|
|||||||
$client_logo = base_url() . "public/uploads/logo/" . $client_data['client_logo'];
|
$client_logo = base_url() . "public/uploads/logo/" . $client_data['client_logo'];
|
||||||
// $client_logo = $nhance_logo;
|
// $client_logo = $nhance_logo;
|
||||||
|
|
||||||
$mail_content = str_replace("[[client_name]]", $client_data['client_name'], $mail_content);
|
$mail_content = str_replace(["[[client_name]]", "{{client_name}}"], $client_data['client_name'], $mail_content);
|
||||||
$mail_content = str_replace("[[nhance_logo]]", "<img src='$nhance_logo' alt='Nhance Logo' width='20'>", $mail_content);
|
$mail_content = str_replace(["[[nhance_logo]]", "{{nhance_logo}}"], "<img src='$nhance_logo' alt='Nhance Logo' width='20'>", $mail_content);
|
||||||
$mail_content = str_replace("[[client_logo]]", "<img src='$client_logo' alt='Client Logo' width='20'>", $mail_content);
|
$mail_content = str_replace(["[[client_logo]]", "{{client_logo}}"], "<img src='$client_logo' alt='Client Logo' width='20'>", $mail_content);
|
||||||
|
|
||||||
$mail_content = str_replace("[[app_link]]", "<a href='$app_link'>Review Details</a>", $mail_content);
|
$mail_content = str_replace(["[[app_link]]", "{{app_link}}"], "<a href='$app_link'>Review Details</a>", $mail_content);
|
||||||
|
|
||||||
// Step 1: Replace the placeholder with an HTML table structure
|
// Step 1: Replace the placeholder with an HTML table structure
|
||||||
$mail = '';
|
$mail = '';
|
||||||
@ -189,7 +190,7 @@ class sendMailNotification
|
|||||||
$emp_code = '';
|
$emp_code = '';
|
||||||
|
|
||||||
// echo '<pre>';
|
// echo '<pre>';
|
||||||
// print_r($array_list); die;
|
// dd($array_list); die;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -204,6 +205,7 @@ class sendMailNotification
|
|||||||
$policy_name = '';
|
$policy_name = '';
|
||||||
$is_addon = '';
|
$is_addon = '';
|
||||||
$rowspan = count($item) ?? 2;
|
$rowspan = count($item) ?? 2;
|
||||||
|
$is_si_set = 0;
|
||||||
|
|
||||||
foreach ($item as $inner_item) {
|
foreach ($item as $inner_item) {
|
||||||
|
|
||||||
@ -262,7 +264,23 @@ class sendMailNotification
|
|||||||
if($policy_premium_data['premium_type'] == 2){
|
if($policy_premium_data['premium_type'] == 2){
|
||||||
$temp_data .= '<td>' . $si . '</td>';
|
$temp_data .= '<td>' . $si . '</td>';
|
||||||
}else{
|
}else{
|
||||||
$temp_data .= (($si != 0 && count($item) != 1) ? ('<td rowspan='.$rowspan.'>' . $si . '</td>') : ($si == 0 ? "" : '<td>' . $si . '</td>') );
|
// $temp_data .= (($si != 0 && count($item) != 1) ? ('<td rowspan='.$rowspan.'>' . $si . '</td>') : ($si == 0 ? "" : '<td>' . $si . '</td>') );
|
||||||
|
|
||||||
|
if ($si != 0 && count($item) != 1 && $is_si_set == 0) {
|
||||||
|
|
||||||
|
$temp_data .= '<td rowspan=' . $rowspan . '>' . $si . '</td>';
|
||||||
|
$is_si_set = 1;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
if ($is_si_set == 1) {
|
||||||
|
$temp_data .= '';
|
||||||
|
} else {
|
||||||
|
$temp_data .= '<td>' . $si . '</td>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only Display SI Topup and Dependent Addon
|
// Only Display SI Topup and Dependent Addon
|
||||||
@ -501,9 +519,9 @@ class sendMailNotification
|
|||||||
// dd($payable_employee_array, $Addon_list);
|
// dd($payable_employee_array, $Addon_list);
|
||||||
// print_r($table_content); die;
|
// print_r($table_content); die;
|
||||||
|
|
||||||
$mail_content = str_replace("[[member_name]]", $name . ' (' . $emp_code . ')' , $mail_content);
|
$mail_content = str_replace(["[[member_name]]", "{{member_name}}"], $name . ' (' . $emp_code . ')' , $mail_content);
|
||||||
$mail_content = str_replace("[[member_mobile]]", $employee_mobile_no, $mail_content);
|
$mail_content = str_replace(["[[member_mobile]]", "{{member_mobile}}"], $employee_mobile_no, $mail_content);
|
||||||
$mail_content = str_replace("[[member_summary]]", $table_content , $mail_content);
|
$mail_content = str_replace(["[[member_summary]]", "{{member_summary}}"], $table_content , $mail_content);
|
||||||
|
|
||||||
// print_r($mail_content); die;
|
// print_r($mail_content); die;
|
||||||
|
|
||||||
@ -553,11 +571,11 @@ class sendMailNotification
|
|||||||
$client_logo = base_url() . "public/uploads/logo/" . $client_data['client_logo'];
|
$client_logo = base_url() . "public/uploads/logo/" . $client_data['client_logo'];
|
||||||
// $client_logo = $nhance_logo;
|
// $client_logo = $nhance_logo;
|
||||||
|
|
||||||
$mail_content = str_replace("[[client_name]]", $client_data['client_name'], $mail_content);
|
$mail_content = str_replace(["[[client_name]]", "{{client_name}}"], $client_data['client_name'], $mail_content);
|
||||||
$mail_content = str_replace("[[nhance_logo]]", "<img src='$nhance_logo' alt='Nhance Logo' width='20'>", $mail_content);
|
$mail_content = str_replace(["[[nhance_logo]]", "{{nhance_logo}}"], "<img src='$nhance_logo' alt='Nhance Logo' width='20'>", $mail_content);
|
||||||
$mail_content = str_replace("[[client_logo]]", "<img src='$client_logo' alt='Client Logo' width='20'>", $mail_content);
|
$mail_content = str_replace(["[[client_logo]]", "{{client_logo}}"], "<img src='$client_logo' alt='Client Logo' width='20'>", $mail_content);
|
||||||
|
|
||||||
$mail_content = str_replace("[[app_link]]", "<a href='$app_link'>Review Details</a>", $mail_content);
|
$mail_content = str_replace(["[[app_link]]", "{{app_link}}"], "<a href='$app_link'>Review Details</a>", $mail_content);
|
||||||
|
|
||||||
// Step 1: Replace the placeholder with an HTML table structure
|
// Step 1: Replace the placeholder with an HTML table structure
|
||||||
$mail = '';
|
$mail = '';
|
||||||
@ -799,321 +817,321 @@ class sendMailNotification
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$mail_content = str_replace("[[member_summary]]", $table_content , $mail_content);
|
$mail_content = str_replace(["[[member_summary]]", "{{member_summary}}"], $table_content , $mail_content);
|
||||||
|
|
||||||
$account_manager_mail_list = [];
|
$account_manager_mail_list = [];
|
||||||
if(isset($user_list)){
|
if(isset($user_list)){
|
||||||
foreach ($user_list as $key => $value) {
|
foreach ($user_list as $key => $value) {
|
||||||
$full_name = $value['first_name'] .' ' .$value['last_name'];
|
$full_name = $value['first_name'] .' ' .$value['last_name'];
|
||||||
$mail_content = str_replace("[[member_name]]", $full_name , $mail_content);
|
$mail_content = str_replace(["[[member_name]]", "{{member_name}}"], $full_name , $mail_content);
|
||||||
|
|
||||||
$wholeData[] = ['mail' => $value['email'], 'subject' => $subject,'message'=> $mail_content, 'reply_to' => $client_data['reply_to'], 'common' => $common];
|
$wholeData[] = ['mail' => $value['email'], 'subject' => $subject,'message'=> $mail_content, 'reply_to' => $client_data['reply_to'], 'common' => $common];
|
||||||
// $wholeData[] = ['mail' => $value['email'], 'subject' => $subject,'message'=> $mail_content, 'bcc'=> $client_data['common_mails']];
|
// $wholeData[] = ['mail' => $value['email'], 'subject' => $subject,'message'=> $mail_content, 'bcc'=> $client_data['common_mails'}};
|
||||||
}
|
}
|
||||||
return $wholeData;
|
return $wholeData;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if($action == 'client_hr_summary_mail'){
|
} //else if($action == 'client_hr_summary_mail'){
|
||||||
|
|
||||||
$client_id = $params['client_id'];
|
// $client_id = $params['client_id'];
|
||||||
$client_policy_id = $params['client_policy_id'];
|
// $client_policy_id = $params['client_policy_id'];
|
||||||
$common = $params['common'];
|
// $common = $params['common'];
|
||||||
|
|
||||||
$clientModel = new ClientModel();
|
// $clientModel = new ClientModel();
|
||||||
$clientPolicyModel = new ClientPolicyModel();
|
// $clientPolicyModel = new ClientPolicyModel();
|
||||||
$PolicyPremium1Model = new PolicyPremium1Model();
|
// $PolicyPremium1Model = new PolicyPremium1Model();
|
||||||
$PolicyPremium2Model = new PolicyPremium2Model();
|
// $PolicyPremium2Model = new PolicyPremium2Model();
|
||||||
|
|
||||||
$client_data =$clientModel->where('id', $client_id)->first();
|
// $client_data =$clientModel->where('id', $client_id)->first();
|
||||||
$notificationModel = new NotificationModel();
|
// $notificationModel = new NotificationModel();
|
||||||
$notification_data = $notificationModel->where('client_id' ,$client_id)->where('template_name', $action)->first();
|
// $notification_data = $notificationModel->where('client_id' ,$client_id)->where('template_name', $action)->first();
|
||||||
$clientRMModel =new ClientRMModel();
|
// $clientRMModel =new ClientRMModel();
|
||||||
|
|
||||||
if (isset($notification_data['enabled']) && $notification_data['enabled'] == 1) {
|
// if (isset($notification_data['enabled']) && $notification_data['enabled'] == 1) {
|
||||||
|
|
||||||
$client_rm_data= $clientRMModel->where('client_id', $client_id)->where('is_active',1)->findAll();
|
// $client_rm_data= $clientRMModel->where('client_id', $client_id)->where('is_active',1)->findAll();
|
||||||
$user_list= [];
|
// $user_list= [];
|
||||||
foreach ($client_rm_data as $key => $value) {
|
// foreach ($client_rm_data as $key => $value) {
|
||||||
if($value['level'] == 3){
|
// if($value['level'] == 3){
|
||||||
$userModel = new UserModel();
|
// $userModel = new UserModel();
|
||||||
$user_data = $userModel->where('id', $value['user_id'])->first();
|
// $user_data = $userModel->where('id', $value['user_id'])->first();
|
||||||
$user_list[]=$user_data;
|
// $user_list[]=$user_data;
|
||||||
}
|
// }
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$mail_content = $notification_data['mail_content'];
|
|
||||||
$subject = $notification_data['subject'];
|
|
||||||
$app_link = $_ENV['App_Url'];
|
|
||||||
$nhance_logo = $_ENV['NHANCE_LOGO'];
|
|
||||||
|
|
||||||
$client_logo = base_url() . "public/uploads/logo/" . $client_data['client_logo'];
|
|
||||||
// $client_logo = $nhance_logo;
|
|
||||||
|
|
||||||
$mail_content = str_replace("[[nhance_logo]]", "<img src='$nhance_logo' alt='Nhance Logo' width='20'>", $mail_content);
|
|
||||||
$mail_content = str_replace("[[client_logo]]", "<img src='$client_logo' alt='Client Logo' width='20'>", $mail_content);
|
|
||||||
$mail_content = str_replace("[[client_name]]", $client_data['client_name'], $mail_content);
|
|
||||||
|
|
||||||
$mail_content = str_replace("[[app_link]]", "<a href='$app_link'>Review Details</a>", $mail_content);
|
|
||||||
|
|
||||||
// Step 1: Replace the placeholder with an HTML table structure
|
|
||||||
$mail = '';
|
|
||||||
$table_content = '';
|
|
||||||
$addtional_premium = 0;
|
|
||||||
$gst = 0;
|
|
||||||
$array_list = $params['array_list'];
|
|
||||||
$Addon_list = [];
|
|
||||||
|
|
||||||
foreach ($array_list as $item) {
|
|
||||||
|
|
||||||
$payable_employee_array = [];
|
|
||||||
|
|
||||||
if (count($item) != 0) {
|
|
||||||
$table_content .= '<div style="text-align: left; font-size: 12px;"><div style="text-align:left;"><h4>Policy Type :';
|
|
||||||
$temp_data = '';
|
|
||||||
$policy_name = '';
|
|
||||||
$is_addon = '';
|
|
||||||
|
|
||||||
foreach ($item as $inner_item) {
|
|
||||||
|
|
||||||
//getting policy premium data
|
|
||||||
$client_policy_data = $clientPolicyModel->where('id', $inner_item['client_policy_id'])->first();
|
|
||||||
if($client_policy_data['policy_type_id'] == 1 || $client_policy_data['policy_type_id'] == 6 || $client_policy_data['policy_type_id'] == 7 ){
|
|
||||||
$policy_premium_data = $PolicyPremium1Model->where('client_policy_id', $inner_item['client_policy_id'])->where('is_active', '1')->first();
|
|
||||||
}else{
|
|
||||||
$policy_premium_data = $PolicyPremium2Model->where('client_policy_id', $inner_item['client_policy_id'])->where('is_active', '1')->first();
|
|
||||||
}
|
|
||||||
//end of getting policy premium data
|
|
||||||
|
|
||||||
if($inner_item['payable_employee'] == 1 && $client_policy_data['policy_type_id'] == 2){
|
|
||||||
$payable_employee_array[] = $inner_item;
|
|
||||||
}
|
|
||||||
|
|
||||||
$policy_name = $inner_item['policy_name'];
|
|
||||||
|
|
||||||
if ($inner_item['relationship'] == 'Self') {
|
|
||||||
$emp_code = ' (' . $inner_item['emp_code'] . ')';
|
|
||||||
} else {
|
|
||||||
$emp_code = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
$si = '';
|
|
||||||
$premium = '';
|
|
||||||
$gst_forself = '';
|
|
||||||
|
|
||||||
// dd($policy_premium_data, $client_policy_data, $inner_item);
|
|
||||||
|
|
||||||
// if(checkFamilyFloaters($policy_premium_data, $client_policy_data, $inner_item)){
|
|
||||||
$si = '₹ ' .format_indian_number($inner_item['basic_cover_si']);
|
|
||||||
$premium = '₹ ' .format_indian_number(round($inner_item['premium']));
|
|
||||||
$gst_forself = '₹ ' .format_indian_number(round($inner_item['gst']));
|
|
||||||
// }
|
// }
|
||||||
|
|
||||||
$temp_data .= '<tr>';
|
|
||||||
$temp_data .= '<td>' . $inner_item['name'] . $emp_code . '</td>';
|
|
||||||
$temp_data .= '<td>' . $inner_item['relationship'] . '</td>';
|
|
||||||
$temp_data .= '<td>' . \DateTime::createFromFormat('Y-m-d', $inner_item['dob'])->format('d-m-Y') . '</td>';
|
|
||||||
$temp_data .= '<td>' . $si . '</td>';
|
|
||||||
|
|
||||||
// Only Display SI Topup and Dependent Addon
|
|
||||||
if ($inner_item['is_addon'] == 2 || $inner_item['is_addon'] == 3) {
|
|
||||||
$temp_data .= '<td>' . $premium . '</td>';
|
|
||||||
$temp_data .= '<td>' . $gst_forself . '</td>';
|
|
||||||
}
|
|
||||||
|
|
||||||
$temp_data .= '</tr>';
|
|
||||||
|
|
||||||
$is_addon = $inner_item['is_addon'];
|
|
||||||
|
|
||||||
if ($inner_item['is_addon'] == 2 || $inner_item['is_addon'] == 3) {
|
|
||||||
$addtional_premium = $inner_item['rata_premimum'] + $addtional_premium;
|
|
||||||
$gst = $inner_item['gst'] + $gst;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$policy_name_for_policy_type = $inner_item['policy_name'];
|
|
||||||
if($client_policy_data['policy_type_id'] == 3 && $client_policy_data['is_addon'] == 3){
|
|
||||||
$policy_name_for_policy_type = 'Add-On Group Medical Coverage for Parents';
|
|
||||||
}
|
|
||||||
|
|
||||||
$table_content .= $policy_name_for_policy_type . '</h4></div>';
|
|
||||||
$table_content .= '<table border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">';
|
|
||||||
|
|
||||||
// Add text-align: center to the table head
|
|
||||||
$table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">';
|
|
||||||
$table_content .= '<tr>';
|
|
||||||
$table_content .= '<th>Name</th>';
|
|
||||||
$table_content .= '<th>Relation</th>';
|
|
||||||
$table_content .= '<th style="width:15%">Date Of Birth</th>';
|
|
||||||
$table_content .= '<th>Sum Insured</th>';
|
|
||||||
|
|
||||||
// Only Display SI Topup and Dependent Addon
|
|
||||||
if ($is_addon == 2 || $is_addon == 3) {
|
|
||||||
$table_content .= '<th>Premium</th>';
|
|
||||||
$table_content .= '<th>GST</th>';
|
|
||||||
}
|
|
||||||
|
|
||||||
$table_content .= '</tr>';
|
|
||||||
$table_content .= '</thead>';
|
|
||||||
|
|
||||||
// Add text-align: center to the table body
|
|
||||||
$table_content .= '<tbody style="text-align: center;">' . $temp_data . '</tbody>';
|
|
||||||
$table_content .= '</table></div>';
|
|
||||||
|
|
||||||
if ($is_addon == 2 || $is_addon == 3) {
|
|
||||||
$addon_list_array = [
|
|
||||||
'policy_name' => $policy_name_for_policy_type,
|
|
||||||
'addtional_premium' => round($addtional_premium),
|
|
||||||
'gst' => round($gst)
|
|
||||||
];
|
|
||||||
$Addon_list[] = $addon_list_array;
|
|
||||||
}
|
|
||||||
|
|
||||||
$temp_data = '';
|
|
||||||
$addtional_premium = 0;
|
|
||||||
$gst = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(count($payable_employee_array) > 0){
|
|
||||||
|
|
||||||
$table_content .= '<div style="text-align: left; font-size: 12px;"><div style="text-align:left;"><h4>Policy Type :';
|
|
||||||
$temp_data = '';
|
|
||||||
$is_addon = '';
|
|
||||||
|
|
||||||
foreach ($payable_employee_array as $inner_item) {
|
|
||||||
|
|
||||||
|
|
||||||
//getting policy premium data
|
// $mail_content = $notification_data['mail_content'];
|
||||||
$client_policy_data = $clientPolicyModel->where('id', $inner_item['client_policy_id'])->first();
|
// $subject = $notification_data['subject'];
|
||||||
if($client_policy_data['policy_type_id'] == 1 || $client_policy_data['policy_type_id'] == 6 || $client_policy_data['policy_type_id'] == 7 ){
|
// $app_link = $_ENV['App_Url'];
|
||||||
$policy_premium_data = $PolicyPremium1Model->where('client_policy_id', $inner_item['client_policy_id'])->where('is_active', '1')->first();
|
// $nhance_logo = $_ENV['NHANCE_LOGO'];
|
||||||
}else{
|
|
||||||
$policy_premium_data = $PolicyPremium2Model->where('client_policy_id', $inner_item['client_policy_id'])->where('is_active', '1')->first();
|
// $client_logo = base_url() . "public/uploads/logo/" . $client_data['client_logo'];
|
||||||
}
|
// // $client_logo = $nhance_logo;
|
||||||
//end of getting policy premium data
|
|
||||||
|
// $mail_content = str_replace(["[[nhance_logo]]", "{{nhance_logo}}"], "<img src='$nhance_logo' alt='Nhance Logo' width='20'>", $mail_content);
|
||||||
|
// $mail_content = str_replace(["[[client_logo]]", "{{client_logo}}"], "<img src='$client_logo' alt='Client Logo' width='20'>", $mail_content);
|
||||||
|
// $mail_content = str_replace(["[[client_name]]", "{{client_name}}"], $client_data['client_name'], $mail_content);
|
||||||
|
|
||||||
|
// $mail_content = str_replace(["[[app_link]]", "{{app_link}}"], "<a href='$app_link'>Review Details</a>", $mail_content);
|
||||||
|
|
||||||
|
// // Step 1: Replace the placeholder with an HTML table structure
|
||||||
|
// $mail = '';
|
||||||
|
// $table_content = '';
|
||||||
|
// $addtional_premium = 0;
|
||||||
|
// $gst = 0;
|
||||||
|
// $array_list = $params['array_list'];
|
||||||
|
// $Addon_list = [];
|
||||||
|
|
||||||
|
// foreach ($array_list as $item) {
|
||||||
|
|
||||||
|
// $payable_employee_array = [];
|
||||||
|
|
||||||
|
// if (count($item) != 0) {
|
||||||
|
// $table_content .= '<div style="text-align: left; font-size: 12px;"><div style="text-align:left;"><h4>Policy Type :';
|
||||||
|
// $temp_data = '';
|
||||||
|
// $policy_name = '';
|
||||||
|
// $is_addon = '';
|
||||||
|
|
||||||
|
// foreach ($item as $inner_item) {
|
||||||
|
|
||||||
|
// //getting policy premium data
|
||||||
|
// $client_policy_data = $clientPolicyModel->where('id', $inner_item['client_policy_id'])->first();
|
||||||
|
// if($client_policy_data['policy_type_id'] == 1 || $client_policy_data['policy_type_id'] == 6 || $client_policy_data['policy_type_id'] == 7 ){
|
||||||
|
// $policy_premium_data = $PolicyPremium1Model->where('client_policy_id', $inner_item['client_policy_id'])->where('is_active', '1')->first();
|
||||||
|
// }else{
|
||||||
|
// $policy_premium_data = $PolicyPremium2Model->where('client_policy_id', $inner_item['client_policy_id'])->where('is_active', '1')->first();
|
||||||
|
// }
|
||||||
|
// //end of getting policy premium data
|
||||||
|
|
||||||
|
// if($inner_item['payable_employee'] == 1 && $client_policy_data['policy_type_id'] == 2){
|
||||||
|
// $payable_employee_array[] = $inner_item;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// $policy_name = $inner_item['policy_name'];
|
||||||
|
|
||||||
|
// if ($inner_item['relationship'] == 'Self') {
|
||||||
|
// $emp_code = ' (' . $inner_item['emp_code'] . ')';
|
||||||
|
// } else {
|
||||||
|
// $emp_code = '';
|
||||||
|
// }
|
||||||
|
|
||||||
|
// $si = '';
|
||||||
|
// $premium = '';
|
||||||
|
// $gst_forself = '';
|
||||||
|
|
||||||
|
// // dd($policy_premium_data, $client_policy_data, $inner_item);
|
||||||
|
|
||||||
|
// // if(checkFamilyFloaters($policy_premium_data, $client_policy_data, $inner_item)){
|
||||||
|
// $si = '₹ ' .format_indian_number($inner_item['basic_cover_si']);
|
||||||
|
// $premium = '₹ ' .format_indian_number(round($inner_item['premium']));
|
||||||
|
// $gst_forself = '₹ ' .format_indian_number(round($inner_item['gst']));
|
||||||
|
// // }
|
||||||
|
|
||||||
|
// $temp_data .= '<tr>';
|
||||||
|
// $temp_data .= '<td>' . $inner_item['name'] . $emp_code . '</td>';
|
||||||
|
// $temp_data .= '<td>' . $inner_item['relationship'] . '</td>';
|
||||||
|
// $temp_data .= '<td>' . \DateTime::createFromFormat('Y-m-d', $inner_item['dob'])->format('d-m-Y') . '</td>';
|
||||||
|
// $temp_data .= '<td>' . $si . '</td>';
|
||||||
|
|
||||||
|
// // Only Display SI Topup and Dependent Addon
|
||||||
|
// if ($inner_item['is_addon'] == 2 || $inner_item['is_addon'] == 3) {
|
||||||
|
// $temp_data .= '<td>' . $premium . '</td>';
|
||||||
|
// $temp_data .= '<td>' . $gst_forself . '</td>';
|
||||||
|
// }
|
||||||
|
|
||||||
|
// $temp_data .= '</tr>';
|
||||||
|
|
||||||
|
// $is_addon = $inner_item['is_addon'];
|
||||||
|
|
||||||
|
// if ($inner_item['is_addon'] == 2 || $inner_item['is_addon'] == 3) {
|
||||||
|
// $addtional_premium = $inner_item['rata_premimum'] + $addtional_premium;
|
||||||
|
// $gst = $inner_item['gst'] + $gst;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
// $policy_name_for_policy_type = $inner_item['policy_name'];
|
||||||
|
// if($client_policy_data['policy_type_id'] == 3 && $client_policy_data['is_addon'] == 3){
|
||||||
|
// $policy_name_for_policy_type = 'Add-On Group Medical Coverage for Parents';
|
||||||
|
// }
|
||||||
|
|
||||||
|
// $table_content .= $policy_name_for_policy_type . '</h4></div>';
|
||||||
|
// $table_content .= '<table border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">';
|
||||||
|
|
||||||
|
// // Add text-align: center to the table head
|
||||||
|
// $table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">';
|
||||||
|
// $table_content .= '<tr>';
|
||||||
|
// $table_content .= '<th>Name</th>';
|
||||||
|
// $table_content .= '<th>Relation</th>';
|
||||||
|
// $table_content .= '<th style="width:15%">Date Of Birth</th>';
|
||||||
|
// $table_content .= '<th>Sum Insured</th>';
|
||||||
|
|
||||||
|
// // Only Display SI Topup and Dependent Addon
|
||||||
|
// if ($is_addon == 2 || $is_addon == 3) {
|
||||||
|
// $table_content .= '<th>Premium</th>';
|
||||||
|
// $table_content .= '<th>GST</th>';
|
||||||
|
// }
|
||||||
|
|
||||||
|
// $table_content .= '</tr>';
|
||||||
|
// $table_content .= '</thead>';
|
||||||
|
|
||||||
|
// // Add text-align: center to the table body
|
||||||
|
// $table_content .= '<tbody style="text-align: center;">' . $temp_data . '</tbody>';
|
||||||
|
// $table_content .= '</table></div>';
|
||||||
|
|
||||||
|
// if ($is_addon == 2 || $is_addon == 3) {
|
||||||
|
// $addon_list_array = [
|
||||||
|
// 'policy_name' => $policy_name_for_policy_type,
|
||||||
|
// 'addtional_premium' => round($addtional_premium),
|
||||||
|
// 'gst' => round($gst)
|
||||||
|
// ];
|
||||||
|
// $Addon_list[] = $addon_list_array;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// $temp_data = '';
|
||||||
|
// $addtional_premium = 0;
|
||||||
|
// $gst = 0;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// if(count($payable_employee_array) > 0){
|
||||||
|
|
||||||
|
// $table_content .= '<div style="text-align: left; font-size: 12px;"><div style="text-align:left;"><h4>Policy Type :';
|
||||||
|
// $temp_data = '';
|
||||||
|
// $is_addon = '';
|
||||||
|
|
||||||
|
// foreach ($payable_employee_array as $inner_item) {
|
||||||
|
|
||||||
|
|
||||||
$si = '';
|
// //getting policy premium data
|
||||||
$premium = '';
|
// $client_policy_data = $clientPolicyModel->where('id', $inner_item['client_policy_id'])->first();
|
||||||
$gst_forself = '';
|
// if($client_policy_data['policy_type_id'] == 1 || $client_policy_data['policy_type_id'] == 6 || $client_policy_data['policy_type_id'] == 7 ){
|
||||||
|
// $policy_premium_data = $PolicyPremium1Model->where('client_policy_id', $inner_item['client_policy_id'])->where('is_active', '1')->first();
|
||||||
$si = '₹ ' .format_indian_number($inner_item['basic_cover_si']);
|
// }else{
|
||||||
$premium = '₹ ' .format_indian_number(round($inner_item['rata_premimum']));
|
// $policy_premium_data = $PolicyPremium2Model->where('client_policy_id', $inner_item['client_policy_id'])->where('is_active', '1')->first();
|
||||||
$gst_forself = '₹ ' .format_indian_number(round($inner_item['gst']));
|
// }
|
||||||
|
// //end of getting policy premium data
|
||||||
$temp_data .= '<tr>';
|
|
||||||
$temp_data .= '<td>' . $inner_item['name'] . ($inner_item['relationship'] == 'Self' ? ' (' . $inner_item['emp_code'] . ')' : '') . '</td>';
|
|
||||||
$temp_data .= '<td>' . $inner_item['relationship'] . '</td>';
|
|
||||||
$temp_data .= '<td>' . \DateTime::createFromFormat('Y-m-d', $inner_item['dob'])->format('d-m-Y') . '</td>';
|
|
||||||
$temp_data .= '<td>' . $si . '</td>';
|
|
||||||
$temp_data .= '<td>' . $premium . '</td>';
|
|
||||||
$temp_data .= '<td>' . $gst_forself . '</td>';
|
|
||||||
|
|
||||||
$temp_data .= '</tr>';
|
|
||||||
|
|
||||||
$is_addon = $inner_item['is_addon'];
|
|
||||||
|
|
||||||
$addtional_premium = $inner_item['rata_premimum'] + $addtional_premium;
|
|
||||||
$gst = $inner_item['gst'] + $gst;
|
|
||||||
}
|
|
||||||
|
|
||||||
$policy_name_for_policy_type = $inner_item['policy_name'];
|
|
||||||
if($client_policy_data['policy_type_id'] == 3 && $client_policy_data['is_addon'] == 3){
|
|
||||||
$policy_name_for_policy_type = 'Add-On Group Medical Coverage for Parents';
|
|
||||||
}
|
|
||||||
|
|
||||||
$table_content .= $policy_name_for_policy_type . ' ( Payable By Employee ) </h4></div>';
|
|
||||||
$table_content .= '<table border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">';
|
|
||||||
|
|
||||||
// Add text-align: center to the table head
|
|
||||||
$table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">';
|
|
||||||
$table_content .= '<tr>';
|
|
||||||
$table_content .= '<th>Name</th>';
|
|
||||||
$table_content .= '<th>Relation</th>';
|
|
||||||
$table_content .= '<th style="width:15%">Date Of Birth</th>';
|
|
||||||
$table_content .= '<th>Sum Insured</th>';
|
|
||||||
$table_content .= '<th>Premium</th>';
|
|
||||||
$table_content .= '<th>GST</th>';
|
|
||||||
|
|
||||||
$table_content .= '</tr>';
|
|
||||||
$table_content .= '</thead>';
|
|
||||||
|
|
||||||
// Add text-align: center to the table body
|
|
||||||
$table_content .= '<tbody style="text-align: center;">' . $temp_data . '</tbody>';
|
|
||||||
$table_content .= '</table></div>';
|
|
||||||
|
|
||||||
|
|
||||||
$addon_list_array = [
|
// $si = '';
|
||||||
'policy_name' => $policy_name_for_policy_type . '( Payable By Employee )',
|
// $premium = '';
|
||||||
'addtional_premium' => round($addtional_premium),
|
// $gst_forself = '';
|
||||||
'gst' => round($gst)
|
|
||||||
];
|
// $si = '₹ ' .format_indian_number($inner_item['basic_cover_si']);
|
||||||
$Addon_list[] = $addon_list_array;
|
// $premium = '₹ ' .format_indian_number(round($inner_item['rata_premimum']));
|
||||||
|
// $gst_forself = '₹ ' .format_indian_number(round($inner_item['gst']));
|
||||||
|
|
||||||
|
// $temp_data .= '<tr>';
|
||||||
|
// $temp_data .= '<td>' . $inner_item['name'] . ($inner_item['relationship'] == 'Self' ? ' (' . $inner_item['emp_code'] . ')' : '') . '</td>';
|
||||||
|
// $temp_data .= '<td>' . $inner_item['relationship'] . '</td>';
|
||||||
|
// $temp_data .= '<td>' . \DateTime::createFromFormat('Y-m-d', $inner_item['dob'])->format('d-m-Y') . '</td>';
|
||||||
|
// $temp_data .= '<td>' . $si . '</td>';
|
||||||
|
// $temp_data .= '<td>' . $premium . '</td>';
|
||||||
|
// $temp_data .= '<td>' . $gst_forself . '</td>';
|
||||||
|
|
||||||
|
// $temp_data .= '</tr>';
|
||||||
|
|
||||||
|
// $is_addon = $inner_item['is_addon'];
|
||||||
|
|
||||||
|
// $addtional_premium = $inner_item['rata_premimum'] + $addtional_premium;
|
||||||
|
// $gst = $inner_item['gst'] + $gst;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// $policy_name_for_policy_type = $inner_item['policy_name'];
|
||||||
|
// if($client_policy_data['policy_type_id'] == 3 && $client_policy_data['is_addon'] == 3){
|
||||||
|
// $policy_name_for_policy_type = 'Add-On Group Medical Coverage for Parents';
|
||||||
|
// }
|
||||||
|
|
||||||
|
// $table_content .= $policy_name_for_policy_type . ' ( Payable By Employee ) </h4></div>';
|
||||||
|
// $table_content .= '<table border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">';
|
||||||
|
|
||||||
|
// // Add text-align: center to the table head
|
||||||
|
// $table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">';
|
||||||
|
// $table_content .= '<tr>';
|
||||||
|
// $table_content .= '<th>Name</th>';
|
||||||
|
// $table_content .= '<th>Relation</th>';
|
||||||
|
// $table_content .= '<th style="width:15%">Date Of Birth</th>';
|
||||||
|
// $table_content .= '<th>Sum Insured</th>';
|
||||||
|
// $table_content .= '<th>Premium</th>';
|
||||||
|
// $table_content .= '<th>GST</th>';
|
||||||
|
|
||||||
|
// $table_content .= '</tr>';
|
||||||
|
// $table_content .= '</thead>';
|
||||||
|
|
||||||
|
// // Add text-align: center to the table body
|
||||||
|
// $table_content .= '<tbody style="text-align: center;">' . $temp_data . '</tbody>';
|
||||||
|
// $table_content .= '</table></div>';
|
||||||
|
|
||||||
|
|
||||||
$temp_data = '';
|
// $addon_list_array = [
|
||||||
$addtional_premium = 0;
|
// 'policy_name' => $policy_name_for_policy_type . '( Payable By Employee )',
|
||||||
$gst = 0;
|
// 'addtional_premium' => round($addtional_premium),
|
||||||
|
// 'gst' => round($gst)
|
||||||
}
|
// ];
|
||||||
}
|
// $Addon_list[] = $addon_list_array;
|
||||||
|
|
||||||
if (count($Addon_list) > 0) {
|
|
||||||
$table_content .= '<br><div style="text-align: left; font-size: 12px;"><div style="text-align:left;">';
|
|
||||||
$table_content .= '<table border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">';
|
|
||||||
|
|
||||||
// Center align for table header and body
|
|
||||||
$table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">';
|
|
||||||
$table_content .= '<tr>';
|
|
||||||
$table_content .= '<th>Policy Name</th>';
|
|
||||||
$table_content .= '<th>Additional Premium</th>';
|
|
||||||
$table_content .= '<th>GST</th>';
|
|
||||||
$table_content .= '<th>Total</th>';
|
|
||||||
$table_content .= '</tr>';
|
|
||||||
$table_content .= '</thead>';
|
|
||||||
|
|
||||||
$table_content .= '<tbody style="text-align: center;">';
|
|
||||||
|
|
||||||
$sum_total = 0;
|
|
||||||
foreach ($Addon_list as $key => $value) {
|
|
||||||
$total_addon = $value['gst'] + $value['addtional_premium'];
|
|
||||||
$sum_total += $total_addon;
|
|
||||||
|
|
||||||
$table_content .= '<tr>';
|
|
||||||
$table_content .= '<td>' . $value['policy_name'] . '</td>';
|
|
||||||
$table_content .= '<td>₹' . format_indian_number($value['addtional_premium']) . '</td>';
|
|
||||||
$table_content .= '<td>₹' . format_indian_number($value['gst']) . '</td>';
|
|
||||||
$table_content .= '<td>₹' . format_indian_number($total_addon) . '</td>';
|
|
||||||
$table_content .= '</tr>';
|
|
||||||
}
|
|
||||||
|
|
||||||
$sum_total_words = numberToWords($sum_total);
|
|
||||||
$table_content .= '<tr>';
|
|
||||||
$table_content .= '<td></td><td></td><td><b>Total</b></td>';
|
|
||||||
$table_content .= '<td>₹' . format_indian_number($sum_total) . '</td>';
|
|
||||||
$table_content .= '</tr>';
|
|
||||||
$table_content .= '</tbody>';
|
|
||||||
$table_content .= '</table></div></div>';
|
|
||||||
// $table_content .= '<div style="width:100%; text-align:right; font-size: 12px;">' . $sum_total_words . '</div>';
|
|
||||||
}
|
|
||||||
|
|
||||||
$mail_content = str_replace("[[member_summary]]", $table_content , $mail_content);
|
|
||||||
|
|
||||||
|
|
||||||
$hr_mails = $client_data['hr_mails'];
|
// $temp_data = '';
|
||||||
$mail_array = explode(',', $hr_mails);
|
// $addtional_premium = 0;
|
||||||
$mail_array = array_map('trim', $mail_array);
|
// $gst = 0;
|
||||||
$wholeData = [];
|
|
||||||
foreach ($mail_array as $key => $value) {
|
|
||||||
$wholeData[] = ['mail' => $value, 'subject' => $subject,'message'=> $mail_content, 'reply_to' => $client_data['reply_to'], 'common' => $common];
|
|
||||||
// $wholeData[] = ['mail' => $value, 'subject' => $subject,'message'=> $mail_content, 'bcc'=> $client_data['common_mails']];
|
|
||||||
}
|
|
||||||
|
|
||||||
return $wholeData;
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
}
|
// if (count($Addon_list) > 0) {
|
||||||
|
// $table_content .= '<br><div style="text-align: left; font-size: 12px;"><div style="text-align:left;">';
|
||||||
|
// $table_content .= '<table border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">';
|
||||||
|
|
||||||
|
// // Center align for table header and body
|
||||||
|
// $table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">';
|
||||||
|
// $table_content .= '<tr>';
|
||||||
|
// $table_content .= '<th>Policy Name</th>';
|
||||||
|
// $table_content .= '<th>Additional Premium</th>';
|
||||||
|
// $table_content .= '<th>GST</th>';
|
||||||
|
// $table_content .= '<th>Total</th>';
|
||||||
|
// $table_content .= '</tr>';
|
||||||
|
// $table_content .= '</thead>';
|
||||||
|
|
||||||
|
// $table_content .= '<tbody style="text-align: center;">';
|
||||||
|
|
||||||
|
// $sum_total = 0;
|
||||||
|
// foreach ($Addon_list as $key => $value) {
|
||||||
|
// $total_addon = $value['gst'] + $value['addtional_premium'];
|
||||||
|
// $sum_total += $total_addon;
|
||||||
|
|
||||||
|
// $table_content .= '<tr>';
|
||||||
|
// $table_content .= '<td>' . $value['policy_name'] . '</td>';
|
||||||
|
// $table_content .= '<td>₹' . format_indian_number($value['addtional_premium']) . '</td>';
|
||||||
|
// $table_content .= '<td>₹' . format_indian_number($value['gst']) . '</td>';
|
||||||
|
// $table_content .= '<td>₹' . format_indian_number($total_addon) . '</td>';
|
||||||
|
// $table_content .= '</tr>';
|
||||||
|
// }
|
||||||
|
|
||||||
|
// $sum_total_words = numberToWords($sum_total);
|
||||||
|
// $table_content .= '<tr>';
|
||||||
|
// $table_content .= '<td></td><td></td><td><b>Total</b></td>';
|
||||||
|
// $table_content .= '<td>₹' . format_indian_number($sum_total) . '</td>';
|
||||||
|
// $table_content .= '</tr>';
|
||||||
|
// $table_content .= '</tbody>';
|
||||||
|
// $table_content .= '</table></div></div>';
|
||||||
|
// // $table_content .= '<div style="width:100%; text-align:right; font-size: 12px;">' . $sum_total_words . '</div>';
|
||||||
|
// }
|
||||||
|
|
||||||
|
// $mail_content = str_replace(["[[member_summary]]", "{{member_summary}}"], $table_content , $mail_content);
|
||||||
|
|
||||||
|
|
||||||
|
// $hr_mails = $client_data['hr_mails'];
|
||||||
|
// $mail_array = explode(',', $hr_mails);
|
||||||
|
// $mail_array = array_map('trim', $mail_array);
|
||||||
|
// $wholeData = [];
|
||||||
|
// foreach ($mail_array as $key => $value) {
|
||||||
|
// $wholeData[] = ['mail' => $value, 'subject' => $subject,'message'=> $mail_content, 'reply_to' => $client_data['reply_to'], 'common' => $common];
|
||||||
|
// // $wholeData[] = ['mail' => $value, 'subject' => $subject,'message'=> $mail_content, 'bcc'=> $client_data['common_mails'}};
|
||||||
|
// }
|
||||||
|
|
||||||
|
// return $wholeData;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function sendMailNotificationForTesting($action, $params)
|
public static function sendMailNotificationForTesting($action, $params)
|
||||||
@ -1156,13 +1174,13 @@ class sendMailNotification
|
|||||||
|
|
||||||
$client_logo = base_url() . "public/uploads/logo/" . $client_data['client_logo'];
|
$client_logo = base_url() . "public/uploads/logo/" . $client_data['client_logo'];
|
||||||
|
|
||||||
$mail_content = str_replace("[[client_logo]]", "<img src='$client_logo' alt='Client Logo' width='20'>", $mail_content);
|
$mail_content = str_replace(["[[client_logo]]", "{{client_logo}}"], "<img src='$client_logo' alt='Client Logo' width='20'>", $mail_content);
|
||||||
$mail_content = str_replace("[[nhance_logo]]", "<img src='$nhance_logo' alt='Nhance Logo' width='20'>", $mail_content);
|
$mail_content = str_replace(["[[nhance_logo]]", "{{nhance_logo}}"], "<img src='$nhance_logo' alt='Nhance Logo' width='20'>", $mail_content);
|
||||||
$mail_content = str_replace("[[member_name]]", $employee_name, $mail_content);
|
$mail_content = str_replace(["[[member_name]]", "{{member_name}}"], $employee_name, $mail_content);
|
||||||
$mail_content = str_replace("[[member_mobile]]", $mobile, $mail_content);
|
$mail_content = str_replace(["[[member_mobile]]", "{{member_mobile}}"], $mobile, $mail_content);
|
||||||
$mail_content = str_replace("[[client_name]]", $client_data['client_name'], $mail_content);
|
$mail_content = str_replace(["[[client_name]]", "{{client_name}}"], $client_data['client_name'], $mail_content);
|
||||||
|
|
||||||
$mail_content = str_replace("[[app_link]]", "<a href='$app_link'>Review Details</a>", $mail_content);
|
$mail_content = str_replace(["[[app_link]]", "{{app_link}}"], "<a href='$app_link'>Review Details</a>", $mail_content);
|
||||||
|
|
||||||
if ($mail != null || $mail != '') {
|
if ($mail != null || $mail != '') {
|
||||||
$wholeData = ['mail' => $mail, 'subject' => $subject,'message'=> $mail_content,'bcc'=> $client_data['common_mails'], 'reply_to' => $client_data['reply_to'], 'attachments' => $attachments];
|
$wholeData = ['mail' => $mail, 'subject' => $subject,'message'=> $mail_content,'bcc'=> $client_data['common_mails'], 'reply_to' => $client_data['reply_to'], 'attachments' => $attachments];
|
||||||
@ -1187,11 +1205,12 @@ class sendMailNotification
|
|||||||
|
|
||||||
$client_logo = base_url() . "public/uploads/logo/" . $client_data['client_logo'];
|
$client_logo = base_url() . "public/uploads/logo/" . $client_data['client_logo'];
|
||||||
|
|
||||||
$mail_content = str_replace("[[client_name]]", $client_data['client_name'], $mail_content);
|
$mail_content = str_replace(["[[client_name]]", "{{client_name}}"], $client_data['client_name'], $mail_content);
|
||||||
$mail_content = str_replace("[[nhance_logo]]", "<img src='$nhance_logo' alt='Nhance Logo' width='20'>", $mail_content);
|
$mail_content = str_replace(["[[nhance_logo]]", "{{nhance_logo}}"], "<img src='$nhance_logo' alt='Nhance Logo' width='20'>", $mail_content);
|
||||||
$mail_content = str_replace("[[client_logo]]", "<img src='$client_logo' alt='Client Logo' width='20'>", $mail_content);
|
$mail_content = str_replace(["[[client_logo]]", "{{client_logo}}"], "<img src='$client_logo' alt='Client Logo' width='20'>", $mail_content);
|
||||||
$mail_content = str_replace("[[app_link]]", "<a href='$app_link'>Review Details</a>", $mail_content);
|
$mail_content = str_replace(["[[app_link]]", "{{app_link}}"], "<a href='$app_link'>Review Details</a>", $mail_content);
|
||||||
$mail_content = str_replace("[[member_mobile]]", $mobile, $mail_content);
|
$mail_content = str_replace(["[[member_name]]", "{{member_name}}"], $employee_name, $mail_content);
|
||||||
|
$mail_content = str_replace(["[[member_mobile]]", "{{member_mobile}}"], $mobile, $mail_content);
|
||||||
|
|
||||||
if ((isset($notification_data) && $notification_data['enabled'] == 1)) {
|
if ((isset($notification_data) && $notification_data['enabled'] == 1)) {
|
||||||
|
|
||||||
@ -1209,6 +1228,20 @@ class sendMailNotification
|
|||||||
$notification = $params['notification_data'];
|
$notification = $params['notification_data'];
|
||||||
$client_data = $params['client_data'];
|
$client_data = $params['client_data'];
|
||||||
$mail = $params['test_mail'];
|
$mail = $params['test_mail'];
|
||||||
|
$mailAttachmentModel = new MailAttachmentModel();
|
||||||
|
$attachment_data = $mailAttachmentModel
|
||||||
|
->select('file_path, file_name')
|
||||||
|
->where('notification_id', $notification['id'])
|
||||||
|
->where('is_active', 1)
|
||||||
|
->findAll();
|
||||||
|
|
||||||
|
$attachments = [];
|
||||||
|
foreach ($attachment_data as $data) {
|
||||||
|
$attachments[] = [
|
||||||
|
"filePath" => WRITEPATH . $data['file_path'],
|
||||||
|
"fileName" => $data['file_name']
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
$mail_content = $notification['mail_content'];
|
$mail_content = $notification['mail_content'];
|
||||||
$subject = $notification['subject'];
|
$subject = $notification['subject'];
|
||||||
@ -1225,17 +1258,17 @@ class sendMailNotification
|
|||||||
|
|
||||||
$client_logo = base_url() . "public/uploads/logo/" . $client_data['client_logo'];
|
$client_logo = base_url() . "public/uploads/logo/" . $client_data['client_logo'];
|
||||||
|
|
||||||
$mail_content = str_replace("[[nhance_logo]]", "<img src='$nhance_logo' alt='Nhance Logo' width='20'>", $mail_content);
|
$mail_content = str_replace(["[[nhance_logo]]", "{{nhance_logo}}"], "<img src='$nhance_logo' alt='Nhance Logo' width='20'>", $mail_content);
|
||||||
$mail_content = str_replace("[[client_logo]]", "<img src='$client_logo' alt='Client Logo' width='20'>", $mail_content);
|
$mail_content = str_replace(["[[client_logo]]", "{{client_logo}}"], "<img src='$client_logo' alt='Client Logo' width='20'>", $mail_content);
|
||||||
|
|
||||||
$mail_content = str_replace("[[member_name]]", $name, $mail_content);
|
$mail_content = str_replace(["[[member_name]]", "{{member_name}}"], $name, $mail_content);
|
||||||
$mail_content = str_replace("[[member_mobile]]", $mobile, $mail_content);
|
$mail_content = str_replace(["[[member_mobile]]", "{{member_mobile}}"], $mobile, $mail_content);
|
||||||
$mail_content = str_replace("[[app_link]]", "<a href='$app_link'>Review Details</a>", $mail_content);
|
$mail_content = str_replace(["[[app_link]]", "{{app_link}}"], "<a href='$app_link'>Review Details</a>", $mail_content);
|
||||||
$mail_content = str_replace("[[post_enrollment_app_link]]", "<a href='$post_enrollment_app_link'>Review Details</a>", $mail_content);
|
$mail_content = str_replace(["[[post_enrollment_app_link]]", "{{post_enrollment_app_link}}"], "<a href='$post_enrollment_app_link'>Review Details</a>", $mail_content);
|
||||||
$mail_content = str_replace("[[ecard_download_link]]", "<a href='$link/1'>Download Insurance Card</a>", $mail_content);
|
$mail_content = str_replace(["[[ecard_download_link]]", "{{ecard_download_link}}"], "<a href='$link/1'>Download Insurance Card</a>", $mail_content);
|
||||||
$mail_content = str_replace("[[client_name]]", $client_data['client_name'], $mail_content);
|
$mail_content = str_replace(["[[client_name]]", "{{client_name}}"], $client_data['client_name'], $mail_content);
|
||||||
|
|
||||||
$wholeData = ['mail' => $mail, 'subject' => $subject,'message'=> $mail_content,'bcc'=> $client_data['common_mails'], 'reply_to' => $client_data['reply_to']];
|
$wholeData = ['mail' => $mail, 'subject' => $subject,'message'=> $mail_content,'bcc'=> $client_data['common_mails'],'attachments' => $attachments, 'reply_to' => $client_data['reply_to']];
|
||||||
|
|
||||||
return $wholeData;
|
return $wholeData;
|
||||||
|
|
||||||
@ -1270,11 +1303,11 @@ class sendMailNotification
|
|||||||
|
|
||||||
$client_logo = base_url() . "public/uploads/logo/" . $client_data['client_logo'];
|
$client_logo = base_url() . "public/uploads/logo/" . $client_data['client_logo'];
|
||||||
|
|
||||||
$mail_content = str_replace("[[client_name]]", $client_data['client_name'], $mail_content);
|
$mail_content = str_replace(["[[client_name]]", "{{client_name}}"], $client_data['client_name'], $mail_content);
|
||||||
$mail_content = str_replace("[[nhance_logo]]", "<img src='$nhance_logo' alt='Nhance Logo' width='20'>", $mail_content);
|
$mail_content = str_replace(["[[nhance_logo]]", "{{nhance_logo}}"], "<img src='$nhance_logo' alt='Nhance Logo' width='20'>", $mail_content);
|
||||||
$mail_content = str_replace("[[client_logo]]", "<img src='$client_logo' alt='Client Logo' width='20'>", $mail_content);
|
$mail_content = str_replace(["[[client_logo]]", "{{client_logo}}"], "<img src='$client_logo' alt='Client Logo' width='20'>", $mail_content);
|
||||||
|
|
||||||
$mail_content = str_replace("[[app_link]]", "<a href='$app_link'>Review Details</a>", $mail_content);
|
$mail_content = str_replace(["[[app_link]]", "{{app_link}}"], "<a href='$app_link'>Review Details</a>", $mail_content);
|
||||||
|
|
||||||
// Step 1: Replace the placeholder with an HTML table structure
|
// Step 1: Replace the placeholder with an HTML table structure
|
||||||
$table_content = '';
|
$table_content = '';
|
||||||
@ -1382,9 +1415,9 @@ class sendMailNotification
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$mail_content = str_replace("[[member_name]]", $name . ' (' . $emp_code . ')' , $mail_content);
|
$mail_content = str_replace(["[[member_name]]", "{{member_name}}"], $name . ' (' . $emp_code . ')' , $mail_content);
|
||||||
$mail_content = str_replace("[[member_mobile]]", $mobile, $mail_content);
|
$mail_content = str_replace(["[[member_mobile]]", "{{member_mobile}}"], $mobile, $mail_content);
|
||||||
$mail_content = str_replace("[[member_summary]]", $table_content , $mail_content);
|
$mail_content = str_replace(["[[member_summary]]", "{{member_summary}}"], $table_content , $mail_content);
|
||||||
|
|
||||||
|
|
||||||
$wholeData = ['mail' => $mail, 'subject' => $subject,'message'=> $mail_content, 'bcc'=> $client_data['common_mails'], 'reply_to' => $client_data['reply_to']];
|
$wholeData = ['mail' => $mail, 'subject' => $subject,'message'=> $mail_content, 'bcc'=> $client_data['common_mails'], 'reply_to' => $client_data['reply_to']];
|
||||||
@ -1422,11 +1455,11 @@ class sendMailNotification
|
|||||||
|
|
||||||
$client_logo = base_url() . "public/uploads/logo/" . $client_data['client_logo'];
|
$client_logo = base_url() . "public/uploads/logo/" . $client_data['client_logo'];
|
||||||
|
|
||||||
$mail_content = str_replace("[[client_name]]", $client_data['client_name'], $mail_content);
|
$mail_content = str_replace(["[[client_name]]", "{{client_name}}"], $client_data['client_name'], $mail_content);
|
||||||
$mail_content = str_replace("[[nhance_logo]]", "<img src='$nhance_logo' alt='Nhance Logo' width='20'>", $mail_content);
|
$mail_content = str_replace(["[[nhance_logo]]", "{{nhance_logo}}"], "<img src='$nhance_logo' alt='Nhance Logo' width='20'>", $mail_content);
|
||||||
$mail_content = str_replace("[[client_logo]]", "<img src='$client_logo' alt='Client Logo' width='20'>", $mail_content);
|
$mail_content = str_replace(["[[client_logo]]", "{{client_logo}}"], "<img src='$client_logo' alt='Client Logo' width='20'>", $mail_content);
|
||||||
|
|
||||||
$mail_content = str_replace("[[app_link]]", "<a href='$app_link'>Review Details</a>", $mail_content);
|
$mail_content = str_replace(["[[app_link]]", "{{app_link}}"], "<a href='$app_link'>Review Details</a>", $mail_content);
|
||||||
|
|
||||||
// Step 1: Replace the placeholder with an HTML table structure
|
// Step 1: Replace the placeholder with an HTML table structure
|
||||||
$table_content = '';
|
$table_content = '';
|
||||||
@ -1532,8 +1565,8 @@ class sendMailNotification
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$mail_content = str_replace("[[member_name]]", $name . ' (' . $emp_code . ')' , $mail_content);
|
$mail_content = str_replace(["[[member_name]]", "{{member_name}}"], $name . ' (' . $emp_code . ')' , $mail_content);
|
||||||
$mail_content = str_replace("[[member_summary]]", $table_content , $mail_content);
|
$mail_content = str_replace(["[[member_summary]]", "{{member_summary}}"], $table_content , $mail_content);
|
||||||
|
|
||||||
$wholeData = ['mail' => $mail, 'subject' => $subject,'message'=> $mail_content, 'reply_to' => $client_data['reply_to']];
|
$wholeData = ['mail' => $mail, 'subject' => $subject,'message'=> $mail_content, 'reply_to' => $client_data['reply_to']];
|
||||||
|
|
||||||
@ -1569,11 +1602,11 @@ class sendMailNotification
|
|||||||
|
|
||||||
$client_logo = base_url() . "public/uploads/logo/" . $client_data['client_logo'];
|
$client_logo = base_url() . "public/uploads/logo/" . $client_data['client_logo'];
|
||||||
|
|
||||||
$mail_content = str_replace("[[nhance_logo]]", "<img src='$nhance_logo' alt='Nhance Logo' width='20'>", $mail_content);
|
$mail_content = str_replace(["[[nhance_logo]]", "{{nhance_logo}}"], "<img src='$nhance_logo' alt='Nhance Logo' width='20'>", $mail_content);
|
||||||
$mail_content = str_replace("[[client_logo]]", "<img src='$client_logo' alt='Client Logo' width='20'>", $mail_content);
|
$mail_content = str_replace(["[[client_logo]]", "{{client_logo}}"], "<img src='$client_logo' alt='Client Logo' width='20'>", $mail_content);
|
||||||
$mail_content = str_replace("[[client_name]]", $client_data['client_name'], $mail_content);
|
$mail_content = str_replace(["[[client_name]]", "{{client_name}}"], $client_data['client_name'], $mail_content);
|
||||||
|
|
||||||
$mail_content = str_replace("[[app_link]]", "<a href='$app_link'>Review Details</a>", $mail_content);
|
$mail_content = str_replace(["[[app_link]]", "{{app_link}}"], "<a href='$app_link'>Review Details</a>", $mail_content);
|
||||||
|
|
||||||
// Step 1: Replace the placeholder with an HTML table structure
|
// Step 1: Replace the placeholder with an HTML table structure
|
||||||
$table_content = '';
|
$table_content = '';
|
||||||
@ -1681,8 +1714,8 @@ class sendMailNotification
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$mail_content = str_replace("[[member_name]]", $name . ' (' . $emp_code . ')' , $mail_content);
|
$mail_content = str_replace(["[[member_name]]", "{{member_name}}"], $name . ' (' . $emp_code . ')' , $mail_content);
|
||||||
$mail_content = str_replace("[[member_summary]]", $table_content , $mail_content);
|
$mail_content = str_replace(["[[member_summary]]", "{{member_summary}}"], $table_content , $mail_content);
|
||||||
|
|
||||||
|
|
||||||
$wholeData = ['mail' => $mail, 'subject' => $subject,'message'=> $mail_content, 'reply_to' => $client_data['reply_to']];
|
$wholeData = ['mail' => $mail, 'subject' => $subject,'message'=> $mail_content, 'reply_to' => $client_data['reply_to']];
|
||||||
|
|||||||
@ -8,5 +8,5 @@ class NotificationModel extends Model
|
|||||||
{
|
{
|
||||||
protected $table = 'notifications';
|
protected $table = 'notifications';
|
||||||
protected $primaryKey = 'id';
|
protected $primaryKey = 'id';
|
||||||
protected $allowedFields = ["id","client_id","template_name","subject","mail_content","enabled","created_by","updated_by","is_active",];
|
protected $allowedFields = ["id","client_id","template_name","subject","mail_content","enabled","created_by","updated_by","is_active",'mail_content_json','mail_content_copy'];
|
||||||
}
|
}
|
||||||
@ -79,6 +79,10 @@
|
|||||||
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick-theme.min.css" />
|
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick-theme.min.css" />
|
||||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
||||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.js"></script>
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.js"></script>
|
||||||
|
<!-- srinivas -->
|
||||||
|
<script src="https://editor.unlayer.com/embed.js"></script>
|
||||||
|
<!-- <script src="<?= base_url('public/unlayer/js/embed.js') . '' ?>"></script> -->
|
||||||
|
<!-- srinivas -->
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user