CHANGE_ client feedback : GWM
This commit is contained in:
parent
f94330d565
commit
bd94d53259
@ -839,7 +839,7 @@ class MasterController extends BaseController
|
||||
|
||||
$MailHelper = new MailHelper();
|
||||
|
||||
$clientData = $this->ClientDocsModel->select('client.name , client_branch.email, client_branch.*')
|
||||
$clientData = $this->ClientDocsModel->select('client.name as client_name, client_branch.email, client_branch.*')
|
||||
->join('client_branch', 'client_docs.client_branch_id = client_branch.id', 'left')
|
||||
->join('client', 'client_branch.client_id = client.client_id', 'left')
|
||||
->where('client_docs.id', $doc_id)->get()->getRow();
|
||||
@ -855,7 +855,7 @@ class MasterController extends BaseController
|
||||
->where('branches.branch_id',1)
|
||||
->get()->getRow();
|
||||
$subject = 'BB-Sign Verify Document';
|
||||
$message = "Dear " . $clientData->name . ",<br>" . $businessData->business_name . " has requested your approval for a document. Please click the link below to preview and approve.<br><br>" . $url;
|
||||
$message = "Dear " . $clientData->client_name . ",<br>" . $businessData->business_name . " has requested your approval for a document. Please click the link below to preview and approve.<br><br>" . $url;
|
||||
|
||||
$mail_send = $MailHelper->send_url_email($clientData->email , $businessData->email, $subject, $message);
|
||||
|
||||
@ -865,8 +865,8 @@ class MasterController extends BaseController
|
||||
|
||||
|
||||
if($clientData->whatsapp == 1){
|
||||
$whatsApp_message = "Dear " . $clientData->name . "," . $businessData->business_name . " has requested your approval for a document. Please click the link below to preview and approve." ;
|
||||
$notificationHelper->sendWhatsAppMessage($number, $whatsApp_message, $url);
|
||||
$whatsApp_message = "Dear " . $clientData->client_name . "," . $businessData->business_name . " has requested your approval for a document. Please click the link below to preview and approve." ;
|
||||
// $notificationHelper->sendWhatsAppMessage($number, $whatsApp_message, $url);
|
||||
|
||||
}
|
||||
|
||||
@ -907,7 +907,7 @@ class MasterController extends BaseController
|
||||
|
||||
$MailHelper = new MailHelper();
|
||||
|
||||
$clientData = $this->ClientDocsModel->select('client.name , client_branch.email, client_branch.mobile_no')
|
||||
$clientData = $this->ClientDocsModel->select('client.name as client_name, client_branch.email, client_branch.mobile_no')
|
||||
->join('client_branch', 'client_docs.client_branch_id = client_branch.id', 'left')
|
||||
->join('client', 'client_branch.client_id = client.client_id', 'left')
|
||||
->where('client_docs.id', $doc_id)->get()->getRow();
|
||||
@ -922,7 +922,7 @@ class MasterController extends BaseController
|
||||
->where('branches.branch_id',$this->session->get('logged_in_staff_branch_id'))
|
||||
->get()->getRow();
|
||||
$subject = 'BB-Sign Verify Document';
|
||||
$message = "Dear " . $clientData->name . ",<br>" . $businessData->business_name . " has requested your approval for a document. Please click the link below to preview and approve.<br><br>" . $url;
|
||||
$message = "Dear " . $clientData->client_name . ",<br>" . $businessData->business_name . " has requested your approval for a document. Please click the link below to preview and approve.<br><br>" . $url;
|
||||
|
||||
$MailHelper->send_url_email($clientData->email , $businessData->email, $subject, $message);
|
||||
|
||||
@ -930,8 +930,8 @@ class MasterController extends BaseController
|
||||
$number = '91'.$clientData->mobile_no; // Replace with dynamic recipient number
|
||||
|
||||
if($clientData->whatsapp == 1){
|
||||
$whatsApp_message = "Dear " . $clientData->name . "," . $businessData->business_name . " has requested your approval for a document. Please click the link below to preview and approve." ;
|
||||
$notificationHelper->sendWhatsAppMessage($number, $whatsApp_message, $url);
|
||||
$whatsApp_message = "Dear " . $clientData->client_name . "," . $businessData->business_name . " has requested your approval for a document. Please click the link below to preview and approve." ;
|
||||
//$notificationHelper->sendWhatsAppMessage($number, $whatsApp_message, $url);
|
||||
}
|
||||
|
||||
|
||||
@ -975,7 +975,7 @@ class MasterController extends BaseController
|
||||
|
||||
|
||||
if($client_data['whatsapp'] == 1){
|
||||
$notificationHelper->sendWhatsAppMessage($number, $message);
|
||||
// $notificationHelper->sendWhatsAppMessage($number, $message);
|
||||
}
|
||||
|
||||
if($client_data['sms'] == 1){
|
||||
|
||||
@ -89,8 +89,8 @@ class NotificationHelper
|
||||
$senderId = getenv('SENDER_ID');
|
||||
if($message_type_name == 'doc_verify')
|
||||
{
|
||||
$message = 'Dear '. $name .',
|
||||
'. $otp .' is OTP to approve '. $client_full_data['group_name'] .' for '. $client_full_data['service_name'] .' purposes. -L D RAJ AND CO';
|
||||
$message = 'Dear '. $client_full_data['client_name'] .',
|
||||
'. $otp .' is OTP to approve '. $client_full_data['group_name'] .' for '. $client_full_data['service_name'] .' purposes. -L D RAJ AND CO';
|
||||
}
|
||||
$serviceName = getenv('SERVICE_NAME'); // Service name
|
||||
|
||||
|
||||
@ -283,7 +283,7 @@
|
||||
<span class="logo-lg">
|
||||
<!-- <h3 style="color: white;margin-top: 16px;"> Dox 2 Approve </h3> -->
|
||||
|
||||
<img src="<?= base_url()."public"; ?>/assets/images/dox.png" alt="" height="20">
|
||||
<img src="<?= base_url()."public"; ?>/assets/images/Dox.png" alt="" height="20">
|
||||
</span>
|
||||
|
||||
</a>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user