update
This commit is contained in:
@@ -93,6 +93,7 @@
|
||||
$id_swabtenggorok = '';
|
||||
$id_urine = '';
|
||||
$id_swabperineum = '';
|
||||
$bakteri = '';
|
||||
$keterangan = $periksa->keterangan;
|
||||
if (!empty($komponens)){
|
||||
foreach($komponens as $rows){
|
||||
@@ -100,6 +101,7 @@
|
||||
if (trim($rows->komponen) == 'id_swabtenggorok') {$id_swabtenggorok = $rows->isidata; }
|
||||
if (trim($rows->komponen) == 'id_urine') {$id_urine = $rows->isidata; }
|
||||
if (trim($rows->komponen) == 'id_swabperineum') {$id_swabperineum = $rows->isidata; }
|
||||
if (trim($rows->komponen) == 'bakteri') {$bakteri = $rows->isidata; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -136,6 +138,9 @@
|
||||
@endphp
|
||||
|
||||
@if (!isset($cekketerangan[1]) && isset($antibiotiks) && $antibiotiks->isNotEmpty())
|
||||
@if ($bakteri != '')
|
||||
<p>Bakteri Yang ditemukan : <strong><i>{{$bakteri}}</i></strong> {{$data['bakterisir'] ?? ''}}</p>
|
||||
@endif
|
||||
@php
|
||||
// Filter antibiotik yang printrow == true
|
||||
$filtered = $antibiotiks->filter(function($row) {
|
||||
@@ -168,7 +173,7 @@
|
||||
@if (isset($left[$i]))
|
||||
<td>{{ $i + 1 }}</td>
|
||||
<td>{{ $left[$i]->antibiotic }}</td>
|
||||
@if (isset($left[$i]->printcol))
|
||||
@if (isset($left[$i]->printcol) && $left[$i]->printcol == 1)
|
||||
<td>{{ $left[$i]->value }}</td>
|
||||
@else
|
||||
<td> </td>
|
||||
@@ -184,7 +189,7 @@
|
||||
@if (isset($right[$i]))
|
||||
<td>{{ $i + 1 + $half }}</td>
|
||||
<td>{{ $right[$i]->antibiotic }}</td>
|
||||
@if (isset($right[$i]->printcol))
|
||||
@if (isset($right[$i]->printcol) && $right[$i]->printcol == 1)
|
||||
<td>{{ $right[$i]->value }}</td>
|
||||
@else
|
||||
<td> </td>
|
||||
@@ -199,9 +204,9 @@
|
||||
</table>
|
||||
@endif
|
||||
|
||||
@if ($keterangan != '')
|
||||
|
||||
Komentar: <br /> {!! $keterangan !!}
|
||||
@if (isset($keterangan))
|
||||
Komentar:<br />
|
||||
{!! nl2br(e($keterangan)) !!}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@@ -224,5 +229,6 @@
|
||||
<td valign="top" colspan="3" align="center">{{ $periksa->nmdokter }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<font color="white">CCI</font>
|
||||
</body>
|
||||
</html>
|
||||
@@ -123,7 +123,7 @@
|
||||
@if (isset($left[$i]))
|
||||
<td>{{ $i + 1 }}</td>
|
||||
<td>{{ $left[$i]->antibiotic }}</td>
|
||||
@if (isset($left[$i]->printcol))
|
||||
@if (isset($left[$i]->printcol) && $left[$i]->printcol == 1)
|
||||
<td>{{ $left[$i]->value }}</td>
|
||||
@else
|
||||
<td> </td>
|
||||
@@ -139,7 +139,7 @@
|
||||
@if (isset($right[$i]))
|
||||
<td>{{ $i + 1 + $half }}</td>
|
||||
<td>{{ $right[$i]->antibiotic }}</td>
|
||||
@if (isset($right[$i]->printcol))
|
||||
@if (isset($right[$i]->printcol) && $right[$i]->printcol == 1)
|
||||
<td>{{ $right[$i]->value }}</td>
|
||||
@else
|
||||
<td> </td>
|
||||
@@ -159,7 +159,10 @@
|
||||
<tr>
|
||||
<td width="45"> </td>
|
||||
<td valign="top" colspan="7" width="755">
|
||||
Komentar :<br />{!! $keterangan !!}
|
||||
@if (isset($keterangan))
|
||||
Komentar:<br />
|
||||
{!! nl2br(e($keterangan)) !!}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan="8"> </td></tr>
|
||||
@@ -181,5 +184,6 @@
|
||||
<td valign="top" colspan="3" align="center">{{ $periksa->nmdokter }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<font color="white">DEFAULT</font>
|
||||
</body>
|
||||
</html>
|
||||
@@ -226,9 +226,14 @@
|
||||
$nomor++;
|
||||
@endphp
|
||||
<tr>
|
||||
<td valign="top">{{$nomor}}. Pewarnaan Ziehl Neelsen</td>
|
||||
<td valign="top">{{$nomor}}. Pewarnaan Ziehl Neelsen (Pagi/Sewaktu)</td>
|
||||
<td valign="top">:</td>
|
||||
<td valign="top">{!! $data['id_pewarnaanziehlnielsen'] !!}</td>
|
||||
<td valign="top">
|
||||
{!! $data['id_pewarnaanziehlnielsen'] !!}
|
||||
@if (isset($data['id_pewarnaanziehlnielsensewaktu']))
|
||||
/ {!! $data['id_pewarnaanziehlnielsensewaktu'] !!}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
@if (isset($data['id_pewarnaankoh']))
|
||||
@@ -364,6 +369,9 @@
|
||||
@endphp
|
||||
|
||||
@if (!isset($cekketerangan[1]) && isset($antibiotiks) && $antibiotiks->isNotEmpty())
|
||||
@if (isset($data['bakteri']))
|
||||
<p>Bakteri Yang ditemukan : <strong><i>{{$data['bakteri']}}</i></strong> {{$data['bakterisir'] ?? ''}}</p>
|
||||
@endif
|
||||
@php
|
||||
// Filter antibiotik yang printrow == true
|
||||
$filtered = $antibiotiks->filter(function($row) {
|
||||
@@ -397,7 +405,7 @@
|
||||
@if (isset($left[$i]))
|
||||
<td>{{ $i + 1 }}</td>
|
||||
<td>{{ $left[$i]->antibiotic }}</td>
|
||||
@if (isset($left[$i]->printcol))
|
||||
@if (isset($left[$i]->printcol) && $left[$i]->printcol == 1)
|
||||
<td>{{ $left[$i]->value }}</td>
|
||||
@else
|
||||
<td> </td>
|
||||
@@ -413,7 +421,7 @@
|
||||
@if (isset($right[$i]))
|
||||
<td>{{ $i + 1 + $half }}</td>
|
||||
<td>{{ $right[$i]->antibiotic }}</td>
|
||||
@if (isset($right[$i]->printcol))
|
||||
@if (isset($right[$i]->printcol) && $right[$i]->printcol == 1)
|
||||
<td>{{ $right[$i]->value }}</td>
|
||||
@else
|
||||
<td> </td>
|
||||
@@ -429,81 +437,8 @@
|
||||
@endif
|
||||
|
||||
@if (isset($data['keterangan']))
|
||||
@php
|
||||
if (isset($data['id_kbamc'])){
|
||||
$id_kbamc = $data['id_kbamc'];
|
||||
} else {
|
||||
$id_kbamc = '';
|
||||
}
|
||||
if (isset($data['id_kblef'])){
|
||||
$id_kblef = $data['id_kblef'];
|
||||
} else {
|
||||
$id_kblef = '';
|
||||
}
|
||||
if (isset($data['id_kbfos'])){
|
||||
$id_kbfos = $data['id_kbfos'];
|
||||
} else {
|
||||
$id_kbfos = '';
|
||||
}
|
||||
if (isset($data['id_kbscf'])){
|
||||
$id_kbscf = $data['id_kbscf'];
|
||||
} else {
|
||||
$id_kbscf = '';
|
||||
}
|
||||
if (isset($data['id_sirkbamc'])){
|
||||
$id_sirkbamc = $data['id_sirkbamc'];
|
||||
} else {
|
||||
$id_sirkbamc = '';
|
||||
}
|
||||
if (isset($data['id_sirkblef'])){
|
||||
$id_sirkblef = $data['id_sirkblef'];
|
||||
} else {
|
||||
$id_sirkblef = '';
|
||||
}
|
||||
if (isset($data['id_sirkbfos'])){
|
||||
$id_sirkbfos = $data['id_sirkbfos'];
|
||||
} else {
|
||||
$id_sirkbfos = '';
|
||||
}
|
||||
if (isset($data['id_sirkbscf'])){
|
||||
$id_sirkbscf = $data['id_sirkbscf'];
|
||||
} else {
|
||||
$id_sirkbscf = '';
|
||||
}
|
||||
$keterangan = $data['keterangan'];
|
||||
$cekadatabel = explode('table', $keterangan);
|
||||
if (isset($cekadatabel[1])) {
|
||||
$keterangan = str_replace('</table>', '', $keterangan);
|
||||
$keterangan = str_replace('</tbody>', '', $keterangan);
|
||||
if ($id_kbamc != '' AND $id_sirkbamc != ''){
|
||||
$keterangan .= '<tr><td> </td><td>Amoxicillin - clavulanic acid</td><td style="text-align:center;">'.$id_kbamc.'</td><td style="text-align:center;">'.$id_sirkbamc.'</td></tr>';
|
||||
}
|
||||
if ($id_kblef != '' AND $id_sirkblef != ''){
|
||||
$keterangan .= '<tr><td> </td><td>Levofloxacin</td><td style="text-align:center;">'.$id_kblef.'</td><td style="text-align:center;">'.$id_sirkblef.'</td></tr>';
|
||||
}
|
||||
if ($id_kbfos != '' AND $id_sirkbfos != ''){
|
||||
$keterangan .= '<tr><td> </td><td>Fosfomycin</td><td style="text-align:center;">'.$id_kbfos.'</td><td style="text-align:center;">'.$id_sirkbfos.'</td></tr>';
|
||||
}
|
||||
if ($id_kbscf != '' AND $id_sirkbscf != ''){
|
||||
$keterangan .= '<tr><td> </td><td>Cefoperazone - Sulbactam</td><td style="text-align:center;">'.$id_kbscf.'</td><td style="text-align:center;">'.$id_sirkbscf.'</td></tr>';
|
||||
}
|
||||
$keterangan .= '</tbody></table>';
|
||||
} else {
|
||||
if ($id_kbamc != '' AND $id_sirkbamc != ''){
|
||||
$keterangan = $keterangan.'<br />Amoxicillin - clavulanic acid : '.$id_kbamc.' ('.$id_sirkbamc.')';
|
||||
}
|
||||
if ($id_kblef != '' AND $id_sirkblef != ''){
|
||||
$keterangan = $keterangan.'<br />Levofloxacin : '.$id_kblef.' ('.$id_sirkblef.')';
|
||||
}
|
||||
if ($id_kbfos != '' AND $id_sirkbfos != ''){
|
||||
$keterangan = $keterangan.'<br />Fosfomycin : '.$id_kbfos.' ('.$id_sirkbfos.')';
|
||||
}
|
||||
if ($id_kbscf != '' AND $id_sirkbscf != ''){
|
||||
$keterangan = $keterangan.'<br />Cefoperazone - Sulbactam : '.$id_kbscf.' ('.$id_sirkbscf.')';
|
||||
}
|
||||
}
|
||||
echo 'Komentar:<br />'.$keterangan;
|
||||
@endphp
|
||||
Komentar:<br />
|
||||
{!! nl2br(e($data['keterangan'])) !!}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@@ -526,5 +461,6 @@
|
||||
<td valign="top" colspan="3" align="center">{{ $periksa->nmdokter }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<font color="white">KULTUR</font>
|
||||
</body>
|
||||
</html>
|
||||
@@ -101,6 +101,7 @@
|
||||
$lsg_pewarnaanspora = '';
|
||||
$lsg_pewarnaanlain = '';
|
||||
$lsg_ditemukanmorfologi = '';
|
||||
$bakteri = '';
|
||||
$keterangan = $periksa->keterangan;
|
||||
if (!empty($komponens)){
|
||||
foreach($komponens as $rows){
|
||||
@@ -117,6 +118,7 @@
|
||||
if (trim($rows->komponen) == 'lsg_pewarnaanspora') {$lsg_pewarnaanspora = $rows->isidata; }
|
||||
if (trim($rows->komponen) == 'lsg_pewarnaanlain') {$lsg_pewarnaanlain = $rows->isidata; }
|
||||
if (trim($rows->komponen) == 'lsg_ditemukanmorfologi') {$lsg_ditemukanmorfologi = $rows->isidata; }
|
||||
if (trim($rows->komponen) == 'bakteri') {$bakteri = $rows->isidata; }
|
||||
}
|
||||
}
|
||||
@endphp
|
||||
@@ -145,9 +147,14 @@
|
||||
@if ($lsg_pewarnaanziehlnielsen != '')
|
||||
<tr><td colspan="3"> </td></tr>
|
||||
<tr>
|
||||
<td valign="top">Pewarnaan Ziehl Neelsen</td>
|
||||
<td valign="top">Pewarnaan Ziehl Neelsen (Pagi/Sewaktu)</td>
|
||||
<td valign="top">:</td>
|
||||
<td valign="top">{!! $lsg_pewarnaanziehlnielsen !!}</td>
|
||||
<td valign="top">
|
||||
{!! $lsg_pewarnaanziehlnielsen !!}
|
||||
@if (isset($data['lsg_pewarnaanziehlnielsensewaktu']))
|
||||
/ {!! $data['lsg_pewarnaanziehlnielsensewaktu'] !!}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
@if ($lsg_pewarnaankoh != '' OR $lsg_pewarnaankohoptional != '')
|
||||
@@ -216,6 +223,9 @@
|
||||
@endphp
|
||||
|
||||
@if (!isset($cekketerangan[1]) && isset($antibiotiks) && $antibiotiks->isNotEmpty())
|
||||
@if ($bakteri != '')
|
||||
<p>Bakteri Yang ditemukan : <strong><i>{{$bakteri}}</i></strong> {{$data['bakterisir'] ?? ''}}</p>
|
||||
@endif
|
||||
@php
|
||||
// Filter antibiotik yang printrow == true
|
||||
$filtered = $antibiotiks->filter(function($row) {
|
||||
@@ -248,7 +258,7 @@
|
||||
{{-- Kolom kiri --}}
|
||||
@if (isset($left[$i]))
|
||||
<td>{{ $i + 1 }}</td>
|
||||
@if (isset($left[$i]->printcol))
|
||||
@if (isset($left[$i]->printcol) && $left[$i]->printcol == 1)
|
||||
<td>{{ $left[$i]->value }}</td>
|
||||
@else
|
||||
<td> </td>
|
||||
@@ -265,7 +275,7 @@
|
||||
@if (isset($right[$i]))
|
||||
<td>{{ $i + 1 + $half }}</td>
|
||||
<td>{{ $right[$i]->antibiotic }}</td>
|
||||
@if (isset($right[$i]->printcol))
|
||||
@if (isset($right[$i]->printcol) && $right[$i]->printcol == 1)
|
||||
<td>{{ $right[$i]->value }}</td>
|
||||
@else
|
||||
<td> </td>
|
||||
@@ -280,8 +290,9 @@
|
||||
</table>
|
||||
@endif
|
||||
|
||||
@if ($keterangan != '')
|
||||
Komentar: <br /> {!! $keterangan !!}
|
||||
@if (isset($keterangan))
|
||||
Komentar:<br />
|
||||
{!! nl2br(e($keterangan)) !!}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@@ -304,5 +315,6 @@
|
||||
<td valign="top" colspan="3" align="center">{{ $periksa->nmdokter }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<font color="white">PL</font>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1174,9 +1174,9 @@
|
||||
<td class=xl64>:</td>
|
||||
<td colspan=11 class=xl72>{!! $periksa->nmrs !!}</td>
|
||||
<td class=xl64> </td>
|
||||
<td colspan=7 class=xl70>Nama Dokter Pengirim</td>
|
||||
<td colspan=7 class=xl70>No. Lab</td>
|
||||
<td class=xl71>:</td>
|
||||
<td colspan=10 class=xl72>{!! $periksa->klinisi !!}</td>
|
||||
<td colspan=10 class=xl72>{!! $periksa->nofoto !!}</td>
|
||||
</tr>
|
||||
<tr height=3 style='mso-height-source:userset;height:2.0pt'><td height=3 style='height:2.0pt'></td><td></td><td colspan=34></td></tr>
|
||||
<tr>
|
||||
@@ -1186,24 +1186,9 @@
|
||||
<td class=xl64>:</td>
|
||||
<td colspan=11 class=xl72>{!! $periksa->ruangan_id !!}</td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl71> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td colspan=7 class=xl70>Nama Dokter Pengirim</td>
|
||||
<td class=xl71>:</td>
|
||||
<td colspan=10 class=xl72>{!! $periksa->klinisi !!}</td>
|
||||
</tr>
|
||||
<tr height=3 style='mso-height-source:userset;height:2.0pt'><td height=3 style='height:2.0pt'></td><td></td><td colspan=34></td></tr>
|
||||
<tr>
|
||||
|
||||
@@ -1174,9 +1174,9 @@
|
||||
<td class=xl64>:</td>
|
||||
<td colspan=11 class=xl72>{!! $periksa->nmrs !!}</td>
|
||||
<td class=xl64> </td>
|
||||
<td colspan=7 class=xl70>Nama Dokter Pengirim</td>
|
||||
<td colspan=7 class=xl70>No. Lab</td>
|
||||
<td class=xl71>:</td>
|
||||
<td colspan=10 class=xl72>{!! $periksa->klinisi !!}</td>
|
||||
<td colspan=10 class=xl72>{!! $periksa->nofoto !!}</td>
|
||||
</tr>
|
||||
<tr height=3 style='mso-height-source:userset;height:2.0pt'><td height=3 style='height:2.0pt'></td><td></td><td colspan=34></td></tr>
|
||||
<tr>
|
||||
@@ -1186,24 +1186,9 @@
|
||||
<td class=xl64>:</td>
|
||||
<td colspan=11 class=xl72>{!! $periksa->ruangan_id !!}</td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl71> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td class=xl64> </td>
|
||||
<td colspan=7 class=xl70>Nama Dokter Pengirim</td>
|
||||
<td class=xl71>:</td>
|
||||
<td colspan=10 class=xl72>{!! $periksa->klinisi !!}</td>
|
||||
</tr>
|
||||
<tr height=3 style='mso-height-source:userset;height:2.0pt'><td height=3 style='height:2.0pt'></td><td></td><td colspan=34></td></tr>
|
||||
<tr>
|
||||
|
||||
@@ -607,18 +607,19 @@
|
||||
<td>:</td>
|
||||
<td colspan=6 class=xl65>{!! $periksa->nmrs !!}</td>
|
||||
<td> </td>
|
||||
<td colspan=3 class=xl65>Nama Dokter Pengirim</td>
|
||||
<td colspan=3 class=xl65>No. Lab</td>
|
||||
<td class=xl63>:</td>
|
||||
<td colspan=7 class=xl105>{!! $periksa->klinisi !!}</td>
|
||||
<td colspan=7 class=xl105>{!! $periksa->nofoto !!}</td>
|
||||
</tr>
|
||||
<tr style='height:16.0pt'>
|
||||
<td style='height:16.0pt'> </td>
|
||||
<td colspan=2 class=xl65>Kode Fasyankes</td>
|
||||
<td>:</td>
|
||||
<td colspan=6 class=xl65>{!! $periksa->ruangan_id !!}</td>
|
||||
<td colspan=4 style='mso-ignore:colspan'></td>
|
||||
<td class=xl63></td>
|
||||
<td colspan=7 style='mso-ignore:colspan'></td>
|
||||
<td> </td>
|
||||
<td colspan=3 class=xl65>Nama Dokter Pengirim</td>
|
||||
<td class=xl63>:</td>
|
||||
<td colspan=7 class=xl105>{!! $periksa->klinisi !!}</td>
|
||||
</tr>
|
||||
<tr style='height:16.0pt'>
|
||||
<td style='height:16.0pt'> </td>
|
||||
|
||||
@@ -606,18 +606,19 @@
|
||||
<td>:</td>
|
||||
<td colspan=6 class=xl65>{!! $periksa->nmrs !!}</td>
|
||||
<td> </td>
|
||||
<td colspan=3 class=xl65>Nama Dokter Pengirim</td>
|
||||
<td colspan=3 class=xl65>No. Lab</td>
|
||||
<td class=xl63>:</td>
|
||||
<td colspan=7 class=xl105>{!! $periksa->klinisi !!}</td>
|
||||
<td colspan=7 class=xl105>{!! $periksa->nofoto !!}</td>
|
||||
</tr>
|
||||
<tr style='height:16.0pt'>
|
||||
<td style='height:16.0pt'> </td>
|
||||
<td colspan=2 class=xl65>Kode Fasyankes</td>
|
||||
<td>:</td>
|
||||
<td colspan=6 class=xl65>{!! $periksa->ruangan_id !!}</td>
|
||||
<td colspan=4 style='mso-ignore:colspan'></td>
|
||||
<td class=xl63></td>
|
||||
<td colspan=7 style='mso-ignore:colspan'></td>
|
||||
<td> </td>
|
||||
<td colspan=3 class=xl65>Nama Dokter Pengirim</td>
|
||||
<td class=xl63>:</td>
|
||||
<td colspan=7 class=xl105>{!! $periksa->klinisi !!}</td>
|
||||
</tr>
|
||||
<tr style='height:16.0pt'>
|
||||
<td style='height:16.0pt'> </td>
|
||||
|
||||
@@ -170,80 +170,84 @@
|
||||
</tr>
|
||||
</table>
|
||||
@php
|
||||
$cekketerangan = explode('/table', $keterangan);
|
||||
@endphp
|
||||
$cekketerangan = explode('/table', $keterangan);
|
||||
@endphp
|
||||
|
||||
@if (!isset($cekketerangan[1]) && isset($antibiotiks) && $antibiotiks->isNotEmpty())
|
||||
@php
|
||||
// Filter antibiotik yang printrow == true
|
||||
$filtered = $antibiotiks->filter(function($row) {
|
||||
return $row->printrow;
|
||||
})->values(); // reset index
|
||||
|
||||
$total = $filtered->count();
|
||||
$half = ceil($total / 2);
|
||||
$left = $filtered->slice(0, $half)->values();
|
||||
$right = $filtered->slice($half)->values();
|
||||
@endphp
|
||||
|
||||
<table style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><strong>No</strong></th>
|
||||
<th><strong>Antibiotik</strong></th>
|
||||
<th><strong>Value</strong></th>
|
||||
<th><strong>Interpretation</strong></th>
|
||||
<th> </th>
|
||||
<th><strong>No</strong></th>
|
||||
<th><strong>Antibiotik</strong></th>
|
||||
<th><strong>Value</strong></th>
|
||||
<th><strong>Interpretation</strong></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@for ($i = 0; $i < $half; $i++)
|
||||
<tr>
|
||||
{{-- Kolom kiri --}}
|
||||
@if (isset($left[$i]))
|
||||
<td>{{ $i + 1 }}</td>
|
||||
<td>{{ $left[$i]->antibiotic }}</td>
|
||||
@if (isset($left[$i]->printcol))
|
||||
<td>{{ $left[$i]->value }}</td>
|
||||
@else
|
||||
<td> </td>
|
||||
@endif
|
||||
<td align="center">{{ $left[$i]->interpretation }}</td>
|
||||
@else
|
||||
<td colspan="4"> </td>
|
||||
@if (!isset($cekketerangan[1]) && isset($antibiotiks) && $antibiotiks->isNotEmpty())
|
||||
@if (isset($data['bakteri']))
|
||||
<p>Bakteri Yang ditemukan : <strong><i>{{$data['bakteri']}}</i></strong> {{$data['bakterisir'] ?? ''}}</p>
|
||||
@endif
|
||||
@php
|
||||
// Filter antibiotik yang printrow == true
|
||||
$filtered = $antibiotiks->filter(function($row) {
|
||||
return $row->printrow;
|
||||
})->values(); // reset index
|
||||
|
||||
<td> </td> {{-- Spacer kolom tengah --}}
|
||||
$total = $filtered->count();
|
||||
$half = ceil($total / 2);
|
||||
$left = $filtered->slice(0, $half)->values();
|
||||
$right = $filtered->slice($half)->values();
|
||||
@endphp
|
||||
|
||||
{{-- Kolom kanan --}}
|
||||
@if (isset($right[$i]))
|
||||
<td>{{ $i + 1 + $half }}</td>
|
||||
<td>{{ $right[$i]->antibiotic }}</td>
|
||||
@if (isset($right[$i]->printcol))
|
||||
<td>{{ $right[$i]->value }}</td>
|
||||
@else
|
||||
<td> </td>
|
||||
@endif
|
||||
<td align="center">{{ $right[$i]->interpretation }}</td>
|
||||
@else
|
||||
<td colspan="4"> </td>
|
||||
@endif
|
||||
</tr>
|
||||
@endfor
|
||||
</tbody>
|
||||
</table>
|
||||
@endif
|
||||
<table style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><strong>No</strong></th>
|
||||
<th><strong>Antibiotik</strong></th>
|
||||
<th><strong>Value</strong></th>
|
||||
<th><strong>Interpretation</strong></th>
|
||||
<th> </th>
|
||||
<th><strong>No</strong></th>
|
||||
<th><strong>Antibiotik</strong></th>
|
||||
<th><strong>Value</strong></th>
|
||||
<th><strong>Interpretation</strong></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@for ($i = 0; $i < $half; $i++)
|
||||
<tr>
|
||||
{{-- Kolom kiri --}}
|
||||
@if (isset($left[$i]))
|
||||
<td>{{ $i + 1 }}</td>
|
||||
<td>{{ $left[$i]->antibiotic }}</td>
|
||||
@if (isset($left[$i]->printcol) && $left[$i]->printcol == 1)
|
||||
<td>{{ $left[$i]->value }}</td>
|
||||
@else
|
||||
<td> </td>
|
||||
@endif
|
||||
<td align="center">{{ $left[$i]->interpretation }}</td>
|
||||
@else
|
||||
<td colspan="4"> </td>
|
||||
@endif
|
||||
|
||||
<td> </td> {{-- Spacer kolom tengah --}}
|
||||
|
||||
{{-- Kolom kanan --}}
|
||||
@if (isset($right[$i]))
|
||||
<td>{{ $i + 1 + $half }}</td>
|
||||
<td>{{ $right[$i]->antibiotic }}</td>
|
||||
@if (isset($right[$i]->printcol) && $right[$i]->printcol == 1)
|
||||
<td>{{ $right[$i]->value }}</td>
|
||||
@else
|
||||
<td> </td>
|
||||
@endif
|
||||
<td align="center">{{ $right[$i]->interpretation }}</td>
|
||||
@else
|
||||
<td colspan="4"> </td>
|
||||
@endif
|
||||
</tr>
|
||||
@endfor
|
||||
</tbody>
|
||||
</table>
|
||||
@endif
|
||||
|
||||
Komentar:<br />
|
||||
@if (isset($data['viralload']))
|
||||
{!! $data['viralload'] !!}
|
||||
@endif
|
||||
@if (isset($data['keterangan']))
|
||||
{!! $data['keterangan'] !!}
|
||||
Komentar:<br />
|
||||
{!! nl2br(e($data['keterangan'])) !!}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@@ -266,5 +270,6 @@
|
||||
<td valign="top" colspan="3" align="center">{{ $periksa->nmdokter }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<font color="white">VL</font>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user