<div class="box box-solid bg-light-blue-gradient">
    <div class="box-header">
        <h3 class="box-title"><?php echo $this->translate('(Referral ID) Wallet Point'); ?></h3>
        <h3 class="box-title pull-right"><i class="fa fa-inr"></i> <?php echo $wallet_amount; ?></h3>
    </div>

    <div class="box-body">
        <div id="" >
            <div class="listingTableContainer">
                <div class="table-responsive">
                    <table id="recent-wallet-tbl" class="table with-pager table-bordered table-striped color333">
                        <thead>
                            <tr>
                                <th>S.No</th>
                                <th>Date</th>
                                <th>Ref.Code</th>
                                <th>Amount</th>
                                <th>Expires On</th>
                            </tr>

                        </thead>

                        <tbody>
                            <?php
                            //echo '<pre>';print_r($walletHistory); die();
                            if (count($walletHistory) > 0) {
                                $i = 1;
                                foreach ($walletHistory as $wallet) {
                                    ?>
                                    <tr>
                                        <td><?php echo $i; ?></td>
                                        <td><?php echo date('d-m-Y', strtotime($wallet['created'])); ?></td>
                                        <td><?php echo $wallet['referral_key']; ?></td>
                                        <td><i class="fa fa-inr"> <?php echo $wallet['referer_amount']; ?></td>
                                        <td><?php echo date('d-m-Y', strtotime("+12 months", strtotime($wallet['created']))); ?></td>
                                    </tr>
                                    <?php
                                    $i++;
                                }
                            } else {
                                ?>
                                <tr>
                                    <td colspan="5" style="text-align: center;">No Record Found</td>
                                </tr>
<?php } ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div><!-- /.box-body-->
</div>
<!-- /.box -->