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

Fix dashboard: Person has 'participant' (singular), not 'participants'

Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 88148120
......@@ -108,7 +108,7 @@ public function render()
->orWhereRaw("EXTRACT(MONTH FROM date_of_birth) = ? AND EXTRACT(DAY FROM date_of_birth) < ?", [
now()->addMonth()->month, now()->day,
])
->whereHas('participants', function ($q) use ($branchId) {
->whereHas('participant', function ($q) use ($branchId) {
$q->where('status', 'active')
->when($branchId, fn ($pq) => $pq->where('branch_id', $branchId));
})
......
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