update
This commit is contained in:
@@ -1677,9 +1677,14 @@ class DokterController extends Controller
|
||||
]);
|
||||
}
|
||||
if ($request->input('isi') == 'updatevaluemic'){
|
||||
RekapAntibiotik::where('id', $nofoto)->update([
|
||||
'value' => $request->input('komponen')
|
||||
$value = (int) $request->input('komponen');
|
||||
$data = RekapAntibiotik::findOrFail($nofoto);
|
||||
$interpretation = $this->cekInterpretasi($value, $data);
|
||||
$data->update([
|
||||
'value' => $value,
|
||||
'interpretation' => $interpretation
|
||||
]);
|
||||
$pesan = $interpretation;
|
||||
}
|
||||
if ($request->input('isi') == 'updateinterpretationmic'){
|
||||
RekapAntibiotik::where('id', $nofoto)->update([
|
||||
@@ -2118,8 +2123,8 @@ class DokterController extends Controller
|
||||
}
|
||||
}
|
||||
public function getAdendum(Request $request) {
|
||||
$nofoto = $request->input('val01');
|
||||
$arrayfiles = [];
|
||||
$nofoto = $request->input('val01');
|
||||
$arrayfiles = [];
|
||||
$files = Riwayat::where('nofoto', $nofoto)->orderBy('created_at', 'ASC')->get();
|
||||
foreach ($files as $file) {
|
||||
$arrayfiles[] = array(
|
||||
|
||||
Reference in New Issue
Block a user