  <div class="main-content">



   <div class="page-content">

     <div class="container-fluid">





     <div class="card">

       <div class="card-body"> 

        <div class="row">

        <h4 class="card-title"> Transfer CC</h4>



     </div>

     <br>

     <div class="row">



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

         echo Helpers::showFlash($this->session->flashdata("response"));

       } ?>

     </div>

        <form method="post" action="" >





          <div class="form-group row">

            <label for="example-text-input" class="col-sm-4 col-form-label ">Username</label>

            <div class="col-sm-8"><input class="form-control" type="text" name="username" placeholder="Username" value=""></div>

          </div>

          <div class="form-group row">

            <label for="example-text-input" class="col-sm-4 col-form-label ">Amount</label>

            <div class="col-sm-8"><input class="form-control" type="text" name="amount" placeholder="Amount" value=""></div>

          </div>  



          <div class="row">

            <div class="col-lg-4 ">

              <button class="btn btn-primary w-md waves-effect waves-light" type="submit">Update</button>

            </div>

          </div>

          <br>



      </form> 



      <div class="row">

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

            <h4 class="mt-0 header-title m-b-30">Transfered To</h4>

            <table class="table table-centered table-vertical table-nowrap">

              <thead>

                <tr>

                  <th>Sr. No.</th>

                  <th>To User</th>

                  <th>Amount</th>

                  <th>Date</th>

                </tr>

              </thead>

              <tbody>

                <?php $key=1; foreach ($data as $trans) { ?>

                  <tr>

                    <td><?= $key; ?></td>

                    <td><?php $user = Helpers::userdetails($trans["to_id"]); echo $user["username"]; ?></td>

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

                    <td><?= $trans["date"]; ?></td>

                  </tr>

                  <?php $key= $key+1;} ?>

                </tbody>

              </table>

            </div>

          </div>



    </div>

  </div>



</div>

</div>

</div>





