<?php function buatrp($angka) { $jadi = "" . number_format($angka,0,',','.'); return $jadi; } ?>

<div class="row">
    <div class="col-md-12">
        <div class="box">
            <div class="box-header with-border">
                <h3 class="box-title">Selisih Biaya Diagnosa Rawat Jalan</h3>
                <div class="box-tools pull-right">
                    <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
                    <a href="<?php echo base_url('admin/home'); ?>" class="btn btn-box-tool"><i class="fa fa-times"></i></a>
                </div>
            </div>
            <div class="box-body">
                <table class="table table-striped">
                        <tr>
                            <th><center>Kode</center></th>
                            <th><center>Deskripsi</center></th>
                            <th><center>Total Biaya<br>Rumah Sakit</center></th>
                            <th><center>Total Biaya<br>INA CBGs</center></th>
                            <th><center>Selisih<br>Biaya</center></th>
                        </tr>
                    <?php foreach ($selisih_diagnosa_out as $content) { ?>
                        <tr>
                            <td><b><?php echo $content->IcdUtama; ?></b></td>
                            <td><?php echo $content->ICDDesc; ?></td>
                            <td align="right"><?php echo buatrp($content->TotalBiayaRS); ?></td>
                            <td align="right"><?php echo buatrp($content->TotalInaCbg); ?></td>
                            <td align="right"><?php echo buatrp($content->Selisih); ?></td>
                        </tr>
                    <?php } ?>
                </table>
            </div>
            <div class="box-footer">
                <i class="fa fa-clock-o"></i> Data realtime
            </div>
        </div>
    </div>
</div>