<div class="table-responsive">
    <table class="table table-bordered" style="width:100%;">
        <thead>
            <tr>
                <th style="vertical-align:middle; text-align:center;">Month</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 ($listlastyear->num_rows() > 0) {
                foreach ($listlastyear->result_array() as $row_lastyear) {
            ?>
                <tr>
                    <td><?=$row_lastyear['trans_date']?></td>
                    <td style="text-align:right;"><?=number_format($row_lastyear['saldo_awal'],2,'.',',') ?></td>
                    <td style="text-align:right;"><?=number_format($row_lastyear['total_in'],2,'.',',') ?></td>
                    <td style="text-align:right;"><?=number_format($row_lastyear['available'],2,'.',',') ?></td>
                    <td style="text-align:right;"><?=number_format($row_lastyear['total_out'],2,'.',',') ?></td>
                    <td style="text-align:right;"><?=number_format($row_lastyear['end_qty'],2,'.',',') ?></td>
                    <td style="text-align:right;"><?=number_format($row_lastyear['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>