<div class="box box-solid bg-light-blue-gradient">
    <div class="box-header">
        <h3 class="box-title">
            <?php echo $this->translate('Credit Balance');?>
        </h3>

        <h3 class="box-title pull-right">
            <i class="fa fa-inr"></i> 50000
        </h3>
    </div>
    <div class="box-body">
        <div id="" >
            <div class="listingTableContainer">
                <div class="table-responsive">
                    <table class="table with-pager table-bordered table-striped" style="color:#333;">
                        <thead>
                            <tr>
                                <th>S.No</th>
                                <th>Date</th>
                                <th>Name</th>
                                <th>Type</th>
                                <th>Amount</th>
                                <th>Balance</th>
                            </tr>
                        </thead>
                        <tbody>
                             <?php
                             //echo '<pre>';print_r($creditBalance);//die();
                             if($creditBalance){
                                    $i=1;
                           foreach($creditBalance as $balance){ ?>
                            <tr>
                                <td><?php echo $i;?></td>
                                <td><?php echo date('Y-m-d',strtotime($balance['from_date']));?></td>
                                <td><?php echo $balance['username'];?></br><?php echo $balance['email'];?></td>
                                <td><?php echo $balance['user_type'];?></td>
                                <td><i class="fa fa-inr"><?php echo $balance['credit_limit_amount'];?></td>
                                <td><i class="fa fa-inr"><?php echo $balance['credit_balance'];?></td>
                            </tr>
                           <?php $i++;} }else{?>
                               <tr></tr>
                        <?php }?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>