fix bilangan berjaya emel

This commit is contained in:
Saufi
2026-05-20 16:15:48 +08:00
parent afab039f54
commit fa0070acec

View File

@@ -100,7 +100,7 @@ class ProgramController extends Controller
'downloaded_certificates'=> (int) ($certStats->downloaded ?? 0),
'total_downloads' => (int) ($certStats->total_downloads ?? 0),
'emails_pending' => $emailsPending,
'emails_sent' => (int) \DB::table('certificates')->where('program_id', $program->id)->whereNotNull('emailed_at')->count(),
'emails_sent' => (int) \DB::table('program_participants')->where('program_id', $program->id)->where('status_sent_emel', 'sent')->count(),
'emails_failed' => (int) \DB::table('program_participants')->where('program_id', $program->id)->where('status_sent_emel', 'failed')->count(),
];