This commit is contained in:
Duidev Software House
2025-10-27 08:09:17 +07:00
parent 90ab13dafd
commit c0c7c1b5fd
21 changed files with 1346 additions and 669 deletions

No files matched your search

@@ -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>&nbsp;</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>&nbsp;</td>
@endif
<td align="center">{{ $left[$i]->interpretation }}</td>
@else
<td colspan="4">&nbsp;</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>&nbsp;</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>&nbsp;</td>
@endif
<td align="center">{{ $right[$i]->interpretation }}</td>
@else
<td colspan="4">&nbsp;</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>&nbsp;</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>&nbsp;</td>
@endif
<td align="center">{{ $left[$i]->interpretation }}</td>
@else
<td colspan="4">&nbsp;</td>
@endif
<td>&nbsp;</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>&nbsp;</td>
@endif
<td align="center">{{ $right[$i]->interpretation }}</td>
@else
<td colspan="4">&nbsp;</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>