penambahan filter by status untuk jumlah task

This commit is contained in:
majid
2024-12-05 11:07:29 +07:00
parent 13f3065a01
commit 6692eef319
5 changed files with 13 additions and 11 deletions

View File

@@ -289,5 +289,10 @@
{
return Penilaian::whereHas('userPenilai', function ($query) use ($userId) {
$query->where('user_id', $userId);
})->count();
})
->whereHas('permohonan', function ($query) {
$query->where('status', 'assign');
})
->count();
}