<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{ $periksa->nmpasien }} ({{ $periksa->noregister }} - {{ $periksa->nofoto }})</title>

</head>
<body>
    <table cellpadding="0" cellspacing="0" width="800" border="0">
        @if ($kopsurat == '')
            <tr>
                <td width="45" height="200">&nbsp;</td>
                <td width="173" valign="top">&nbsp;</td>
                <td width="12" valign="top">&nbsp;</td>
                <td width="165" valign="top">&nbsp;</td>
                <td width="115" valign="top">&nbsp;</td>
                <td width="12" valign="top">&nbsp;</td>
                <td width="128" valign="top">&nbsp;</td>
                <td width="254" valign="top">&nbsp;</td>
            </tr>
        @else 
            <tr>
                <td colspan="8"><img src="{!! $kopsurat !!}" width="100%" /></td>
            </tr>
        @endif
        <tr>
            <td colspan="8" align="center"><p><strong><u>HASIL PEMERIKSAAN MIKROBIOLOGI KLINIK</u></strong></p></td>
        </tr>
        <tr>
            <td valign="top" width="45">&nbsp;</td>
            <td valign="top" width="173">No. Laboratorium</td>
            <td valign="top" width="12">:</td>
            <td valign="top" width="165">{{ $periksa->nofoto }}</td>
            <td valign="top" width="115">Tanggal MRS</td>
            <td valign="top" width="12">:</td>
            <td valign="top" colspan="2">{!! $periksa->mulai !!}</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td valign="top">Nama Pasien</td>
            <td valign="top">:</td>
            <td valign="top">{{ $periksa->nmpasien }}</td>
            <td valign="top">Ruang Pengirim</td>
            <td valign="top">:</td>
            <td valign="top" colspan="2">{!! $periksa->asalpasien !!}</td>
        </tr>
        <tr>
            <td valign="top">&nbsp;</td>
            <td valign="top">Jenis Kelamin</td>
            <td valign="top">:</td>
            <td valign="top">{{ $periksa->jkpasien }}</td>
            <td valign="top">Diagnosa</td>
            <td valign="top">:</td>
            <td valign="top" colspan="2">{!! $periksa->klinis !!}</td>
        </tr>

        <tr>
            <td valign="top">&nbsp;</td>
            <td valign="top">Usia</td>
            <td valign="top">:</td>
            <td valign="top">{{ $periksa->usia }}</td>
            <td valign="top">Jenis Pemeriksaan</td>
            <td valign="top">:</td>
            <td valign="top" colspan="2">{!! $periksa->reques !!}</td>
        </tr>

        <tr>
            <td valign="top">&nbsp;</td>
            <td valign="top">Tanggal Kirim Sample</td>
            <td valign="top">:</td>
            <td valign="top">{{ $periksa->daftar }}</td>
            <td valign="top">&nbsp;</td>
            <td valign="top">&nbsp;</td>
            <td valign="top" colspan="2">&nbsp;</td>
        </tr>

        <tr>
            <td valign="top">&nbsp;</td>
            <td valign="top">Tanggal Selesai Hasil</td>
            <td valign="top">:</td>
            <td valign="top">{{ $periksa->verifikasi }}</td>
            <td valign="top">&nbsp;</td>
            <td valign="top">&nbsp;</td>
            <td valign="top" colspan="2">&nbsp;</td>
        </tr>
        <tr><td colspan="8">&nbsp;</td></tr>
        <tr>
            <td width="45">&nbsp;</td>
            <td valign="top" colspan="7" width="755">
                @php 
                    $id_sputum          = '';
                    $id_swabtenggorok   = '';
                    $id_urine           = '';
                    $id_swabperineum    = '';
                    $keterangan         = $periksa->keterangan;
                    if (!empty($komponens)){
                        foreach($komponens as $rows){
                            if (trim($rows->komponen) == 'id_sputum') {$id_sputum = $rows->isidata; }
                            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; }
                        }
                    }
                   
                @endphp
                <table style="width:100%">
                    <tr><td colspan="3">Pemeriksaan Candida Colonization Index :</td></tr>
                    <tr>
                        <td valign="top" style="width:20%">Sputum</td>
                        <td valign="top" style="width:5%">:</td>
                        <td valign="top" style="width:75%">{!! $id_sputum !!}</td>
                    </tr>
                    <tr>
                        <td valign="top">Swab Tenggorok</td>
                        <td valign="top">:</td>
                        <td valign="top">{!! $id_swabtenggorok !!}</td>
                    </tr>
                    <tr>
                        <td valign="top">Urine</td>
                        <td valign="top">:</td>
                        <td valign="top">
                            {!! $id_urine !!}
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">Swab perineum</td>
                        <td valign="top">:</td>
                        <td valign="top">
                            {!! $id_swabperineum !!}
                        </td>
                    </tr>
                </table>
                @if ($keterangan != '')
                    Komentar: <br /> {!! $keterangan !!}
                @endif
            </td>
        </tr>
        <tr><td colspan="8">&nbsp;</td></tr>
        <tr><td colspan="8">&nbsp;</td></tr>
        <tr>
            <td width="45">&nbsp;</td>
            <td valign="top" colspan="4" align="center">&nbsp;</td>
            <td valign="top" colspan="3" align="center">RSUD dr. Saiful Anwar <br />Dokter PJ Pemeriksaan Lab</td>
        </tr>
        <tr>
            <td width="45">&nbsp;</td>
            <td valign="top" colspan="4" align="center">&nbsp;</td>
            <td colspan="3" align="center" valign="top">{!! $tandatangan !!}</td>
        </tr>
        <tr><td colspan="8">&nbsp;</td></tr>
        <tr>
            <td width="45">&nbsp;</td>
            <td valign="top" colspan="4" align="left">{{ $periksa->nmanalis }}</td>
            <td valign="top" colspan="3" align="center">{{ $periksa->nmdokter }}</td>
        </tr>
    </table>
</body>
</html>
