calander activity push

This commit is contained in:
Gowtham M 2026-02-27 16:08:01 +05:30
parent 3cdd73a7ee
commit bd3151add9

View File

@ -1238,9 +1238,23 @@ class SalesController extends BaseController
/* ---------------- SUMMARY ---------------- */
$summary = ucfirst($input['activity_type']) .
' with ' .
$lead_data['company_name'];
$activityType = ucfirst($input['activity_type']);
$prepositionMap = [
'Email' => 'to',
'Call' => 'with',
'Meeting' => 'with',
'Visit' => 'to',
'Demo' => 'with',
'Share Docs' => 'to',
'To Do' => 'for'
];
$preposition = $prepositionMap[$activityType] ?? 'with';
$summary = "Activity scheduled : {$activityType} {$preposition} {$lead_data['company_name']}";
/* ---------------- GOOGLE PAYLOAD ---------------- */