<?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">Data Keuangan BLU 2017</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>
                    <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
                </div>
            </div>
            <div class="box-body">
                <table class="table table-hover table-bordered table-responsive">
                    <tr>
                        <td><b>No</b></td>
                        <td><b>Data Keuangan</b></td>
                        <td><b>Jumlah</b></td>
                    </tr>
                    <?php $i = 1; foreach ($data as $row) { ?>
                        <tr>
                            <td><?php echo $i; ?></td>
                            <td><?php echo $row->keterangan; ?></td>
                            <td><?php echo "Rp. ".buatrp($row->jumlah); ?></td>
                        </tr>
                    <?php $i++; } ?>
                </table>
            </div>
            <div class="box-footer">
                <i class="fa fa-clock-o"></i> Data realtime
            </div>
        </div>
    </div>
</div>