 <div class="content">

   <div class="card">

    <div class="card-header">

      <h4 class="card-title">Fund Requests</h4>

    </div>

    <div class="card-body">

         <?php  if($this->session->flashdata()) { ?>

                    <div class="alert alert-info"><?php  echo $this->session->flashdata("response");?> </div>

               <?php } ?> 

      <div class="table-responsive">



        <?php if($data) { ?>        

          <table class="table">

            <thead class=" text-primary">  



              <tr>

                <th>User Id</th>

                <th>Username</th>

                <th>Transaction Id</th>

                <th>Amount</th>

                <th>Status</th>

                <th>Screenshot</th>

              </tr>

            </thead>

            <tbody>

              <?php foreach ($data as $value) { ?>

                <tr>

                  <td><?= $value["user_id"]; ?></td>

                  <td><?= $value["username"]; ?></td>

                  <td><?= $value["transection_id"]; ?></td>

                  <td><?= $value["amount"]; ?></td>

                  <td><?= $value["status"] ? 'Approved': 'Not Approved'; ?></td>

                  <td><img src="<?= base_url()."/uploads/files/deposits/{$value["user_id"]}/{$value["slip"]} ?>"></td>

                  <?php if(!$value["marked"]) {?>

                <td><div class="row text-center"> <div class="col-md-12" style="margin-bottom: 10px">

                    <a class="btn btn-info" href='<?= base_url()."admin/approve_funds?id={$value["id"]}"; ?>'>Yes</a></div>

                     <div class="col-md-12">

                    <a class="btn btn-info" href='<?= base_url()."admin/disapprove_funds/{$value["id"]}"; ?>'>No</a> 

                  </div>

                  </td>

                  <?php } ?>

                </tr>

              <?php } ?>

            </tbody>

          </table>

        <?php } ?>

      </div>

    </div>

  </div>

</div>

