<!-- 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 Awal Kehamilan
        </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>Hari Pertama Haid Terakhir (HPHT)</th>
                            <th>Hari Taksir Persalinan (HTP)</th>
                            <th>Penyakit Yang Diderita</th>
                            <th>Action</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php
                        $no = 1;
                        foreach ($catatanawal as $data) :
                        ?>
                            <tr>
                                <td><?= $no++; ?>.</td>
                                <td><?= $data['Case ID']; ?></td>
                                <td><?= $data['PatientCode']; ?></td>
                                <td><?= $data['Description']; ?></td>
                                <td><?= $data['hpht']; ?></td>
                                <td><?= $data['htp']; ?></td>
                                <td><?= $data['penyakitygdiderita']; ?></td>
                                <td>
                                    <a href="<?= base_url('CatatanKehamilan/cetakawalhamil/'.$data['CaseID']); ?>" target="_blank" class="btn btn-success btn-md"> <i class="fa fa-print"</a>
                                </td>
                            </tr>
                        <?php
                        endforeach;
                        ?>
                    </tbody>
                </table>


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

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