<div class="nk-content">
   <div class="container-xl wide-lg">
      <div class="row">
         <div class="col-lg-12">
            <ul class="pagination">
               <li class="page-item">
                  <!-- <a href="javascript:history.back()">Go back</a> -->
                  <a class="btn btn-primary btn-sm" href="#">Transactions</a>
               </li>
            </ul>
            <hr>
            <br>
         </div>
         <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>User 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->getAll('transaction')) > 0):?>
                        <?php foreach($user->getAll('transaction') 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 $user_id?></a></td>

                              <td><?php echo $row->amount?></td>
                              <td><?php echo $row->type?></td>
                              <td><?php echo $row->reference?></td>
                              <td><?php echo $row->status?></td>
                              <td><?php echo $row->date?></td>
                           </tr>
                        <?php endforeach;?>
                     <?php endif?>
                  </tbody>
                  <!-- <tr colspan='3'><td><a href="dashboard?users">veiw all</a></td></tr> -->
               </table>
            </div>
         </div>
      </div>
   </div>
</div> 

