Merge branch 'main' of http://192.168.1.200:3000/Stratawiz/Rapport-Laravel
Specific Folder FTP Upload / ftp-deploy (push) Successful in 28s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 28s
Details
This commit is contained in:
commit
6fa62b14e0
|
|
@ -129,13 +129,13 @@
|
||||||
}
|
}
|
||||||
$tgicsContactId = trim((string) ($sub->formdata->tgics_contact_id ?? ''));
|
$tgicsContactId = trim((string) ($sub->formdata->tgics_contact_id ?? ''));
|
||||||
$rowUserId = trim((string) ($sub->formdata->user_id ?? ($sub->user_id ?? ($form->user_id ?? ''))));
|
$rowUserId = trim((string) ($sub->formdata->user_id ?? ($sub->user_id ?? ($form->user_id ?? ''))));
|
||||||
$doctorLink = $rowUserId !== ''
|
$doctorLink = ($rowUserId !== '' && $tgicsContactId !== '')
|
||||||
? 'https://tgics.cttr.in/' . $rowUserId
|
? 'https://tgics.cttr.in/' . $rowUserId . '/' . $tgicsContactId
|
||||||
: $tgicsCommonLink;
|
: '';
|
||||||
$surveysDone = $tgicsContactId !== ''
|
$surveysDone = $tgicsContactId !== ''
|
||||||
? (int) ($tgicsSurveyCounts[$tgicsContactId] ?? 0)
|
? (int) ($tgicsSurveyCounts[$tgicsContactId] ?? 0)
|
||||||
: 0;
|
: 0;
|
||||||
$whatsappText = "Dear Doctor" . ($doctorName !== '' ? ' ' . $doctorName : '') . ",\n\nYou have been approved for TGICS (The Great Indian Cough Study).\nPlease open the link and enter your WhatsApp mobile number to continue:\n" . $doctorLink;
|
$whatsappText = "Dear Doctor" . ($doctorName !== '' ? ' ' . $doctorName : '') . ",\nThank you for participating in TGICS (The Great Indian Cough Study).\nPlease open the link and enter your WhatsApp mobile number to continue:\n" . $doctorLink;
|
||||||
$whatsappLink = ($whatsappDigits !== '' && $doctorLink !== '')
|
$whatsappLink = ($whatsappDigits !== '' && $doctorLink !== '')
|
||||||
? 'https://api.whatsapp.com/send?phone=' . $whatsappDigits . '&text=' . rawurlencode($whatsappText)
|
? 'https://api.whatsapp.com/send?phone=' . $whatsappDigits . '&text=' . rawurlencode($whatsappText)
|
||||||
: '';
|
: '';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue