[Scope] Hidden Pembayaran Laporan Kegiatan PPPK 2025
This commit is contained in:
@@ -88,15 +88,18 @@ class DashboardController extends Controller
|
||||
})
|
||||
->whereNotIn('uploader', ['Api Praktisi', 'Api Spada', 'API Permatasari', 'API LMS'])
|
||||
->whereHas('syarats', function ($q) {
|
||||
$q->tanpaPppk2025();
|
||||
$q->whereNotIn('id_kategori', [1, 2, 3, 5, 6])
|
||||
->whereNotIn('id_rubrik', [...config('rubrik.kompetisi'), ...config('rubrik.prestasi'), ...config('rubrik.asesor'), ...config('rubrik.reviewer')]);
|
||||
})
|
||||
->whereHas('syarats', function ($q) {
|
||||
$q->tanpaPppk2025();
|
||||
$q->whereIn('status_verifikasi_id', [3, 4])
|
||||
->whereNotIn('id_kategori', [1, 2, 3, 5, 6])
|
||||
->whereNotIn('id_rubrik', [...config('rubrik.kompetisi'), ...config('rubrik.prestasi'), ...config('rubrik.asesor'), ...config('rubrik.reviewer')]);
|
||||
})
|
||||
->whereDoesntHave('syarats', function ($q) {
|
||||
$q->tanpaPppk2025();
|
||||
$q->where('status_verifikasi_id', 1)
|
||||
->whereNotIn('id_kategori', [1, 2, 3, 5, 6])
|
||||
->whereNotIn('id_rubrik', [...config('rubrik.kompetisi'), ...config('rubrik.prestasi'), ...config('rubrik.asesor'), ...config('rubrik.reviewer')]);
|
||||
@@ -136,6 +139,7 @@ class DashboardController extends Controller
|
||||
})
|
||||
->whereNotIn('uploader', ['Api Praktisi', 'Api Spada', 'API Permatasari', 'API LMS'])
|
||||
->whereHas('syarats', function ($q) {
|
||||
$q->tanpaPppk2025();
|
||||
$q->whereNotIn('id_kategori', [1, 2, 3, 5, 6])
|
||||
->whereNotIn('id_rubrik', [...config('rubrik.kompetisi'), ...config('rubrik.prestasi'), ...config('rubrik.asesor'), ...config('rubrik.reviewer')]);
|
||||
});
|
||||
@@ -158,33 +162,40 @@ class DashboardController extends Controller
|
||||
|
||||
$diterima = (clone $base)
|
||||
->whereHas('syarats', function ($q) use ($penunjangExclude) {
|
||||
$q->tanpaPppk2025();
|
||||
$penunjangExclude($q)->whereIn('status_verifikasi_id', [6, 7]);
|
||||
})
|
||||
->whereDoesntHave('syarats', function ($q) use ($penunjangExclude) {
|
||||
$q->tanpaPppk2025();
|
||||
$penunjangExclude($q)->whereIn('status_verifikasi_id', [1, 3, 4]);
|
||||
})
|
||||
->count();
|
||||
|
||||
$ditolak = (clone $base)
|
||||
->whereHas('syarats', function ($q) use ($penunjangExclude) {
|
||||
$q->tanpaPppk2025();
|
||||
$penunjangExclude($q)->whereIn('status_verifikasi_id', [2, 5, 8]);
|
||||
})
|
||||
->whereDoesntHave('syarats', function ($q) use ($penunjangExclude) {
|
||||
$q->tanpaPppk2025();
|
||||
$penunjangExclude($q)->whereIn('status_verifikasi_id', [3, 4, 6, 7]);
|
||||
})
|
||||
->count();
|
||||
|
||||
$diajukan = (clone $base)
|
||||
->whereHas('syarats', function ($q) use ($penunjangExclude) {
|
||||
$q->tanpaPppk2025();
|
||||
$penunjangExclude($q)->whereIn('status_verifikasi_id', [3, 4]);
|
||||
})
|
||||
->whereDoesntHave('syarats', function ($q) use ($penunjangExclude) {
|
||||
$q->tanpaPppk2025();
|
||||
$penunjangExclude($q)->where('status_verifikasi_id', 1);
|
||||
})
|
||||
->count();
|
||||
|
||||
$belumDiajukan = (clone $base)
|
||||
->whereHas('syarats', function ($q) use ($penunjangExclude) {
|
||||
$q->tanpaPppk2025();
|
||||
$penunjangExclude($q)->where('status_verifikasi_id', 1);
|
||||
})
|
||||
->count();
|
||||
|
||||
Reference in New Issue
Block a user