<?php include(APPPATH.'views/Frontend/includes/top_profile.php'); ?>
<div id="content" class="py-4">
	<div class="container">
		<div class="row">
<?php include(APPPATH.'views/Frontend/includes/sidebar.php'); ?>
<!-- Container Panel  -->
			<div class="col-lg-9">
				<div class="profile-content">
                            <h3 class="admin-heading bg-offwhite">
                                <p><?php echo $page_name;?></p>
                                <span>Details Activity</span>
                            </h3>
                            <div class="order-summery transaction-summery">
                                <div class="order-details-area table">
                                    <div class="table-head">
                                        <div class="modal_header">
                                            <span class="status bg-success">Success</span>
                                            <div class="row">
                                                <div class="col">
                                                    <div class="content-area">
                                                        <b>Successful Transaction </b>
                                                        <?php if(isset($transaction_details->bef_account_name) && $transaction_details->bef_account_name!=''){echo 'to <i class="fas fa-building"></i> '.$transaction_details->bef_account_name;}?>
                                                        <p><?php echo date('d F Y',$transaction_details->txn_date);?></p>
                                                        <p>Transaction ID: <?php echo $transaction_details->txn_id;?></p>
														<p>Payment Status: COMPLETED</p>                                                       
                                                    </div>
                                                </div>
                                                <div class="col">
                                                    <div class="content-area text-right">
                                                        <div class="price">
                                                            <b>Ammount</b>
                                                            <p><?php echo $this->config->item('amt_currencies_array_config')[$transaction_details->account_cur]['csign'].' '.number_format($transaction_details->total_trans_amt,2).' '.$this->config->item('amt_currencies_array_config')[$transaction_details->account_cur]['name'];?></p>
															<b><?php if(isset($transaction_details->credit_debit_sts) && $transaction_details->credit_debit_sts!='' && $transaction_details->credit_debit_sts==0){ echo ' (Debit)';}else{ echo ' (Credit)';}?></b>
                                                        </div>                                                        
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="table-content bg-offwhite">
                                            <b>
                                                <div class="row">
                                                    <div class="col">Your Transaction Details</div>
                                                    <div class="col"></div>
                                                    <div class="col"></div>
                                                    <div class="col text-right"></div>
                                                </div>
                                            </b>
                                        </div>
                                        <div class="table-content">
                                            <div class="row">
                                                <div class="col">
                                                    Account Number:</div>
                                                <div class="col"><?php echo $transaction_details->account_no;?></div>
                                                <div class="col"></div>
                                                <div class="col text-right"></div>
                                            </div>
                                        </div>
                                        <div class="table-content">
                                            <div class="row">
                                                <div class="col">
                                                    Amount:</div>
                                                <div class="col"><?php echo $this->config->item('amt_currencies_array_config')[$transaction_details->account_cur]['name'].' '.number_format($transaction_details->total_trans_amt,2); if(isset($transaction_details->credit_debit_sts) && $transaction_details->credit_debit_sts!='' && $transaction_details->credit_debit_sts==0){ echo ' (Debit)';}else{ echo ' (Credit)';}?></div>
                                                <div class="col"></div>
                                                <div class="col text-right"></div>
                                            </div>
                                        </div>
                                        <div class="table-content">
                                            <div class="row">
                                                <div class="col">
                                                    Transaction Charge:</div>
                                                <div class="col"><?php if(isset($transaction_details->trans_fees) && $transaction_details->trans_fees!='' && $transaction_details->trans_fees>0){echo $this->config->item('amt_currencies_array_config')[$transaction_details->account_cur]['csign'].' '.$transaction_details->trans_fees.' '.$this->config->item('amt_currencies_array_config')[$transaction_details->account_cur]['name'];}else{echo 'Free';}?></div>
                                                <div class="col"></div>
                                                <div class="col text-right"></div>
                                            </div>
                                        </div>
										<?php if(isset($transaction_details->credit_debit_sts) && $transaction_details->credit_debit_sts!='' && $transaction_details->credit_debit_sts==0){?>
                                        <div class="table-content">
                                            <div class="row">
                                                <div class="col">
                                                   Receiver name:</div>
                                                <div class="col"><?php echo $transaction_details->bef_account_name;?></div>
                                                <div class="col"></div>
                                                <div class="col text-right"></div>
                                            </div>
                                        </div>
										<?php } ?>
										
                                        <div class="table-content">
                                            <div class="row">
                                                <div class="col">
                                                   Transaction Narration:</div>
                                                <div class="col" style="width: 400px;"><?php echo $transaction_details->transfer_remark;?></div>
                                                <div class="col"></div>
                                                <div class="col text-right"></div>
                                            </div>
                                        </div>
                                        <div class="table-content">
                                            <div class="row">
                                                <div class="col">
                                                   Transaction ID:</div>
                                                <div class="col"><?php echo $transaction_details->txn_id;?></div>
                                                <div class="col"></div>
                                                <div class="col text-right"></div>
                                            </div>
                                        </div>
                                        <div class="table-content">
                                            <div class="row">
                                                <div class="col">
                                                   System Date:</div>
                                                <div class="col"><?php echo date('M d, Y',$transaction_details->sent_time).' '.date('h:i:s A',$transaction_details->sent_time);?></div>
                                                <div class="col"></div>
                                                <div class="col text-right"></div>
                                            </div>
                                        </div>
                                        <div class="table-content">
                                            <div class="row">
                                                <div class="col">
                                                  Available Balance:</div>
                                                <div class="col"><?php echo $this->config->item('amt_currencies_array_config')[$transaction_details->account_cur]['csign'].' '.$transaction_details->available_balance.' '.$this->config->item('amt_currencies_array_config')[$transaction_details->account_cur]['name'];?></div>
                                                <div class="col"></div>
                                                <div class="col text-right"></div>
                                            </div>
                                        </div>
										<?php if(isset($transaction_details->credit_debit_sts) && $transaction_details->credit_debit_sts!='' && $transaction_details->credit_debit_sts==0){?>
                                        <!--<div class="table-content">
                                            <div class="row">
                                                <div class="col">
                                                  Uncleared Balance:</div>
                                                <div class="col">USD 0.00</div>
                                                <div class="col"></div>
                                                <div class="col text-right"></div>
                                            </div>
                                        </div> -->
										<?php } ?>                                       
                                    </div>
                                </div>
                            </div>
                        </div> 
			</div>
			<!-- Middle End -->
		</div>
	</div>
</div>