<section class="content">
   <div class="box">	
	<style>.fa-usd{font-size:13px; padding-right:1px;} th{vertical-align:top !important;}</style> 			   
  <div class="box-body row">
	<div class="col-xs-12 table-responsive">
	 <table class="table table-striped" id="table_recordtbl" style="font-size:15px;">
		<thead>
			<tr>
			  <th width="1%">#</th>
			  <th>Txn Id &amp; Date</th>
			  <th>Amount</th>
			  <th>Status</th>
			  <th>Fees</th>
			  <th>Cust. Name</th> 
			  <th>Reference #</th>
			  <th>Beneficiary Name</th>
			  <th>Beneficiary IBAN</th>
			  <th>Action</th>
			</tr>
		</thead>
		<tbody>
		<?php $i=1; foreach($transactions_listing as $row) { ?>
			<tr>
				<td><?php echo $i;?></td>
				<td nowrap="nowrap" style="font-weight:600;"><span id="td_txn_id_<?php echo $row->tid;?>"><?php echo $row->txn_id;?></span><small><?php echo date('d M Y',$row->txn_date);?></small></td> 	
				<td><?php echo $this->config->item('amt_currencies_array_config')[$row->account_cur]['ad_csign'].$row->total_trans_amt;?></td> 					
				<td style="font-weight:600;"><?php if($row->credit_debit_sts==1){echo 'Credit';}else{echo 'Debit';}?></td>
				<td style="letter-spacing:0.5px;"><?php if(isset($row->trans_fees) && $row->trans_fees!='' && $row->trans_fees>0){echo $this->config->item('amt_currencies_array_config')[$row->account_cur]['ad_csign'].$row->trans_fees;}else{echo '&ndash;';}?></td> 
				<td><?php echo $row->sender_user_name;?></td> 
				<td><?php if(isset($row->reference) && $row->reference!=''){ echo $row->reference; }else{ echo '&ndash;';}?></td> 
				<td><?php if(isset($row->bef_account_name) && $row->bef_account_name!=''){ echo $row->bef_account_name; }else{ echo '&ndash;';}?></td> 
				<td><?php if(isset($row->bef_iban_no) && $row->bef_iban_no!=''){ echo $row->bef_iban_no; }else{ echo '&ndash;';}?></td> 	
				<td nowrap="nowrap"><a class="pro_name" id="view_lnk_<?php echo $row->tid;?>" onclick="return transaction_details_modal('<?php echo $row->tid;?>');">View</a>
				<a style="padding-left:5px; color:#FF0000;" href="<?php echo base_url().$this->config->item('admin_directory_name');?>/transactions/delete?id=<?php echo $row->tid; ?>" onclick="return confirm('Are you sure you want to delete it?');"><i class="fa fa-trash"></i></a>
				</td>			
			</tr>
		<?php  $i++; } ?>          
		</tbody>                  
	</table>
</div>      
</div>    
</div>
<?php include(APPPATH.'views/Backend/transactions/call_details_modal.php');?>
<div class="clearfix"></div>
</section>
