CHANGE_OTP_IN_ADMIN_DOC_VERIFY: AADHAVAN
This commit is contained in:
parent
9643d13d95
commit
ecba729082
@ -928,20 +928,12 @@ class MasterController extends BaseController
|
||||
$number = '91'.$clientData->mobile_no; // Replace with dynamic recipient number
|
||||
|
||||
if($clientData->whatsapp == 1){
|
||||
try {
|
||||
$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);
|
||||
} catch (\Exception $e) {
|
||||
return $this->respond(['Error' => $e->getMessage()]);
|
||||
}
|
||||
}
|
||||
|
||||
if($clientData->sms == 1){
|
||||
try {
|
||||
$notificationHelper->sendSms();
|
||||
} catch (\Exception $e) {
|
||||
return $this->respond(['Error' => $e->getMessage()]);
|
||||
}
|
||||
}
|
||||
|
||||
return $this->respond(['success' => true, 'data' => 'Remember Send Successfully']);
|
||||
@ -973,21 +965,14 @@ class MasterController extends BaseController
|
||||
|
||||
|
||||
if($client_data['whatsapp'] == 1){
|
||||
try {
|
||||
$notificationHelper->sendWhatsAppMessage($number, $message);
|
||||
return $this->respond(['success' => true, 'otp' => $otp]);
|
||||
} catch (\Exception $e) {
|
||||
return $this->respond(['Error' => $e->getMessage()]);
|
||||
}
|
||||
$notificationHelper->sendWhatsAppMessage($number, $message);
|
||||
}
|
||||
|
||||
if($client_data['sms'] == 1){
|
||||
try {
|
||||
$notificationHelper->sendSms();
|
||||
} catch (\Exception $e) {
|
||||
return $this->respond(['Error' => $e->getMessage()]);
|
||||
}
|
||||
}
|
||||
return $this->respond(['success' => true, 'otp' => $otp]);
|
||||
|
||||
}
|
||||
} else {
|
||||
return false;
|
||||
|
||||
@ -333,13 +333,7 @@
|
||||
|
||||
<script>
|
||||
|
||||
$('#share_docs_add').click(function() {
|
||||
// $('#share-docs')[0].reset();
|
||||
$('#client_branch_id').val('').trigger('change');
|
||||
$('#service_group_id').val('').trigger('change');
|
||||
$('#service_id').val('').trigger('change');
|
||||
$('#template_id').val('').trigger('change');
|
||||
})
|
||||
|
||||
|
||||
function fetchDataAndRedirect(selectedOption) {
|
||||
// var selectedOption = $('#add_30days_old_dispatched_data').val();
|
||||
@ -448,9 +442,9 @@
|
||||
});
|
||||
|
||||
|
||||
} else {
|
||||
toastr.warning('Service not found.', 'Warning');
|
||||
}
|
||||
} else {
|
||||
toastr.warning('Service not found.', 'Warning');
|
||||
}
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
// Handle error
|
||||
@ -482,9 +476,9 @@
|
||||
});
|
||||
|
||||
|
||||
} else {
|
||||
toastr.warning('Templates not found.', 'Warning');
|
||||
}
|
||||
} else {
|
||||
toastr.warning('Templates not found.', 'Warning');
|
||||
}
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
// Handle error
|
||||
|
||||
Loading…
Reference in New Issue
Block a user