<center><img src="<?php echo base_url(); ?>assets_/assets/img/and.png" height="70px" width="150px" style="margin-right:750px ; margin-bottom:-75px ; margin-top:50px">
    <h2><strong>TAMPILAN KETERSEDIAN TEMPAT TIDUR</strong></h2>
    <h2 style=margin-bottom:50px><strong>RUMAH SAKIT UMUM ANANDA PURWOKERTO</strong></h2>
    <link rel="shortcut icon" type="image/png" href="<?= base_url('assets_/assets/img/and.png') ?>">
</center>
<section class="content">
    <div class="container-fluid">
        <div class="row">
            <div class="col-6">
                <div class="card">
                    <div class="card-body" style="padding-bottom: 0px;padding-top: 0px;padding-right: 0px;padding-left: 0px;">

                        <table class="table" style="width:95%">
                            <thead>
                                <tr>
                                    <th style=" padding: 5px; width: 10%;">
                                        <h1><strong>Nama Ruang</strong></h1>
                                    </th>
                                     <th style=" padding: 5px; width: 10%;">
                                        <h1><strong>Kelas</strong></h1>
                                    </th>
                                    <th style=" padding: 5px; width: 5%;">
                                        <h1><strong>Jumlah</strong></h1>
                                    </th>
                                    <th style=" padding: 5px; width: 5%;">
                                        <h1><strong>Tersedia</strong></h1>
                                    </th>
                                    <th style=" padding: 5px; width: 5%;">
                                        <h1><strong>Terisi</strong></h1>
                                    </th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php
                                $no = 1;
                                if (isset($albarokah1)) {
                                    foreach ($albarokah1["albarokah1"] as $a) {
                                        if ($a->keterangan == "CAT") {
                                ?>
                                            <tr>
                                                 <?php if ($a->tersedia == 0) { ?>
                                                    <td style="background-color: red; color: white;">
                                                    <h1><strong><?= $a->ruang ?></strong></h1>
                                                    </td>
                                                     <td style="background-color: red; color: white; padding: 5px;">
                                                    <h1><strong><?= $a->nm_kelas ?></strong></h1>
                                                    </td>
                                                    <td style="background-color: red; color: white;  padding: 5px;">
                                                    <center><h1><strong><?= $a->jumlah_bed ?></strong></h1><center>
                                                    </td>
                                                    <td style="background-color: red; color: white;  padding: 5px;">
                                                        <center><h1><strong><?= $a->tersedia ?></strong></h1></center>
                                                    </td>
                                                    <td style="background-color: red; color: white;  padding: 5px;">
                                                        <center><h1><strong><?= $a->terisi ?></strong></h2></center>
                                                    </td>
                                                <?php } else { ?>
                                                    <td>
                                                    <h1><strong><?= $a->ruang ?></strong></h1>
                                                    </td>
                                                    <td>
                                                    <h1 ><strong><?= $a->nm_kelas ?></strong></h1>
                                                    </td>
                                                    <td >
                                                     <center><h1><strong><?= $a->jumlah_bed ?></strong></h1></center>
                                                    </td>
                                                    <td >
                                                        <center><h1><strong><?= $a->tersedia ?></strong></h1></center>
                                                    </td>
                                                    <td>
                                                        <center><h1><strong><?= $a->terisi ?></strong></h2></center>
                                                    </td>
                                                <?php } ?>
                                            </tr>
                                        <?php
                                        } 
                                        if ($a->keterangan == "DDL") {
                                        ?>
                                                <tr>
                                                 <?php if ($a->tersedia == 0) { ?>
                                                    <td style="background-color: red; color: white;">
                                                    <h1><strong><?= $a->ruang ?></strong></h2>
                                                    </td>
                                                     <td style="background-color: red; color: white;">
                                                    <h1><strong><?= $a->nm_kelas ?></strong></h2>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                    <center><h1><strong><?= $a->jumlah_bed ?></strong></h1><center>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                        <center><h1><strong><?= $a->tersedia ?></strong></h1></center>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                        <center><h1><strong><?= $a->terisi ?></strong></h2></center>
                                                    </td>
                                                <?php } else { ?>
                                                    <td>
                                                    <h1><strong><?= $a->ruang ?></strong></h2>
                                                    </td>
                                                    <td>
                                                    <h1><strong><?= $a->nm_kelas ?></strong></h2>
                                                    </td>
                                                    <td>
                                                     <center><h1><strong><?= $a->jumlah_bed ?></strong></h1></center>
                                                    </td>
                                                    <td>
                                                        <center><h1><strong><?= $a->tersedia ?></strong></h1></center>
                                                    </td>
                                                    <td>
                                                        <center><h1><strong><?= $a->terisi ?></strong></h2></center>
                                                    </td>
                                                <?php } ?>
                                            </tr>
                                        <?php
                                        }
                                          if ($a->keterangan == "EDEL") {
                                        ?>
                                                <tr>
                                                 <?php if ($a->tersedia == 0) { ?>
                                                    <td style="background-color: red; color: white;">
                                                    <h1><strong><?= $a->ruang ?></strong></h2>
                                                    </td>
                                                     <td style="background-color: red; color: white;">
                                                    <h1><strong><?= $a->nm_kelas ?></strong></h2>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                    <center><h1><strong><?= $a->jumlah_bed ?></strong></h1><center>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                        <center><h1><strong><?= $a->tersedia ?></strong></h1></center>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                        <center><h1><strong><?= $a->terisi ?></strong></h2></center>
                                                    </td>
                                                <?php } else { ?>
                                                    <td>
                                                    <h1><strong><?= $a->ruang ?></strong></h2>
                                                    </td>
                                                    <td>
                                                    <h1><strong><?= $a->nm_kelas ?></strong></h2>
                                                    </td>
                                                    <td>
                                                     <center><h1><strong><?= $a->jumlah_bed ?></strong></h1></center>
                                                    </td>
                                                    <td>
                                                        <center><h1><strong><?= $a->tersedia ?></strong></h1></center>
                                                    </td>
                                                    <td>
                                                        <center><h1><strong><?= $a->terisi ?></strong></h2></center>
                                                    </td>
                                                <?php } ?>
                                            </tr>
                                        <?php
                                        }
                                         if ($a->keterangan == "IBS") {
                                        ?>
                                                <tr>
                                                 <?php if ($a->tersedia == 0) { ?>
                                                    <td style="background-color: red; color: white;">
                                                    <h1><strong><?= $a->ruang ?></strong></h2>
                                                    </td>
                                                     <td style="background-color: red; color: white;">
                                                    <h1><strong><?= $a->nm_kelas ?></strong></h2>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                    <center><h1><strong><?= $a->jumlah_bed ?></strong></h1><center>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                        <center><h1><strong><?= $a->tersedia ?></strong></h1></center>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                        <center><h1><strong><?= $a->terisi ?></strong></h2></center>
                                                    </td>
                                                <?php } else { ?>
                                                    <td>
                                                    <h1><strong><?= $a->ruang ?></strong></h2>
                                                    </td>
                                                    <td>
                                                    <h1><strong><?= $a->nm_kelas ?></strong></h2>
                                                    </td>
                                                    <td>
                                                     <center><h1><strong><?= $a->jumlah_bed ?></strong></h1></center>
                                                    </td>
                                                    <td>
                                                        <center><h1><strong><?= $a->tersedia ?></strong></h1></center>
                                                    </td>
                                                    <td>
                                                        <center><h1><strong><?= $a->terisi ?></strong></h2></center>
                                                    </td>
                                                <?php } ?>
                                            </tr>
                                        <?php
                                        }
                                         if ($a->keterangan == "VK") {
                                        ?>
                                                <tr>
                                                 <?php if ($a->tersedia == 0) { ?>
                                                    <td style="background-color: red; color: white;">
                                                    <h1><strong><?= $a->ruang ?></strong></h2>
                                                    </td>
                                                     <td style="background-color: red; color: white;">
                                                    <h1><strong><?= $a->nm_kelas ?></strong></h2>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                    <center><h1><strong><?= $a->jumlah_bed ?></strong></h1><center>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                        <center><h1><strong><?= $a->tersedia ?></strong></h1></center>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                        <center><h1><strong><?= $a->terisi ?></strong></h2></center>
                                                    </td>
                                                <?php } else { ?>
                                                    <td>
                                                    <h1><strong><?= $a->ruang ?></strong></h2>
                                                    </td>
                                                    <td>
                                                    <h1><strong><?= $a->nm_kelas ?></strong></h2>
                                                    </td>
                                                    <td>
                                                     <center><h1><strong><?= $a->jumlah_bed ?></strong></h1></center>
                                                    </td>
                                                    <td>
                                                        <center><h1><strong><?= $a->tersedia ?></strong></h1></center>
                                                    </td>
                                                    <td>
                                                        <center><h1><strong><?= $a->terisi ?></strong></h2></center>
                                                    </td>
                                                <?php } ?>
                                            </tr>
                                        <?php
                                        }if ($a->keterangan == "PERINA") {
                                        ?>
                                                <tr>
                                                 <?php if ($a->tersedia == 0) { ?>
                                                    <td style="background-color: red; color: white;">
                                                    <h1><strong><?= $a->ruang ?></strong></h2>
                                                    </td>
                                                     <td style="background-color: red; color: white;">
                                                    <h1><strong><?= $a->nm_kelas ?></strong></h2>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                    <center><h1><strong><?= $a->jumlah_bed ?></strong></h1><center>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                        <center><h1><strong><?= $a->tersedia ?></strong></h1></center>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                        <center><h1><strong><?= $a->terisi ?></strong></h2></center>
                                                    </td>
                                                <?php } else { ?>
                                                    <td>
                                                    <h1><strong><?= $a->ruang ?></strong></h2>
                                                    </td>
                                                    <td>
                                                    <h1><strong><?= $a->nm_kelas ?></strong></h2>
                                                    </td>
                                                    <td>
                                                     <center><h1><strong><?= $a->jumlah_bed ?></strong></h1></center>
                                                    </td>
                                                    <td>
                                                        <center><h1><strong><?= $a->tersedia ?></strong></h1></center>
                                                    </td>
                                                    <td>
                                                        <center><h1><strong><?= $a->terisi ?></strong></h2></center>
                                                    </td>
                                                <?php } ?>
                                            </tr>
                                        <?php
                                        }
                                    }
  
                                } else {
                                    ?>
                                    <tr>
                                        <td colspan="4" style="text-align: center;">Data tidak ditemukan</td>
                                    <tr>
                                    <?php
                                }
                            
                                    ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
             <div class="col-6">
                <div class="card">
                    <div class="card-body" style="padding-bottom: 0px;padding-top: 0px;padding-right: 0px;padding-left: 0px;">

                           <table class="table" style="width:95%">
                            <thead>
                                <tr>
                                    <th style=" padding: 5px; width: 10%;">
                                        <h1><strong>Nama Ruang</strong></h1>
                                    </th>
                                     <th style=" padding: 5px; width: 10%;">
                                        <h1><strong>Kelas</strong></h1>
                                    </th>
                                    <th style=" padding: 5px; width: 5%;">
                                        <h1><strong>Jumlah</strong></h1>
                                    </th>
                                    <th style=" padding: 5px; width: 5%;">
                                        <h1><strong>Tersedia</strong></h1>
                                    </th>
                                    <th style=" padding: 5px; width: 5%;">
                                        <h1><strong>Terisi</strong></h1>
                                    </th>
                                </tr>
                            </thead>
                                <?php

                                if (isset($albarokah1)) {
                                    foreach ($albarokah1["albarokah1"] as $a) {
                                        if ($a->keterangan == "GRA") {
                                ?>
                                            <tr>
                                                 <?php if ($a->tersedia == 0) { ?>
                                                    <td style="background-color: red; color: white;">
                                                    <h1><strong><?= $a->ruang ?></strong></h2>
                                                    </td>
                                                     <td style="background-color: red; color: white;">
                                                    <h1><strong><?= $a->nm_kelas ?></strong></h2>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                    <center><h1><strong><?= $a->jumlah_bed ?></strong></h1><center>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                        <center><h1><strong><?= $a->tersedia ?></strong></h1></center>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                        <center><h1><strong><?= $a->terisi ?></strong></h2></center>
                                                    </td>
                                                <?php } else { ?>
                                                    <td>
                                                    <h1><strong><?= $a->ruang ?></strong></h2>
                                                    </td>
                                                    <td>
                                                    <h1><strong><?= $a->nm_kelas ?></strong></h2>
                                                    </td>
                                                    <td>
                                                     <center><h1><strong><?= $a->jumlah_bed ?></strong></h1></center>
                                                    </td>
                                                    <td>
                                                        <center><h1><strong><?= $a->tersedia ?></strong></h1></center>
                                                    </td>
                                                    <td>
                                                        <center><h1><strong><?= $a->terisi ?></strong></h2></center>
                                                    </td>
                                                <?php } ?>
                                            </tr>
                                        <?php
                                        } 
                                        if ($a->keterangan == "NICU") {
                                        ?>
                                                <tr>
                                                 <?php if ($a->tersedia == 0) { ?>
                                                    <td style="background-color: red; color: white;">
                                                    <h1><strong><?= $a->ruang ?></strong></h2>
                                                    </td>
                                                     <td style="background-color: red; color: white;">
                                                    <h1><strong><?= $a->nm_kelas ?></strong></h2>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                    <center><h1><strong><?= $a->jumlah_bed ?></strong></h1><center>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                        <center><h1><strong><?= $a->tersedia ?></strong></h1></center>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                        <center><h1><strong><?= $a->terisi ?></strong></h2></center>
                                                    </td>
                                                <?php } else { ?>
                                                    <td>
                                                    <h1><strong><?= $a->ruang ?></strong></h2>
                                                    </td>
                                                    <td>
                                                    <h1><strong><?= $a->nm_kelas ?></strong></h2>
                                                    </td>
                                                    <td>
                                                     <center><h1><strong><?= $a->jumlah_bed ?></strong></h1></center>
                                                    </td>
                                                    <td>
                                                        <center><h1><strong><?= $a->tersedia ?></strong></h1></center>
                                                    </td>
                                                    <td>
                                                        <center><h1><strong><?= $a->terisi ?></strong></h2></center>
                                                    </td>
                                                <?php } ?>
                                            </tr>
                                        <?php
                                        }
                                          if ($a->keterangan == "PICU") {
                                        ?>
                                                <tr>
                                                 <?php if ($a->tersedia == 0) { ?>
                                                    <td style="background-color: red; color: white;">
                                                    <h1><strong><?= $a->ruang ?></strong></h2>
                                                    </td>
                                                     <td style="background-color: red; color: white;">
                                                    <h1><strong><?= $a->nm_kelas ?></strong></h2>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                    <center><h1><strong><?= $a->jumlah_bed ?></strong></h1><center>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                        <center><h1><strong><?= $a->tersedia ?></strong></h1></center>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                        <center><h1><strong><?= $a->terisi ?></strong></h2></center>
                                                    </td>
                                                <?php } else { ?>
                                                    <td>
                                                    <h1><strong><?= $a->ruang ?></strong></h2>
                                                    </td>
                                                    <td>
                                                    <h1><strong><?= $a->nm_kelas ?></strong></h2>
                                                    </td>
                                                    <td>
                                                     <center><h1><strong><?= $a->jumlah_bed ?></strong></h1></center>
                                                    </td>
                                                    <td>
                                                        <center><h1><strong><?= $a->tersedia ?></strong></h1></center>
                                                    </td>
                                                    <td>
                                                        <center><h1><strong><?= $a->terisi ?></strong></h2></center>
                                                    </td>
                                                <?php } ?>
                                            </tr>
                                        <?php
                                        }
                                         if ($a->keterangan == "HCU") {
                                        ?>
                                                <tr>
                                                 <?php if ($a->tersedia == 0) { ?>
                                                    <td style="background-color: red; color: white;">
                                                    <h1><strong><?= $a->ruang ?></strong></h2>
                                                    </td>
                                                     <td style="background-color: red; color: white;">
                                                    <h1><strong><?= $a->nm_kelas ?></strong></h2>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                    <center><h1><strong><?= $a->jumlah_bed ?></strong></h1><center>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                        <center><h1><strong><?= $a->tersedia ?></strong></h1></center>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                        <center><h1><strong><?= $a->terisi ?></strong></h2></center>
                                                    </td>
                                                <?php } else { ?>
                                                    <td>
                                                    <h1><strong><?= $a->ruang ?></strong></h2>
                                                    </td>
                                                    <td>
                                                    <h1><strong><?= $a->nm_kelas ?></strong></h2>
                                                    </td>
                                                    <td>
                                                     <center><h1><strong><?= $a->jumlah_bed ?></strong></h1></center>
                                                    </td>
                                                    <td>
                                                        <center><h1><strong><?= $a->tersedia ?></strong></h1></center>
                                                    </td>
                                                    <td>
                                                        <center><h1><strong><?= $a->terisi ?></strong></h2></center>
                                                    </td>
                                                <?php } ?>
                                            </tr>
                                        <?php
                                        }
                                         if ($a->keterangan == "ICU") {
                                        ?>
                                                <tr>
                                                 <?php if ($a->tersedia == 0) { ?>
                                                    <td style="background-color: red; color: white;">
                                                    <h1><strong><?= $a->ruang ?></strong></h2>
                                                    </td>
                                                     <td style="background-color: red; color: white;">
                                                    <h1><strong><?= $a->nm_kelas ?></strong></h2>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                    <center><h1><strong><?= $a->jumlah_bed ?></strong></h1><center>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                        <center><h1><strong><?= $a->tersedia ?></strong></h1></center>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                        <center><h1><strong><?= $a->terisi ?></strong></h2></center>
                                                    </td>
                                                <?php } else { ?>
                                                    <td>
                                                    <h1><strong><?= $a->ruang ?></strong></h2>
                                                    </td>
                                                    <td>
                                                    <h1><strong><?= $a->nm_kelas ?></strong></h2>
                                                    </td>
                                                    <td>
                                                     <center><h1><strong><?= $a->jumlah_bed ?></strong></h1></center>
                                                    </td>
                                                    <td>
                                                        <center><h1><strong><?= $a->tersedia ?></strong></h1></center>
                                                    </td>
                                                    <td>
                                                        <center><h1><strong><?= $a->terisi ?></strong></h2></center>
                                                    </td>
                                                <?php } ?>
                                            </tr>
                                        <?php
                                        }
                                        
                                        if ($a->keterangan == "ISO") {
                                        ?>
                                                <tr>
                                                 <?php if ($a->tersedia == 0) { ?>
                                                    <td style="background-color: red; color: white;">
                                                    <h1><strong><?= $a->ruang ?></strong></h2>
                                                    </td>
                                                     <td style="background-color: red; color: white;">
                                                    <h1><strong><?= $a->nm_kelas ?></strong></h2>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                    <center><h1><strong><?= $a->jumlah_bed ?></strong></h1><center>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                        <center><h1><strong><?= $a->tersedia ?></strong></h1></center>
                                                    </td>
                                                    <td style="background-color: red; color: white;">
                                                        <center><h1><strong><?= $a->terisi ?></strong></h2></center>
                                                    </td>
                                                <?php } else { ?>
                                                    <td>
                                                    <h1><strong><?= $a->ruang ?></strong></h2>
                                                    </td>
                                                    <td>
                                                    <h1><strong><?= $a->nm_kelas ?></strong></h2>
                                                    </td>
                                                    <td>
                                                     <center><h1><strong><?= $a->jumlah_bed ?></strong></h1></center>
                                                    </td>
                                                    <td>
                                                        <center><h1><strong><?= $a->tersedia ?></strong></h1></center>
                                                    </td>
                                                    <td>
                                                        <center><h1><strong><?= $a->terisi ?></strong></h2></center>
                                                    </td>
                                                <?php } ?>
                                            </tr>
                                        <?php
                                        }
                                    }
  
                                } else {
                                    ?>
                                    <tr>
                                        <td colspan="4" style="text-align: center;">Data tidak ditemukan</td>
                                    <tr>
                                    <?php
                                }
                            
                                    ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
           
                    <!-- /.card-body -->
                </div>

                <!-- /.card -->
                <!-- /.card -->
            </div> 

            <!-- /.col -->
        </div>
        <!-- /.row -->
    </div>
    <center>
        <!--<h2 style="margin-top: 35px;"><strong>.: FREE WIFI ACCESS :.</strong></h2>
        <h4 style="margin-top: 30px;"><strong>Username : rsuananda</strong></h4>
        <h4 style="margin-top: 15px;"><strong>Password : sehatselalu </strong></h4>-->
        <h3 style="margin-top: 60px;"><strong>by IT Support RSU Ananda</strong></h3>
    </center>
    <!-- /.container-fluid -->
</section>
</div>
<!-- /.content -->
</div>

<!-- /.modal-dialog -->
</div>
<!-- /.modal -->