Update
This commit is contained in:
@@ -37,9 +37,9 @@
|
||||
<th>bhp_antibiotiktambahan</th>
|
||||
<th>id_esbl</th>
|
||||
<th>id_mrsa</th>
|
||||
@if(isset($jsonantibiotik) && !empty($jsonantibiotik))
|
||||
@foreach($jsonantibiotik->first() as $antibiotic)
|
||||
<th>{{ $antibiotic->antibiotic }}</th>
|
||||
@if(isset($masterAntibioticList))
|
||||
@foreach($masterAntibioticList as $antibioticName)
|
||||
<th>{{ strtoupper($antibioticName) }}</th>
|
||||
@endforeach
|
||||
@endif
|
||||
</tr>
|
||||
@@ -72,12 +72,16 @@
|
||||
<td>{{ $data->bhp_antibiotiktambahan}} </td>
|
||||
<td>{{ $data->id_esbl}} </td>
|
||||
<td>{{ $data->id_mrsa}} </td>
|
||||
@if(isset($jsonantibiotik[$data->id]) && !empty($jsonantibiotik[$data->id]))
|
||||
@foreach($jsonantibiotik[$data->id] as $antibiotic)
|
||||
<td>{{ $antibiotic->interpretation }}</td>
|
||||
@php
|
||||
$patientResults = $jsonantibiotik->get($data->id);
|
||||
@endphp
|
||||
|
||||
@if(isset($masterAntibioticList))
|
||||
@foreach($masterAntibioticList as $antibioticName)
|
||||
<td>
|
||||
{{ $patientResults[$antibioticName] ?? '-' }}
|
||||
</td>
|
||||
@endforeach
|
||||
@else
|
||||
<td> </td>
|
||||
@endif
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
Reference in New Issue
Block a user