<div class="col-lg-12">
        <table class="table table-hover table-bordered personal-task" id="tbl_invoice_monthly">
            <thead>
                <tr>
                    <th>No</th>
                    <th>Order No</th>
                    <th>Order Date</th>
                    <th>Amount</th>
                </tr>
            </thead>
            <?php
            $total=0.00;
            foreach ($model_order as $key => $value) {
            ?>
            <tr>
                <td><?php echo ($key+1); ?></td>
                <td><?php echo $value['id']; ?></td>
                <td><?php echo date('d/m/Y', strtotime($value['order_date'])); ?></td>
                <td class="text-right"><?php echo Yii::app()->numberFormatter->formatCurrency($value['grand_total'],""); ?></td>
            </tr>
            <?php
            $total+=$value['grand_total'];
            }
            ?>
            <tr>
                <td colspan="3" class="text-right"><b>Total</b></td>
                <td class="text-right"><b><?php echo Yii::app()->numberFormatter->formatCurrency($total,""); ?></b></td>
            </tr>
        </table>
</div>
