<!-- Content Wrapper. Contains page content -->
<style>
    .link:hover {
        color: #3C8DBC;
        font-weight: bold;
    }
</style>
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            View Catatan KB
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> HIS</a></li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">


        <div class="box">
            <div class="box-body">

                <table class="table table-striped table-hover" id="example1" style="font-size: 9pt;">
                    <thead>
                        <tr>
                            <th>No.</th>
                            <th>Case ID</th>
                            <th>No.MR</th>
                            <th>Nama</th>
                            <th>Menerche</th>
                            <th>Lamanya</th>
                            <th>Banyaknya</th>
                            <th>Haid Terakhir</th>
                            <th>Pms</th>
                            <th>MetodeKB</th>
                            <th>Action</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php
                        $no = 1;
                        foreach ($catatanhamil as $data) :
                        ?>
                            <tr>
                                <td><?= $no++; ?>.</td>
                                <td><?= $data['Case ID']; ?></td>
                                <td><?= $data['PatientCode']; ?></td>
                                <td><?= $data['Description']; ?></td>
                                <td><?= $data['menerche']; ?></td>
                                <td><?= $data['lamanya']; ?></td>
                                <td><?= $data['banyaknya']; ?></td>
                                <td><?= $data['haid_terakhir']; ?></td>
                                <td><?= $data['Pms']; ?></td>
                                <td><?= $data['metode_kb']; ?></td>
                                <td>
                                    <a href="<?= base_url('CatatanKehamilan/cetakKb/'.$data['CaseID']); ?>" target="_new" class="btn btn-success btn-md"> <i class="fa fa-print"></i></a>
                                </td>
                            </tr>
                        <?php
                        endforeach;
                        ?>
                    </tbody>
                </table>


            </div><!-- /.box-body -->
        </div><!-- /.box -->

    </section><!-- /.content -->
</div><!-- /.content-wrapper -->