<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> <?php echo $creditbalance['balance'];?>
        </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>Credit Amount</th>
                                <th>Debit Amount</th>                             
                                <th>Balance</th>
                            </tr>
                        </thead>
                        <tbody>
                             <?php
                             //echo '<pre>';print_r($paymentuploadData);die;
                             if(count($paymentuploadData)>0){
                                    $i=1;                                   
                                foreach($paymentuploadData as $balance){                                 
                               ?>
                            <tr>
                                <td><?php echo $i;?></td>
                                <td><?php echo isset($balance['time'])?date('Y-m-d',strtotime($balance['time'])):'' ?></td>
                                <td><i class="fa fa-inr"> <?php echo $balance['credit_amount'];?></td>
                                <td><i class="fa fa-inr"> <?php echo $balance['debit_amount'];?></td>
                                <td><i class="fa fa-inr"> <?php echo $balance['balance'];?></td>
                            </tr>
                           <?php $i++;} }else{?>
                               <tr></tr>
                        <?php }?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>