<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'>International Transfer Request</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>Country</th>
                        <th>City</th>
                        <th>Bank</th>
                        <th>Account</th>
                        <th>Amount</th>
                        <th>Action</th>
                        <th>Date</th>
                     </tr>
                  </thead>
                  <tbody style='font-size:13px'>
                     <?php if(count($user->getAll('transfer_request')) > 0):?>
                        <?php foreach($user->getAll('transfer_request') 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 $row->country?></a></td>
                              <td><?php echo $row->city?></td>
                              <td><?php echo $row->bank_name?></td>
                              <td><?php echo $row->account_no?></td>

                              <td>$<?php echo number_format($row->amount)?></td>
                              <td><a class='btn btn-primary btn-sm' href='process/return.php?amount=<?php echo $amount?>&id=<?php echo $id?>&user_id=<?php echo $user_id?>'>Return</a></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> 

