Commit daec5951 authored by Fares's avatar Fares

fix(swimming): remove non-existent schedule_summary column from queries

Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 3b1a514f
...@@ -103,7 +103,7 @@ class SwimmingAssignmentController extends Controller ...@@ -103,7 +103,7 @@ class SwimmingAssignmentController extends Controller
} }
$groups = $db->select(" $groups = $db->select("
SELECT g.id, g.name_ar, g.current_count, g.schedule_summary, g.min_age, g.max_age, SELECT g.id, g.name_ar, g.current_count, g.min_age, g.max_age,
p.name_ar as program_name, p.max_capacity, p.monthly_fee_member, p.monthly_fee_nonmember, p.name_ar as program_name, p.max_capacity, p.monthly_fee_member, p.monthly_fee_nonmember,
p.age_from, p.age_to, p.age_from, p.age_to,
c.full_name_ar as coach_name c.full_name_ar as coach_name
......
...@@ -47,8 +47,7 @@ class SwimmingDashboardController extends Controller ...@@ -47,8 +47,7 @@ class SwimmingDashboardController extends Controller
", [$disciplineId, $disciplineId, $disciplineId, $disciplineId, $monthStart . ' 00:00:00', $monthEnd . ' 23:59:59']); ", [$disciplineId, $disciplineId, $disciplineId, $disciplineId, $monthStart . ' 00:00:00', $monthEnd . ' 23:59:59']);
$groups = $db->select(" $groups = $db->select("
SELECT g.id, g.name_ar, g.current_count, g.status, g.schedule_summary, SELECT g.id, g.name_ar, g.current_count, g.status, p.name_ar as program_name, p.max_capacity, p.monthly_fee_member, p.monthly_fee_nonmember,
p.name_ar as program_name, p.max_capacity, p.monthly_fee_member, p.monthly_fee_nonmember,
c.full_name_ar as coach_name, c.full_name_ar as coach_name,
(SELECT COUNT(*) FROM sa_group_players gp WHERE gp.group_id = g.id AND gp.status = 'active') as active_count, (SELECT COUNT(*) FROM sa_group_players gp WHERE gp.group_id = g.id AND gp.status = 'active') as active_count,
(SELECT COUNT(*) FROM sa_group_players gp WHERE gp.group_id = g.id AND gp.status = 'pending_payment') as pending_count (SELECT COUNT(*) FROM sa_group_players gp WHERE gp.group_id = g.id AND gp.status = 'pending_payment') as pending_count
......
...@@ -170,9 +170,6 @@ if ($done): ?> ...@@ -170,9 +170,6 @@ if ($done): ?>
<?php if ($g['coach_name']): ?> <?php if ($g['coach_name']): ?>
<div style="font-size:11px;color:#6B7280;margin-bottom:4px;"><i data-lucide="user" style="width:11px;height:11px;vertical-align:middle;margin-left:4px;"></i><?= e($g['coach_name']) ?></div> <div style="font-size:11px;color:#6B7280;margin-bottom:4px;"><i data-lucide="user" style="width:11px;height:11px;vertical-align:middle;margin-left:4px;"></i><?= e($g['coach_name']) ?></div>
<?php endif; ?> <?php endif; ?>
<?php if ($g['schedule_summary']): ?>
<div style="font-size:11px;color:#6B7280;margin-bottom:6px;"><i data-lucide="clock" style="width:11px;height:11px;vertical-align:middle;margin-left:4px;"></i><?= e($g['schedule_summary']) ?></div>
<?php endif; ?>
<div style="display:flex;align-items:center;gap:6px;margin-bottom:6px;"> <div style="display:flex;align-items:center;gap:6px;margin-bottom:6px;">
<div style="flex:1;height:5px;background:#E5E7EB;border-radius:3px;overflow:hidden;"> <div style="flex:1;height:5px;background:#E5E7EB;border-radius:3px;overflow:hidden;">
<div style="height:100%;width:<?= $pct ?>%;background:<?= $barColor ?>;border-radius:3px;"></div> <div style="height:100%;width:<?= $pct ?>%;background:<?= $barColor ?>;border-radius:3px;"></div>
......
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