getOrCreateMeeting((int)$bniGroupId, $meetingDate); $workflowEngine->updateMeetingAttendance($meetingId, (int)$personId, (int)$bniGroupId, $status, (int)$userId, $guestSurvey); $response = [ 'success' => true, 'message' => 'Attendance updated successfully.' ]; echo json_encode($response);