in active staff removed : GWM

This commit is contained in:
Gowtham M 2026-01-08 09:08:08 +05:30
parent dcf3b8ab99
commit 52ecc7f905

View File

@ -135,7 +135,7 @@ class DashboardController extends ResourceController
SUM(CASE WHEN pe.enquiry_status = 'In progress' AND DATE(pe.created_on) = CURDATE() THEN 1 ELSE 0 END) AS today_in_progress,
SUM(CASE WHEN pe.enquiry_status = 'Completed' AND DATE(pe.created_on) = CURDATE() THEN 1 ELSE 0 END) AS today_completed,
")
->join('partner_staff ps', 'ps.id = pe.assigned_to', 'left')
->join('partner_staff ps', 'ps.id = pe.assigned_to AND ps.is_active = 1', 'left')
->where('pe.manager_id', $manager_id)
->where('pe.is_active', 1)
->where('pe.assigned_to IS NOT NULL')