<?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">
	<span class="subject">Type</span>
	<br/>
	<span class="desc <?php if($row['j_paid']>0){ echo 'text-danger'; }else{ echo 'text-primary'; } ?>">
		<?php echo $row['j_type']; ?> 
	</span> [<?php echo $row['j_kind']; ?>]
</li>


<li class="list-group-item">
	<span class="subject"> Disbursement Status</span>
	<br/>
	<span class="desc">
		<?php if($row['j_disburse']>0){ echo "<span class='text-success'>Paid</span>"; }else{ echo "<span class='text-warning'>Pending</span>"; } ?>
	</span>
</li>


<li class="list-group-item">
	<?php if($row['j_disburse']<1){ ?>
	<span class="subject"><?php echo $row['j_crypto']; ?> To Receive</span>
	<?php }else{ ?>
	<span class="subject"><?php echo $row['j_crypto']; ?>  Received</span>
	<?php } ?>
	<br/>
	<b class="desc">
		<?php echo num_format($row['j_amount_crypto']); ?> 
		<?php echo $row['j_crypto']; ?> 
	</b>
</li>

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

<li class="list-group-item">
	<span class="subject">Rate</span>
	<br/>
	<span class="desc">
		<?php echo $currency_code_in_use; echo num_format($row['j_amount_ngn']); ?> 
	</span>
</li>


<li class="list-group-item">
	<span class="subject">Charge</span>
	<br/>
	<span class="desc">
		<?php echo $currency_code_in_use; echo num_format($row['j_total_charge_ngn']); ?> 
	</span>
</li>

<li class="list-group-item">
	<span class="subject">Total Debit</span>
	<br/>
	<span class="desc">
		<?php echo $currency_code_in_use; echo num_format($row['j_amount']); ?> 
	</span>
</li>

<li class="list-group-item">
	<span class="subject">Balance</span>
	<br/>
	<span class="desc">
		<?php echo $currency_code_in_use; echo num_format($row['j_bal']); ?> 
	</span>
</li>


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


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



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