<div class="nk-content nk-content-fluid">
   <div class="container-xl wide-lg">
      <div class="nk-content-body">
         <div class="nk-block-head">
            <div class="nk-block-between-md g-4">
               <div class="nk-block-head-content">
                     <h2 class="nk-block-title fw-normal">All Transactions</h2>
                     <div class="nk-block-des">
                        <p>See full list of all transactions  you have made so far.</p>
                     </div>
               </div>
            </div>
         </div><!-- .nk-block-head -->
         <div class="nk-block nk-block-sm">
            <div class="tranx-list tranx-list-stretch card card-bordered">
               <div class='col-lg-12'>
                  <br>
                  <br>
                  <br>
                  <p style='text-align:center'>All Transactions </p>
                  <br>
                  <div class="table-responsive">
                     <table id="myTable" class="table table-bordered table-striped bg-white text-light">
                        <thead  style='font-size:13px'>
                           <tr>
                              <th>ID</th>
                              <th>Amount</th>
                              <th>Type</th>
                              <th>Reference</th>
                              <th>status</th>
                              <th>Date</th>
                           </tr>
                        </thead>
                        <tbody  style='font-size:13px'>
                           <?php if(count($user->getCurUser('transaction',25)) > 0):?>
                              <?php foreach($user->getCurUser('transaction',25) as $row):?>
                                 <?php 
                                    $amount = $row->amount;
                                    $id = $row->id;
                                    $user_id = $row->user_id;
                                 ?>
                                 <tr>
                                    <td><?php echo $row->id?></a></td>
                                    <td>$<?php echo number_format($row->amount)?></td>
                                    <td><?php echo $row->type?></td>
                                    <td><?php echo $row->remark?></td>
                                    <td><?php echo $row->status?></td>
                                    <td><?php echo $row->date?></td>
                                 </tr>
                              <?php endforeach;?>
                           <?php endif?>
                        </tbody>
                     </table>
                  </div>
               </div>
            </div>
         </div>  
      </div>
   </div>
</div>