Update FormOtherController.php
This commit is contained in:
@@ -210,9 +210,13 @@ class FormOtherController extends Controller
|
|||||||
$phoneNumbers = array_unique($phoneNumbers);
|
$phoneNumbers = array_unique($phoneNumbers);
|
||||||
$receiver_ids = array_unique($receiver_ids);
|
$receiver_ids = array_unique($receiver_ids);
|
||||||
|
|
||||||
|
try {
|
||||||
// Generate URL and send WhatsApp notification
|
// Generate URL and send WhatsApp notification
|
||||||
$url = route('forms.other.view', $form->id);
|
$url = route('forms.other.view', $form->id);
|
||||||
WhatsappHelper::newExpense($phoneNumbers, $expense_number, $url, $tanggal, $total, $name);
|
WhatsappHelper::newExpense($phoneNumbers, $expense_number, $url, $tanggal, $total, $name);
|
||||||
|
} finally {
|
||||||
|
Log::error("Failed to send WhatsApp message to {$phoneNumbers}: ");
|
||||||
|
}
|
||||||
|
|
||||||
// Send bulk email
|
// Send bulk email
|
||||||
foreach ($recipients as $recipient) {
|
foreach ($recipients as $recipient) {
|
||||||
|
|||||||
Reference in New Issue
Block a user