Commit 8baae872 authored by Mahmoud Aglan's avatar Mahmoud Aglan

Fix sports dashboard: training_groups uses is_active not status

Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 51a900da
...@@ -139,7 +139,7 @@ class SportsDashboardController extends Controller ...@@ -139,7 +139,7 @@ class SportsDashboardController extends Controller
SUM(CASE WHEN is_full = 1 THEN 1 ELSE 0 END) AS full_groups, SUM(CASE WHEN is_full = 1 THEN 1 ELSE 0 END) AS full_groups,
COALESCE(SUM(current_count), 0) AS total_players COALESCE(SUM(current_count), 0) AS total_players
FROM training_groups FROM training_groups
WHERE status = 'active' WHERE is_active = 1
") ?: ['total' => 0, 'full_groups' => 0, 'total_players' => 0]; ") ?: ['total' => 0, 'full_groups' => 0, 'total_players' => 0];
// Pool utilization today // Pool utilization today
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment