GWM : Handler dashboard changes

This commit is contained in:
Gowtham M 2025-12-02 15:51:27 +05:30
parent 8d41c918a6
commit d982268b46

View File

@ -208,7 +208,12 @@ class DashboardController extends ResourceController
SUM(CASE WHEN pe.enquiry_status = 'Completed' THEN 1 ELSE 0 END) AS total_completed
")
->join('partner_staff ps', 'ps.id = pe.assigned_to', 'left')
->where("JSON_CONTAINS(ps.handler_id, '\"$handler_id\"')")
->groupStart()
->where("JSON_CONTAINS(ps.handler_id, '\"$handler_id\"')")
->orWhere('ps.id', $handler_id)
->groupEnd()
// ->where('ps.handler_id', $handler_id)
->where('pe.is_active', 1)
->where('pe.assigned_to IS NOT NULL')