This commit is contained in:
Dwi Swandhana
2026-04-10 22:15:49 +07:00
parent 4f7575c7d4
commit 4d025dc57d
7 changed files with 392 additions and 91 deletions

No files matched your search

@@ -10,6 +10,7 @@
@php
$data = [];
$keterangan = $periksa->keterangan;
$statuspemeriksaan = $periksa->status;
$data['keterangan'] = $periksa->keterangan;
if (!empty($komponens)) {
foreach ($komponens as $rows) {
@@ -440,49 +441,53 @@
$left = $items->slice(0, $half)->values();
$right = $items->slice($half)->values();
@endphp
@if ($cetakjudul)
<table style="width:100%; border-collapse: collapse;" border="1" cellpadding="3" cellspacing="0">
<thead>
<tr style="background-color: #f2f2f2;">
<th>No</th>
<th>Antibiotik</th>
<th>Value</th>
<th>Interpretation</th>
<th>&nbsp;</th>
<th>No</th>
<th>Antibiotik</th>
<th>Value</th>
<th>Interpretation</th>
</tr>
</thead>
<tbody>
@for ($i = 0; $i < $half; $i++)
<tr>
{{-- Kolom kiri --}}
@if (isset($left[$i]) AND $left[$i]->printrow)
<td>{{ $i + 1 }}</td>
<td>{{ $left[$i]->antibiotic }}</td>
<td>{{ $left[$i]->printcol == 1 ? $left[$i]->value : '' }}</td>
<td align="center">{{ $left[$i]->interpretation }}</td>
@else
<td colspan="4">&nbsp;</td>
@endif
<td>&nbsp;</td> {{-- Pemisah tengah --}}
{{-- Kolom kanan --}}
@if (isset($right[$i]) AND $right[$i]->printrow)
<td>{{ $i + 1 + $half }}</td>
<td>{{ $right[$i]->antibiotic }}</td>
<td>{{ $right[$i]->printcol == 1 ? $right[$i]->value : '' }}</td>
<td align="center">{{ $right[$i]->interpretation }}</td>
@else
<td colspan="4">&nbsp;</td>
@endif
@if ($statuspemeriksaan == 'Preliminary Results')
<p><em><strong>Uji Kepekaan antibiotik on going</strong></em></p>
@else
@if ($cetakjudul)
<table style="width:100%; border-collapse: collapse;" border="1" cellpadding="3" cellspacing="0">
<thead>
<tr style="background-color: #f2f2f2;">
<th>No</th>
<th>Antibiotik</th>
<th>Value</th>
<th>Interpretation</th>
<th>&nbsp;</th>
<th>No</th>
<th>Antibiotik</th>
<th>Value</th>
<th>Interpretation</th>
</tr>
@endfor
</tbody>
</table>
</thead>
<tbody>
@for ($i = 0; $i < $half; $i++)
<tr>
{{-- Kolom kiri --}}
@if (isset($left[$i]) AND $left[$i]->printrow)
<td>{{ $i + 1 }}</td>
<td>{{ $left[$i]->antibiotic }}</td>
<td>{{ $left[$i]->printcol == 1 ? $left[$i]->value : '' }}</td>
<td align="center">{{ $left[$i]->interpretation }}</td>
@else
<td colspan="4">&nbsp;</td>
@endif
<td>&nbsp;</td> {{-- Pemisah tengah --}}
{{-- Kolom kanan --}}
@if (isset($right[$i]) AND $right[$i]->printrow)
<td>{{ $i + 1 + $half }}</td>
<td>{{ $right[$i]->antibiotic }}</td>
<td>{{ $right[$i]->printcol == 1 ? $right[$i]->value : '' }}</td>
<td align="center">{{ $right[$i]->interpretation }}</td>
@else
<td colspan="4">&nbsp;</td>
@endif
</tr>
@endfor
</tbody>
</table>
@endif
@endif
@endforeach
@endif