CHANGE_Fixing_logo_in_clients by vadivel
This commit is contained in:
parent
0d1b2d4a91
commit
51c67f07c9
@ -514,5 +514,5 @@ $routes->get("getAddOnPolicy", "EmployeeRestController::getAddOnPolicy");
|
||||
$routes->post("addEmployeeAndDependence", "EmployeeRestController::addEmployeeAndDependence");
|
||||
$routes->post("getPreEmployeePolicyCount", "EmployeeRestController::getPreEmployeePolicyCount");
|
||||
|
||||
|
||||
$routes->get('notification_mail_header',"NotificationController::notification_mail_header");
|
||||
|
||||
|
||||
@ -280,4 +280,21 @@ class NotificationController extends AdminController
|
||||
}
|
||||
}
|
||||
|
||||
public function notification_mail_header(){
|
||||
|
||||
$params = [];
|
||||
$params['client_data'] = $this->clientModel->where('id', 12)->first();
|
||||
|
||||
return view('notification_mail_header',$params);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -57,6 +57,8 @@ class sendMailNotification
|
||||
|
||||
$mail_content = str_replace(["[[app_link]]", "{{app_link}}"], "<a href='$app_link'>Review Details</a>", $mail_content);
|
||||
if ($dataToInsert['relationship'] == 'Self' && $mail != null || $mail != '') {
|
||||
$header_of_mail = view('notification_mail_header', $params);
|
||||
$mail_content = $header_of_mail . $mail_content ;
|
||||
$wholeData = ['mail' => $mail, 'subject' => $subject,'message'=> $mail_content,'bcc'=> $client_data['common_mails'], 'reply_to' => $client_data['reply_to'], 'attachments' => $attachments, 'common' => $common];
|
||||
}
|
||||
|
||||
@ -89,6 +91,9 @@ class sendMailNotification
|
||||
$mail_content = str_replace(["[[member_mobile]]", "{{member_mobile}}"], $employee_mobile_no, $mail_content);
|
||||
$mail = $emp_data['email_corporate'];
|
||||
|
||||
$header_of_mail = view('notification_mail_header', $params);
|
||||
$mail_content = $header_of_mail . $mail_content ;
|
||||
|
||||
$wholeData = ['mail' => $mail, 'subject' => $subject,'message'=> $mail_content, 'bcc'=> $client_data['common_mails'], 'reply_to' => $client_data['reply_to'], 'common' => $common];
|
||||
|
||||
return $wholeData;
|
||||
@ -139,6 +144,9 @@ 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(["[[client_name]]", "{{client_name}}"], $client_data['client_name'], $mail_content);
|
||||
|
||||
$header_of_mail = view('notification_mail_header', $params);
|
||||
$mail_content = $header_of_mail . $mail_content ;
|
||||
|
||||
$wholeData = ['mail' => $mail, 'subject' => $subject,'message'=> $mail_content,'bcc'=> $client_data['common_mails'], 'reply_to' => $client_data['reply_to'], 'common' => $common];
|
||||
|
||||
return $wholeData;
|
||||
@ -161,6 +169,7 @@ class sendMailNotification
|
||||
$client_data =$clientModel->where('id', $client_id)->first();
|
||||
$notification_data = $notificationModel->where('client_id' ,$client_id)->where('template_name', $action)->first();
|
||||
|
||||
$params['client_data'] = $client_data;
|
||||
// dd($notification_data);
|
||||
|
||||
if (isset($notification_data) && $notification_data['enabled'] == 1) {
|
||||
@ -536,6 +545,9 @@ class sendMailNotification
|
||||
|
||||
// print_r($mail_content); die;
|
||||
|
||||
$header_of_mail = view('notification_mail_header', $params);
|
||||
$mail_content = $header_of_mail . $mail_content ;
|
||||
|
||||
$wholeData[] = ['mail' => $mail, 'subject' => $subject,'message'=> $mail_content, 'bcc'=> $client_data['common_mails'], 'reply_to' => $client_data['reply_to'], 'common' => $common];
|
||||
|
||||
return $wholeData;
|
||||
@ -557,6 +569,9 @@ class sendMailNotification
|
||||
|
||||
|
||||
$client_data =$clientModel->where('id', $client_id)->first();
|
||||
|
||||
$params['client_data'] = $client_data;
|
||||
|
||||
$notification_data = $notificationModel->where('client_id' ,$client_id)->where('template_name', $action)->first();
|
||||
|
||||
if (isset($notification_data) && $notification_data['enabled'] == 1) {
|
||||
@ -833,6 +848,9 @@ class sendMailNotification
|
||||
$full_name = $value['first_name'] .' ' .$value['last_name'];
|
||||
$mail_content = str_replace(["[[member_name]]", "{{member_name}}"], $full_name , $mail_content);
|
||||
|
||||
$header_of_mail = view('notification_mail_header', $params);
|
||||
$mail_content = $header_of_mail . $mail_content ;
|
||||
|
||||
$wholeData[] = ['mail' => $value['email'], 'subject' => $subject,'message'=> $mail_content, 'reply_to' => $client_data['reply_to'], 'common' => $common];
|
||||
// $wholeData[] = ['mail' => $value['email'], 'subject' => $subject,'message'=> $mail_content, 'bcc'=> $client_data['common_mails'}};
|
||||
}
|
||||
@ -1132,6 +1150,8 @@ class sendMailNotification
|
||||
// $mail_array = array_map('trim', $mail_array);
|
||||
// $wholeData = [];
|
||||
// foreach ($mail_array as $key => $value) {
|
||||
// $header_of_mail = view('notification_mail_header', $params);
|
||||
// $mail_content = $header_of_mail . $mail_content ;
|
||||
// $wholeData[] = ['mail' => $value, 'subject' => $subject,'message'=> $mail_content, 'reply_to' => $client_data['reply_to'], 'common' => $common];
|
||||
// // $wholeData[] = ['mail' => $value, 'subject' => $subject,'message'=> $mail_content, 'bcc'=> $client_data['common_mails'}};
|
||||
// }
|
||||
@ -1191,6 +1211,10 @@ class sendMailNotification
|
||||
$mail_content = str_replace(["[[app_link]]", "{{app_link}}"], "<a href='$app_link'>Review Details</a>", $mail_content);
|
||||
|
||||
if ($mail != null || $mail != '') {
|
||||
|
||||
$header_of_mail = view('notification_mail_header', $params);
|
||||
$mail_content = $header_of_mail . $mail_content ;
|
||||
|
||||
$wholeData = ['mail' => $mail, 'subject' => $subject,'message'=> $mail_content,'bcc'=> $client_data['common_mails'], 'reply_to' => $client_data['reply_to'], 'attachments' => $attachments];
|
||||
}
|
||||
|
||||
@ -1223,6 +1247,8 @@ class sendMailNotification
|
||||
if ((isset($notification_data) && $notification_data['enabled'] == 1)) {
|
||||
|
||||
if (isset($mail) && !empty($mail)) {
|
||||
$header_of_mail = view('notification_mail_header', $params);
|
||||
$mail_content = $header_of_mail . $mail_content ;
|
||||
$wholeData = ['mail' => $mail, 'subject' => $subject,'message'=> $mail_content, 'bcc'=> $client_data['common_mails'], 'reply_to' => $client_data['reply_to']];
|
||||
}
|
||||
|
||||
@ -1276,6 +1302,9 @@ 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(["[[client_name]]", "{{client_name}}"], $client_data['client_name'], $mail_content);
|
||||
|
||||
$header_of_mail = view('notification_mail_header', $params);
|
||||
$mail_content = $header_of_mail . $mail_content ;
|
||||
|
||||
$wholeData = ['mail' => $mail, 'subject' => $subject,'message'=> $mail_content,'bcc'=> $client_data['common_mails'],'attachments' => $attachments, 'reply_to' => $client_data['reply_to']];
|
||||
|
||||
return $wholeData;
|
||||
@ -1427,6 +1456,8 @@ class sendMailNotification
|
||||
$mail_content = str_replace(["[[member_mobile]]", "{{member_mobile}}"], $mobile, $mail_content);
|
||||
$mail_content = str_replace(["[[member_summary]]", "{{member_summary}}"], $table_content , $mail_content);
|
||||
|
||||
$header_of_mail = view('notification_mail_header', $params);
|
||||
$mail_content = $header_of_mail . $mail_content ;
|
||||
|
||||
$wholeData = ['mail' => $mail, 'subject' => $subject,'message'=> $mail_content, 'bcc'=> $client_data['common_mails'], 'reply_to' => $client_data['reply_to']];
|
||||
|
||||
@ -1576,6 +1607,9 @@ class sendMailNotification
|
||||
$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);
|
||||
|
||||
$header_of_mail = view('notification_mail_header', $params);
|
||||
$mail_content = $header_of_mail . $mail_content ;
|
||||
|
||||
$wholeData = ['mail' => $mail, 'subject' => $subject,'message'=> $mail_content, 'reply_to' => $client_data['reply_to']];
|
||||
|
||||
return $wholeData;
|
||||
@ -1725,6 +1759,8 @@ class sendMailNotification
|
||||
$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);
|
||||
|
||||
$header_of_mail = view('notification_mail_header', $params);
|
||||
$mail_content = $header_of_mail . $mail_content ;
|
||||
|
||||
$wholeData = ['mail' => $mail, 'subject' => $subject,'message'=> $mail_content, 'reply_to' => $client_data['reply_to']];
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user