<div class="row">
    <div class="col-md-12">
        <table class="table table-hover table-bordered table-striped" align="center">
            <tr>
                <td>
                    <strong>Credit Account ID</strong>
                </td>
                <td>
                    <?php echo $credit_account_details->id; ?>
                </td>
                <td>
                    <strong>Date</strong>
                </td>
                <td>
                    <?php echo date("d-m-Y", strtotime($credit_account_details->date)); ?>
                </td>
            </tr>
            <tr>
                <td>
                    <strong>Credit Type</strong>
                </td>
                <td>
                    <?php if($credit_account_details->item_type == 'UNA Purchase' || $credit_account_details->item_type == 'Previous Credits - UNA Purchase'){ ?>
                    <a href="<?php echo base_url().'view_una?una_id='.$credit_account_details->item_id;?>" target="_blank"><?php echo $credit_account_details->item_type; ?></a>
                    <?php }else{
                        echo $credit_account_details->item_type;
                    } ?>
                </td>
                <td>
                    <strong>Amount</strong>
                </td>
                <td>
                    <?php echo 'Rs. '.number_format($credit_account_details->amount,2,'.',','); ?>
                </td>
            </tr>
            <?php if($credit_account_details->item_type == 'Previous Credits'){ ?>
            <tr>
                <td>
                    <strong>Description</strong>
                </td>
                <td colspan="3">
                    <?php echo $credit_account_details->description; ?>
                </td>
            </tr>
            <?php } ?>
        </table>
    </div>
</div>