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