<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            TotalPatientByCompany <label style="font-weight: normal; font-size:15px" id="timer"></label>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Sis-RS</a></li>
            <li class="active">TotalPatientByCompany</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">
        <div class="row" style="margin-bottom: 10px;">
            <div class="col-md-8">
                <i class="fa fa-fw fa-calendar"></i> <b>TotalPatientByCompany</b>


            </div>
            <div class="col-md-4" align="right">
                <form action="<?= base_url('DashboardLaporan/caripatientbytretment'); ?>" method="get">
                    <table>
                        <tr>
                            <td><input type="date" class="form-control" name="tgl1" id="tgl1" value="<?= date('Y-m-d'); ?>"></td>
                            <td><input type="date" class="form-control" name="tgl2" id="tgl2" value="<?= date('Y-m-d'); ?>"></td>
                            <td><button style="border-radius: 0px;" type="submit" class="btn btn-sm btn-primary">Cari</button></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
        <div class="box">
            <div class="box-body">
                <?= $this->session->flashdata('message'); ?>
                <div>
                        <table id="" class="table">
                    <thead>
                        <tr>
                            <th>NamaPerusahaan</th>
                            <th>Ass</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php foreach($ass as $d) : ?>
                        <tr>
                            <td><?= $d['Category']; ?></td>
                            <td><?= number_format($d['Ass'],0); ?></td>
                        </tr>
                        <?php endforeach; ?>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="box">
            <div class="box-body">
                <?= $this->session->flashdata('message'); ?>
                <div>
                        <table id="" class="table">
                    <thead>
                        <tr>
                            <th>NamaPerusahaan</th>
                            <th>Cash</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php foreach($case as $d) : ?>
                        <tr>
                            <td><?= $d['Category']; ?></td>
                            <td><?= number_format($d['cash'],0); ?></td>
                        </tr>
                        <?php endforeach; ?>
                    </tbody>
                </table>
            </div>
        </div>
    </section>
</div>