                            <div class="card">
                                
                                <?php 
                                
                                $sql4="SELECT * from j_pays WHERE j_deleted < 1 order by j_id desc limit 10"; //check 
                                $result4 = runSQL($sql4);
                                $count = mysqli_num_rows($result4);
                                if($count>0){
                                ?>
                                <div class="card-body">
                                    <div class="d-flex justify-content-between align-items-center">
                                        <h5 class="mb-0">Recent Transactions</h5>
                                        <div>
                                            <a href="<?php echo $dir; ?>payments-a/" class="btn btn-default btn-sm">View All</a> 
                                        </div>
                                    </div>
                                    <div class="m-t-30 table-responsive">
                                        <table class="table table-hover">
                                             
                                            <thead>
                                                <tr>
                                                <th>S/N</th>
                                                <th>Amount</th>
                                                 <th>Type </th>
                                                 <th>Date </th>
                                                 <th>Status</th>
                                               </tr>
                                            </thead>
                                             
                                            <tbody>
                                                <?php 
                                                $num = 1;
                                                while ($row = mysqli_fetch_array($result4)){
                                                $cd = get_cd($row['j_currency']);
                                                $currency_in_use = $cd[0];
                                                $currency_code_in_use = $cd[1];
                                                $currency_sort_in_use = $cd[2];
                                                ?>
                                                <tr>
                                                    <td> <?php echo $num++; ?>. </td>
                                                    
                                                    <td> <?php echo amount_w_c($row['j_amount'],$row['j_currency']); ?>  </td>
                                                     <td> <?php echo $row['j_type']; ?> [<?php echo $row['j_kind']; ?>] </td>
                                                     <td> <?php echo time_ago($row['j_date']); ?> </td>
													<td> <?php if($row['j_paid']>0){ echo "<span class='text-success'>Paid</span>"; }else{ echo "<span class='text-danger'>Unpaid</span>"; } ?> </td>

                                                </tr>
                                                <?php } ?>
                                                
                                            </tbody>
                                        </table>
                                        
                                    </div>
                                </div>
                                
                                
                                
                                <?php }else{ //no record ?> 
                                <div class="card-body">
                                    <div class="container">
                                        <div class="row">
                                             <div class="col-md-12" style="text-align:center;">
                                                <div class="avatar avatar-image avatar-lg avatar-red">
                                                    <i class="anticon anticon-close"></i>
                                                 </div>
                                                 <p class="text-center">
                                                     No transaction yet. 
                                                 </p>
                                             </div>
                                        </div>

                                    </div>
                                </div>
                                <?php } ?>
   
                            </div>