<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 ($listmtd->num_rows() > 0) {
                foreach ($listmtd->result_array() as $row_mtd) {
            ?>
                <tr>
                    <td><?=humanize_mdate($row_mtd['trans_date'],'%d-%m-%Y')?></td>
                    <td style="text-align:right;"><?=number_format($row_mtd['saldo_awal'],2,'.',',') ?></td>
                    <td style="text-align:right;"><?=number_format($row_mtd['total_in'],2,'.',',') ?></td>
                    <td style="text-align:right;"><?=number_format($row_mtd['available'],2,'.',',') ?></td>
                    <td style="text-align:right;"><?=number_format($row_mtd['total_out'],2,'.',',') ?></td>
                    <td style="text-align:right;"><?=number_format($row_mtd['end_qty'],2,'.',',') ?></td>
                    <td style="text-align:right;"><?=number_format($row_mtd['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>