This commit is contained in:
Duidev Software House
2025-11-12 19:47:15 +07:00
parent b2c5df08a2
commit 0adb7b2a76
12 changed files with 572 additions and 288 deletions
@@ -1222,6 +1222,10 @@ class DokterController extends Controller
if ($komponen == 'otomatis' AND $kuman == ''){
$cekada = ResultSample::where('accession_number', 'LIKE', $nofoto.'%')->first();
$kuman = $cekada->organism ?? '';
if ($kuman == ''){
$cekkumanotomatis = KomponenJawaban::where('accnumber', $nofoto)->where('komponen', 'bakteri')->first();
$kuman = $cekkumanotomatis->isidata ?? '';
}
}
$data = $data->where('kuman', $kuman);
$data = $data->orderByRaw($order)->paginate($limit);