This commit is contained in:
servdal
2025-08-27 15:33:53 +07:00
parent fef0acb867
commit ab494fddf8
@@ -1731,12 +1731,12 @@ class DokterController extends Controller
'antibiotikall' => $antibiotikall, 'antibiotikall' => $antibiotikall,
); );
} }
/*
$getsirab = SiraB::orderBy('family', 'ASC')->orderBy('spesies', 'ASC')->where('cek', '1')->get(); $getsirab = SiraB::orderBy('family', 'ASC')->orderBy('spesies', 'ASC')->where('cek', '1')->get();
foreach($getsirab as $row){ foreach($getsirab as $row){
$family = $row->family; $family = $row->family;
$spesies= $row->spesies; $spesies= $row->spesies;
$getallantibiotik = SiraB::where('family', $family)->where('spesies', $spesies)->get(); $getallantibiotik = SiraB::where('family', $family)->get();
foreach ($getallantibiotik as $row2){ foreach ($getallantibiotik as $row2){
SiraB::updateOrCreate( SiraB::updateOrCreate(
[ [
@@ -1760,7 +1760,6 @@ class DokterController extends Controller
); );
} }
} }
*/
echo json_encode($arrayfiles); echo json_encode($arrayfiles);
} else if ($idpasien == 'Bakteri'){ } else if ($idpasien == 'Bakteri'){
$getsirab = Organisms::where('kelompok', 'biakankultur')->orderBy('category', 'ASC')->orderBy('name', 'ASC')->get(); $getsirab = Organisms::where('kelompok', 'biakankultur')->orderBy('category', 'ASC')->orderBy('name', 'ASC')->get();