Update
This commit is contained in:
@@ -131,7 +131,76 @@
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@php
|
||||
$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%" border="1" cellpadding="0" cellspacing="0">
|
||||
<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>
|
||||
@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))
|
||||
<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
|
||||
|
||||
@if ($keterangan != '')
|
||||
|
||||
Komentar: <br /> {!! $keterangan !!}
|
||||
@endif
|
||||
</td>
|
||||
|
||||
@@ -83,7 +83,79 @@
|
||||
<td valign="top"> </td>
|
||||
<td valign="top" colspan="2"> </td>
|
||||
</tr>
|
||||
<tr><td colspan="8"> </td></tr>
|
||||
<tr>
|
||||
<td colspan="8">
|
||||
@php
|
||||
$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%" border="1" cellpadding="0" cellspacing="0">
|
||||
<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>
|
||||
@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))
|
||||
<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
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="45"> </td>
|
||||
<td valign="top" colspan="7" width="755">
|
||||
|
||||
@@ -9,12 +9,14 @@
|
||||
<body>
|
||||
@php
|
||||
$data = [];
|
||||
$keterangan = $periksa->keterangan;
|
||||
$data['keterangan'] = $periksa->keterangan;
|
||||
if (!empty($komponens)) {
|
||||
foreach ($komponens as $rows) {
|
||||
$key = trim($rows->komponen);
|
||||
if (!empty($key)) {
|
||||
if ($key == 'keterangan') {
|
||||
|
||||
} else {
|
||||
$data[$key] = $rows->isidata;
|
||||
}
|
||||
@@ -357,6 +359,75 @@
|
||||
</tr>
|
||||
@endif
|
||||
</table>
|
||||
@php
|
||||
$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%" border="1" cellpadding="0" cellspacing="0">
|
||||
<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>
|
||||
@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))
|
||||
<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
|
||||
|
||||
@if (isset($data['keterangan']))
|
||||
@php
|
||||
if (isset($data['id_kbamc'])){
|
||||
|
||||
@@ -211,6 +211,75 @@
|
||||
</tr>
|
||||
@endif
|
||||
</table>
|
||||
@php
|
||||
$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%" border="1" cellpadding="0" cellspacing="0">
|
||||
<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>
|
||||
@if (isset($left[$i]->printcol))
|
||||
<td>{{ $left[$i]->value }}</td>
|
||||
@else
|
||||
<td> </td>
|
||||
@endif
|
||||
<td>{{ $left[$i]->value }}</td>
|
||||
<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))
|
||||
<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
|
||||
|
||||
@if ($keterangan != '')
|
||||
Komentar: <br /> {!! $keterangan !!}
|
||||
@endif
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
@php
|
||||
$data = [];
|
||||
$data['keterangan'] = $periksa->keterangan;
|
||||
|
||||
$keterangan = $periksa->keterangan;
|
||||
if (!empty($komponens)) {
|
||||
foreach ($komponens as $rows) {
|
||||
$key = trim($rows->komponen);
|
||||
@@ -169,6 +169,75 @@
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@php
|
||||
$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>
|
||||
@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))
|
||||
<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'] !!}
|
||||
|
||||
Reference in New Issue
Block a user