  <div class="main-content">



   <div class="page-content">

     <div class="container-fluid">



       <div class="row">

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

            <div class="card card-user">

              <div class="card-header">

                <h5 class="card-title">Edit User</h5>

              </div>

              <div class="card-body">

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

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

               <?php } 

               $sponsor = MemberHelper::getsponsordetails($data["id"]);

               $earning = MemberHelper::ewallet($data["id"]);

                  $deposit = MemberHelper::user_wallet($data["id"]);

                  $pack =  MemberHelper::checkpackbought($data["id"]);



               ?> 

               <p>Sponsor name: <?= $sponsor["username"] ?> </p>

               <p>Earning Balance: <?= $earning ?></p>

               <p>Topup Balance: <?= $deposit ?></p>

               <p>Package: <?= $pack ? "Active" : "Dormant" ?></p>

                <form method="POST" action="<?= base_url(). 'admin/edit_status'; ?>">

                  

                  

                  <div class="row">

                    <div class="col-md-6 pr-1">

                      <div class="form-group">

                        <label>Nickname</label>

                        <input type="text" class="form-control" name="full_name" placeholder="Name" value="<?= $data['first_name']; ?>" disabled>

                      </div>

                    </div>

                    <div class="col-md-6 pr-1">

                      <div class="form-group">

                        <label>Operations</label>

                        <select name="status" class="form-control">

                          <option>Select Status</option>

                          <option value="0">Block</option>

                          <option value="1">Unblock</option>

                        </select>

                      </div>

                    </div>

                  </div>

                              

                  <div class="row">

                    <div class="update ml-auto mr-auto">

                      <input type="hidden" name="id" value="<?= $data['id']; ?>">

                      <button type="submit" class="btn btn-primary btn-round">Update Profile</button>

                    </div>

                  </div>

                </form>



                



                <!-- second -->

              </div>

            </div>

          </div>

        </div>

  </div>

</div>







