JadwalLSPContoroller

Last Execution
mail@pastecode.io avatar
unknown
abap
2 years ago
340 B
2
Indexable
Never
$data = $data->with($data_eager)
    ->withCount(['peserta_r' => function ($query) {
        $query->select(DB::raw('count(distinct(nik))'));
    }])
    ->get();

$jml_pst = $data->sum('peserta_r_count');
$jml_by_prod = $data->sum('jumlah_biaya_r.jml_bp_biaya_real');
$jml_sisa_byr = $data->sum('jumlah_biaya_r.jml_bp_sisa_bayar');