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