<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            Sistem Klinik
            <small>Rekam Medis</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Klinik</a></li>
            <li class="active">Dashboard</li>
        </ol>
    </section>

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

        <!-- Default box -->
        <div class="box">
            <div class="box-header with-border">
            <div class="box-tools pull-right">
               <a href="" data-toggle="modal" data-target="#pencarian" class="btn btn-sm btn-primary bg-blue-gradient" data-backdrop="static" data-keyboard="false"><i class="fa fa-fw fa-search"></i> Cari</a>
            </div>
            <br>
            <div class="box-body">
            <small>
                    <table id="example1" class="table table-bordered table-hover table-striped">
                        <thead>
                            <tr class="bg-blue-gradient" >
                                 <th>No.</th>
                                <th>Case ID</th>
                                <th>No. Mr</th>
                                <th>Nama</th>
                                <th>Category</th>
                                <th>Intake Date</th>
                                <th>Close Date</th>
                                <th>Penjamin</th>
                                <th>Status</th>
                                <th>Action</th>
                            </tr>
                        </thead>
                        <tbody>
                        <?php
                            $no = 1;
                            foreach ($cari as $data) :
                            ?>
                            <tr>
                                <td><?= $no++; ?></td>
                                <td><?= $data['Case ID']; ?></td>
                                <td><?= $data['PatientCode']; ?></td>
                                <td><?= $data['Description']; ?></td>
                                <td><?= $data['Category']; ?></td>
                                <td><?= $data['Intake Date']; ?></td>
                                <td><?= $data['Closed Date']; ?></td>
                                <td><?= $data['CompanyName']; ?></td>
                                <td><?= $data['Case Status']; ?></td>
                                <td><a href="<?= base_url('kasir/detailchasir/'.$data['Case ID']); ?>" class="btn btn-sm btn-primary bg-blue-gradient" data-backdrop="static" data-keyboard="false"><i class="fa fa-tv"></i> Pilih</a></td>
                            </tr>
                            <?php
                            endforeach;
                            ?>
                        </tbody>
                        <tfoot>
                            <tr>
                            <th>No.</th>
                                <th>Case ID</th>
                                <th>No. Mr</th>
                                <th>Nama</th>
                                <th>Category</th>
                                <th>Intake Date</th>
                                <th>Close Date</th>
                                <th>Penjamin</th>
                                <th>Status</th>
                                <th>Action</th>
                            </tr>
                        </tfoot>
                    </table>
                </small>
                </div>
            </div>
            </div>
        </div>
    </section>
</div>