<div class="row">
    <div class="col-md-12">
        <table class="table table-hover table-bordered table-striped" align="center">
            <tr>
                <td>
                    <strong>Payment Account ID</strong>
                </td>
                <td>
                    <?php echo $payment_account_details->id; ?>
                </td>
                <td>
                    <strong>Date</strong>
                </td>
                <td>
                    <?php echo date("d-m-Y", strtotime($payment_account_details->date)); ?>
                </td>
            </tr>
            <tr>
                <td>
                    <strong>Payment Method</strong>
                </td>
                <td>
                    <?php if($payment_account_details->payment_method == 'UNA Settlement'){ ?>
                    <a href="<?php echo base_url().'view_una_payments?una_payment_id='.$payment_account_details->una_payment_id;?>" target="_blank"><?php echo $payment_account_details->payment_method; ?></a>
                    <?php }else{
                        echo $payment_account_details->payment_method;
                    } ?>
                </td>
                <td>
                    <strong>Payment Amount</strong>
                </td>
                <td>
                    <?php echo 'Rs. '.number_format($payment_account_details->amount,2,'.',','); ?>
                </td>
            </tr>
                                                    
            <?php if($payment_account_details->payment_method == 'Cheque'){ ?>
            <tr>
                <td>
                    <strong>Cheque Issued Bank Name</strong>
                </td>
                <td>
                    <?php 
                    $cheque_account_details = $this->admin_db->get_account_details_by_id($payment_account_details->account_id);
                    echo $cheque_account_details->bank_name; 
                    ?>
                </td>
                <td>
                    <strong>Cheque Issued Account Number</strong>
                </td>
                <td>
                    <?php echo $cheque_account_details->account_number; ?>
                </td>
            </tr>
            <tr>
                <td>
                    <strong>Cheque Number</strong>
                </td>
                <td>
                    <?php echo $payment_account_details->cheque_number; ?>
                </td>
                <td>
                    <strong>Cheque Deposit Date</strong>
                </td>
                <td>
                    <?php echo $payment_account_details->cheque_deposit_date; ?>
                </td>
            </tr>
            <?php } ?>
                                                    
            <?php if($payment_account_details->payment_method == 'Bank Transfer'){ ?>
            <tr>
                <td>
                    <strong>Transfered From Bank Name</strong>
                </td>
                <td>
                    <?php 
                    $transfered_from_account_details = $this->admin_db->get_account_details_by_id($payment_account_details->account_id);
                    echo $transfered_from_account_details->bank_name; 
                    ?>
                </td>
                <td>
                    <strong>Transfered From Account Number</strong>
                </td>
                <td>
                    <?php echo $transfered_from_account_details->account_number; ?>
                </td>
            </tr>
            <tr>
                <td>
                    <strong>Transfered To Bank Name</strong>
                </td>
                <td>
                    <?php 
                    $transfered_to_bank_details = $this->admin_db->get_bank_by_id($payment_account_details->third_party_bank_id);
                    echo $transfered_to_bank_details->bank_name; 
                    ?>
                </td>
                <td>
                    <strong>Transfered To Account Number</strong>
                </td>
                <td>
                    <?php echo $payment_account_details->third_party_account_number; ?>
                </td>
            </tr>
            <?php } ?>

            <?php if($payment_account_details->payment_method == 'Bank Deposit'){ ?>
            <tr>
                <td>
                    <strong>Deposited To Bank Name</strong>
                </td>
                <td>
                    <?php 
                    $transfered_to_bank_details = $this->admin_db->get_bank_by_id($payment_account_details->third_party_bank_id);
                    echo $transfered_to_bank_details->bank_name; 
                    ?>
                </td>
                <td>
                    <strong>Deposited To Account Number</strong>
                </td>
                <td>
                    <?php echo $payment_account_details->third_party_account_number; ?>
                </td>
            </tr>
            <?php } ?>
        </table>
    </div>
</div>