<?php 
//get my info using the id
$sql255="SELECT * from j_users WHERE 
j_id='".$row['j_recipient_id']."'"; //  
$result255 = runSQL($sql255);
$data25 = mysqli_fetch_array($result255);
$r_id = $data25['j_id'];
$r_username = $data25['j_username'];
$r_firstname = $data25['j_firstname'];
$r_lastname = $data25['j_lastname'];
$r_wallet = $data25['j_wallet']; 
$r_name = trim("$r_firstname $r_lastname");
?>


<li class="list-group-item">
	<h4 class="text-center">
		<a href="<?php echo $dir; ?>" class=""> 
			<img src="<?php echo $dir; ?>j_files/j_img/logo/logo.png" style="width:100px;"/>
		</a>
	</h4>
</li>


<li class="list-group-item">
	<span class="subject">Type</span>
	<br/>
	<b class="desc <?php if($row['j_type']=="credit"){ echo 'text-success'; }else{ echo 'text-danger'; } ?>">
		<?php echo $row['j_type']; ?> 
	</b> <b>[<?php echo $row['j_kind']; ?>]</b>
</li>

<li class="list-group-item">
	<span class="subject">Amount</span>
	<br/>
	<b class="desc">
		<?php echo amount_w_c($row['j_amount'],$row['j_currency']); ?> 
	</b>
</li>


<li class="list-group-item">
	<span class="subject">Balance after transaction</span>
	<br/>
	<b class="desc">
		<?php echo amount_w_c($row['j_bal'],$row['j_currency']); ?> 
	</b>
</li>



<li class="list-group-item">
	<span class="subject">Description</span>
	<br/>
	<b class="desc">
		<?php echo $row['j_desc']; ?> 
	</b>
</li>

<li class="list-group-item">
	<span class="subject">Payment Method</span>
	<br/>
	<b class="desc">
		<?php echo $row['j_gateway']; ?>
	</b>
</li>

<?php if(
	!empty($row['j_account_no'])
	|| !empty($row['j_bank'])
	|| !empty($row['j_account_name'])
	){ ?>
<li class="list-group-item">
	<span class="subject">Account Details</span>
	<br/>
	<b class="desc">
		<?php if(!empty($row['j_account_no'])){ echo $row['j_account_no']; echo "<br/>"; } ?>
		<?php if(!empty($row['j_bank'])){ echo $row['j_bank']; echo "<br/>"; } ?>
		<?php if(!empty($row['j_account_name'])){ echo $row['j_account_name']; echo "<br/>"; } ?>
	</b>
</li>
<?php } ?>


<li class="list-group-item">
	<span class="subject">Reference ID</span>
	<br/>
	<b class="desc">
		<?php echo $row['j_transact_id']; ?>
	</b>
</li>



<li class="list-group-item">
	<span class="subject">Date/Time</span>
	<br/>
	<b class="desc">
		<?php echo FULL_DATE($row['j_date']); ?>
	</b>
</li>
