CHANGE_MAIL_TEMPLATE_REFACTOR - VADIVEL J 2025-09-25
This commit is contained in:
parent
bd61daa0aa
commit
ecd0fcf756
@ -18,7 +18,7 @@ class sendMailNotification
|
|||||||
{
|
{
|
||||||
public static function sendMailNotification($action, $params)
|
public static function sendMailNotification($action, $params)
|
||||||
{
|
{
|
||||||
$wholeData =[];
|
$wholeData = [];
|
||||||
|
|
||||||
if ($action == 'member_welcome_mail') {
|
if ($action == 'member_welcome_mail') {
|
||||||
|
|
||||||
@ -29,10 +29,10 @@ class sendMailNotification
|
|||||||
|
|
||||||
$mailAttachmentModel = new MailAttachmentModel();
|
$mailAttachmentModel = new MailAttachmentModel();
|
||||||
$attachment_data = $mailAttachmentModel
|
$attachment_data = $mailAttachmentModel
|
||||||
->select('file_path, file_name')
|
->select('file_path, file_name')
|
||||||
->where('notification_id', $notification['id'])
|
->where('notification_id', $notification['id'])
|
||||||
->where('is_active', 1)
|
->where('is_active', 1)
|
||||||
->findAll();
|
->findAll();
|
||||||
|
|
||||||
$attachments = [];
|
$attachments = [];
|
||||||
foreach ($attachment_data as $data) {
|
foreach ($attachment_data as $data) {
|
||||||
@ -45,8 +45,8 @@ class sendMailNotification
|
|||||||
$mail = $dataToInsert['email_corporate'];
|
$mail = $dataToInsert['email_corporate'];
|
||||||
$subject = $notification['subject'];
|
$subject = $notification['subject'];
|
||||||
$app_link = $_ENV['App_Url'];
|
$app_link = $_ENV['App_Url'];
|
||||||
$employee_name =$dataToInsert['name'];
|
$employee_name = $dataToInsert['name'];
|
||||||
$employee_mobile_no =$dataToInsert['mobile'];
|
$employee_mobile_no = $dataToInsert['mobile'];
|
||||||
$mail_content = $notification['mail_content'];
|
$mail_content = $notification['mail_content'];
|
||||||
$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'];
|
||||||
@ -59,30 +59,21 @@ class sendMailNotification
|
|||||||
|
|
||||||
$mail_content = str_replace(["[[app_link]]", "{{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 != '') {
|
||||||
$header_of_mail = view('notification_mail_header', $params);
|
|
||||||
$footer_of_mail = view('notification_mail_footer', $params);
|
|
||||||
|
|
||||||
$mail_content = preg_replace('/<p[^>]*>( |\s)*<\/p>/i', '', $mail_content);
|
$mail_content = preg_replace('/<p[^>]*>( |\s)*<\/p>/i', '', $mail_content);
|
||||||
$mail_content = $header_of_mail .
|
|
||||||
'<div align="center">
|
|
||||||
<table width="100%" border="0" cellspacing="0" cellpadding="0"
|
|
||||||
style="max-width:600px;">
|
|
||||||
|
|
||||||
<tr>
|
$data['params'] = $params;
|
||||||
<td align="left" style="padding:15px; word-break:break-word; font-family:arial, sans-serif; font-size:14px; line-height:20px;">
|
$data['mail_content'] = $mail_content;
|
||||||
' . $mail_content . '
|
$mail_content = view('mail_template', $data);
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>' . $footer_of_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];
|
||||||
}
|
}
|
||||||
|
|
||||||
return $wholeData;
|
return $wholeData;
|
||||||
|
} else if ($action == 'member_reminder_mail') {
|
||||||
} else if($action == 'member_reminder_mail'){
|
|
||||||
|
|
||||||
$EmployeeModel = new EmployeeModel();
|
$EmployeeModel = new EmployeeModel();
|
||||||
$emp_data = $params['emp_data'];
|
$emp_data = $params['emp_data'];
|
||||||
@ -103,35 +94,25 @@ class sendMailNotification
|
|||||||
$mail_content = str_replace(["[[app_link]]", "{{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]]", "{{member_name}}"], $employee_name, $mail_content);
|
$mail_content = str_replace(["[[member_name]]", "{{member_name}}"], $employee_name, $mail_content);
|
||||||
$mail_content = str_replace(["[[member_mobile]]", "{{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'];
|
||||||
|
|
||||||
$header_of_mail = view('notification_mail_header', $params);
|
|
||||||
$footer_of_mail = view('notification_mail_footer', $params);
|
|
||||||
$mail_content = preg_replace('/<p[^>]*>( |\s)*<\/p>/i', '', $mail_content);
|
|
||||||
$mail_content = $header_of_mail .
|
|
||||||
'<div align="center">
|
|
||||||
<table width="100%" border="0" cellspacing="0" cellpadding="0"
|
|
||||||
style="max-width:600px;">
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td align="left" style="padding:15px; word-break:break-word; font-family:arial, sans-serif; font-size:14px; line-height:20px;">
|
|
||||||
' . $mail_content . '
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>' . $footer_of_mail;
|
|
||||||
|
|
||||||
|
|
||||||
$wholeData = ['mail' => $mail, 'subject' => $subject,'message'=> $mail_content, 'bcc'=> $client_data['common_mails'], 'reply_to' => $client_data['reply_to'], 'common' => $common];
|
$mail_content = preg_replace('/<p[^>]*>( |\s)*<\/p>/i', '', $mail_content);
|
||||||
|
|
||||||
|
$data['params'] = $params;
|
||||||
|
$data['mail_content'] = $mail_content;
|
||||||
|
$mail_content = view('mail_template', $data);
|
||||||
|
|
||||||
|
|
||||||
|
$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;
|
||||||
|
} else if ($action == 'member_ecard_mail') {
|
||||||
|
|
||||||
} else if($action == 'member_ecard_mail'){
|
|
||||||
|
|
||||||
$notification = $params['notification'];
|
$notification = $params['notification'];
|
||||||
$get_emp_email_and_other_details = $params['get_emp_email_and_other_details'];
|
$get_emp_email_and_other_details = $params['get_emp_email_and_other_details'];
|
||||||
@ -150,7 +131,7 @@ class sendMailNotification
|
|||||||
|
|
||||||
$subject = $cleanedText;
|
$subject = $cleanedText;
|
||||||
|
|
||||||
$link = generate_download_link($rand_string).'/1';
|
$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'];
|
||||||
@ -176,30 +157,21 @@ class sendMailNotification
|
|||||||
$mail_content = str_replace(["[[ecard_download_link]]", "{{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_name}}"], $client_data['client_name'], $mail_content);
|
$mail_content = str_replace(["[[client_name]]", "{{client_name}}"], $client_data['client_name'], $mail_content);
|
||||||
|
|
||||||
$header_of_mail = view('notification_mail_header', $params);
|
|
||||||
$footer_of_mail = view('notification_mail_footer', $params);
|
|
||||||
$mail_content = preg_replace('/<p[^>]*>( |\s)*<\/p>/i', '', $mail_content);
|
|
||||||
$mail_content = $header_of_mail .
|
|
||||||
'<div align="center">
|
|
||||||
<table width="100%" border="0" cellspacing="0" cellpadding="0"
|
|
||||||
style="max-width:600px;">
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td align="left" style="padding:15px; word-break:break-word; font-family:arial, sans-serif; font-size:14px; line-height:20px;">
|
|
||||||
' . $mail_content . '
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>' . $footer_of_mail;
|
|
||||||
|
|
||||||
|
|
||||||
$wholeData = ['mail' => $mail, 'subject' => $subject,'message'=> $mail_content,'bcc'=> $client_data['common_mails'], 'reply_to' => $client_data['reply_to'], 'common' => $common];
|
$mail_content = preg_replace('/<p[^>]*>( |\s)*<\/p>/i', '', $mail_content);
|
||||||
|
|
||||||
|
$data['params'] = $params;
|
||||||
|
$data['mail_content'] = $mail_content;
|
||||||
|
$mail_content = view('mail_template', $data);
|
||||||
|
|
||||||
|
|
||||||
|
$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;
|
||||||
|
} else if ($action == 'member_review_and_summary_mail') {
|
||||||
|
|
||||||
} else if($action == 'member_review_and_summary_mail'){
|
$array_list = $params['array_list']; //employeee lst
|
||||||
|
|
||||||
$array_list = $params['array_list'];//employeee lst
|
|
||||||
$client_policy_id = $params['client_policy_id'];
|
$client_policy_id = $params['client_policy_id'];
|
||||||
$emp_code = $params['emp_code'];
|
$emp_code = $params['emp_code'];
|
||||||
$client_id = $params['client_id'];
|
$client_id = $params['client_id'];
|
||||||
@ -212,8 +184,8 @@ class sendMailNotification
|
|||||||
$PolicyPremium2Model = new PolicyPremium2Model();
|
$PolicyPremium2Model = new PolicyPremium2Model();
|
||||||
|
|
||||||
|
|
||||||
$client_data =$clientModel->where('id', $client_id)->first();
|
$client_data = $clientModel->where('id', $client_id)->first();
|
||||||
$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();
|
||||||
|
|
||||||
$params['client_data'] = $client_data;
|
$params['client_data'] = $client_data;
|
||||||
// dd($notification_data);
|
// dd($notification_data);
|
||||||
@ -266,16 +238,16 @@ class sendMailNotification
|
|||||||
|
|
||||||
//getting policy premium data
|
//getting policy premium data
|
||||||
$client_policy_data = $clientPolicyModel->where('id', $inner_item['client_policy_id'])->first();
|
$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 ){
|
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();
|
$policy_premium_data = $PolicyPremium1Model->where('client_policy_id', $inner_item['client_policy_id'])->where('is_active', '1')->first();
|
||||||
}else{
|
} else {
|
||||||
$policy_premium_data = $PolicyPremium2Model->where('client_policy_id', $inner_item['client_policy_id'])->where('is_active', '1')->first();
|
$policy_premium_data = $PolicyPremium2Model->where('client_policy_id', $inner_item['client_policy_id'])->where('is_active', '1')->first();
|
||||||
}
|
}
|
||||||
//end of getting policy premium data
|
//end of getting policy premium data
|
||||||
|
|
||||||
// dd($policy_premium_data);
|
// dd($policy_premium_data);
|
||||||
|
|
||||||
if($inner_item['payable_employee'] == 1 && $client_policy_data['policy_type_id'] == 2){
|
if ($inner_item['payable_employee'] == 1 && $client_policy_data['policy_type_id'] == 2) {
|
||||||
$payable_employee_array['emp_data'][] = $inner_item;
|
$payable_employee_array['emp_data'][] = $inner_item;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -294,21 +266,21 @@ class sendMailNotification
|
|||||||
$premium = '';
|
$premium = '';
|
||||||
$gst_forself = '';
|
$gst_forself = '';
|
||||||
|
|
||||||
if($policy_premium_data['premium_type'] == 2){
|
if ($policy_premium_data['premium_type'] == 2) {
|
||||||
$si = '₹ ' .format_indian_number($inner_item['basic_cover_si']);
|
$si = '₹ ' . format_indian_number($inner_item['basic_cover_si']);
|
||||||
}else{
|
} else {
|
||||||
if ($inner_item['relationship'] == 'Self') {
|
if ($inner_item['relationship'] == 'Self') {
|
||||||
$payable_employee_array['si_amount'] = $inner_item['basic_cover_si'];
|
$payable_employee_array['si_amount'] = $inner_item['basic_cover_si'];
|
||||||
$payable_employee_array['self_premium'] = $inner_item['rata_premimum'];
|
$payable_employee_array['self_premium'] = $inner_item['rata_premimum'];
|
||||||
$payable_employee_array['self_gst'] = $inner_item['gst'];
|
$payable_employee_array['self_gst'] = $inner_item['gst'];
|
||||||
}
|
}
|
||||||
empty($inner_item['basic_cover_si']) ? $si = 0 : $si = '₹ ' .format_indian_number($inner_item['basic_cover_si']);
|
empty($inner_item['basic_cover_si']) ? $si = 0 : $si = '₹ ' . format_indian_number($inner_item['basic_cover_si']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Premium summery for show and hide the Additional premium data
|
// Premium summery for show and hide the Additional premium data
|
||||||
if($client_policy_data['is_premium_summery'] == 1){
|
if ($client_policy_data['is_premium_summery'] == 1) {
|
||||||
$premium = '₹ ' .format_indian_number(round($inner_item['rata_premimum']));
|
$premium = '₹ ' . format_indian_number(round($inner_item['rata_premimum']));
|
||||||
$gst_forself = '₹ ' .format_indian_number(round($inner_item['gst']));
|
$gst_forself = '₹ ' . format_indian_number(round($inner_item['gst']));
|
||||||
}
|
}
|
||||||
|
|
||||||
$temp_data .= '<tr>';
|
$temp_data .= '<tr>';
|
||||||
@ -316,16 +288,15 @@ class sendMailNotification
|
|||||||
$temp_data .= '<td>' . $inner_item['relationship'] . '</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>' . \DateTime::createFromFormat('Y-m-d', $inner_item['dob'])->format('d-m-Y') . '</td>';
|
||||||
|
|
||||||
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) {
|
if ($si != 0 && count($item) != 1 && $is_si_set == 0) {
|
||||||
|
|
||||||
$temp_data .= '<td style="vertical-align: middle !important;" rowspan=' . $rowspan . '>' . $si . '</td>';
|
$temp_data .= '<td style="vertical-align: middle !important;" rowspan=' . $rowspan . '>' . $si . '</td>';
|
||||||
$is_si_set = 1;
|
$is_si_set = 1;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if ($is_si_set == 1) {
|
if ($is_si_set == 1) {
|
||||||
@ -334,8 +305,6 @@ class sendMailNotification
|
|||||||
$temp_data .= '<td>' . $si . '</td>';
|
$temp_data .= '<td>' . $si . '</td>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only Display SI Topup and Dependent Addon
|
// Only Display SI Topup and Dependent Addon
|
||||||
@ -355,7 +324,7 @@ class sendMailNotification
|
|||||||
}
|
}
|
||||||
|
|
||||||
$policy_name_for_policy_type = $inner_item['policy_name'];
|
$policy_name_for_policy_type = $inner_item['policy_name'];
|
||||||
if($client_policy_data['policy_type_id'] == 3 && $client_policy_data['is_addon'] == 3){
|
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';
|
$policy_name_for_policy_type = 'Add-On Group Medical Coverage for Parents';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -400,7 +369,7 @@ class sendMailNotification
|
|||||||
// Kint::dump($payable_employee_array);
|
// Kint::dump($payable_employee_array);
|
||||||
// dd(count($payable_employee_array['emp_data']));
|
// dd(count($payable_employee_array['emp_data']));
|
||||||
|
|
||||||
if(isset($payable_employee_array['emp_data']) && count($payable_employee_array['emp_data']) > 0){
|
if (isset($payable_employee_array['emp_data']) && count($payable_employee_array['emp_data']) > 0) {
|
||||||
|
|
||||||
$table_content .= '<div style="text-align: left; font-size: 12px;"><div style="text-align:left;"><h4>Policy Type :';
|
$table_content .= '<div style="text-align: left; font-size: 12px;"><div style="text-align:left;"><h4>Policy Type :';
|
||||||
$temp_data = '';
|
$temp_data = '';
|
||||||
@ -418,9 +387,9 @@ class sendMailNotification
|
|||||||
|
|
||||||
//getting policy premium data
|
//getting policy premium data
|
||||||
$client_policy_data = $clientPolicyModel->where('id', $inner_item['client_policy_id'])->first();
|
$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 ){
|
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();
|
$policy_premium_data = $PolicyPremium1Model->where('client_policy_id', $inner_item['client_policy_id'])->where('is_active', '1')->first();
|
||||||
}else{
|
} else {
|
||||||
$policy_premium_data = $PolicyPremium2Model->where('client_policy_id', $inner_item['client_policy_id'])->where('is_active', '1')->first();
|
$policy_premium_data = $PolicyPremium2Model->where('client_policy_id', $inner_item['client_policy_id'])->where('is_active', '1')->first();
|
||||||
}
|
}
|
||||||
//end of getting policy premium data
|
//end of getting policy premium data
|
||||||
@ -431,22 +400,20 @@ class sendMailNotification
|
|||||||
$premium = '';
|
$premium = '';
|
||||||
$gst_forself = '';
|
$gst_forself = '';
|
||||||
|
|
||||||
if($policy_premium_data['premium_type'] == 2){
|
if ($policy_premium_data['premium_type'] == 2) {
|
||||||
$si = '₹ ' .format_indian_number($inner_item['basic_cover_si']);
|
$si = '₹ ' . format_indian_number($inner_item['basic_cover_si']);
|
||||||
}else{
|
} else {
|
||||||
empty($self_si_amount) ? $si = 0 : $si = '₹ ' .format_indian_number($self_si_amount);
|
empty($self_si_amount) ? $si = 0 : $si = '₹ ' . format_indian_number($self_si_amount);
|
||||||
}
|
}
|
||||||
|
|
||||||
if($policy_premium_data['premium_type'] == 1){
|
if ($policy_premium_data['premium_type'] == 1) {
|
||||||
|
|
||||||
empty($self_premium) ? $premium = 0 : $premium = '₹ ' .format_indian_number($self_premium);
|
empty($self_premium) ? $premium = 0 : $premium = '₹ ' . format_indian_number($self_premium);
|
||||||
empty($self_gst) ? $gst_forself = 0 : $gst_forself = '₹ ' .format_indian_number($self_gst);
|
empty($self_gst) ? $gst_forself = 0 : $gst_forself = '₹ ' . format_indian_number($self_gst);
|
||||||
|
} else {
|
||||||
}else{
|
|
||||||
|
|
||||||
$premium = '₹ ' .format_indian_number(round($inner_item['rata_premimum']));
|
|
||||||
$gst_forself = '₹ ' .format_indian_number(round($inner_item['gst']));
|
|
||||||
|
|
||||||
|
$premium = '₹ ' . format_indian_number(round($inner_item['rata_premimum']));
|
||||||
|
$gst_forself = '₹ ' . format_indian_number(round($inner_item['gst']));
|
||||||
}
|
}
|
||||||
|
|
||||||
$temp_data .= '<tr>';
|
$temp_data .= '<tr>';
|
||||||
@ -457,24 +424,22 @@ class sendMailNotification
|
|||||||
// dd($si);
|
// dd($si);
|
||||||
|
|
||||||
// Premium summery for show and hide the Additional premium data
|
// Premium summery for show and hide the Additional premium data
|
||||||
if($inner_item['payable_employee'] == 1 || $client_policy_data['is_premium_summery'] == 1){
|
if ($inner_item['payable_employee'] == 1 || $client_policy_data['is_premium_summery'] == 1) {
|
||||||
if($policy_premium_data['premium_type'] == 2){
|
if ($policy_premium_data['premium_type'] == 2) {
|
||||||
|
|
||||||
$temp_data .= '<td>' . $si . '</td>';
|
$temp_data .= '<td>' . $si . '</td>';
|
||||||
$temp_data .= '<td>' . $premium . '</td>';
|
$temp_data .= '<td>' . $premium . '</td>';
|
||||||
$temp_data .= '<td>' . $gst_forself . '</td>';
|
$temp_data .= '<td>' . $gst_forself . '</td>';
|
||||||
|
} else {
|
||||||
|
|
||||||
}else{
|
if ($policy_premium_data['premium_type'] == 1) {
|
||||||
|
|
||||||
if($policy_premium_data['premium_type'] == 1){
|
$temp_data .= (($si != 0 && count($item) != 1) ? ('<td style="vertical-align: middle !important;" rowspan=' . $rowspan . '>' . $si . '</td>') : ($si == 0 ? "" : '<td>' . $si . '</td>'));
|
||||||
|
$temp_data .= (($premium != 0 && count($item) != 1) ? ('<td style="vertical-align: middle !important;" rowspan=' . $rowspan . '>' . $premium . '</td>') : ($premium == 0 ? "" : '<td>' . $premium . '</td>'));
|
||||||
|
$temp_data .= (($gst_forself != 0 && count($item) != 1) ? ('<td style="vertical-align: middle !important;" rowspan=' . $rowspan . '>' . $gst_forself . '</td>') : ($gst_forself == 0 ? "" : '<td>' . $gst_forself . '</td>'));
|
||||||
|
} else {
|
||||||
|
|
||||||
$temp_data .= (($si != 0 && count($item) != 1) ? ('<td style="vertical-align: middle !important;" rowspan='.$rowspan.'>' . $si . '</td>') : ($si == 0 ? "" : '<td>' . $si . '</td>') );
|
$temp_data .= (($si != 0 && count($item) != 1) ? ('<td style="vertical-align: middle !important;" rowspan=' . $rowspan . '>' . $si . '</td>') : ($si == 0 ? "" : '<td>' . $si . '</td>'));
|
||||||
$temp_data .= (($premium != 0 && count($item) != 1) ? ('<td style="vertical-align: middle !important;" rowspan='.$rowspan.'>' . $premium . '</td>') : ($premium == 0 ? "" : '<td>' . $premium . '</td>') );
|
|
||||||
$temp_data .= (($gst_forself != 0 && count($item) != 1) ? ('<td style="vertical-align: middle !important;" rowspan='.$rowspan.'>' . $gst_forself . '</td>') : ($gst_forself == 0 ? "" : '<td>' . $gst_forself . '</td>') );
|
|
||||||
|
|
||||||
}else{
|
|
||||||
|
|
||||||
$temp_data .= (($si != 0 && count($item) != 1) ? ('<td style="vertical-align: middle !important;" rowspan='.$rowspan.'>' . $si . '</td>') : ($si == 0 ? "" : '<td>' . $si . '</td>') );
|
|
||||||
$temp_data .= '<td>' . $premium . '</td>';
|
$temp_data .= '<td>' . $premium . '</td>';
|
||||||
$temp_data .= '<td>' . $gst_forself . '</td>';
|
$temp_data .= '<td>' . $gst_forself . '</td>';
|
||||||
}
|
}
|
||||||
@ -483,7 +448,7 @@ class sendMailNotification
|
|||||||
$self_premium = 0;
|
$self_premium = 0;
|
||||||
$self_gst = 0;
|
$self_gst = 0;
|
||||||
}
|
}
|
||||||
}else{
|
} else {
|
||||||
$temp_data .= '<td>' . $si . '</td>';
|
$temp_data .= '<td>' . $si . '</td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -497,7 +462,7 @@ class sendMailNotification
|
|||||||
}
|
}
|
||||||
|
|
||||||
$policy_name_for_policy_type = $inner_item['policy_name'];
|
$policy_name_for_policy_type = $inner_item['policy_name'];
|
||||||
if($client_policy_data['policy_type_id'] == 3 && $client_policy_data['is_addon'] == 3){
|
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';
|
$policy_name_for_policy_type = 'Add-On Group Medical Coverage for Parents';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -513,7 +478,7 @@ class sendMailNotification
|
|||||||
$table_content .= '<th>Sum Insured</th>';
|
$table_content .= '<th>Sum Insured</th>';
|
||||||
|
|
||||||
// Premium summery for show and hide the Additional premium data
|
// Premium summery for show and hide the Additional premium data
|
||||||
if($inner_item['payable_employee'] == 1 || $client_policy_data['is_premium_summery'] == 1){
|
if ($inner_item['payable_employee'] == 1 || $client_policy_data['is_premium_summery'] == 1) {
|
||||||
$table_content .= '<th>Premium</th>';
|
$table_content .= '<th>Premium</th>';
|
||||||
$table_content .= '<th>GST</th>';
|
$table_content .= '<th>GST</th>';
|
||||||
}
|
}
|
||||||
@ -526,7 +491,7 @@ class sendMailNotification
|
|||||||
$table_content .= '</table></div>';
|
$table_content .= '</table></div>';
|
||||||
|
|
||||||
// Premium summery for show and hide the Additional premium data
|
// Premium summery for show and hide the Additional premium data
|
||||||
if($inner_item['payable_employee'] == 1 || $client_policy_data['is_premium_summery'] == 1){
|
if ($inner_item['payable_employee'] == 1 || $client_policy_data['is_premium_summery'] == 1) {
|
||||||
$addon_list_array = [
|
$addon_list_array = [
|
||||||
'policy_name' => $policy_name_for_policy_type . '( Payable By Employee )',
|
'policy_name' => $policy_name_for_policy_type . '( Payable By Employee )',
|
||||||
'addtional_premium' => round($addtional_premium),
|
'addtional_premium' => round($addtional_premium),
|
||||||
@ -539,7 +504,6 @@ class sendMailNotification
|
|||||||
$temp_data = '';
|
$temp_data = '';
|
||||||
$addtional_premium = 0;
|
$addtional_premium = 0;
|
||||||
$gst = 0;
|
$gst = 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -585,36 +549,23 @@ 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]]", "{{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]]", "{{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]]", "{{member_summary}}"], $table_content , $mail_content);
|
$mail_content = str_replace(["[[member_summary]]", "{{member_summary}}"], $table_content, $mail_content);
|
||||||
|
|
||||||
// print_r($mail_content); die;
|
|
||||||
|
|
||||||
$header_of_mail = view('notification_mail_header', $params);
|
|
||||||
$footer_of_mail = view('notification_mail_footer', $params);
|
|
||||||
$mail_content = preg_replace('/<p[^>]*>( |\s)*<\/p>/i', '', $mail_content);
|
$mail_content = preg_replace('/<p[^>]*>( |\s)*<\/p>/i', '', $mail_content);
|
||||||
$mail_content = $header_of_mail .
|
|
||||||
'<div align="center">
|
|
||||||
<table width="100%" border="0" cellspacing="0" cellpadding="0"
|
|
||||||
style="max-width:600px;">
|
|
||||||
|
|
||||||
<tr>
|
$data['params'] = $params;
|
||||||
<td align="left" style="padding:15px; word-break:break-word; font-family:arial, sans-serif; font-size:14px; line-height:20px;">
|
$data['mail_content'] = $mail_content;
|
||||||
' . $mail_content . '
|
$mail_content = view('mail_template', $data);
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>' . $footer_of_mail;
|
|
||||||
|
|
||||||
|
|
||||||
$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;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
} else if ($action == 'account_maneger_summary_mail') {
|
||||||
} else if($action == 'account_maneger_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'];
|
||||||
@ -622,27 +573,27 @@ class sendMailNotification
|
|||||||
|
|
||||||
$clientModel = new ClientModel();
|
$clientModel = new ClientModel();
|
||||||
$notificationModel = new NotificationModel();
|
$notificationModel = new NotificationModel();
|
||||||
$clientRMModel =new ClientRMModel();
|
$clientRMModel = new ClientRMModel();
|
||||||
$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();
|
||||||
|
|
||||||
$params['client_data'] = $client_data;
|
$params['client_data'] = $client_data;
|
||||||
|
|
||||||
$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();
|
||||||
|
|
||||||
if (isset($notification_data) && $notification_data['enabled'] == 1) {
|
if (isset($notification_data) && $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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -682,14 +633,14 @@ class sendMailNotification
|
|||||||
|
|
||||||
//getting policy premium data
|
//getting policy premium data
|
||||||
$client_policy_data = $clientPolicyModel->where('id', $inner_item['client_policy_id'])->first();
|
$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 ){
|
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();
|
$policy_premium_data = $PolicyPremium1Model->where('client_policy_id', $inner_item['client_policy_id'])->where('is_active', '1')->first();
|
||||||
}else{
|
} else {
|
||||||
$policy_premium_data = $PolicyPremium2Model->where('client_policy_id', $inner_item['client_policy_id'])->where('is_active', '1')->first();
|
$policy_premium_data = $PolicyPremium2Model->where('client_policy_id', $inner_item['client_policy_id'])->where('is_active', '1')->first();
|
||||||
}
|
}
|
||||||
//end of getting policy premium data
|
//end of getting policy premium data
|
||||||
|
|
||||||
if($inner_item['payable_employee'] == 1 && $client_policy_data['policy_type_id'] == 2){
|
if ($inner_item['payable_employee'] == 1 && $client_policy_data['policy_type_id'] == 2) {
|
||||||
$payable_employee_array[] = $inner_item;
|
$payable_employee_array[] = $inner_item;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -705,9 +656,9 @@ class sendMailNotification
|
|||||||
$premium = '';
|
$premium = '';
|
||||||
$gst_forself = '';
|
$gst_forself = '';
|
||||||
// if(checkFamilyFloaters($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']);
|
$si = '₹ ' . format_indian_number($inner_item['basic_cover_si']);
|
||||||
$premium = '₹ ' .format_indian_number(round($inner_item['premium']));
|
$premium = '₹ ' . format_indian_number(round($inner_item['premium']));
|
||||||
$gst_forself = '₹ ' .format_indian_number(round($inner_item['gst']));
|
$gst_forself = '₹ ' . format_indian_number(round($inner_item['gst']));
|
||||||
// }
|
// }
|
||||||
|
|
||||||
$temp_data .= '<tr>';
|
$temp_data .= '<tr>';
|
||||||
@ -733,7 +684,7 @@ class sendMailNotification
|
|||||||
}
|
}
|
||||||
|
|
||||||
$policy_name_for_policy_type = $inner_item['policy_name'];
|
$policy_name_for_policy_type = $inner_item['policy_name'];
|
||||||
if($client_policy_data['policy_type_id'] == 3 && $client_policy_data['is_addon'] == 3){
|
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';
|
$policy_name_for_policy_type = 'Add-On Group Medical Coverage for Parents';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -775,7 +726,7 @@ class sendMailNotification
|
|||||||
$gst = 0;
|
$gst = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(count($payable_employee_array) > 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 :';
|
$table_content .= '<div style="text-align: left; font-size: 12px;"><div style="text-align:left;"><h4>Policy Type :';
|
||||||
$temp_data = '';
|
$temp_data = '';
|
||||||
@ -786,9 +737,9 @@ class sendMailNotification
|
|||||||
|
|
||||||
//getting policy premium data
|
//getting policy premium data
|
||||||
$client_policy_data = $clientPolicyModel->where('id', $inner_item['client_policy_id'])->first();
|
$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 ){
|
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();
|
$policy_premium_data = $PolicyPremium1Model->where('client_policy_id', $inner_item['client_policy_id'])->where('is_active', '1')->first();
|
||||||
}else{
|
} else {
|
||||||
$policy_premium_data = $PolicyPremium2Model->where('client_policy_id', $inner_item['client_policy_id'])->where('is_active', '1')->first();
|
$policy_premium_data = $PolicyPremium2Model->where('client_policy_id', $inner_item['client_policy_id'])->where('is_active', '1')->first();
|
||||||
}
|
}
|
||||||
//end of getting policy premium data
|
//end of getting policy premium data
|
||||||
@ -798,9 +749,9 @@ class sendMailNotification
|
|||||||
$premium = '';
|
$premium = '';
|
||||||
$gst_forself = '';
|
$gst_forself = '';
|
||||||
|
|
||||||
$si = '₹ ' .format_indian_number($inner_item['basic_cover_si']);
|
$si = '₹ ' . format_indian_number($inner_item['basic_cover_si']);
|
||||||
$premium = '₹ ' .format_indian_number(round($inner_item['rata_premimum']));
|
$premium = '₹ ' . format_indian_number(round($inner_item['rata_premimum']));
|
||||||
$gst_forself = '₹ ' .format_indian_number(round($inner_item['gst']));
|
$gst_forself = '₹ ' . format_indian_number(round($inner_item['gst']));
|
||||||
|
|
||||||
$temp_data .= '<tr>';
|
$temp_data .= '<tr>';
|
||||||
$temp_data .= '<td>' . $inner_item['name'] . ($inner_item['relationship'] == 'Self' ? ' (' . $inner_item['emp_code'] . ')' : '') . '</td>';
|
$temp_data .= '<td>' . $inner_item['name'] . ($inner_item['relationship'] == 'Self' ? ' (' . $inner_item['emp_code'] . ')' : '') . '</td>';
|
||||||
@ -819,7 +770,7 @@ class sendMailNotification
|
|||||||
}
|
}
|
||||||
|
|
||||||
$policy_name_for_policy_type = $inner_item['policy_name'];
|
$policy_name_for_policy_type = $inner_item['policy_name'];
|
||||||
if($client_policy_data['policy_type_id'] == 3 && $client_policy_data['is_addon'] == 3){
|
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';
|
$policy_name_for_policy_type = 'Add-On Group Medical Coverage for Parents';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -855,9 +806,7 @@ class sendMailNotification
|
|||||||
$temp_data = '';
|
$temp_data = '';
|
||||||
$addtional_premium = 0;
|
$addtional_premium = 0;
|
||||||
$gst = 0;
|
$gst = 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count($Addon_list) > 0) {
|
if (count($Addon_list) > 0) {
|
||||||
@ -900,43 +849,33 @@ class sendMailNotification
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$mail_content = str_replace(["[[member_summary]]", "{{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]]", "{{member_name}}"], $full_name , $mail_content);
|
$mail_content = str_replace(["[[member_name]]", "{{member_name}}"], $full_name, $mail_content);
|
||||||
|
|
||||||
$header_of_mail = view('notification_mail_header', $params);
|
$mail_content = preg_replace('/<p[^>]*>( |\s)*<\/p>/i', '', $mail_content);
|
||||||
$footer_of_mail = view('notification_mail_footer', $params);
|
|
||||||
$mail_content = preg_replace('/<p[^>]*>( |\s)*<\/p>/i', '', $mail_content);
|
|
||||||
$mail_content = $header_of_mail .
|
|
||||||
'<div align="center">
|
|
||||||
<table width="100%" border="0" cellspacing="0" cellpadding="0"
|
|
||||||
style="max-width:600px;">
|
|
||||||
|
|
||||||
<tr>
|
$data['params'] = $params;
|
||||||
<td align="left" style="padding:15px; word-break:break-word; font-family:arial, sans-serif; font-size:14px; line-height:20px;">
|
$data['mail_content'] = $mail_content;
|
||||||
' . $mail_content . '
|
$mail_content = view('mail_template', $data);
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>' . $footer_of_mail;
|
|
||||||
|
|
||||||
|
|
||||||
$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'];
|
||||||
|
data: name: name:
|
||||||
// $clientModel = new ClientModel();
|
// $clientModel = new ClientModel();
|
||||||
// $clientPolicyModel = new ClientPolicyModel();
|
// $clientPolicyModel = new ClientPolicyModel();
|
||||||
// $PolicyPremium1Model = new PolicyPremium1Model();
|
// $PolicyPremium1Model = new PolicyPremium1Model();
|
||||||
@ -1224,9 +1163,13 @@ class sendMailNotification
|
|||||||
// $mail_array = array_map('trim', $mail_array);
|
// $mail_array = array_map('trim', $mail_array);
|
||||||
// $wholeData = [];
|
// $wholeData = [];
|
||||||
// foreach ($mail_array as $key => $value) {
|
// foreach ($mail_array as $key => $value) {
|
||||||
// $header_of_mail = view('notification_mail_header', $params);
|
//
|
||||||
// $footer_of_mail = view('notification_mail_footer', $params);
|
//
|
||||||
// $mail_content = preg_replace('/<p[^>]*>( |\s)*<\/p>/i', '', $mail_content);
|
// $mail_content = preg_replace('/<p[^>]*>( |\s)*<\/p>/i', '', $mail_content);
|
||||||
|
|
||||||
|
// $data['params'] = $params;
|
||||||
|
// $data['mail_content'] = $mail_content;
|
||||||
|
// $mail_content = view('mail_template',$data);
|
||||||
// $mail_content = $header_of_mail .
|
// $mail_content = $header_of_mail .
|
||||||
// '<div align="center">
|
// '<div align="center">
|
||||||
// <table width="100%" border="0" cellspacing="0" cellpadding="0"
|
// <table width="100%" border="0" cellspacing="0" cellpadding="0"
|
||||||
@ -1252,9 +1195,9 @@ class sendMailNotification
|
|||||||
|
|
||||||
public static function sendMailNotificationForTesting($action, $params)
|
public static function sendMailNotificationForTesting($action, $params)
|
||||||
{
|
{
|
||||||
$wholeData =[];
|
$wholeData = [];
|
||||||
|
|
||||||
if ($action == 'member_welcome_mail'){
|
if ($action == 'member_welcome_mail') {
|
||||||
|
|
||||||
$clientModel = new ClientModel();
|
$clientModel = new ClientModel();
|
||||||
|
|
||||||
@ -1267,10 +1210,10 @@ class sendMailNotification
|
|||||||
|
|
||||||
$mailAttachmentModel = new MailAttachmentModel();
|
$mailAttachmentModel = new MailAttachmentModel();
|
||||||
$attachment_data = $mailAttachmentModel
|
$attachment_data = $mailAttachmentModel
|
||||||
->select('file_path, file_name')
|
->select('file_path, file_name')
|
||||||
->where('notification_id', $notification['id'])
|
->where('notification_id', $notification['id'])
|
||||||
->where('is_active', 1)
|
->where('is_active', 1)
|
||||||
->findAll();
|
->findAll();
|
||||||
|
|
||||||
$attachments = [];
|
$attachments = [];
|
||||||
foreach ($attachment_data as $data) {
|
foreach ($attachment_data as $data) {
|
||||||
@ -1300,28 +1243,20 @@ class sendMailNotification
|
|||||||
|
|
||||||
if ($mail != null || $mail != '') {
|
if ($mail != null || $mail != '') {
|
||||||
|
|
||||||
$header_of_mail = view('notification_mail_header', $params);
|
//
|
||||||
$footer_of_mail = view('notification_mail_footer', $params);
|
//
|
||||||
|
|
||||||
$mail_content = preg_replace('/<p[^>]*>( |\s)*<\/p>/i', '', $mail_content);
|
$mail_content = preg_replace('/<p[^>]*>( |\s)*<\/p>/i', '', $mail_content);
|
||||||
$mail_content = $header_of_mail .
|
|
||||||
'<div align="center">
|
|
||||||
<table width="100%" border="0" cellspacing="0" cellpadding="0"
|
|
||||||
style="max-width:600px;">
|
|
||||||
<tr>
|
|
||||||
<td align="left" style="padding:0px; word-break:break-word; font-family:arial, sans-serif;">
|
|
||||||
' . $mail_content . '
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>' . $footer_of_mail;
|
|
||||||
|
|
||||||
|
$data['params'] = $params;
|
||||||
|
$data['mail_content'] = $mail_content;
|
||||||
|
$mail_content = view('mail_template', $data);
|
||||||
|
|
||||||
$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];
|
||||||
}
|
}
|
||||||
|
|
||||||
return $wholeData;
|
return $wholeData;
|
||||||
|
} else if ($action == 'member_reminder_mail') {
|
||||||
} else if($action == 'member_reminder_mail'){
|
|
||||||
|
|
||||||
$notification_data = $params['notification_data'];
|
$notification_data = $params['notification_data'];
|
||||||
$client_data = $params['client_data'];
|
$client_data = $params['client_data'];
|
||||||
@ -1348,41 +1283,30 @@ class sendMailNotification
|
|||||||
if ((isset($notification_data) && $notification_data['enabled'] == 1)) {
|
if ((isset($notification_data) && $notification_data['enabled'] == 1)) {
|
||||||
|
|
||||||
if (isset($mail) && !empty($mail)) {
|
if (isset($mail) && !empty($mail)) {
|
||||||
$header_of_mail = view('notification_mail_header', $params);
|
|
||||||
$footer_of_mail = view('notification_mail_footer', $params);
|
|
||||||
$mail_content = preg_replace('/<p[^>]*>( |\s)*<\/p>/i', '', $mail_content);
|
|
||||||
$mail_content = $header_of_mail .
|
|
||||||
'<div align="center">
|
|
||||||
<table width="100%" border="0" cellspacing="0" cellpadding="0"
|
|
||||||
style="max-width:600px;">
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td align="left" style="padding:15px; word-break:break-word; font-family:arial, sans-serif; font-size:14px; line-height:20px;">
|
|
||||||
' . $mail_content . '
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>' . $footer_of_mail;
|
|
||||||
|
|
||||||
$wholeData = ['mail' => $mail, 'subject' => $subject,'message'=> $mail_content, 'bcc'=> $client_data['common_mails'], 'reply_to' => $client_data['reply_to']];
|
$mail_content = preg_replace('/<p[^>]*>( |\s)*<\/p>/i', '', $mail_content);
|
||||||
|
|
||||||
|
$data['params'] = $params;
|
||||||
|
$data['mail_content'] = $mail_content;
|
||||||
|
$mail_content = view('mail_template', $data);
|
||||||
|
|
||||||
|
$wholeData = ['mail' => $mail, 'subject' => $subject, 'message' => $mail_content, 'bcc' => $client_data['common_mails'], 'reply_to' => $client_data['reply_to']];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $wholeData;
|
return $wholeData;
|
||||||
|
} else if ($action == 'member_ecard_mail') {
|
||||||
|
|
||||||
} else if($action == 'member_ecard_mail'){
|
|
||||||
|
|
||||||
$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();
|
$mailAttachmentModel = new MailAttachmentModel();
|
||||||
$attachment_data = $mailAttachmentModel
|
$attachment_data = $mailAttachmentModel
|
||||||
->select('file_path, file_name')
|
->select('file_path, file_name')
|
||||||
->where('notification_id', $notification['id'])
|
->where('notification_id', $notification['id'])
|
||||||
->where('is_active', 1)
|
->where('is_active', 1)
|
||||||
->findAll();
|
->findAll();
|
||||||
|
|
||||||
$attachments = [];
|
$attachments = [];
|
||||||
foreach ($attachment_data as $data) {
|
foreach ($attachment_data as $data) {
|
||||||
@ -1417,41 +1341,32 @@ class sendMailNotification
|
|||||||
$mail_content = str_replace(["[[ecard_download_link]]", "{{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_name}}"], $client_data['client_name'], $mail_content);
|
$mail_content = str_replace(["[[client_name]]", "{{client_name}}"], $client_data['client_name'], $mail_content);
|
||||||
|
|
||||||
$header_of_mail = view('notification_mail_header', $params);
|
|
||||||
$footer_of_mail = view('notification_mail_footer', $params);
|
|
||||||
$mail_content = preg_replace('/<p[^>]*>( |\s)*<\/p>/i', '', $mail_content);
|
|
||||||
$mail_content = $header_of_mail .
|
|
||||||
'<div align="center">
|
|
||||||
<table width="100%" border="0" cellspacing="0" cellpadding="0"
|
|
||||||
style="max-width:600px;">
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td align="left" style="padding:15px; word-break:break-word; font-family:arial, sans-serif; font-size:14px; line-height:20px;">
|
|
||||||
' . $mail_content . '
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>' . $footer_of_mail;
|
|
||||||
|
|
||||||
|
|
||||||
$wholeData = ['mail' => $mail, 'subject' => $subject,'message'=> $mail_content,'bcc'=> $client_data['common_mails'],'attachments' => $attachments, 'reply_to' => $client_data['reply_to']];
|
$mail_content = preg_replace('/<p[^>]*>( |\s)*<\/p>/i', '', $mail_content);
|
||||||
|
|
||||||
|
$data['params'] = $params;
|
||||||
|
$data['mail_content'] = $mail_content;
|
||||||
|
$mail_content = view('mail_template', $data);
|
||||||
|
|
||||||
|
|
||||||
|
$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;
|
||||||
|
} else if ($action == 'member_review_and_summary_mail') {
|
||||||
} else if($action == 'member_review_and_summary_mail'){
|
|
||||||
|
|
||||||
$array_list = [
|
$array_list = [
|
||||||
'policy_name' => 'Health Insurance Plan',
|
'policy_name' => 'Health Insurance Plan',
|
||||||
'emp_code' => 'E12345',
|
'emp_code' => 'E12345',
|
||||||
'name' => 'John Doe',
|
'name' => 'John Doe',
|
||||||
'relationship' => 'Self',
|
'relationship' => 'Self',
|
||||||
'dob' => '1985-05-15',
|
'dob' => '1985-05-15',
|
||||||
'basic_cover_si' => 500000,
|
'basic_cover_si' => 500000,
|
||||||
'premium' => 12000,
|
'premium' => 12000,
|
||||||
'gst' => 2160,
|
'gst' => 2160,
|
||||||
'rata_premimum' => 12000,
|
'rata_premimum' => 12000,
|
||||||
'is_addon' => 2,
|
'is_addon' => 2,
|
||||||
'mobile' => 9080706050
|
'mobile' => 9080706050
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
@ -1581,34 +1496,24 @@ class sendMailNotification
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$mail_content = str_replace(["[[member_name]]", "{{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]]", "{{member_mobile}}"], $mobile, $mail_content);
|
$mail_content = str_replace(["[[member_mobile]]", "{{member_mobile}}"], $mobile, $mail_content);
|
||||||
$mail_content = str_replace(["[[member_summary]]", "{{member_summary}}"], $table_content , $mail_content);
|
$mail_content = str_replace(["[[member_summary]]", "{{member_summary}}"], $table_content, $mail_content);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$header_of_mail = view('notification_mail_header', $params);
|
|
||||||
$footer_of_mail = view('notification_mail_footer', $params);
|
|
||||||
$mail_content = preg_replace('/<p[^>]*>( |\s)*<\/p>/i', '', $mail_content);
|
$mail_content = preg_replace('/<p[^>]*>( |\s)*<\/p>/i', '', $mail_content);
|
||||||
$mail_content = $header_of_mail .
|
|
||||||
'<div align="center">
|
|
||||||
<table width="100%" border="0" cellspacing="0" cellpadding="0"
|
|
||||||
style="max-width:600px;">
|
|
||||||
|
|
||||||
<tr>
|
$data['params'] = $params;
|
||||||
<td align="left" style="padding:15px; word-break:break-word; font-family:arial, sans-serif; font-size:14px; line-height:20px;">
|
$data['mail_content'] = $mail_content;
|
||||||
' . $mail_content . '
|
$mail_content = view('mail_template', $data);
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>' . $footer_of_mail;
|
|
||||||
|
|
||||||
|
|
||||||
$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']];
|
||||||
|
|
||||||
return $wholeData;
|
return $wholeData;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
} else if ($action == 'account_maneger_summary_mail') {
|
||||||
} else if($action == 'account_maneger_summary_mail'){
|
|
||||||
|
|
||||||
$array_list = [
|
$array_list = [
|
||||||
'policy_name' => 'Health Insurance Plan',
|
'policy_name' => 'Health Insurance Plan',
|
||||||
@ -1747,32 +1652,23 @@ class sendMailNotification
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$mail_content = str_replace(["[[member_name]]", "{{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]]", "{{member_summary}}"], $table_content , $mail_content);
|
$mail_content = str_replace(["[[member_summary]]", "{{member_summary}}"], $table_content, $mail_content);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$header_of_mail = view('notification_mail_header', $params);
|
|
||||||
$footer_of_mail = view('notification_mail_footer', $params);
|
|
||||||
$mail_content = preg_replace('/<p[^>]*>( |\s)*<\/p>/i', '', $mail_content);
|
$mail_content = preg_replace('/<p[^>]*>( |\s)*<\/p>/i', '', $mail_content);
|
||||||
$mail_content = $header_of_mail .
|
|
||||||
'<div align="center">
|
|
||||||
<table width="100%" border="0" cellspacing="0" cellpadding="0"
|
|
||||||
style="max-width:600px;">
|
|
||||||
|
|
||||||
<tr>
|
$data['params'] = $params;
|
||||||
<td align="left" style="padding:15px; word-break:break-word; font-family:arial, sans-serif; font-size:14px; line-height:20px;">
|
$data['mail_content'] = $mail_content;
|
||||||
' . $mail_content . '
|
$mail_content = view('mail_template', $data);
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>' . $footer_of_mail;
|
|
||||||
|
|
||||||
|
|
||||||
$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']];
|
||||||
|
|
||||||
return $wholeData;
|
return $wholeData;
|
||||||
}
|
}
|
||||||
|
} else if ($action == 'client_hr_summary_mail') {
|
||||||
} else if($action == 'client_hr_summary_mail'){
|
|
||||||
|
|
||||||
$array_list = [
|
$array_list = [
|
||||||
'policy_name' => 'Health Insurance Plan',
|
'policy_name' => 'Health Insurance Plan',
|
||||||
@ -1913,31 +1809,21 @@ class sendMailNotification
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$mail_content = str_replace(["[[member_name]]", "{{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]]", "{{member_summary}}"], $table_content , $mail_content);
|
$mail_content = str_replace(["[[member_summary]]", "{{member_summary}}"], $table_content, $mail_content);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$header_of_mail = view('notification_mail_header', $params);
|
|
||||||
$footer_of_mail = view('notification_mail_footer', $params);
|
|
||||||
$mail_content = preg_replace('/<p[^>]*>( |\s)*<\/p>/i', '', $mail_content);
|
$mail_content = preg_replace('/<p[^>]*>( |\s)*<\/p>/i', '', $mail_content);
|
||||||
$mail_content = $header_of_mail .
|
|
||||||
'<div align="center">
|
|
||||||
<table width="100%" border="0" cellspacing="0" cellpadding="0"
|
|
||||||
style="max-width:600px;">
|
|
||||||
|
|
||||||
<tr>
|
$data['params'] = $params;
|
||||||
<td align="left" style="padding:15px; word-break:break-word; font-family:arial, sans-serif; font-size:14px; line-height:20px;">
|
$data['mail_content'] = $mail_content;
|
||||||
' . $mail_content . '
|
$mail_content = view('mail_template', $data);
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>' . $footer_of_mail;
|
|
||||||
|
|
||||||
|
$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']];
|
|
||||||
|
|
||||||
return $wholeData;
|
return $wholeData;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -185,8 +185,6 @@ body {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>
|
|
||||||
|
|
||||||
<ul class="nav nav-pills navtab-bg">
|
<ul class="nav nav-pills navtab-bg">
|
||||||
<!-- <li class="nav-item">
|
<!-- <li class="nav-item">
|
||||||
<a href="#pending-actions-dash-tab" data-toggle="tab" aria-expanded="false"
|
<a href="#pending-actions-dash-tab" data-toggle="tab" aria-expanded="false"
|
||||||
@ -196,8 +194,10 @@ body {
|
|||||||
</a>
|
</a>
|
||||||
</li> -->
|
</li> -->
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
|
<p style="margin-left:15px;margin-bottom:0px;color:black;"><b style="font-size: xx-large;">Dashboard</b></p>
|
||||||
|
<br>
|
||||||
<a href="#enrollment-dash-tab" data-toggle="tab" aria-expanded="true"
|
<a href="#enrollment-dash-tab" data-toggle="tab" aria-expanded="true"
|
||||||
class="nav-link px-3 py-2 active" id="enrollemnt_tab">
|
class="nav-link active" id="enrollemnt_tab" style="border-radius:15px;text-align:center;background-color:#00999E;">
|
||||||
<span class="mr-1"><i class="fa fa-file"></i></span>
|
<span class="mr-1"><i class="fa fa-file"></i></span>
|
||||||
<span class="d-none d-sm-inline-block">Enrolment</span>
|
<span class="d-none d-sm-inline-block">Enrolment</span>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@ -923,6 +923,13 @@ function confirmActionSweertAlert(message = "Are you sure?", confirmText = "Yes,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
window.addEventListener("load", function() {
|
||||||
|
document.body.style.setProperty("background-color", "white", "important");
|
||||||
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
930
app/Views/layout/footer_old.php
Normal file
930
app/Views/layout/footer_old.php
Normal file
@ -0,0 +1,930 @@
|
|||||||
|
</div> <!-- container -->
|
||||||
|
|
||||||
|
</div> <!-- content -->
|
||||||
|
|
||||||
|
<!-- Footer Start -->
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<script>
|
||||||
|
document.write(new Date().getFullYear())
|
||||||
|
</script> © NHANCE
|
||||||
|
</div>
|
||||||
|
<!-- <div class="col-md-6">
|
||||||
|
<div class="text-md-right footer-links d-none d-sm-block">
|
||||||
|
<a href="javascript:void(0);">About Us</a>
|
||||||
|
<a href="javascript:void(0);">Help</a>
|
||||||
|
<a href="javascript:void(0);">Contact Us</a>
|
||||||
|
</div>
|
||||||
|
</div> -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
<!-- end Footer -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- ============================================================== -->
|
||||||
|
<!-- End Page content -->
|
||||||
|
<!-- ============================================================== -->
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<!-- END wrapper -->
|
||||||
|
|
||||||
|
<!-- Right Sidebar -->
|
||||||
|
<div class="right-bar">
|
||||||
|
<div class="h-100">
|
||||||
|
<!-- Notifications Header -->
|
||||||
|
<h6 class="font-weight-medium px-3 m-0 py-2 font-13 text-uppercase bg-light fixed-header">
|
||||||
|
<i class="mdi mdi-message-text-outline font-22"></i>
|
||||||
|
<span class="header-title">Notification</span>
|
||||||
|
</h6>
|
||||||
|
<div class="scrollable-content">
|
||||||
|
<ul class="list-unstyled" id="messages-list">
|
||||||
|
<!-- Notifications list items go here -->
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Pending Action Header -->
|
||||||
|
<h6 class="font-weight-medium px-3 m-0 py-2 font-13 bg-light fixed-header">
|
||||||
|
<i class="mdi mdi-format-list-checks font-22"></i>
|
||||||
|
<span class="header-title">TO DOs</span>
|
||||||
|
</h6>
|
||||||
|
<div class="scrollable-content">
|
||||||
|
<ul class="list-unstyled" id="messages-list-2">
|
||||||
|
<!-- Pending action list items go here -->
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div> <!-- end simplebar -->
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- /Right-bar -->
|
||||||
|
|
||||||
|
<!-- Right bar overlay-->
|
||||||
|
<div class="rightbar-overlay"></div>
|
||||||
|
|
||||||
|
<!-- Vendor js -->
|
||||||
|
<script src="<?= base_url() . "public"; ?>/assets/js/vendor.min.js"></script>
|
||||||
|
|
||||||
|
<!-- KNOB JS -->
|
||||||
|
<script src="<?= base_url() . "public"; ?>/assets/libs/jquery-knob/jquery.knob.min.js"></script>
|
||||||
|
<!-- Apex js-->
|
||||||
|
<script src="<?= base_url() . "public"; ?>/assets/libs/apexcharts/apexcharts.min.js"></script>
|
||||||
|
|
||||||
|
<!-- third party js -->
|
||||||
|
<script src="<?= base_url() . "public"; ?>/assets/libs/datatables.net/js/jquery.dataTables.min.js"></script>
|
||||||
|
<script src="<?= base_url() . "public"; ?>/assets/libs/datatables.net-bs4/js/dataTables.bootstrap4.min.js"></script>
|
||||||
|
<script src="<?= base_url() . "public"; ?>/assets/libs/datatables.net-responsive/js/dataTables.responsive.min.js"></script>
|
||||||
|
<script src="<?= base_url() . "public"; ?>/assets/libs/datatables.net-responsive-bs4/js/responsive.bootstrap4.min.js"></script>
|
||||||
|
<script src="<?= base_url() . "public"; ?>/assets/libs/datatables.net-buttons/js/dataTables.buttons.min.js"></script>
|
||||||
|
<script src="<?= base_url() . "public"; ?>/assets/libs/datatables.net-buttons-bs4/js/buttons.bootstrap4.min.js"></script>
|
||||||
|
<script src="<?= base_url() . "public"; ?>/assets/libs/datatables.net-buttons/js/buttons.html5.min.js"></script>
|
||||||
|
<script src="<?= base_url() . "public"; ?>/assets/libs/datatables.net-buttons/js/buttons.flash.min.js"></script>
|
||||||
|
<script src="<?= base_url() . "public"; ?>/assets/libs/datatables.net-buttons/js/buttons.print.min.js"></script>
|
||||||
|
<script src="<?= base_url() . "public"; ?>/assets/libs/datatables.net-keytable/js/dataTables.keyTable.min.js"></script>
|
||||||
|
<script src="<?= base_url() . "public"; ?>/assets/libs/datatables.net-select/js/dataTables.select.min.js"></script>
|
||||||
|
<script src="<?= base_url() . "public"; ?>/assets/libs/pdfmake/build/pdfmake.min.js"></script>
|
||||||
|
<script src="<?= base_url() . "public"; ?>/assets/libs/pdfmake/build/vfs_fonts.js"></script>
|
||||||
|
<!-- third party js ends -->
|
||||||
|
|
||||||
|
<script src="<?= base_url() . "public"; ?>/assets/libs/bootstrap-datepicker/js/bootstrap-datepicker.min.js"></script>
|
||||||
|
<script src="<?= base_url() . "public"; ?>/assets/libs/moment/min/moment.min.js"></script>
|
||||||
|
<script src="<?= base_url() . "public"; ?>/assets/libs/bootstrap-daterangepicker/daterangepicker.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Datatables init -->
|
||||||
|
<!-- <script src="<?= base_url() . "public"; ?>/assets/js/pages/datatables.init.js"></script> -->
|
||||||
|
|
||||||
|
|
||||||
|
<script src="<?= base_url() . "public"; ?>/assets/js/pages/tickets.init.js"></script>
|
||||||
|
|
||||||
|
<!-- Plugins js-->
|
||||||
|
<script src="<?= base_url() . "public"; ?>/assets/libs/admin-resources/jquery.vectormap/jquery-jvectormap-1.2.2.min.js"></script>
|
||||||
|
<script src="<?= base_url() . "public"; ?>/assets/libs/admin-resources/jquery.vectormap/maps/jquery-jvectormap-us-merc-en.js"></script>
|
||||||
|
<script src="<?= base_url() . "public"; ?>/assets/libs/parsleyjs/parsley.min.js"></script>
|
||||||
|
|
||||||
|
<!-- Dashboard init-->
|
||||||
|
<script src="<?= base_url() . "public"; ?>/assets/js/pages/dashboard-analytics.init.js"></script>
|
||||||
|
|
||||||
|
<!-- Validation init js-->
|
||||||
|
<script src="<?= base_url() . "public"; ?>/assets/js/pages/form-validation.init.js"></script>
|
||||||
|
|
||||||
|
<!-- App js -->
|
||||||
|
<script src="<?= base_url() . "public"; ?>/assets/js/app.min.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Sweet Alert CDN -->
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap-multiselect@1.1.0/dist/js/bootstrap-multiselect.min.js"></script>
|
||||||
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-multiselect/0.9.13/css/bootstrap-multiselect.css" />
|
||||||
|
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/toastr@2.1.4/toastr.min.js"></script>
|
||||||
|
<link href="https://cdn.jsdelivr.net/npm/toastr@2.1.4/build/toastr.min.css" rel="stylesheet">
|
||||||
|
|
||||||
|
<!-- flatpicker datepicker -->
|
||||||
|
<link href="https://cdn.jsdelivr.net/npm/flatpickr@4.6.13/dist/flatpickr.min.css" rel="stylesheet">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/flatpickr@4.6.13/dist/flatpickr.min.js"></script>
|
||||||
|
|
||||||
|
<!-- bootstrap datepicker -->
|
||||||
|
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.10.0/js/bootstrap-datepicker.min.js"></script> -->
|
||||||
|
|
||||||
|
<script src="<?= base_url() . "public"; ?>/assets/js/pages/jquery.xeditable.js"></script>
|
||||||
|
<script src="<?= base_url() . "public"; ?>/assets/js/form-xeditable.init.js"></script>
|
||||||
|
<script src="<?= base_url() . "public"; ?>/assets/js/bootstrap-editable.min.js"></script>
|
||||||
|
|
||||||
|
<!-- Jodit Js -->
|
||||||
|
<script src="<?= base_url() . "public"; ?>/assets/js/jodit.min.js"></script>
|
||||||
|
|
||||||
|
<!-- select2 -->
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/2.0.8/sorting/scientific.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.7.1/jszip.min.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
toastr.options = {
|
||||||
|
"timeOut": 5000,
|
||||||
|
"closeButton": true,
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
var pullNotificationCount = 0;
|
||||||
|
var pendingActionCount = 0;
|
||||||
|
|
||||||
|
$(document).ready(function() {
|
||||||
|
|
||||||
|
|
||||||
|
// function fetchMessages() {
|
||||||
|
|
||||||
|
// $.ajax({
|
||||||
|
// url: '<?= base_url('dashboard/get-notification') ?>',
|
||||||
|
// method: 'GET',
|
||||||
|
// success: function(response) {
|
||||||
|
|
||||||
|
// // console.log('responce', response)
|
||||||
|
|
||||||
|
// if(response.status == false){
|
||||||
|
// $('#notification_count').html('0')
|
||||||
|
// console.log('The session is not set correctly. ')
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// let messagesList = $('#messages-list');
|
||||||
|
// messagesList.empty();
|
||||||
|
|
||||||
|
// var html = "";
|
||||||
|
|
||||||
|
// pullNotificationCount = response.message.length
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// localStorage.setItem('pullNotificationCount', pullNotificationCount)
|
||||||
|
|
||||||
|
// response.message.forEach(message => {
|
||||||
|
|
||||||
|
// // if (!message.is_read) {
|
||||||
|
// // unreadCount++;
|
||||||
|
// // }
|
||||||
|
|
||||||
|
// var jasonDecodeData = JSON.parse(message.message_text)
|
||||||
|
|
||||||
|
// var toast_body_css = 'background : #bfd7eb !important;';
|
||||||
|
// var toast_head_css = 'background-color : rgb(2, 168, 181) !important; color :#000; border-bottom: 0;';
|
||||||
|
// var toast_icon = 'mdi mdi-checkbox-marked-circle mr-auto';
|
||||||
|
// var toast_status_word = 'Success';
|
||||||
|
|
||||||
|
// if (jasonDecodeData.msg_status == 'failure') {
|
||||||
|
|
||||||
|
// toast_body_css = 'background : #fdcfcf !important;';
|
||||||
|
// toast_head_css = 'background-color : rgb(235 105 105 / 85%) !important; color :#000; border-bottom: 0;';
|
||||||
|
// toast_icon = 'mdi mdi-information mr-auto'
|
||||||
|
// toast_status_word = 'Failure';
|
||||||
|
|
||||||
|
// } else if (jasonDecodeData.msg_status == 'success') {
|
||||||
|
|
||||||
|
// toast_body_css = 'background : #bfd7eb !important;';
|
||||||
|
// toast_head_css = 'background-color : rgb(2, 168, 181) !important; color :#000; border-bottom: 0;';
|
||||||
|
// toast_icon = 'mdi mdi-checkbox-marked-circle mr-auto'
|
||||||
|
// toast_status_word = 'Success';
|
||||||
|
// }
|
||||||
|
|
||||||
|
// var html = ` <li data-id="${message.id}" data-url="${jasonDecodeData.action_url != undefined && jasonDecodeData.action_url != "" ? jasonDecodeData.action_url : 'dashboard/view'}">
|
||||||
|
// <div class="p-3">
|
||||||
|
// <div class="toast fade show" role="alert" aria-live="assertive" aria-atomic="true" data-toggle="toast">
|
||||||
|
// <div class="toast-header " style="${toast_head_css}" >
|
||||||
|
// <strong class="${toast_icon}"> ${toast_status_word}</strong>
|
||||||
|
// <button type="button" class="ml-2 mb-1 close rm_msg" data-dismiss="toast" aria-label="Close">
|
||||||
|
// <span aria-hidden="true">×</span>
|
||||||
|
// </button>
|
||||||
|
// </div>
|
||||||
|
// <div class="toast-body" style="${toast_body_css}">
|
||||||
|
// <strong>${jasonDecodeData.msg_title ? jasonDecodeData.msg_title : ''}</strong> <br><br>
|
||||||
|
// <small style="position: relative;bottom: 8px;">${jasonDecodeData.message_text}</small>
|
||||||
|
// <div class="toast-footer">
|
||||||
|
// <a href="#" class="redirect_page" data-toggle="tooltip" data-placement="bottom" title="Click Go to the Page"><small style="margin-right: 25px;position: relative;top: 2px;">${jasonDecodeData.action_url != undefined && jasonDecodeData.action_url != "" ? 'see more' : ''}</small></a>
|
||||||
|
// <small style="position: relative;top: 2px;left: 5px;font-size: 10px;">${formatDate(message.created_at)}</small>
|
||||||
|
// </div>
|
||||||
|
// </div>
|
||||||
|
// </div>
|
||||||
|
// </div>
|
||||||
|
// </li>`
|
||||||
|
|
||||||
|
|
||||||
|
// messagesList.append(html);
|
||||||
|
// $(function() {
|
||||||
|
// $('[data-toggle="tooltip"]').tooltip();
|
||||||
|
// });
|
||||||
|
// });
|
||||||
|
// },
|
||||||
|
// error: function(xhr, status, error) {
|
||||||
|
// console.error(xhr.responseText); // Log the error response
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
|
||||||
|
// let PNCount = parseInt(localStorage.getItem('pullNotificationCount'));
|
||||||
|
// let PACount = parseInt(localStorage.getItem('pendingActionCount'));
|
||||||
|
|
||||||
|
// totalcount = PNCount + PACount
|
||||||
|
// $('#notification_count').html(totalcount);
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
|
// function acknowledgeMessage(messageId) {
|
||||||
|
// $.ajax({
|
||||||
|
// url: '<?= base_url('dashboard/acknowledge-notification/') ?>' + messageId,
|
||||||
|
// method: 'GET',
|
||||||
|
// success: function(response) {
|
||||||
|
// fetchMessages();
|
||||||
|
// },
|
||||||
|
// error: function(xhr, status, error) {
|
||||||
|
// console.error(xhr.responseText); // Log the error response
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
// }
|
||||||
|
|
||||||
|
// $('#messages-list').on('click', 'li', function(event) {
|
||||||
|
|
||||||
|
// //console.log('messages-list click li')
|
||||||
|
|
||||||
|
// if ($(event.target).closest('.rm_msg').length > 0) {
|
||||||
|
|
||||||
|
// //console.log('.rm_msg')
|
||||||
|
|
||||||
|
// let messageId = $(this).data('id');
|
||||||
|
// let url = $(this).data('url');
|
||||||
|
// // acknowledgeMessage(messageId);
|
||||||
|
|
||||||
|
// $(this).delay(300).fadeOut('slow', function() {
|
||||||
|
// $(this).remove();
|
||||||
|
// });
|
||||||
|
|
||||||
|
// } else if ($(event.target).closest('.redirect_page').length > 0) {
|
||||||
|
|
||||||
|
// //console.log('redirect_page')
|
||||||
|
|
||||||
|
// let messageId = $(this).data('id');
|
||||||
|
// let url = $(this).data('url');
|
||||||
|
// //console.log('url : ', url)
|
||||||
|
// // acknowledgeMessage(messageId);
|
||||||
|
|
||||||
|
// window.location.href = '<?= base_url() ?>' + url;
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
// });
|
||||||
|
|
||||||
|
// fetchMessages();
|
||||||
|
|
||||||
|
// setInterval(fetchMessages, 60000); // Fetch messages every sixty seconds
|
||||||
|
});
|
||||||
|
|
||||||
|
// $(document).ready(function() {
|
||||||
|
|
||||||
|
// function fetchPendingAction() {
|
||||||
|
|
||||||
|
// $.ajax({
|
||||||
|
|
||||||
|
// url: '<?= base_url('dashboard/get-pending-action') ?>',
|
||||||
|
// method: 'GET',
|
||||||
|
// success: function(response) {
|
||||||
|
|
||||||
|
// console.log(response);
|
||||||
|
|
||||||
|
// if (response.length == 0) {
|
||||||
|
|
||||||
|
// pendingActionCount = 0;
|
||||||
|
// localStorage.setItem('pendingActionCount', pendingActionCount);
|
||||||
|
// }
|
||||||
|
|
||||||
|
// for (let key in response) {
|
||||||
|
// // console.log(response[key].length)
|
||||||
|
// // console.log('type', typeof response[key].length)
|
||||||
|
// // console.log('key', response[key])
|
||||||
|
// if(response[key].length != 'undefined' && response[key].length != undefined)
|
||||||
|
// {
|
||||||
|
// pendingActionCount = pendingActionCount + response[key].length;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
// console.log(pendingActionCount);
|
||||||
|
|
||||||
|
// let messagesList = $('#messages-list-2');
|
||||||
|
// messagesList.empty();
|
||||||
|
|
||||||
|
|
||||||
|
// if (response.inception) {
|
||||||
|
// $.each(response.inception, function(index, item) {
|
||||||
|
|
||||||
|
// var queryParams = {
|
||||||
|
// client_id: item.client_id,
|
||||||
|
// client_policy_id: item.client_policy_id,
|
||||||
|
// client_branch_id: item.branch_id,
|
||||||
|
// actions: 'inception'
|
||||||
|
// };
|
||||||
|
|
||||||
|
// const queryString = objectToQueryString(queryParams);
|
||||||
|
|
||||||
|
// var url = 'employee/upload?' + queryString
|
||||||
|
// ////console.log(url)
|
||||||
|
|
||||||
|
|
||||||
|
// var toast_body_css = 'background : #bfd7eb !important;';
|
||||||
|
// var toast_head_css = 'background-color : rgb(2, 168, 181) !important; color :#000; border-bottom: 0;';
|
||||||
|
// var toast_icon = 'mdi mdi-checkbox-marked-circle mr-auto';
|
||||||
|
// var toast_status_word = 'Info';
|
||||||
|
|
||||||
|
// if (!item.branch_name.toLowerCase().includes('branch')) {
|
||||||
|
|
||||||
|
// //console.log(item.branch_name)
|
||||||
|
// item.branch_name += ' branch';
|
||||||
|
// }
|
||||||
|
|
||||||
|
// ////console.log(item.branch_name);
|
||||||
|
|
||||||
|
// var toast_body_data = item.client_name + '( ' + item.branch_name + ' ) ' + ' - ' + item.policy_name;
|
||||||
|
|
||||||
|
// ////console.log(toast_body_data);
|
||||||
|
|
||||||
|
// var html = ` <li data-id="" data-url="${url}">
|
||||||
|
// <div class="p-3">
|
||||||
|
// <div class="toast fade show" role="alert" aria-live="assertive" aria-atomic="true" data-toggle="toast">
|
||||||
|
// <div class="toast-header " style="${toast_head_css}" >
|
||||||
|
// <strong class="${toast_icon}"> ${toast_status_word}</strong>
|
||||||
|
// <button type="button" class="ml-2 mb-1 close rm_msg" data-dismiss="toast" aria-label="Close">
|
||||||
|
// <span aria-hidden="true">×</span>
|
||||||
|
// </button>
|
||||||
|
// </div>
|
||||||
|
// <div class="toast-body" style="${toast_body_css}">
|
||||||
|
// <strong>Inception Pending</strong><br><br>
|
||||||
|
// <small style="position: relative;bottom: 8px;">${toast_body_data}</small>
|
||||||
|
// <div class="toast-footer">
|
||||||
|
// <a href="#" class="redirect_page" data-toggle="tooltip" data-placement="bottom" title="Click Go to the Page"><small style="margin-right: 142px;position: relative;top: 2px;">see more</small></a>
|
||||||
|
// <small style="position: relative;top: 2px;left: 5px;font-size: 10px;"></small>
|
||||||
|
// </div>
|
||||||
|
// </div>
|
||||||
|
// </div>
|
||||||
|
// </div>
|
||||||
|
// </li>`
|
||||||
|
|
||||||
|
|
||||||
|
// messagesList.append(html);
|
||||||
|
|
||||||
|
// });
|
||||||
|
// } else {
|
||||||
|
// console.log('response.inception is undefined or null');
|
||||||
|
// }
|
||||||
|
|
||||||
|
// if (response.correction) {
|
||||||
|
// $.each(response.correction, function(index, item) {
|
||||||
|
// if (item.batch_export_count == 0 || item.batch_import_count == 0) {
|
||||||
|
|
||||||
|
|
||||||
|
// var queryParams = {
|
||||||
|
// client_id: item.client_id,
|
||||||
|
// client_branch_id: item.branch_id,
|
||||||
|
// event: 'correction',
|
||||||
|
// actions: 'export',
|
||||||
|
// insurer_or_tpa: 'tpa',
|
||||||
|
// };
|
||||||
|
|
||||||
|
// const queryString = objectToQueryString(queryParams);
|
||||||
|
|
||||||
|
// var url = 'employee/upload?' + queryString + '#KYC-DOC-tab'
|
||||||
|
// ////console.log(url)
|
||||||
|
|
||||||
|
|
||||||
|
// var toast_body_css = 'background : #bfd7eb !important;';
|
||||||
|
// var toast_head_css = 'background-color : rgb(2, 168, 181) !important; color :#000; border-bottom: 0;';
|
||||||
|
// var toast_icon = 'mdi mdi-checkbox-marked-circle mr-auto';
|
||||||
|
// var toast_status_word = 'Info';
|
||||||
|
|
||||||
|
// var title = 'Correction Pending';
|
||||||
|
|
||||||
|
|
||||||
|
// if (!item.branch_name.toLowerCase().includes('branch')) {
|
||||||
|
|
||||||
|
// //console.log(item.branch_name)
|
||||||
|
// item.branch_name += ' branch';
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
|
// ////console.log(item.branch_name);
|
||||||
|
|
||||||
|
// // if (item.batch_export_count > 0) {
|
||||||
|
|
||||||
|
// // title = 'Correction Import Pending';
|
||||||
|
// // }
|
||||||
|
|
||||||
|
// var toast_body_data = item.client_name + ' - ' + item.branch_name;
|
||||||
|
// ////console.log(toast_body_data);
|
||||||
|
|
||||||
|
// var html = ` <li data-id="" data-url="${url}">
|
||||||
|
// <div class="p-3">
|
||||||
|
// <div class="toast fade show" role="alert" aria-live="assertive" aria-atomic="true" data-toggle="toast">
|
||||||
|
// <div class="toast-header " style="${toast_head_css}" >
|
||||||
|
// <strong class="${toast_icon}"> ${toast_status_word}</strong>
|
||||||
|
// <button type="button" class="ml-2 mb-1 close rm_msg" data-dismiss="toast" aria-label="Close">
|
||||||
|
// <span aria-hidden="true">×</span>
|
||||||
|
// </button>
|
||||||
|
// </div>
|
||||||
|
// <div class="toast-body" style="${toast_body_css}">
|
||||||
|
// <strong>${title}</strong><br><br>
|
||||||
|
// <small style="position: relative;bottom: 8px;">${toast_body_data}</small>
|
||||||
|
// <div class="toast-footer">
|
||||||
|
// <a href="#" class="redirect_page" data-toggle="tooltip" data-placement="bottom" title="Click Go to the Page"><small style="margin-right: 142px;position: relative;top: 2px;">see more</small></a>
|
||||||
|
// <small style="position: relative;top: 2px;left: 5px;font-size: 10px;"></small>
|
||||||
|
// </div>
|
||||||
|
// </div>
|
||||||
|
// </div>
|
||||||
|
// </div>
|
||||||
|
// </li>`
|
||||||
|
|
||||||
|
|
||||||
|
// messagesList.append(html);
|
||||||
|
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
// }else{
|
||||||
|
// console.log('response.correction is undefined or null');
|
||||||
|
// }
|
||||||
|
|
||||||
|
// if (response.deletion) {
|
||||||
|
// $.each(response.deletion, function(index, item) {
|
||||||
|
|
||||||
|
// if (item.batch_export_count == 0 || item.batch_import_count == 0) {
|
||||||
|
|
||||||
|
|
||||||
|
// var queryParams = {
|
||||||
|
|
||||||
|
// client_id: item.client_id,
|
||||||
|
// client_policy_id: item.client_policy_id,
|
||||||
|
// client_branch_id: item.branch_id,
|
||||||
|
// event: 'deletion',
|
||||||
|
// actions: 'export',
|
||||||
|
// insurer_or_tpa: 'tpa',
|
||||||
|
|
||||||
|
// };
|
||||||
|
|
||||||
|
// const queryString = objectToQueryString(queryParams);
|
||||||
|
|
||||||
|
// var url = 'employee/upload?' + queryString + '#KYC-DOC-tab'
|
||||||
|
// ////console.log(url)
|
||||||
|
|
||||||
|
|
||||||
|
// var toast_body_css = 'background : #bfd7eb !important;';
|
||||||
|
// var toast_head_css = 'background-color : rgb(2, 168, 181) !important; color :#000; border-bottom: 0;';
|
||||||
|
// var toast_icon = 'mdi mdi-checkbox-marked-circle mr-auto';
|
||||||
|
// var toast_status_word = 'Info';
|
||||||
|
// var title = 'Deletion Pending';
|
||||||
|
|
||||||
|
|
||||||
|
// if (!item.branch_name.toLowerCase().includes('branch')) {
|
||||||
|
|
||||||
|
// //console.log(item.branch_name)
|
||||||
|
// item.branch_name += ' branch';
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
|
// ////console.log(item.branch_name);
|
||||||
|
|
||||||
|
// // if (item.batch_export_count > 0) {
|
||||||
|
|
||||||
|
// // title = 'Deletion Import Pending';
|
||||||
|
// // }
|
||||||
|
|
||||||
|
// var toast_body_data = item.client_name + '( ' + item.branch_name + ' ) ' + ' - ' + item.policy_name;
|
||||||
|
// ////console.log(toast_body_data);
|
||||||
|
|
||||||
|
// var html = ` <li data-id="" data-url="${url}">
|
||||||
|
// <div class="p-3">
|
||||||
|
// <div class="toast fade show" role="alert" aria-live="assertive" aria-atomic="true" data-toggle="toast">
|
||||||
|
// <div class="toast-header " style="${toast_head_css}" >
|
||||||
|
// <strong class="${toast_icon}"> ${toast_status_word}</strong>
|
||||||
|
// <button type="button" class="ml-2 mb-1 close rm_msg" data-dismiss="toast" aria-label="Close">
|
||||||
|
// <span aria-hidden="true">×</span>
|
||||||
|
// </button>
|
||||||
|
// </div>
|
||||||
|
// <div class="toast-body" style="${toast_body_css}">
|
||||||
|
// <strong>${title}</strong><br><br>
|
||||||
|
// <small style="position: relative;bottom: 8px;">${toast_body_data}</small>
|
||||||
|
// <div class="toast-footer">
|
||||||
|
// <a href="#" class="redirect_page" data-toggle="tooltip" data-placement="bottom" title="Click Go to the Page"><small style="margin-right: 142px;position: relative;top: 2px;">see more</small></a>
|
||||||
|
// <small style="position: relative;top: 2px;left: 5px;font-size: 10px;"></small>
|
||||||
|
// </div>
|
||||||
|
// </div>
|
||||||
|
// </div>
|
||||||
|
// </div>
|
||||||
|
// </li>`
|
||||||
|
|
||||||
|
|
||||||
|
// messagesList.append(html);
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
|
// });
|
||||||
|
// }else{
|
||||||
|
// console.log('response.deletion is undefined or null');
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
|
// if (response.si_enhancement) {
|
||||||
|
// $.each(response.si_enhancement, function(index, item) {
|
||||||
|
// if (item.batch_export_count == 0 || item.batch_import_count == 0) {
|
||||||
|
|
||||||
|
|
||||||
|
// var queryParams = {
|
||||||
|
// client_id: item.client_id,
|
||||||
|
// client_policy_id: item.client_policy_id,
|
||||||
|
// client_branch_id: item.branch_id,
|
||||||
|
// event: 'si_enhancement',
|
||||||
|
// actions: 'export',
|
||||||
|
// insurer_or_tpa: 'tpa',
|
||||||
|
// };
|
||||||
|
|
||||||
|
// const queryString = objectToQueryString(queryParams);
|
||||||
|
|
||||||
|
// var url = 'employee/upload?' + queryString + '#KYC-DOC-tab'
|
||||||
|
// ////console.log(url)
|
||||||
|
|
||||||
|
|
||||||
|
// var toast_body_css = 'background : #bfd7eb !important;';
|
||||||
|
// var toast_head_css = 'background-color : rgb(2, 168, 181) !important; color :#000; border-bottom: 0;';
|
||||||
|
// var toast_icon = 'mdi mdi-checkbox-marked-circle mr-auto';
|
||||||
|
// var toast_status_word = 'Info';
|
||||||
|
// var title = 'SI Enhancement Pending';
|
||||||
|
|
||||||
|
|
||||||
|
// if (!item.branch_name.toLowerCase().includes('branch')) {
|
||||||
|
|
||||||
|
// //console.log(item.branch_name)
|
||||||
|
// item.branch_name += ' branch';
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
|
// ////console.log(item.branch_name);
|
||||||
|
|
||||||
|
// // if (item.batch_export_count > 0) {
|
||||||
|
|
||||||
|
// // title = 'SI Enhancement Import Pending';
|
||||||
|
// // }
|
||||||
|
|
||||||
|
// var toast_body_data = item.client_name + '( ' + item.branch_name + ' ) ' + ' - ' + item.policy_name;
|
||||||
|
// ////console.log(toast_body_data);
|
||||||
|
|
||||||
|
// var html = ` <li data-id="" data-url="${url}">
|
||||||
|
// <div class="p-3">
|
||||||
|
// <div class="toast fade show" role="alert" aria-live="assertive" aria-atomic="true" data-toggle="toast">
|
||||||
|
// <div class="toast-header " style="${toast_head_css}" >
|
||||||
|
// <strong class="${toast_icon}"> ${toast_status_word}</strong>
|
||||||
|
// <button type="button" class="ml-2 mb-1 close rm_msg" data-dismiss="toast" aria-label="Close">
|
||||||
|
// <span aria-hidden="true">×</span>
|
||||||
|
// </button>
|
||||||
|
// </div>
|
||||||
|
// <div class="toast-body" style="${toast_body_css}">
|
||||||
|
// <strong>${title}</strong><br><br>
|
||||||
|
// <small style="position: relative;bottom: 8px;">${toast_body_data}</small>
|
||||||
|
// <div class="toast-footer">
|
||||||
|
// <a href="#" class="redirect_page" data-toggle="tooltip" data-placement="bottom" title="Click Go to the Page"><small style="margin-right: 142px;position: relative;top: 2px;">see more</small></a>
|
||||||
|
// <small style="position: relative;top: 2px;left: 5px;font-size: 10px;"></small>
|
||||||
|
// </div>
|
||||||
|
// </div>
|
||||||
|
// </div>
|
||||||
|
// </div>
|
||||||
|
// </li>`
|
||||||
|
|
||||||
|
|
||||||
|
// messagesList.append(html);
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
|
// });
|
||||||
|
// }else{
|
||||||
|
// console.log('response.si_enhancement is undefined or null');
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
|
// if (response.tpa) {
|
||||||
|
// $.each(response.tpa, function(index, item) {
|
||||||
|
// if (item.batch_export_count == 0 || item.batch_import_count == 0) {
|
||||||
|
|
||||||
|
|
||||||
|
// var queryParams = {
|
||||||
|
// client_id: item.client_id,
|
||||||
|
// client_policy_id: item.client_policy_id,
|
||||||
|
// client_branch_id: item.branch_id,
|
||||||
|
// event: 'inception',
|
||||||
|
// insurer_or_tpa: 'tpa',
|
||||||
|
// actions: 'export',
|
||||||
|
// };
|
||||||
|
|
||||||
|
// const queryString = objectToQueryString(queryParams);
|
||||||
|
|
||||||
|
// var url = 'employee/upload?' + queryString + '#KYC-DOC-tab'
|
||||||
|
// ////console.log(url)
|
||||||
|
|
||||||
|
|
||||||
|
// var toast_body_css = 'background : #bfd7eb !important;';
|
||||||
|
// var toast_head_css = 'background-color : rgb(2, 168, 181) !important; color :#000; border-bottom: 0;';
|
||||||
|
// var toast_icon = 'mdi mdi-checkbox-marked-circle mr-auto';
|
||||||
|
// var toast_status_word = 'Info';
|
||||||
|
// var title = 'TPA Pending';
|
||||||
|
|
||||||
|
// if (!item.branch_name.toLowerCase().includes('branch')) {
|
||||||
|
|
||||||
|
// //console.log(item.branch_name)
|
||||||
|
// item.branch_name += ' branch';
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
|
// ////console.log(item.branch_name);
|
||||||
|
|
||||||
|
// // if (item.batch_export_count > 0) {
|
||||||
|
|
||||||
|
// // title = 'TPA Import Pending';
|
||||||
|
// // }
|
||||||
|
|
||||||
|
// var toast_body_data = item.client_name + '( ' + item.branch_name + ' ) ' + ' - ' + item.policy_name;
|
||||||
|
// ////console.log(toast_body_data);
|
||||||
|
|
||||||
|
// var html = ` <li data-id="" data-url="${url}">
|
||||||
|
// <div class="p-3">
|
||||||
|
// <div class="toast fade show" role="alert" aria-live="assertive" aria-atomic="true" data-toggle="toast">
|
||||||
|
// <div class="toast-header " style="${toast_head_css}" >
|
||||||
|
// <strong class="${toast_icon}"> ${toast_status_word}</strong>
|
||||||
|
// <button type="button" class="ml-2 mb-1 close rm_msg" data-dismiss="toast" aria-label="Close">
|
||||||
|
// <span aria-hidden="true">×</span>
|
||||||
|
// </button>
|
||||||
|
// </div>
|
||||||
|
// <div class="toast-body" style="${toast_body_css}">
|
||||||
|
// <strong>${title}</strong><br><br>
|
||||||
|
// <small style="position: relative;bottom: 8px;">${toast_body_data}</small>
|
||||||
|
// <div class="toast-footer">
|
||||||
|
// <a href="#" class="redirect_page" data-toggle="tooltip" data-placement="bottom" title="Click Go to the Page"><small style="margin-right: 142px;position: relative;top: 2px;">see more</small></a>
|
||||||
|
// <small style="position: relative;top: 2px;left: 5px;font-size: 10px;"></small>
|
||||||
|
// </div>
|
||||||
|
// </div>
|
||||||
|
// </div>
|
||||||
|
// </div>
|
||||||
|
// </li>`
|
||||||
|
|
||||||
|
|
||||||
|
// messagesList.append(html);
|
||||||
|
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
// }else{
|
||||||
|
// console.log('response.tpa is undefined or null');
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
|
// if (response.uhid) {
|
||||||
|
// $.each(response.uhid, function(index, item) {
|
||||||
|
// if (item.batch_export_count == 0 || item.batch_import_count == 0) {
|
||||||
|
|
||||||
|
// var queryParams = {
|
||||||
|
|
||||||
|
// client_id: item.client_id,
|
||||||
|
// client_policy_id: item.client_policy_id,
|
||||||
|
// client_branch_id: item.branch_id,
|
||||||
|
// event: 'inception',
|
||||||
|
// insurer_or_tpa: 'insurer',
|
||||||
|
// actions: 'export',
|
||||||
|
// };
|
||||||
|
|
||||||
|
// const queryString = objectToQueryString(queryParams);
|
||||||
|
|
||||||
|
// var url = 'employee/upload?' + queryString + '#KYC-DOC-tab'
|
||||||
|
// //console.log(url)
|
||||||
|
|
||||||
|
// var toast_body_css = 'background : #bfd7eb !important;';
|
||||||
|
// var toast_head_css = 'background-color : rgb(2, 168, 181) !important; color :#000; border-bottom: 0;';
|
||||||
|
// var toast_icon = 'mdi mdi-checkbox-marked-circle mr-auto';
|
||||||
|
// var toast_status_word = 'Info';
|
||||||
|
// var title = 'Insurer Pending';
|
||||||
|
|
||||||
|
|
||||||
|
// if (!item.branch_name.toLowerCase().includes('branch')) {
|
||||||
|
|
||||||
|
// //console.log(item.branch_name)
|
||||||
|
// item.branch_name += ' branch';
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
|
// ////console.log(item.branch_name);
|
||||||
|
|
||||||
|
// // if (item.batch_export_count > 0) {
|
||||||
|
|
||||||
|
// // title = 'Insurer Import Pending';
|
||||||
|
// // }
|
||||||
|
|
||||||
|
// var toast_body_data = item.client_name + '( ' + item.branch_name + ' ) ' + ' - ' + item.policy_name;
|
||||||
|
// ////console.log(toast_body_data);
|
||||||
|
|
||||||
|
// var html = ` <li data-id="" data-url="${url}">
|
||||||
|
// <div class="p-3">
|
||||||
|
// <div class="toast fade show" role="alert" aria-live="assertive" aria-atomic="true" data-toggle="toast">
|
||||||
|
// <div class="toast-header " style="${toast_head_css}" >
|
||||||
|
// <strong class="${toast_icon}"> ${toast_status_word}</strong>
|
||||||
|
// <button type="button" class="ml-2 mb-1 close rm_msg" data-dismiss="toast" aria-label="Close">
|
||||||
|
// <span aria-hidden="true">×</span>
|
||||||
|
// </button>
|
||||||
|
// </div>
|
||||||
|
// <div class="toast-body" style="${toast_body_css}">
|
||||||
|
// <strong>${title}</strong><br><br>
|
||||||
|
// <small style="position: relative;bottom: 8px;">${toast_body_data}</small>
|
||||||
|
// <div class="toast-footer">
|
||||||
|
// <a href="#" class="redirect_page" data-toggle="tooltip" data-placement="bottom" title="Click Go to the Page"><small style="margin-right: 142px;position: relative;top: 2px;">see more</small></a>
|
||||||
|
// <small style="position: relative;top: 2px;left: 5px;font-size: 10px;"></small>
|
||||||
|
// </div>
|
||||||
|
// </div>
|
||||||
|
// </div>
|
||||||
|
// </div>
|
||||||
|
// </li>`
|
||||||
|
|
||||||
|
|
||||||
|
// messagesList.append(html);
|
||||||
|
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
// }else{
|
||||||
|
// console.log('response.uhid is undefined or null');
|
||||||
|
// }
|
||||||
|
// localStorage.setItem('pendingActionCount', pendingActionCount)
|
||||||
|
|
||||||
|
// },
|
||||||
|
// error: function(xhr, status, error) {
|
||||||
|
// console.error(xhr.responseText); // Log the error response
|
||||||
|
// }
|
||||||
|
|
||||||
|
// });
|
||||||
|
// }
|
||||||
|
|
||||||
|
// fetchPendingAction()
|
||||||
|
|
||||||
|
// $('#messages-list-2').on('click', 'li', function(event) {
|
||||||
|
|
||||||
|
// //console.log('messages-list-2 click li')
|
||||||
|
|
||||||
|
// if ($(event.target).closest('.rm_msg').length > 0) {
|
||||||
|
|
||||||
|
// //console.log('.rm_msg')
|
||||||
|
|
||||||
|
// $(this).delay(300).fadeOut('slow', function() {
|
||||||
|
// $(this).remove();
|
||||||
|
// });
|
||||||
|
|
||||||
|
// } else if ($(event.target).closest('.redirect_page').length > 0) {
|
||||||
|
|
||||||
|
// //console.log('redirect_page')
|
||||||
|
|
||||||
|
// let url = $(this).data('url');
|
||||||
|
// //console.log('url : ', url);
|
||||||
|
|
||||||
|
// window.location.href = '<?= base_url() ?>' + url;
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
// });
|
||||||
|
// })
|
||||||
|
|
||||||
|
function objectToQueryString(obj) {
|
||||||
|
return Object.keys(obj).map(key => `${encodeURIComponent(key)}=${encodeURIComponent(obj[key])}`).join('&');
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
// function formatDate(dateString)
|
||||||
|
// {
|
||||||
|
// // Parse the input date string
|
||||||
|
// let date = new Date(dateString);
|
||||||
|
|
||||||
|
// // Define months array
|
||||||
|
// const months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
||||||
|
|
||||||
|
// // Extract day, month, year, hours, and minutes
|
||||||
|
// let day = date.getDate();
|
||||||
|
// let month = months[date.getMonth()];
|
||||||
|
// let year = date.getFullYear();
|
||||||
|
// let hours = date.getHours();
|
||||||
|
// let minutes = date.getMinutes();
|
||||||
|
|
||||||
|
// // Convert hours to 12-hour format
|
||||||
|
// let period = hours >= 12 ? 'pm' : 'am';
|
||||||
|
// hours = hours % 12;
|
||||||
|
// hours = hours ? hours : 12; // Handle midnight (0 hours)
|
||||||
|
|
||||||
|
// // Format the time string
|
||||||
|
// let timeString = ('0' + hours).slice(-2) + ':' + ('0' + minutes).slice(-2) + ' ' + period;
|
||||||
|
|
||||||
|
// // Format the date string
|
||||||
|
// let formattedDate = day + '-' + month + '-' + year + ' ' + timeString;
|
||||||
|
|
||||||
|
// return formattedDate;
|
||||||
|
// }
|
||||||
|
|
||||||
|
function printCurrentTime()
|
||||||
|
{
|
||||||
|
var now = new Date();
|
||||||
|
var hours = now.getHours().toString().padStart(2, '0');
|
||||||
|
var minutes = now.getMinutes().toString().padStart(2, '0');
|
||||||
|
var seconds = now.getSeconds().toString().padStart(2, '0');
|
||||||
|
var currentTime = hours + ':' + minutes + ':' + seconds;
|
||||||
|
// console.log("Current Time:", currentTime);
|
||||||
|
|
||||||
|
return currentTime;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
function checkDuplicateTableFieldValue(tableName, fieldName, value, callback) {
|
||||||
|
$.ajax({
|
||||||
|
url: '<?= base_url('util/checkDuplicateTableFieldValue') ?>', // Adjust this to your endpoint in CodeIgniter
|
||||||
|
type: 'POST',
|
||||||
|
data: {
|
||||||
|
table: tableName,
|
||||||
|
field: fieldName,
|
||||||
|
value: value
|
||||||
|
},
|
||||||
|
dataType: 'json',
|
||||||
|
success: function(response) {
|
||||||
|
if (typeof callback === 'function') {
|
||||||
|
callback(response.isDuplicate); // Pass the result to the callback
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error: function(xhr, status, error) {
|
||||||
|
console.error('AJAX Error:', error);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function sendAjaxRequestForGlobal(url, method, data = {}, successCallback = null, errorCallback = null) {
|
||||||
|
$.ajax({
|
||||||
|
url: url,
|
||||||
|
method: method,
|
||||||
|
data: data,
|
||||||
|
dataType: 'json', // Expected response type
|
||||||
|
success: function(response) {
|
||||||
|
// If a success callback is provided, call it with the response
|
||||||
|
if (successCallback) {
|
||||||
|
successCallback(response);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error: function(xhr, status, error) {
|
||||||
|
// Handle errors if provided error callback
|
||||||
|
if (errorCallback) {
|
||||||
|
errorCallback(xhr, status, error);
|
||||||
|
} else {
|
||||||
|
console.error('AJAX Error:', error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function confirmActionSweertAlert(message = "Are you sure?", confirmText = "Yes, Proceed!", cancelText = "Cancel", icon = "warning") {
|
||||||
|
return Swal.fire({
|
||||||
|
title: message,
|
||||||
|
icon: icon,
|
||||||
|
showCancelButton: true,
|
||||||
|
confirmButtonColor: "#3085d6",
|
||||||
|
cancelButtonColor: "#d33",
|
||||||
|
confirmButtonText: confirmText,
|
||||||
|
cancelButtonText: cancelText
|
||||||
|
}).then((result) => {
|
||||||
|
return result.isConfirmed; // Returns true if confirmed, false otherwise
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
@ -329,8 +329,84 @@
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#side-menu .menu-logo a:hover {
|
||||||
|
background-color: transparent !important;
|
||||||
|
color: inherit !important;
|
||||||
|
text-decoration: none !important;
|
||||||
|
box-shadow: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#side-menu .menu-logo img {
|
||||||
|
height: 24px ;
|
||||||
|
display: inline-block ;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ul-flex{
|
||||||
|
display:flex;
|
||||||
|
flex-flow: column nowrap;
|
||||||
|
justify-content: center;
|
||||||
|
align-content: space-evenly;
|
||||||
|
}
|
||||||
|
|
||||||
|
.top-navbar-div{
|
||||||
|
display:flex;
|
||||||
|
flex-flow:row nowrap;
|
||||||
|
justify-content:space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-flex{
|
||||||
|
display:flex;
|
||||||
|
flex-flow: row nowrap;
|
||||||
|
justify-content:end;
|
||||||
|
margin-right:20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-body{
|
||||||
|
background-color:white;
|
||||||
|
padding-left:50px !important;
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content-page{
|
||||||
|
background-color: white !important;
|
||||||
|
color:white !important;
|
||||||
|
padding: 0px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer{
|
||||||
|
background-color:white !important;
|
||||||
|
color:black;
|
||||||
|
margin: 30px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
html{
|
||||||
|
background-color: white !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer{
|
||||||
|
margin-left:150px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left-side-menu{
|
||||||
|
margin-left:30px;
|
||||||
|
margin-top:20px;
|
||||||
|
margin-bottom:5px;
|
||||||
|
border-radius:25px;
|
||||||
|
background-color:#D4F5F6;
|
||||||
|
z-index:700;
|
||||||
|
padding:0px !important;
|
||||||
|
height:90%;
|
||||||
|
}
|
||||||
|
|
||||||
|
label{
|
||||||
|
color:#000;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="loading" data-layout-mode="" data-layout='{"mode": "light", "width": "fluid", "menuPosition": "fixed", "sidebar": { "color": "light", "size": "condensed", "showuser": false}, "topbar": {"color": "dark"}, "showRightSidebarOnPageLoad": false}'></body>
|
<body class="loading" data-layout-mode="" data-layout='{"mode": "light", "width": "fluid", "menuPosition": "fixed", "sidebar": { "color": "light", "size": "condensed", "showuser": false}, "topbar": {"color": "dark"}, "showRightSidebarOnPageLoad": false}'></body>
|
||||||
@ -344,219 +420,24 @@
|
|||||||
|
|
||||||
<!-- <img src="<?= base_url() . "public" ?>/assets/images/nhance-loader-fast.gif" height="40" width="40" alt="Loading..."> -->
|
<!-- <img src="<?= base_url() . "public" ?>/assets/images/nhance-loader-fast.gif" height="40" width="40" alt="Loading..."> -->
|
||||||
<!-- Begin page -->
|
<!-- Begin page -->
|
||||||
<div id="wrapper">
|
<div id="wrapper" style="background-color:white;">
|
||||||
|
|
||||||
<!-- Topbar Start -->
|
|
||||||
<div class="navbar-custom">
|
|
||||||
<div class="container-fluid">
|
|
||||||
<ul class="list-unstyled topnav-menu float-right mb-0">
|
|
||||||
|
|
||||||
<!-- <li class="d-none d-lg-block">
|
|
||||||
<form class="app-search">
|
|
||||||
<div class="app-search-box dropdown">
|
|
||||||
<div class="input-group">
|
|
||||||
<input type="search" class="form-control" placeholder="Search..." id="top-search">
|
|
||||||
<div class="input-group-append">
|
|
||||||
<button class="btn" type="submit">
|
|
||||||
<i class="fe-search"></i>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div> -->
|
|
||||||
<!-- <div class="dropdown-menu dropdown-lg" id="search-dropdown">
|
|
||||||
<div class="dropdown-header noti-title">
|
|
||||||
<h5 class="text-overflow mb-2">Found <span class="text-danger">09</span> results</h5>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<a href="javascript:void(0);" class="dropdown-item notify-item">
|
|
||||||
<i class="fe-home mr-1"></i>
|
|
||||||
<span>Analytics Report</span>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<a href="javascript:void(0);" class="dropdown-item notify-item">
|
|
||||||
<i class="fe-aperture mr-1"></i>
|
|
||||||
<span>How can I help you?</span>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<a href="javascript:void(0);" class="dropdown-item notify-item">
|
|
||||||
<i class="fe-settings mr-1"></i>
|
|
||||||
<span>User profile settings</span>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<div class="dropdown-header noti-title">
|
|
||||||
<h6 class="text-overflow mb-2 text-uppercase">Users</h6>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="notification-list">
|
|
||||||
<a href="javascript:void(0);" class="dropdown-item notify-item">
|
|
||||||
<div class="media">
|
|
||||||
<img class="d-flex mr-2 rounded-circle" src="<?= base_url() . "public"; ?>/assets/images/users/avatar-2.jpg" alt="Generic placeholder image" height="32">
|
|
||||||
<div class="media-body">
|
|
||||||
<h5 class="m-0 font-14">Erwin E. Brown</h5>
|
|
||||||
<span class="font-12 mb-0">UI Designer</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<a href="javascript:void(0);" class="dropdown-item notify-item">
|
|
||||||
<div class="media">
|
|
||||||
<img class="d-flex mr-2 rounded-circle" src="<?= base_url() . "public"; ?>/assets/images/users/avatar-5.jpg" alt="Generic placeholder image" height="32">
|
|
||||||
<div class="media-body">
|
|
||||||
<h5 class="m-0 font-14">Jacob Deo</h5>
|
|
||||||
<span class="font-12 mb-0">Developer</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div> -->
|
|
||||||
<!-- </div>
|
|
||||||
</form>
|
|
||||||
</li> -->
|
|
||||||
|
|
||||||
<!-- <li class="dropdown notification-list topbar-dropdown">
|
|
||||||
<a class="nav-link dropdown-toggle right-bar-toggle waves-effect waves-light">
|
|
||||||
<i class="fe-bell noti-icon"></i>
|
|
||||||
<span class="badge badge-danger rounded-circle noti-icon-badge" id="notification_count">0</span>
|
|
||||||
</a>
|
|
||||||
</li> -->
|
|
||||||
|
|
||||||
<li class="dropdown notification-list topbar-dropdown">
|
|
||||||
<a class="nav-link dropdown-toggle nav-user mr-0 waves-effect waves-light" data-toggle="dropdown" href="#" role="button" aria-haspopup="false" aria-expanded="false">
|
|
||||||
<img src="<?php echo (get_userProfile() != null && !empty(get_userProfile())) ? get_userProfile() : base_url() . 'public/assets/images/avatar_2x.png'; ?>" alt="user-image" class="rounded-circle">
|
|
||||||
<span class="pro-user-name ml-1" style="font-size: 16px;">
|
|
||||||
<?= (isset(get_session_userdata()->first_name) ? get_session_userdata()->first_name : 'NOT SET') ?>
|
|
||||||
<!-- <i class="mdi mdi-chevron-down"></i> -->
|
|
||||||
</span>
|
|
||||||
</a>
|
|
||||||
<!--<div class="dropdown-menu dropdown-menu-right profile-dropdown ">
|
|
||||||
<div class="dropdown-header noti-title">
|
|
||||||
<h6 class="text-overflow m-0">Welcome !</h6>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<a href="javascript:void(0);" class="dropdown-item notify-item">
|
|
||||||
<i class="ri-account-circle-line"></i>
|
|
||||||
<span>My Account</span>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<a href="javascript:void(0);" class="dropdown-item notify-item">
|
|
||||||
<i class="ri-settings-3-line"></i>
|
|
||||||
<span>Settings</span>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<a href="javascript:void(0);" class="dropdown-item notify-item">
|
|
||||||
<i class="ri-wallet-line"></i>
|
|
||||||
<span>My Wallet <span class="badge badge-success float-right">3</span> </span>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<a href="javascript:void(0);" class="dropdown-item notify-item">
|
|
||||||
<i class="ri-lock-line"></i>
|
|
||||||
<span>Lock Screen</span>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
|
|
||||||
<a href="<?= base_url('/logout'); ?>" class="dropdown-item notify-item">
|
|
||||||
<i class="ri-logout-box-line"></i>
|
|
||||||
<span>Logout</span>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<!-- </li> -->
|
|
||||||
|
|
||||||
<!-- <li class="dropdown notification-list">
|
|
||||||
<a href="javascript:void(0);" class="nav-link right-bar-toggle waves-effect waves-light">
|
|
||||||
<i class="fe-settings noti-icon"></i>
|
|
||||||
</a>
|
|
||||||
</li> -->
|
|
||||||
|
|
||||||
<li class="dropdown notification-list">
|
|
||||||
<a href="<?= base_url('/logout'); ?>" class="nav-link waves-effect waves-light">
|
|
||||||
<i class="ri-logout-box-r-line" style="font-size: 25px;"></i>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<!-- LOGO -->
|
|
||||||
<div class="logo-box">
|
|
||||||
<a href="https://localhost/nhance-enrollment/dashboard/view" class="logo logo-dark text-center">
|
|
||||||
<span class="logo-sm">
|
|
||||||
<img src="<?= base_url() . "public"; ?>/assets/images/Nhance_Favi.svg" alt="" height="24">
|
|
||||||
<!-- <span class="logo-lg-text-light">NHANCE</span> -->
|
|
||||||
</span>
|
|
||||||
<span class="logo-lg">
|
|
||||||
<img src="<?= base_url() . "public"; ?>/assets/images/Nhance_Favi.svg" alt="" height="20">
|
|
||||||
<!-- <span class="logo-lg-text-light">M</span> -->
|
|
||||||
</span>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<a href="https://localhost/nhance-enrollment/dashboard/view" class="logo logo-light text-center">
|
|
||||||
<span class="logo-sm">
|
|
||||||
<img src="<?= base_url() . "public"; ?>/assets/images/Nhance_Favi.svg" alt="" height="24">
|
|
||||||
</span>
|
|
||||||
<!-- <span class="logo-lg">
|
|
||||||
<img src="<?= base_url() . "public"; ?>/assets/images/logo-light.png" alt="" height="20">
|
|
||||||
</span> -->
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<ul class="list-unstyled topnav-menu topnav-menu-left m-0">
|
|
||||||
<li>
|
|
||||||
<button class="button-menu-mobile waves-effect waves-light">
|
|
||||||
<i class="fe-menu"></i>
|
|
||||||
</button>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
<!-- Mobile menu toggle (Horizontal Layout)-->
|
|
||||||
<a class="navbar-toggle nav-link" data-toggle="collapse" data-target="#topnav-menu-content">
|
|
||||||
<div class="lines">
|
|
||||||
<span></span>
|
|
||||||
<span></span>
|
|
||||||
<span></span>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
<!-- End mobile menu toggle-->
|
|
||||||
</li>
|
|
||||||
|
|
||||||
|
|
||||||
</ul>
|
|
||||||
<div class="clearfix"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- end Topbar -->
|
|
||||||
|
|
||||||
<!-- ========== Left Sidebar Start ========== -->
|
<!-- ========== Left Sidebar Start ========== -->
|
||||||
<div class="left-side-menu">
|
<div class="left-side-menu">
|
||||||
|
|
||||||
|
|
||||||
<!-- LOGO -->
|
|
||||||
<div class="logo-box">
|
|
||||||
<a href="<?= base_url('/dashboard/view') ?>" class="logo logo-dark text-center">
|
|
||||||
<span class="logo-sm">
|
|
||||||
<img src="<?= base_url() . "public"; ?>/assets/images/logo-sm-dark.png" alt="" height="24">
|
|
||||||
<!-- <span class="logo-lg-text-light">nHance</span> -->
|
|
||||||
</span>
|
|
||||||
<span class="logo-lg">
|
|
||||||
<img src="<?= base_url() . "public"; ?>/assets/images/logo-dark.png" alt="" height="20">
|
|
||||||
<!-- <span class="logo-lg-text-light">N</span> -->
|
|
||||||
</span>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<a href="<?= base_url('/dashboard/view') ?>" class="logo logo-light text-center">
|
|
||||||
<span class="logo-sm">
|
|
||||||
<img src="<?= base_url() . "public"; ?>/assets/images/nhance_white_logo.svg" alt="" width="130" height="30">
|
|
||||||
</span>
|
|
||||||
<!-- <span class="logo-lg">
|
|
||||||
<img src="<?= base_url() . "public"; ?>./assets/images/logo-light.png" alt="" height="20">
|
|
||||||
</span> -->
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="h-100" data-simplebar>
|
<div class="h-100" data-simplebar>
|
||||||
|
|
||||||
<!--- Sidemenu -->
|
<!--- Sidemenu -->
|
||||||
<div id="sidebar-menu">
|
<div id="sidebar-menu">
|
||||||
<ul id="side-menu">
|
<ul class="ul-flex" id="side-menu">
|
||||||
|
|
||||||
|
<li class="menu-logo" >
|
||||||
|
<a href="<?= base_url('/dashboard/view') ?>">
|
||||||
|
<img src="<?= base_url() . "public"; ?>/assets/images/Nhance_Favi.png" alt="Logo" height="24">
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<a href="<?= base_url('/dashboard/view') ?>">
|
<a href="<?= base_url('/dashboard/view') ?>">
|
||||||
@ -567,15 +448,16 @@
|
|||||||
|
|
||||||
<li>
|
<li>
|
||||||
<a href="<?= base_url('/client/list') ?>">
|
<a href="<?= base_url('/client/list') ?>">
|
||||||
<i class="mdi mdi-domain"></i>
|
<img
|
||||||
<span> Clients </span>
|
src="<?= base_url() . "public"; ?>/assets/images/clients_sb.png" alt="Logo" height="24">
|
||||||
|
<span>Clients</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<a href="#sidebarDashboards" data-toggle="collapse" class="waves-effect">
|
<a href="#sidebarDashboards" data-toggle="collapse" class="waves-effect">
|
||||||
<i class="fas fa-user-tie"></i>
|
<img
|
||||||
<span class="badge badge-success badge-pill float-right">2</span>
|
src="<?= base_url() . "public"; ?>/assets/images/action_on_policies_sb.png" alt="Logo" height="20">
|
||||||
<span> Action on Policies </span>
|
<span> Action on Policies </span>
|
||||||
</a>
|
</a>
|
||||||
<div class="collapse" id="sidebarDashboards">
|
<div class="collapse" id="sidebarDashboards">
|
||||||
@ -604,8 +486,8 @@
|
|||||||
|
|
||||||
<li>
|
<li>
|
||||||
<a href="#sidebarDashboards" data-toggle="collapse" class="waves-effect">
|
<a href="#sidebarDashboards" data-toggle="collapse" class="waves-effect">
|
||||||
<i class="ri-database-2-line"></i>
|
<img
|
||||||
<span class="badge badge-success badge-pill float-right">2</span>
|
src="<?= base_url() . "public"; ?>/assets/images/masters_sb.png" alt="Logo" height="20">
|
||||||
<span> Masters </span>
|
<span> Masters </span>
|
||||||
</a>
|
</a>
|
||||||
<div class="collapse" id="sidebarDashboards">
|
<div class="collapse" id="sidebarDashboards">
|
||||||
@ -748,6 +630,31 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- Left Sidebar End -->
|
<!-- Left Sidebar End -->
|
||||||
|
|
||||||
|
<!-- Top Bar -->
|
||||||
|
<div class="top-navbar-div" style="margin-left:150px; margin-top:20px;" >
|
||||||
|
<div>
|
||||||
|
<h5>Welcome <?= (isset(get_session_userdata()->first_name) ? get_session_userdata()->first_name : 'NOT SET') ?> </h5>
|
||||||
|
</div>
|
||||||
|
<div class="nav-flex">
|
||||||
|
<div>
|
||||||
|
<a class="nav-link dropdown-toggle nav-user mr-0 waves-effect waves-light" data-toggle="dropdown" href="#" role="button" aria-haspopup="false" aria-expanded="false"
|
||||||
|
>
|
||||||
|
<img
|
||||||
|
style="color: black;"
|
||||||
|
src="<?php echo (get_userProfile() != null && !empty(get_userProfile())) ? get_userProfile() : base_url() . 'public/assets/images/avatar_2x.png'; ?>" alt="user-image"
|
||||||
|
class="rounded-circle">
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<a href="<?= base_url('/logout'); ?>" style="font-size: 16px; color:#000;background-color:#D4F5F6 !important;border-radius:25px;padding:7px;">
|
||||||
|
<i class="ri-logout-box-r-line" style="font-size: 20px; color:#000;padding:0px;"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- End of Top -->
|
||||||
|
|
||||||
|
|
||||||
<!-- ============================================================== -->
|
<!-- ============================================================== -->
|
||||||
<!-- Start Page Content here -->
|
<!-- Start Page Content here -->
|
||||||
<!-- ============================================================== -->
|
<!-- ============================================================== -->
|
||||||
|
|||||||
759
app/Views/layout/header_old.php
Normal file
759
app/Views/layout/header_old.php
Normal file
@ -0,0 +1,759 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<title><?= isset($page_name) ? $page_name : 'NHance'; ?></title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<meta content="" name="description" />
|
||||||
|
<meta content="NHANCE" name="NHANCE" />
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
|
|
||||||
|
|
||||||
|
<!-- App favicon -->
|
||||||
|
<link rel="shortcut icon" href="<?= base_url() . "public"; ?>/assets/images/Nhance_Favi.svg">
|
||||||
|
|
||||||
|
<!-- plugin css -->
|
||||||
|
<link href="<?= base_url() . "public"; ?>/assets/libs/admin-resources/jquery.vectormap/jquery-jvectormap-1.2.2.css" rel="stylesheet" type="text/css" />
|
||||||
|
|
||||||
|
<!-- third party css -->
|
||||||
|
<link href="<?= base_url() . "public"; ?>/assets/libs/datatables.net-bs4/css/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||||
|
<link href="<?= base_url() . "public"; ?>/assets/libs/datatables.net-responsive-bs4/css/responsive.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||||
|
<link href="<?= base_url() . "public"; ?>/assets/libs/datatables.net-buttons-bs4/css/buttons.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||||
|
<link href="<?= base_url() . "public"; ?>/assets/libs/datatables.net-select-bs4/css//select.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||||
|
<!-- third party css end -->
|
||||||
|
|
||||||
|
<!-- App css -->
|
||||||
|
<link href="<?= base_url() . "public"; ?>/assets/css/bootstrap-creative.min.css" rel="stylesheet" type="text/css" id="bs-default-stylesheet" />
|
||||||
|
<link href="<?= base_url() . "public"; ?>/assets/css/app-creative.min.css" rel="stylesheet" type="text/css" id="app-default-stylesheet" />
|
||||||
|
|
||||||
|
<link href="<?= base_url() . "public"; ?>/assets/css/bootstrap-creative-dark.min.css" rel="stylesheet" type="text/css" id="bs-dark-stylesheet" />
|
||||||
|
<link href="<?= base_url() . "public"; ?>/assets/css/app-creative-dark.min.css" rel="stylesheet" type="text/css" id="app-dark-stylesheet" />
|
||||||
|
|
||||||
|
<!-- icons -->
|
||||||
|
<link href="<?= base_url() . "public"; ?>/assets/css/icons.min.css" rel="stylesheet" type="text/css" />
|
||||||
|
|
||||||
|
<link href="<?= base_url() . "public"; ?>/assets/libs/bootstrap-datepicker/css/bootstrap-datepicker.min.css" rel="stylesheet" type="text/css" />
|
||||||
|
<link href="<?= base_url() . "public"; ?>/assets/libs/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet" type="text/css">
|
||||||
|
<link href="<?= base_url() . "public"; ?>/assets/libs/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet" type="text/css">
|
||||||
|
|
||||||
|
|
||||||
|
<!-- <link href="<?= base_url() . "public"; ?>/assets/css/bootstrap-material.min.css" rel="stylesheet" type="text/css" id="bs-default-stylesheet" /> -->
|
||||||
|
<!-- <link href="<?= base_url() . "public"; ?>/assets/css/app-material.min.css" rel="stylesheet" type="text/css" id="app-default-stylesheet" /> -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- <link href="<?= base_url() . "public"; ?>/assets/css/bootstrap-editable.css" rel="stylesheet" type="text/css" /> -->
|
||||||
|
<link href="https://cdn.jsdelivr.net/npm/remixicon/fonts/remixicon.css" rel="stylesheet">
|
||||||
|
|
||||||
|
<!-- Jodit Css -->
|
||||||
|
<link href="<?= base_url() . "public"; ?>/assets/css/jodit.css" rel="stylesheet" type="text/css" />
|
||||||
|
|
||||||
|
|
||||||
|
<!-- JQuery CDN -->
|
||||||
|
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
||||||
|
|
||||||
|
<!-- Sweet Alert CDN -->
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.10.4/dist/sweetalert2.all.min.js"></script>
|
||||||
|
|
||||||
|
<!-- select2 -->
|
||||||
|
<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/css/select2.min.css" rel="stylesheet" type="text/css">
|
||||||
|
|
||||||
|
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.5.3/dist/umd/popper.min.js"></script>
|
||||||
|
|
||||||
|
<link rel="manifest" href="../manifest.json">
|
||||||
|
|
||||||
|
<script>
|
||||||
|
if ('serviceWorker' in navigator) {
|
||||||
|
window.addEventListener('load', function() {
|
||||||
|
navigator.serviceWorker.register('../service-worker.js').then(function(registration) {
|
||||||
|
// console.log('Service Worker registration successful with scope:', registration.scope);
|
||||||
|
}, function(err) {
|
||||||
|
// console.log('Service Worker registration failed:', err);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.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/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>
|
||||||
|
|
||||||
|
|
||||||
|
body[data-sidebar-size=condensed]:not([data-layout=compact]):not(.auth-fluid-pages) {
|
||||||
|
min-height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
body[data-sidebar-size=condensed] .navbar-custom {
|
||||||
|
left: 155px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body[data-sidebar-size=condensed] .logo-box {
|
||||||
|
width: 155px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-custom {
|
||||||
|
top: -10px !important;
|
||||||
|
height: 61px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo-box {
|
||||||
|
top: -10px !important;
|
||||||
|
height: 61px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content-page {
|
||||||
|
padding: 80px 15px 65px 15px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Media query for small screens */
|
||||||
|
@media screen and (min-width: 768px) {
|
||||||
|
|
||||||
|
/* Styles for screens with a minimum width of 768px (e.g., tablets and larger devices) */
|
||||||
|
.navbar-custom .button-menu-mobile {
|
||||||
|
display: none;
|
||||||
|
/* Hide the button on larger screens */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.loader-mask {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
background-color: #00000069;
|
||||||
|
z-index: 99999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.loader {
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
font-size: 0;
|
||||||
|
color: #00c9d0;
|
||||||
|
display: inline-block;
|
||||||
|
margin: -25px 0 0 -25px;
|
||||||
|
text-indent: -9999em;
|
||||||
|
-webkit-transform: translateZ(0);
|
||||||
|
-ms-transform: translateZ(0);
|
||||||
|
transform: translateZ(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
.lead {
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.loader div {
|
||||||
|
background-color: #6ad9cf;
|
||||||
|
display: inline-block;
|
||||||
|
float: none;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
opacity: .5;
|
||||||
|
border-radius: 50%;
|
||||||
|
-webkit-animation: ballPulseDouble 2s ease-in-out infinite;
|
||||||
|
animation: ballPulseDouble 2s ease-in-out infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
.loader div:last-child {
|
||||||
|
-webkit-animation-delay: -1s;
|
||||||
|
animation-delay: -1s;
|
||||||
|
}
|
||||||
|
|
||||||
|
@-webkit-keyframes ballPulseDouble {
|
||||||
|
|
||||||
|
0%,
|
||||||
|
100% {
|
||||||
|
-webkit-transform: scale(0);
|
||||||
|
transform: scale(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
50% {
|
||||||
|
-webkit-transform: scale(1);
|
||||||
|
transform: scale(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes ballPulseDouble {
|
||||||
|
|
||||||
|
0%,
|
||||||
|
100% {
|
||||||
|
-webkit-transform: scale(0);
|
||||||
|
transform: scale(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
50% {
|
||||||
|
-webkit-transform: scale(1);
|
||||||
|
transform: scale(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.toast-success {
|
||||||
|
background-color: #009688 !important;
|
||||||
|
color: #FFFFFF !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* .dataTables_wrapper .text-right {
|
||||||
|
position: relative;
|
||||||
|
} */
|
||||||
|
|
||||||
|
.dataTables_wrapper .dt-buttons .buttons-csv,
|
||||||
|
.dataTables_wrapper .dt-buttons .buttons-html5 {
|
||||||
|
background-color: #02a8b5;
|
||||||
|
color: #fff;
|
||||||
|
border-color: #02a8b5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dataTables_wrapper .dt-buttons .buttons-csv:hover,
|
||||||
|
.dataTables_wrapper .dt-buttons .buttons-html5:hover {
|
||||||
|
background-color: #028291;
|
||||||
|
border-color: #028291;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.modal-full-width {
|
||||||
|
width: 80% !important;
|
||||||
|
/* width: 95% !important; */
|
||||||
|
/* max-width: none; */
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-body {
|
||||||
|
/* position: relative;
|
||||||
|
flex: 1 1 auto; */
|
||||||
|
padding: 2rem !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.text-danger-2 {
|
||||||
|
font-style: italic;
|
||||||
|
color: black !important;
|
||||||
|
/* color: #02a8b5 !important; */
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* .form-group {
|
||||||
|
margin-bottom: -0.2rem !important;
|
||||||
|
}
|
||||||
|
.form-row{
|
||||||
|
width: 84%;
|
||||||
|
} */
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.select2-container--default .select2-selection--single {
|
||||||
|
height: 37px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
||||||
|
line-height: 35px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
||||||
|
top: 7px !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.toast-body {
|
||||||
|
padding: .75rem;
|
||||||
|
background: aliceblue !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#messages-list li {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: -25px;
|
||||||
|
/* Adjust this value to reduce the space */
|
||||||
|
}
|
||||||
|
|
||||||
|
.toast-footer {
|
||||||
|
text-align: right;
|
||||||
|
color: #000;
|
||||||
|
border-top: 1px solid aliceblue;
|
||||||
|
margin-top: 11px;
|
||||||
|
margin-bottom: -6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.right-bar {
|
||||||
|
width: 300px;
|
||||||
|
/* Adjust as needed */
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fixed-header {
|
||||||
|
position: relative;
|
||||||
|
top: 0;
|
||||||
|
z-index: 1000;
|
||||||
|
background-color: #f8f9fa !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scrollable-content {
|
||||||
|
max-height: 42vh;
|
||||||
|
overflow-y: auto;
|
||||||
|
padding-top: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Additional styles to enhance appearance */
|
||||||
|
.header-title {
|
||||||
|
position: relative;
|
||||||
|
bottom: 5px;
|
||||||
|
left: 60px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#app_content_management:hover {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(window).on('load', function() {
|
||||||
|
setTimeout(function() {
|
||||||
|
$('.loader').fadeOut();
|
||||||
|
$('.loader-mask').fadeOut('slow');
|
||||||
|
}, 1000);
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="loading" data-layout-mode="" data-layout='{"mode": "light", "width": "fluid", "menuPosition": "fixed", "sidebar": { "color": "light", "size": "condensed", "showuser": false}, "topbar": {"color": "dark"}, "showRightSidebarOnPageLoad": false}'></body>
|
||||||
|
|
||||||
|
<!-- Preloader -->
|
||||||
|
<div class="loader-mask">
|
||||||
|
<div class="loader">
|
||||||
|
<img src="<?= base_url() . "public" ?>/assets/images/nhance-loader-fast.gif" height="40" width="40" alt="Loading...">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- <img src="<?= base_url() . "public" ?>/assets/images/nhance-loader-fast.gif" height="40" width="40" alt="Loading..."> -->
|
||||||
|
<!-- Begin page -->
|
||||||
|
<div id="wrapper">
|
||||||
|
|
||||||
|
<!-- Topbar Start -->
|
||||||
|
<div class="navbar-custom">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<ul class="list-unstyled topnav-menu float-right mb-0">
|
||||||
|
|
||||||
|
<!-- <li class="d-none d-lg-block">
|
||||||
|
<form class="app-search">
|
||||||
|
<div class="app-search-box dropdown">
|
||||||
|
<div class="input-group">
|
||||||
|
<input type="search" class="form-control" placeholder="Search..." id="top-search">
|
||||||
|
<div class="input-group-append">
|
||||||
|
<button class="btn" type="submit">
|
||||||
|
<i class="fe-search"></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div> -->
|
||||||
|
<!-- <div class="dropdown-menu dropdown-lg" id="search-dropdown">
|
||||||
|
<div class="dropdown-header noti-title">
|
||||||
|
<h5 class="text-overflow mb-2">Found <span class="text-danger">09</span> results</h5>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<a href="javascript:void(0);" class="dropdown-item notify-item">
|
||||||
|
<i class="fe-home mr-1"></i>
|
||||||
|
<span>Analytics Report</span>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a href="javascript:void(0);" class="dropdown-item notify-item">
|
||||||
|
<i class="fe-aperture mr-1"></i>
|
||||||
|
<span>How can I help you?</span>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a href="javascript:void(0);" class="dropdown-item notify-item">
|
||||||
|
<i class="fe-settings mr-1"></i>
|
||||||
|
<span>User profile settings</span>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<div class="dropdown-header noti-title">
|
||||||
|
<h6 class="text-overflow mb-2 text-uppercase">Users</h6>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="notification-list">
|
||||||
|
<a href="javascript:void(0);" class="dropdown-item notify-item">
|
||||||
|
<div class="media">
|
||||||
|
<img class="d-flex mr-2 rounded-circle" src="<?= base_url() . "public"; ?>/assets/images/users/avatar-2.jpg" alt="Generic placeholder image" height="32">
|
||||||
|
<div class="media-body">
|
||||||
|
<h5 class="m-0 font-14">Erwin E. Brown</h5>
|
||||||
|
<span class="font-12 mb-0">UI Designer</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a href="javascript:void(0);" class="dropdown-item notify-item">
|
||||||
|
<div class="media">
|
||||||
|
<img class="d-flex mr-2 rounded-circle" src="<?= base_url() . "public"; ?>/assets/images/users/avatar-5.jpg" alt="Generic placeholder image" height="32">
|
||||||
|
<div class="media-body">
|
||||||
|
<h5 class="m-0 font-14">Jacob Deo</h5>
|
||||||
|
<span class="font-12 mb-0">Developer</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div> -->
|
||||||
|
<!-- </div>
|
||||||
|
</form>
|
||||||
|
</li> -->
|
||||||
|
|
||||||
|
<!-- <li class="dropdown notification-list topbar-dropdown">
|
||||||
|
<a class="nav-link dropdown-toggle right-bar-toggle waves-effect waves-light">
|
||||||
|
<i class="fe-bell noti-icon"></i>
|
||||||
|
<span class="badge badge-danger rounded-circle noti-icon-badge" id="notification_count">0</span>
|
||||||
|
</a>
|
||||||
|
</li> -->
|
||||||
|
|
||||||
|
<li class="dropdown notification-list topbar-dropdown">
|
||||||
|
<a class="nav-link dropdown-toggle nav-user mr-0 waves-effect waves-light" data-toggle="dropdown" href="#" role="button" aria-haspopup="false" aria-expanded="false">
|
||||||
|
<img src="<?php echo (get_userProfile() != null && !empty(get_userProfile())) ? get_userProfile() : base_url() . 'public/assets/images/avatar_2x.png'; ?>" alt="user-image" class="rounded-circle">
|
||||||
|
<span class="pro-user-name ml-1" style="font-size: 16px;">
|
||||||
|
<?= (isset(get_session_userdata()->first_name) ? get_session_userdata()->first_name : 'NOT SET') ?>
|
||||||
|
<!-- <i class="mdi mdi-chevron-down"></i> -->
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
<!--<div class="dropdown-menu dropdown-menu-right profile-dropdown ">
|
||||||
|
<div class="dropdown-header noti-title">
|
||||||
|
<h6 class="text-overflow m-0">Welcome !</h6>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<a href="javascript:void(0);" class="dropdown-item notify-item">
|
||||||
|
<i class="ri-account-circle-line"></i>
|
||||||
|
<span>My Account</span>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a href="javascript:void(0);" class="dropdown-item notify-item">
|
||||||
|
<i class="ri-settings-3-line"></i>
|
||||||
|
<span>Settings</span>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a href="javascript:void(0);" class="dropdown-item notify-item">
|
||||||
|
<i class="ri-wallet-line"></i>
|
||||||
|
<span>My Wallet <span class="badge badge-success float-right">3</span> </span>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a href="javascript:void(0);" class="dropdown-item notify-item">
|
||||||
|
<i class="ri-lock-line"></i>
|
||||||
|
<span>Lock Screen</span>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
<a href="<?= base_url('/logout'); ?>" class="dropdown-item notify-item">
|
||||||
|
<i class="ri-logout-box-line"></i>
|
||||||
|
<span>Logout</span>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<!-- </li> -->
|
||||||
|
|
||||||
|
<!-- <li class="dropdown notification-list">
|
||||||
|
<a href="javascript:void(0);" class="nav-link right-bar-toggle waves-effect waves-light">
|
||||||
|
<i class="fe-settings noti-icon"></i>
|
||||||
|
</a>
|
||||||
|
</li> -->
|
||||||
|
|
||||||
|
<li class="dropdown notification-list">
|
||||||
|
<a href="<?= base_url('/logout'); ?>" class="nav-link waves-effect waves-light">
|
||||||
|
<i class="ri-logout-box-r-line" style="font-size: 25px;"></i>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<!-- LOGO -->
|
||||||
|
<div class="logo-box">
|
||||||
|
<a href="https://localhost/nhance-enrollment/dashboard/view" class="logo logo-dark text-center">
|
||||||
|
<span class="logo-sm">
|
||||||
|
<img src="<?= base_url() . "public"; ?>/assets/images/Nhance_Favi.svg" alt="" height="24">
|
||||||
|
<!-- <span class="logo-lg-text-light">NHANCE</span> -->
|
||||||
|
</span>
|
||||||
|
<span class="logo-lg">
|
||||||
|
<img src="<?= base_url() . "public"; ?>/assets/images/Nhance_Favi.svg" alt="" height="20">
|
||||||
|
<!-- <span class="logo-lg-text-light">M</span> -->
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a href="https://localhost/nhance-enrollment/dashboard/view" class="logo logo-light text-center">
|
||||||
|
<span class="logo-sm">
|
||||||
|
<img src="<?= base_url() . "public"; ?>/assets/images/Nhance_Favi.svg" alt="" height="24">
|
||||||
|
</span>
|
||||||
|
<!-- <span class="logo-lg">
|
||||||
|
<img src="<?= base_url() . "public"; ?>/assets/images/logo-light.png" alt="" height="20">
|
||||||
|
</span> -->
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<ul class="list-unstyled topnav-menu topnav-menu-left m-0">
|
||||||
|
<li>
|
||||||
|
<button class="button-menu-mobile waves-effect waves-light">
|
||||||
|
<i class="fe-menu"></i>
|
||||||
|
</button>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<!-- Mobile menu toggle (Horizontal Layout)-->
|
||||||
|
<a class="navbar-toggle nav-link" data-toggle="collapse" data-target="#topnav-menu-content">
|
||||||
|
<div class="lines">
|
||||||
|
<span></span>
|
||||||
|
<span></span>
|
||||||
|
<span></span>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
<!-- End mobile menu toggle-->
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div class="clearfix"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- end Topbar -->
|
||||||
|
|
||||||
|
<!-- ========== Left Sidebar Start ========== -->
|
||||||
|
<div class="left-side-menu">
|
||||||
|
|
||||||
|
|
||||||
|
<!-- LOGO -->
|
||||||
|
<div class="logo-box">
|
||||||
|
<a href="<?= base_url('/dashboard/view') ?>" class="logo logo-dark text-center">
|
||||||
|
<span class="logo-sm">
|
||||||
|
<img src="<?= base_url() . "public"; ?>/assets/images/logo-sm-dark.png" alt="" height="24">
|
||||||
|
<!-- <span class="logo-lg-text-light">nHance</span> -->
|
||||||
|
</span>
|
||||||
|
<span class="logo-lg">
|
||||||
|
<img src="<?= base_url() . "public"; ?>/assets/images/logo-dark.png" alt="" height="20">
|
||||||
|
<!-- <span class="logo-lg-text-light">N</span> -->
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a href="<?= base_url('/dashboard/view') ?>" class="logo logo-light text-center">
|
||||||
|
<span class="logo-sm">
|
||||||
|
<img src="<?= base_url() . "public"; ?>/assets/images/nhance_white_logo.svg" alt="" width="130" height="30">
|
||||||
|
</span>
|
||||||
|
<!-- <span class="logo-lg">
|
||||||
|
<img src="<?= base_url() . "public"; ?>./assets/images/logo-light.png" alt="" height="20">
|
||||||
|
</span> -->
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="h-100" data-simplebar>
|
||||||
|
|
||||||
|
<!--- Sidemenu -->
|
||||||
|
<div id="sidebar-menu">
|
||||||
|
<ul id="side-menu">
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<a href="<?= base_url('/dashboard/view') ?>">
|
||||||
|
<i class="ri-dashboard-line"></i>
|
||||||
|
<span> Dashboard </span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<a href="<?= base_url('/client/list') ?>">
|
||||||
|
<i class="mdi mdi-domain"></i>
|
||||||
|
<span> Clients </span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<a href="#sidebarDashboards" data-toggle="collapse" class="waves-effect">
|
||||||
|
<i class="fas fa-user-tie"></i>
|
||||||
|
<span class="badge badge-success badge-pill float-right">2</span>
|
||||||
|
<span> Action on Policies </span>
|
||||||
|
</a>
|
||||||
|
<div class="collapse" id="sidebarDashboards">
|
||||||
|
<ul class="nav-second-level">
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<a href="<?= base_url('/employee/upload') ?>">View Inception</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="<?= base_url('/employee/list') ?>">View Members</a>
|
||||||
|
</li>
|
||||||
|
<!-- <li>
|
||||||
|
<a href="<?= base_url('/employee/endorsement-list') ?>">View Endorsement</a>
|
||||||
|
</li> -->
|
||||||
|
<li>
|
||||||
|
<a href="<?= base_url('/employee/enrollment-list') ?>">View Enrolment</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="<?= base_url('/employee/test_members_list') ?>">Test Members List</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<?php if(get_role_id() == 1 || get_role_id() == 5) { ?>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<a href="#sidebarDashboards" data-toggle="collapse" class="waves-effect">
|
||||||
|
<i class="ri-database-2-line"></i>
|
||||||
|
<span class="badge badge-success badge-pill float-right">2</span>
|
||||||
|
<span> Masters </span>
|
||||||
|
</a>
|
||||||
|
<div class="collapse" id="sidebarDashboards">
|
||||||
|
<ul class="nav-second-level">
|
||||||
|
<!-- <li>
|
||||||
|
<a href="<?= base_url('/master/insurer/list') ?>">Insurer</a>
|
||||||
|
</li> -->
|
||||||
|
<!-- <li>
|
||||||
|
<a href="<?= base_url('/master/tpa/list') ?>">TPA</a>
|
||||||
|
</li> -->
|
||||||
|
<!-- <li>
|
||||||
|
<a href="<?= base_url('/master/kyc/list') ?>">KYC</a>
|
||||||
|
</li> -->
|
||||||
|
<!-- <li>
|
||||||
|
<a href="<?= base_url('/master/policy/list') ?>">Policy</a>
|
||||||
|
</li> -->
|
||||||
|
<!-- <li>
|
||||||
|
<a href="<?= base_url('/master/cash_deposite/list') ?>">CD Master</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="<?= base_url('/master/vehicle/list') ?>">Vehicle Master</a>
|
||||||
|
</li> -->
|
||||||
|
<li>
|
||||||
|
<a href="<?= base_url('/user/list') ?>"> Users </a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
<!-- <li>
|
||||||
|
<?php /*
|
||||||
|
$sessionData = get_session_userdata();
|
||||||
|
$currentUrl = base_url();
|
||||||
|
$parsedUrl = parse_url($currentUrl);
|
||||||
|
$baseUrl = $parsedUrl['scheme'] . '://' . $parsedUrl['host'] . '/';
|
||||||
|
$hashedEmail = hash('sha256', $sessionData->email);
|
||||||
|
$redirectUrl = getenv('helpdeskURL') .'/staff/login?' . http_build_query(['token' => $hashedEmail]);
|
||||||
|
*/?>
|
||||||
|
<a href="<?php //echo $redirectUrl; ?>" target="_blank">
|
||||||
|
<i class="mdi mdi-lifebuoy"></i>
|
||||||
|
<span> Tickets </span>
|
||||||
|
</a>
|
||||||
|
</li> -->
|
||||||
|
|
||||||
|
<!-- <li>
|
||||||
|
<a id="app_content_management" href="#sidebarDashboardsmenu" data-toggle="collapse" class="waves-effect" style="color: grey;">
|
||||||
|
<i class="fa fa-info-circle" aria-hidden="true"></i>
|
||||||
|
<span class="badge badge-success badge-pill float-right">2</span>
|
||||||
|
<span> App Content Management </span>
|
||||||
|
</a>
|
||||||
|
<div class="collapse" id="sidebarDashboardsmenu">
|
||||||
|
<ul class="nav-second-level">
|
||||||
|
<li>
|
||||||
|
<a href="<?= base_url('/add_image_index') ?>"> Advertisement Images </a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="<?= base_url('/frontend_content') ?>">Front-end Content</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</li> -->
|
||||||
|
|
||||||
|
<!-- leads -->
|
||||||
|
<!-- <li>
|
||||||
|
<a href="<?= base_url('/leads/list') ?>">
|
||||||
|
<i class="mdi mdi-chart-bar"></i>
|
||||||
|
<span> Leads </span>
|
||||||
|
</a>
|
||||||
|
</li> -->
|
||||||
|
|
||||||
|
<?php if((get_role_id() == 1 || get_role_id() == 5) && (in_array(BUSINESS_TEAM_ID, user_team()) || in_array(FINANCE_TEAM_ID, user_team()) || in_array(MANAGEMENT_TEAM_ID, user_team()))) { ?>
|
||||||
|
|
||||||
|
<!-- <li>
|
||||||
|
<a href="#sidebarDashboards" data-toggle="collapse" class="waves-effect">
|
||||||
|
<i class="mdi mdi-format-list-bulleted"></i>
|
||||||
|
<span class="badge badge-success badge-pill float-right">2</span>
|
||||||
|
<span> Policy Transactions </span>
|
||||||
|
</a>
|
||||||
|
<div class="collapse" id="sidebarDashboards">
|
||||||
|
<ul class="nav-second-level">
|
||||||
|
<li>
|
||||||
|
<a href="<?= base_url('/policy_tranction/inception/list') ?>">Policy</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="<?= base_url('/policy_tranction/endorsement/list') ?>">Endorsement</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<?php if (in_array(FINANCE_TEAM_ID, user_team()) || in_array(MANAGEMENT_TEAM_ID, user_team())) { ?>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<a href="<?= base_url('/policy_tranction/statement/list') ?>">Statement upload</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<a href="<?= base_url('/policy_tranction/report/list') ?>">BDS</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="<?= base_url('/policy_tranction/report/report-varience-list') ?>">Variance</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="<?= base_url('/policy_tranction/report/report-outstanding-list') ?>">Outstanding</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="<?= base_url('/policy_tranction/report/report-finance-list') ?>">Finance Team</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
<?php if (in_array(BUSINESS_TEAM_ID, user_team()) || in_array(MANAGEMENT_TEAM_ID, user_team())) { ?>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<a href="<?= base_url('/policy_tranction/report/report-business-list') ?>">Business Team</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
<li>
|
||||||
|
<a href="<?= base_url('/master/cash_deposite/list') ?>">CD Master</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="<?= base_url('/master/vehicle/list') ?>">Vehicle Master</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="<?= base_url('/dmsSearch') ?>">Documents</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</li> -->
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<!-- End Sidebar -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<!-- Sidebar -left -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<!-- Left Sidebar End -->
|
||||||
|
|
||||||
|
<!-- ============================================================== -->
|
||||||
|
<!-- Start Page Content here -->
|
||||||
|
<!-- ============================================================== -->
|
||||||
|
|
||||||
|
<div class="content-page">
|
||||||
|
<div class="content">
|
||||||
|
|
||||||
|
<!-- Start Content-->
|
||||||
|
<div class="container-fluid"></div>
|
||||||
@ -24,17 +24,34 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mail-template-footer {
|
||||||
|
max-width: 500px;
|
||||||
|
background: #ffffff;
|
||||||
|
border-top: 1px solid #00999E;
|
||||||
|
width: 100%; /* default: allow full width */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* On screens smaller than 600px → force 100% */
|
||||||
|
@media screen and (max-width: 600px) {
|
||||||
|
.mail-template-footer {
|
||||||
|
max-width: 100% !important;
|
||||||
|
width: 100% !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
<!-- header -->
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="mail-template-header">
|
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="mail-template-header">
|
||||||
<tr style="height:90px; background-color: #ffffff;">
|
<tr style="height:90px; background-color: #ffffff;">
|
||||||
<td align="left" valign="middle" style="padding:20px;" width="50%">
|
<td align="left" valign="middle" style="padding:20px;" width="50%">
|
||||||
<img src="<?= base_url('/public/uploads/logo/'.$client_data['client_logo']); ?>"
|
<img src="<?= base_url('/public/uploads/logo/'); ?>"
|
||||||
alt="Client Logo"
|
alt="Client Logo"
|
||||||
style="max-height:80px; max-width: 160px;">
|
style="max-height:80px; max-width: 160px;">
|
||||||
</td>
|
</td>
|
||||||
@ -46,6 +63,33 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- mail content -->
|
||||||
|
|
||||||
|
<?php
|
||||||
|
echo $mail_content;
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- footer -->
|
||||||
|
<div align="center">
|
||||||
|
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="mail-template-footer">
|
||||||
|
<tr style="background-color: #ffffff;">
|
||||||
|
<td align="center" valign="middle" style="padding-top:5px;">
|
||||||
|
<img src="<?= base_url('/public/assets/images/Nhance-Logo-Final.png'); ?>"
|
||||||
|
alt="Default Logo"
|
||||||
|
style="height:auto; max-width: 120px;padding-top:5px;">
|
||||||
|
<p>
|
||||||
|
© <?= date('Y'); ?> Nhance India Insurance Broking Pvt Ltd
|
||||||
|
</p>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
@ -1,50 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Email Notification</title>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
.mail-template-footer {
|
|
||||||
max-width: 500px;
|
|
||||||
background: #ffffff;
|
|
||||||
border-top: 1px solid #00999E;
|
|
||||||
width: 100%; /* default: allow full width */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* On screens smaller than 600px → force 100% */
|
|
||||||
@media screen and (max-width: 600px) {
|
|
||||||
.mail-template-footer {
|
|
||||||
max-width: 100% !important;
|
|
||||||
width: 100% !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<div align="center">
|
|
||||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="mail-template-footer">
|
|
||||||
<tr style="background-color: #ffffff;">
|
|
||||||
<td align="center" valign="middle" style="padding-top:5px;">
|
|
||||||
<img src="<?= base_url('/public/assets/images/Nhance-Logo-Final.png'); ?>"
|
|
||||||
alt="Default Logo"
|
|
||||||
style="height:auto; max-width: 120px;padding-top:5px;">
|
|
||||||
<p>
|
|
||||||
© <?= date('Y'); ?> Nhance India Insurance Broking Pvt Ltd
|
|
||||||
</p>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
Loading…
Reference in New Issue
Block a user