From 5f0c578760ad0fc9cf1f030bc60fe02a7718ea2e Mon Sep 17 00:00:00 2001 From: Ravi Gulhane Date: Fri, 30 Oct 2026 12:54:03 +0530 Subject: [PATCH] Changes --- ...2561624-4466e937-cfb5-4679-989a-c3fea892568f.blade.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/views/form/rapport-lifemankind/1792561624-4466e937-cfb5-4679-989a-c3fea892568f.blade.php b/resources/views/form/rapport-lifemankind/1792561624-4466e937-cfb5-4679-989a-c3fea892568f.blade.php index ce8a00ed..4cb3b667 100644 --- a/resources/views/form/rapport-lifemankind/1792561624-4466e937-cfb5-4679-989a-c3fea892568f.blade.php +++ b/resources/views/form/rapport-lifemankind/1792561624-4466e937-cfb5-4679-989a-c3fea892568f.blade.php @@ -129,13 +129,13 @@ } $tgicsContactId = trim((string) ($sub->formdata->tgics_contact_id ?? '')); $rowUserId = trim((string) ($sub->formdata->user_id ?? ($sub->user_id ?? ($form->user_id ?? '')))); - $doctorLink = $rowUserId !== '' - ? 'https://tgics.cttr.in/' . $rowUserId - : $tgicsCommonLink; + $doctorLink = ($rowUserId !== '' && $tgicsContactId !== '') + ? 'https://tgics.cttr.in/' . $rowUserId . '/' . $tgicsContactId + : ''; $surveysDone = $tgicsContactId !== '' ? (int) ($tgicsSurveyCounts[$tgicsContactId] ?? 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 !== '') ? 'https://api.whatsapp.com/send?phone=' . $whatsappDigits . '&text=' . rawurlencode($whatsappText) : '';