update
This commit is contained in:
@@ -870,7 +870,7 @@ class ReportController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Query Periksa
|
// Query Periksa
|
||||||
$query = Periksa::query()->whereYear('daftar', $tahun);
|
$query = Periksa::query()->where('dlp', 'Kultur')->whereNotNull('dokter_id')->whereYear('daftar', $tahun);
|
||||||
if ($bulan != 'ALL' && $bulan != 'Pick Month') {
|
if ($bulan != 'ALL' && $bulan != 'Pick Month') {
|
||||||
$query->whereMonth('daftar', $bulan);
|
$query->whereMonth('daftar', $bulan);
|
||||||
}
|
}
|
||||||
@@ -888,7 +888,7 @@ class ReportController extends Controller
|
|||||||
|
|
||||||
return view('admin.glassreport', [
|
return view('admin.glassreport', [
|
||||||
'orderbydate' => $orderbydate,
|
'orderbydate' => $orderbydate,
|
||||||
'antibiotikLookup' => $antibiotikLookup, // Kirim array hasil mapping
|
'antibiotikLookup' => $antibiotikLookup,
|
||||||
'jsonantibiotik' => $this->listAntibiotik,
|
'jsonantibiotik' => $this->listAntibiotik,
|
||||||
'glassTables' => $glassTables,
|
'glassTables' => $glassTables,
|
||||||
'glassHeaders' => $glassHeaders,
|
'glassHeaders' => $glassHeaders,
|
||||||
@@ -920,7 +920,7 @@ class ReportController extends Controller
|
|||||||
];
|
];
|
||||||
|
|
||||||
// Query Tanpa Get() tapi Chunk()
|
// Query Tanpa Get() tapi Chunk()
|
||||||
$query = Periksa::query()->whereYear('daftar', $tahun);
|
$query = Periksa::query()->where('dlp', 'Kultur')->whereNotNull('dokter_id')->whereYear('daftar', $tahun);
|
||||||
if ($bulan != 'ALL' && $bulan != 'Pick Month') {
|
if ($bulan != 'ALL' && $bulan != 'Pick Month') {
|
||||||
$query->whereMonth('daftar', $bulan);
|
$query->whereMonth('daftar', $bulan);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user