<div class="table-responsive">
    <table class="table table-bordered" style="width:100%;">
        <thead>
            <tr>
                <th style="vertical-align:middle; text-align:center;">Date</th>
                <th style="vertical-align:middle; text-align:center;">Beginning</th>
                <th style="vertical-align:middle; text-align:center;">Coal Getting (InBound)</th>
                <th style="vertical-align:middle; text-align:center;">Available</th>
                <th style="vertical-align:middle; text-align:center;">Stock Room (OutBound)</th>
                <th style="vertical-align:middle; text-align:center;">End Stock</th>
                <th style="vertical-align:middle; text-align:center;">Turn Over</th>
            </tr>
        </thead>
        <tbody>
        <?php
            if ($listcustom->num_rows() > 0) {
                foreach ($listcustom->result_array() as $row_custom) {
            ?>
                <tr>
                    <td><?=humanize_mdate($row_custom['trans_date'],'%d-%m-%Y')?></td>
                    <td style="text-align:right;"><?=number_format($row_custom['saldo_awal'],2,'.',',') ?></td>
                    <td style="text-align:right;"><?=number_format($row_custom['total_in'],2,'.',',') ?></td>
                    <td style="text-align:right;"><?=number_format($row_custom['available'],2,'.',',') ?></td>
                    <td style="text-align:right;"><?=number_format($row_custom['total_out'],2,'.',',') ?></td>
                    <td style="text-align:right;"><?=number_format($row_custom['end_qty'],2,'.',',') ?></td>
                    <td style="text-align:right;"><?=number_format($row_custom['turn_over'],2,'.',',') ?>%</td>
                </tr>
                <?php } ?>
        <?php } else { ?>
                <tr>
                    <td colspan="7"><i>Data Not Found</i></td>
                </tr>
        <?php } ?>
        </tbody>
        <tfoot></tfoot>
    </table>
</div>