<?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">
				<h2 class="admin-heading bg-offwhite"><?php echo $page_name;?></h2> 
 				<!-- All Transactions  -->
				<div class="profile-content">
 					<!-- Admin Heading Title  -->
					<div class="transaction-title bg-offwhite">
							<div class="items">
								<div class="row">
									<div class="col"><span class="">Date</span></div>
									<div class="col">Description</div>
									<div class="col text-center">Status</div>
									<div class="col text-center">Fee</div>
									<div class="col">Amount</div>
								</div>
							</div>
						</div>
						<!-- Admin Heading Title End -->
 						<!-- Transaction List -->
						<div class="transaction-area">
							  <?php foreach($transfer_history_listing as $trans_dets){?>
							 <div class="items">
								<a href="<?php echo base_url();?>transfer_money/details/<?php echo $trans_dets->txn_id;?>">
									<div class="row">
										<div class="col pay-date">
											<span class="date"><?php echo date('d',$trans_dets->txn_date);?></span>
											<span class="pay-month"><?php echo strtoupper(date('M Y',$trans_dets->txn_date));?></span>
										</div>
										<div class="col">
											<span class="name"><?php echo $trans_dets->transfer_remark;?></span></div>
										<div class="col text-center">
											<?php if(isset($trans_dets->credit_debit_sts) && $trans_dets->credit_debit_sts!='' && $trans_dets->credit_debit_sts==0){?>
												<span class="payments-status" data-toggle="tooltip" data-original-title="Debit">Debit</span>
											<?php }else{?>
												<span class="payments-status" data-toggle="tooltip" data-original-title="Credit">Credit</span>
											<?php } ?>
										</div>
										<div class="col text-center">
											<span class="payment-amaount"><?php if(isset($trans_dets->trans_fees) && $trans_dets->trans_fees!='' && $trans_dets->trans_fees>0){echo $this->config->item('amt_currencies_array_config')[$trans_dets->account_cur]['csign'].' '.$trans_dets->trans_fees;}else{ echo '&ndash;';}?></span>
										</div>
										<div class="col">
											<span class="payment-amaount"><?php echo $this->config->item('amt_currencies_array_config')[$trans_dets->account_cur]['csign'].' '.$trans_dets->total_trans_amt;?></span>
											<span class="currency">(<?php echo $this->config->item('amt_currencies_array_config')[$trans_dets->account_cur]['name'];?>)</span>
										</div>
									</div>
								</a>
							</div>
							<?php } ?> 
							 
						</div>
						<!-- Transaction List End -->

				</div>
				<!-- All Transactions End -->
			</div>
			<!-- Middle End -->
		</div>
	</div>
</div>