Merge branch 'main' of http://192.168.1.200:3000/Stratawiz/Rapport-Laravel
Specific Folder FTP Upload / ftp-deploy (push) Successful in 28s Details

This commit is contained in:
zeeshan 2026-10-30 13:31:09 +05:30
commit 6fa62b14e0
1 changed files with 4 additions and 4 deletions

View File

@ -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)
: ''; : '';