Your IP : 18.118.166.45


Current Path : /home/lentoinv/finationglobal.com/account/
Upload File :
Current File : //home/lentoinv/finationglobal.com/account/index.php

<?php 
session_start(); ob_start();
?>
<!doctype html>
<html lang="en" dir="ltr">

    <head>
 
        <!-- META DATA -->
        <meta charset="UTF-8">
        <meta name='viewport' content='width=device-width, initial-scale=1.0, user-scalable=0'>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="description" content="Fination Global Services">
        <meta name="author" content="Fination Global Services">
        <meta name="keywords" content="">

        <!-- FAVICON -->
        <link rel="shortcut icon" type="image/x-icon" href="../assets/images/brand/favicon.ico" />

        <!-- TITLE -->
        <title>Dashboard</title>

        <!-- BOOTSTRAP CSS -->
        <link id="style" href="../assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" />

        <!-- STYLE CSS -->
        <link href="../assets/css/style.css" rel="stylesheet" />
        <link href="../assets/css/plugins.css" rel="stylesheet" />

        <!--- FONT-ICONS CSS -->
        <link href="../assets/css/icons.css" rel="stylesheet" />

    </head>

    <body class="app sidebar-mini ltr light-mode">

        <!-- GLOBAL-LOADER 
        <div id="global-loader">
            <img src="../assets/images/loader.svg" class="loader-img" alt="Loader">
        </div>-->
        <!-- /GLOBAL-LOADER -->

        <!-- PAGE -->
        <div class="page">
            <div class="page-main">

                <!-- app-Header -->
                <?php include('header.php');
             //$pro->autoLogActivation();
                //remove wallet 12 to 15
                //set stage = 1 where stage > 1
            //$pro->promoteUserToStage2All();
            //$pro->promoteUserToStage3All();
          // $pro->payMatrixBonusAllStage(3); //for 3,2, 2 and 3


               //stage 1, pack 5
           
 
                 ?>
                <!--/APP-SIDEBAR-->

                <!--app-content open-->
                <div class="main-content app-content mt-0">
                    <div class="side-app">

                        <!-- CONTAINER -->
                        <div class="main-container container-fluid">

                            <!-- PAGE-HEADER -->
                            <div class="page-header">
                                <div>
                                    <h1 class="page-title">Dashboard 
                                        <?php //$pro->stageUnpaidBonuses();
                                    ?></h1>
                                    <ol class="breadcrumb">
                                        <li class="breadcrumb-item"><a href="javascript:void(0);">Home</a></li>
                                        <li class="breadcrumb-item active" aria-current="page">Dashboard</li>
                                    </ol>
                                </div>
                                <div class="ms-auto pageheader-btn">
                                    <a href="fundwallet.php" class="btn btn-primary btn-icon text-white me-2">
                                        <span>
                                                <i class="fe fe-plus"></i>
                                            </span> Add Funds
                                    </a>
                                   <?php $type=userName($uid,'pack'); if($type==0){ ?>
                                    <a href="javascript:void(0);" class="btn btn-success btn-icon text-white activation">
                                        
                                        <span>
                                                <i class="fe fe-log-in"></i>
                                            </span> Activate Account
                                        
                                    </a>
                                <?php }elseif($type<50){ ?>
                                      <a href="javascript:void(0);" class="btn btn-success btn-icon text-white activation">
                                        
                                        <span>
                                                <i class="fe fe-log-in"></i>
                                            </span> Upgrade Account
                                        
                                    </a>
                               <?php }  ?>
                                <?php //echo json_encode($pro->stageTeamHeads($uidx)) ?>


                                </div>

                            </div>
                            <!-- PAGE-HEADER END -->


                            <div class="row">
                                <?php // $sql = $db->query("SELECT DISTINCT email FROM user WHERE pack=50");
             // while($row = mysqli_fetch_assoc($sql)){echo $row['email'].PHP_EOL; } ?>
                    <div class="col-xl-12"><marquee behavior="" direction=""><h3>NOTE: OUR CURRENT NAIRA TO DOLLAR  RATE IS NGN<?php $rate = sqLx('setup','sn',1,'ntod_d'); echo number_format($rate) ?>/USD</h3></marquee></div>

                    <?php $cu = isset($_GET['currency'])?$_GET['currency']:'USD'; ?> 

                    <!-- <form method="get" onchange="submit()">Currency: <label><input type="radio" name="currency" <?php if($cu=='USD'){echo 'checked';} ?> value="USD"> USD</label> <label><input type="radio" name="currency" <?php if($cu=='NGN'){echo 'checked';} ?> value="NGN"> NGN</label></form> -->

                    <?php if($cu=='NGN'){?>
                                <div class="col-sm-12 col-md-6 col-lg-6 col-xl-3">

                                    <div class="card custom-card ">
                                        <div class="card-header">
                                            <h6 class="mb-2">Property Sales Commissions</h6>
                                        </div>
                                        <div class="card-body pt-0 ps-0 pe-0">
                                            
                                            <div class="row sales-product-infomation pb-0 mb-0 mx-auto wd-100p mt-3">
                                                <div class="col-md-6 col justify-content-center text-center">
                                                    
                                                    <h4 class="mb-1 fw-bold">₦<?= number_format($pro->wallet($uid,16)*$rate) ?></h4>
                                                    <div class="d-flex justify-content-center ">
                                                        <p class="text-muted mb-0">Cash</p>
                                                    </div>
                                                </div>
                                                <div class="col-md-6 col text-center float-end">
                                                   
                                                    <h4 class="mb-1 fw-bold">₦<?= number_format($pro->walletPoint($uid)*$rate) ?></h4>
                                                    <div class="d-flex justify-content-center ">
                                                        <p class="text-muted mb-0">Incentive</p>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
<div class="col-sm-12 col-md-6 col-lg-6 col-xl-3">
                                    <div class="card">
                                        <div class="card-body">
                                            <div class="card-order">
                                                <h6 class="mb-2">Account Balance</h6>
                                                <h2 class="text-end ">
                                                    <i class="fa fa-dollar icon-size float-start text-primary text-primary-shadow"></i><span class="text-primary">₦<?= number_format($pro->wallet($uid)*$rate,2) ?></span></h2>
                                                <p class="mb-0">
                                                <?php if(userName($uid,'naira')==1){ ?>
                                                    NGN Balance<span class="float-end">₦<?= number_format($pro->walletnaira($uid)) ?></span>
                                                    <?php }else{ ?>
                                                        Fund Received<span class="float-end">₦<?= number_format(abs($pro->wallet($uid,1)),2) ?></span>
                                                         <?php }  ?>    
                                                
                                            
                                            </p>
                                            </div>
                                        </div>
                                    </div>
                                </div><!-- COL END -->
                                <div class="col-sm-12 col-md-6 col-lg-6 col-xl-3">
                                    <?php 
                                   
                                    ?>
                                    <div class="card ">
                                        <div class="card-body">
                                            <div class="card-widget">
                                                <h6 class="mb-2">Total Withdrawal</h6>
                                                <h2 class="text-end"><i class="mdi mdi-cube icon-size float-start text-success text-success-shadow"></i><span class="text-success">₦<?= number_format(abs($pro->wallet($uid,1))*$rate,2) ?></span></h2>
                                                <p class="mb-0">Transfered<span class="float-end">₦<?= number_format(abs($pro->wallet($uid,2))*$rate) ?></span></p>
                                            </div>
                                        </div>
                                    </div>
                                </div><!-- COL END -->
                                <div class="col-sm-12 col-md-6 col-lg-6 col-xl-3">
                                    <div class="card">
                                        <div class="card-body">
                                            <div class="card-widget">
                                                <h6 class="mb-2">Total Earned</h6>
                                                <h2 class="text-end"><i class="icon-size mdi mdi-poll-box   float-start text-warning text-warning-shadow"></i><span class="text-warning">₦<?= number_format($pro->walletRange($uid,11,17)*$rate) ?></span></h2>
                                                <p class="mb-0">Matrix Bonus<span class="float-end">₦<?= number_format($pro->wallet($uid,12)*$rate) ?></span></p>
                                            </div>
                                        </div>
                                    </div>
                                </div><!-- COL END -->

<?php } else{?>
                                <div class="col-sm-12 col-md-6 col-lg-6 col-xl-3">

                                    <div class="card custom-card ">
                                        <div class="card-header">
                                            <h6 class="mb-2">Property Sales Commissions</h6>
                                        </div>
                                        <div class="card-body pt-0 ps-0 pe-0" style="display:block;" id="usd" onclick="this.style.display='none';document.getElementById('ngn').style.display='block';">
                                            
                                            <div class="row sales-product-infomation pb-0 mb-0 mx-auto wd-100p mt-3" >
                                                <div class="col-md-6 col justify-content-center text-center">
                                                   
                                                    <h3 class="mb-1 fw-bold">$<?= number_format($pro->wallet($uid,16),2) ?></h3>
                                                    <div class="d-flex justify-content-center ">
                                                        <p class="text-muted mb-0">Cash <i class="fa fa-shuffle"></i></p>
                                                    </div>
                                                </div>
                                                <div class="col-md-6 col text-center float-end">
                                                   
                                                    <h3 class="mb-1 fw-bold"><?= number_format($pro->walletPointAll($uid),2) ?></h3>
                                                    <div class="d-flex justify-content-center ">
                                                        <p class="text-muted mb-0">Incentive Point</p>
                                                    </div>
                                                </div>
                                            </div>
                                           
                                        </div>
                                        <div class="card-body pt-0 ps-0 pe-0" style="display:none;" id="ngn" onclick="this.style.display='none';document.getElementById('usd').style.display='block';">
                                            
                                            <div class="row sales-product-infomation pb-0 mb-0 mx-auto wd-100p mt-3" >
                                                <div class="col-md-6 col justify-content-center text-center">
                                                   
                                                    <h3 class="mb-1 fw-bold">₦<?= number_format($pro->walletNaira($uid,16)) ?></h3>
                                                    <div class="d-flex justify-content-center ">
                                                        <p class="text-muted mb-0">Cash <i class="fa fa-shuffle"></i></p>
                                                    </div>
                                                </div>
                                                <div class="col-md-6 col text-center float-end">
                                                   
                                                    <h3 class="mb-1 fw-bold"><?= number_format($pro->walletPointAll($uid),2) ?></h3>
                                                    <div class="d-flex justify-content-center ">
                                                        <p class="text-muted mb-0">Incentive Point</p>
                                                    </div>
                                                </div>
                                            </div>
                                           
                                        </div>
                                    </div>
                                </div>
<div class="col-sm-12 col-md-6 col-lg-6 col-xl-3">
                                    <div class="card">
                                        <div class="card-body">
                                            <div class="card-order">
                                                <h6 class="mb-2">Account Balance</h6>
                                                <h2 class="text-end ">
                                                    <i class="fa fa-dollar icon-size float-start text-primary text-primary-shadow"></i><span class="text-primary">$<?= number_format($pro->wallet($uid),2) ?></span></h2>
                                                <p class="mb-0">
                                                <?php if(userName($uid,'naira')==1){ ?>
                                                    NGN Balance<span class="float-end">NGN<?= number_format($pro->walletnaira($uid)) ?></span>
                                                    <?php }else{ ?>
                                                        Fund Received<span class="float-end">$<?= number_format(abs($pro->wallet($uid,1)),2) ?></span>
                                                         <?php }  ?>    
                                                
                                            
                                            </p>
                                            </div>
                                        </div>
                                    </div>
                                </div><!-- COL END -->
                                <div class="col-sm-12 col-md-6 col-lg-6 col-xl-3">
                                    <?php 
                                   
                                    ?>
                                    <div class="card ">
                                        <div class="card-body">
                                            <div class="card-widget">
                                                <h6 class="mb-2">Total Withdrawal</h6>
                                                <h2 class="text-end"><i class="mdi mdi-cube icon-size float-start text-success text-success-shadow"></i><span class="text-success">$<?= number_format(abs($pro->wallet($uid,1)),2) ?></span></h2>
                                                <p class="mb-0">Fund Transfered<span class="float-end">$<?= number_format(abs($pro->wallet($uid,2)),2) ?></span></p>
                                            </div>
                                        </div>
                                    </div>
                                </div><!-- COL END -->
                                <div class="col-sm-12 col-md-6 col-lg-6 col-xl-3">
                                    <div class="card">
                                        <div class="card-body">
                                            <div class="card-widget">
                                                <h6 class="mb-2">Total Earned</h6>
                                                <h2 class="text-end"><i class="icon-size mdi mdi-poll-box   float-start text-warning text-warning-shadow"></i><span class="text-warning">$<?= number_format($pro->walletRange($uid,11,17),2) ?></span></h2>
                                                <p class="mb-0">Matrix Bonus<span class="float-end">$<?= number_format($pro->wallet($uid,12),2) ?></span></p>
                                            </div>
                                        </div>
                                    </div>
                                </div><!-- COL END -->

<?php } ?>

                               
                            </div>
                            <!-- ROW END -->
                            <!-- ROW -->
                            
                            <div class="row">
                                <div class="col-sm-12 col-md-12 col-lg-12 col-xl-9">
               <div class="card">
                                        <div class="card-header">
                                            <h3 class="card-title">Announcement </h3>
                                        </div>
                                        <div class="card-body p-0">

                                            <div id="carouselExampleIndicators" class="carousel slide">
  <div class="carousel-indicators">
    <?php $i=0; $sql = $db->query("SELECT * FROM news ORDER BY sn DESC LIMIT 5 ");
                               while($row = mysqli_fetch_assoc($sql)){ $e=$i++;
                               $active = $e==0 ? 'active' : ''; ?>
    <button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="<?= $e ?>" class="<?= $active ?>" aria-current="true" aria-label="Slide <?= $e+1 ?>"></button>
    <?php } ?>
  </div>
  <div class="carousel-inner">
    <?php $i=1; $sql = $db->query("SELECT * FROM news ORDER BY sn DESC LIMIT 3 ");
                               while($row = mysqli_fetch_assoc($sql)){ $e=$i++;
                               $active = $e==1 ? 'active' : ''; ?>
    <div class="carousel-item <?= $active ?>">
      <img src="uploads/<?= $row['photo'] ?>" class="d-block w-100" alt="...">
       <!-- <div class="carousel-caption d-none d-md-block">
        <h5><?= $row['title'] ?></h5>
        <p><?= $row['note'] ?></p>
      </div> -->
    </div>
<?php } ?>
  
  </div>
  <button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="prev">
    <span class="carousel-control-prev-icon" aria-hidden="true"></span>
    <span class="visually-hidden">Previous</span>
  </button>
  <button class="carousel-control-next" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="next">
    <span class="carousel-control-next-icon" aria-hidden="true"></span>
    <span class="visually-hidden">Next</span>
  </button>
</div>
                                        </div>
                                    </div>
                                </div>
                                <!-- COL END -->
                                <div class="col-sm-12 col-md-12 col-lg-12 col-xl-3">
                                    <div class="card ">
                                        <div class="card-body">
                                            <div class="card-widget">
                                                <h6 class="mb-2">Total Investment</h6>
                                                <h2 class="text-end"><i class="fa fa-cart-plus icon-size float-start text-danger text-danger-shadow"></i><span class="text-danger">$<?= number_format(abs($pro->wallet($uid,7)),2) ?></span></h2>
                                                <p class="mb-0">Automated Savings<span class="float-end">$<?= number_format(abs($pro->wallet($uid,6)),2) ?></span></p>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="card custom-card ">
                                        <div class="card-header">
                                            <h3 class="card-title">Team Strength</h3>
                                        </div>
                                        <div class="card-body pt-0 ps-0 pe-0">
                                            
                                            <div class="row sales-product-infomation pb-0 mb-0 mx-auto wd-100p mt-3">
                                                <div class="col-md-6 col justify-content-center text-center">
                                                    
                                                    <h3 class="mb-1 fw-bold"><?= sqL1('user','sponsor',$user) ?></h3>
                                                    <div class="d-flex justify-content-center ">
                                                        <p class="text-muted mb-0">Referrals</p>
                                                    </div>
                                                </div>
                                                <div class="col-md-6 col text-center float-end">
                                                   
                                                    <h3 class="mb-1 fw-bold"><?= $pro->allTeam($uidx) ?></h3>
                                                    <div class="d-flex justify-content-center ">
                                                        <p class="text-muted mb-0">Total Team</p>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="card custom-card ">
                                        <div class="card-header">
                                            <h3 class="card-title">Referral Links</h3>
                                        </div>
                                        <div class="card-body table-responsive">
                                    <table><tr><td><?php if(userName($uid,'stage')<1){ echo 'Not Available';}else{ ?> <strong>Registration <a onclick="copyToClipboard('https://finationglobal.com/r/<?= $user ?>')"><i class="fa fa-copy"></i></a> </strong><br>finationglobal.com/r/<?= $user
                                 ?>  <br><hr>
                                 <strong>Landing Page <a  onclick="copyToClipboard('https://finationglobal.com/h/<?= $user ?>')"><i class="fa fa-copy"></i></a> </strong><br>
                                 finationglobal.com/h/<?= $user
                                 ?> <?php } ?></td></tr></table>
                                            </div>
                                        </div>
                                 <div class="card custom-card ">
                                        <div class="card-header">
                                            <h3 class="card-title">Leadership Position</h3>
                                        </div>
                                        <div class="card-body text-muted">
                                             <?php if(userName($uid,'stage')==0){ ?>
                                    <a href="javascript:void(0);" class="btn btn-success btn-icon text-white activation">
                                        
                                        <span>
                                                <i class="fe fe-log-in"></i>
                                            </span> Activate Account
                                        
                                    </a>
                                <?php }else{ ?>
                                    <h3><img class="pr-3" src="uploads/<?= $pro->stageHead1($stage) ?>" width="30"> <?= strtoupper($pro->stageTitle($stage)) ?></h3>
                                <?php } ?>
                                            </div>
                                        </div>
                                </div>
                                <!-- COL END -->
                            </div>
                            <!-- ROW-1 END -->

<?php 
                                    $a=0; $join = date('Y-m'); $top = []; $team=[];
                                    $sql = $db->query("SELECT * FROM user WHERE pack=50 "); 
             while($row = $sql->fetch_assoc()) { $user = $row['user'];
             $s = $db->query("SELECT * FROM user WHERE pack=50 AND sponsor='$user' AND created LIKE '%$join%' ");
                $n = mysqli_num_rows($s);
                if($n>0){$a +=1; $top[] = $user; $team[] = $n; }
            }
            if($a>0){
                                      ?>                            

     <div class="row">
                                <div class="col-12 col-sm-12">
                                    <div class="card ">
                                        <div class="card-header">
                                            <h3 class="card-title mb-0"><?=date('F Y')?> Top Achievers</h3>
                                        </div>
                                        <div class="card-body">
                                            <div class="table-responsive">
                                                <table id="data-table" class="table table-bordered text-nowrap mb-0">
                                                    <thead class="border-top">
                                                        <tr>
                                                            <th class="bg-transparent border-bottom-0 w-5">SN</th>
                                                            <th class="bg-transparent border-bottom-0">User</th>
                                                            <th class="bg-transparent border-bottom-0">Username</th>
                                                            
                                                            <th class="bg-transparent border-bottom-0">Team</th>
                                                            
                                                        </tr>
                                                    </thead>
                                                    <tbody>
            <?php $i=0;                
  while($i < count($top)) { $e = $i++; $user = $top[$e];
                                       
                                        ?>
                                                        <tr class="border-bottom">
                                                            <td class="text-muted fs-15 fw-semibold text-center"><?= $e+1 ?>.</td>
                                                            <td class="text-muted fs-15 fw-semibold"><?= userName2($user) ?>
                                                            </td>
                                                            <td><?= $user ?> </td>
                                                            <td><?= $team[$e] ?> </td>
                                                            
                                                           
                                                        </tr>
                                                    <?php } ?>

                                                      
                                                    </tbody>
                                                </table>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!-- COL END -->
                            </div>

<?php } ?>
                            <!-- ROW-5 -->
                            <div class="row">
                                <div class="col-12 col-sm-12">
                                    <div class="card ">
                                        <div class="card-header">
                                            <h3 class="card-title mb-0">Recent Transactions</h3>
                                        </div>
                                        <div class="card-body">
                                            <div class="table-responsive">
                                                <table id="data-table" class="table table-bordered text-nowrap mb-0">
                                                    <thead class="border-top">
                                                        <tr>
                                                            <th class="bg-transparent border-bottom-0 w-5">S/n</th>
                                                            <th class="bg-transparent border-bottom-0">Amount</th>
                                                            <th class="bg-transparent border-bottom-0">Date</th>
                                                            <th class="bg-transparent border-bottom-0">Remark</th>
                                                            <th class="bg-transparent border-bottom-0">Status</th>
                                                            <th class="bg-transparent border-bottom-0">Receipt</th>
                                                            
                                                        </tr>
                                                    </thead>
                                                    <tbody>
            <?php
                                    $i=1;
                                    $sql = $db->query("SELECT * FROM wallet WHERE id='$uid' ORDER BY sn DESC LIMIT 50 "); 
                                    while($row = $sql->fetch_assoc()) { $e = $i++;
                                       
                                        ?>
                                                        <tr class="border-bottom">
                                                            <td class="text-muted fs-15 fw-semibold text-center"><?= $e ?>.</td>
                                                            <td class="text-muted fs-15 fw-semibold">$<?= number_format(abs($row['cos']),2) ?>
                                                            </td>
                                                            <td><?= substr($row['created'], 0,10) ?> </td>
                                                            <td><?= $row['remark'] ?> (<?= userName($row['opt'],'user') ?>)</td>
                                                            <td class="text-success fs-15 fw-semibold"><?= $pro->walletStatus($row['status']) ?></td>
                                                           <td><a href="receipt?receipt=<?=$row['trno']?>&type=1">Receipt</a></td>
                                                        </tr>
                                                    <?php } ?>

                                                      
                                                    </tbody>
                                                </table>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!-- COL END -->
                            </div>



                            <div class="row">
                                <div class="col-12 col-sm-12">
                                    <div class="card ">
                                        <div class="card-header">
                                            <h3 class="card-title mb-0">Recent Transactions</h3>
                                        </div>
                                        <div class="card-body">
                                            <div class="table-responsive">
                                                <table id="data-table" class="table table-bordered text-nowrap mb-0">
                                                    <thead class="border-top">
                                                        <tr>
                                                            <th class="bg-transparent border-bottom-0 w-5">S/n</th>
                                                            <th class="bg-transparent border-bottom-0">Amount</th>
                                                            <th class="bg-transparent border-bottom-0">Date</th>
                                                            <th class="bg-transparent border-bottom-0">Remark</th>
                                                            <th class="bg-transparent border-bottom-0">Status</th>
                                                            <th class="bg-transparent border-bottom-0">Receipt</th>
                                                            
                                                        </tr>
                                                    </thead>
                                                    <tbody>
            <?php
                                    $i=1;
                                    $sql = $db->query("SELECT * FROM walletnaira WHERE id='$uid' ORDER BY sn DESC LIMIT 50 "); 
                                    while($row = $sql->fetch_assoc()) { $e = $i++;
                                       
                                        ?>
                                                        <tr class="border-bottom">
                                                            <td class="text-muted fs-15 fw-semibold text-center"><?= $e ?>.</td>
                                                            <td class="text-muted fs-15 fw-semibold">NGN<?= number_format(abs($row['cos']),2) ?>
                                                            </td>
                                                            <td><?= substr($row['created'], 0,10) ?> </td>
                                                            <td><?= $row['remark'] ?> (<?= userName($row['opt'],'user') ?>)</td>
                                                            <td class="text-success fs-15 fw-semibold"><?= $pro->walletStatus($row['status']) ?></td>
                                                           <td><a href="receipt?receipt=<?=$row['trno']?>&type=2">Receipt</a></td>
                                                        </tr>
                                                    <?php } ?>

                                                      
                                                    </tbody>
                                                </table>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!-- COL END -->
                            </div>
                            <!-- ROW-5 END -->
                        </div>
                        <!-- CONTAINER END -->
                    </div>
                </div>
                <!--app-content end-->
            </div>

      

            <!-- FOOTER -->
<?php include('footer.php'); ?>
            <!-- FOOTER END -->
        </div>


<form method="post" >
                    <div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
                        <div class="modal-dialog">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <h3 class="modal-title" id="exampleModalLabel">Account Activation</h3>
                                    <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
                                </div>
                                <div class="modal-body text-center">
                                    <h5>
                                       One-time Membership Subscription Cost
                                    </h5>
                                    <div class="row">
                                        <?php $plan = [5,25,50];
                                        $pn = ['Regular','Pro','VIP'];
                                        $i=0;
                                        while($i<3){$e=$i++; 
                                        $st = $type>=$plan[$e] ? 'Disabled' : '';
                                        $act = $type>=$plan[$e] ? 'Activated' : 'Activate Now'; ?>
                              <div class="col-md-4 border border-primary">
                                    <h4><?=$pn[$e]?></h3>
                                 <h2>$<?=$plan[$e]?></h2>
            <button type="submit" value="<?=$plan[$e]?>" name="AccountActivation" class="fund btn btn-primary btn-block" <?=$st?>><?=$act?></button>
                             </div>
                         <?php } ?>
                                      
</div>
                                    
                                </div>
                                
                            </div>
                        </div>
                    </div>


                </form>

        <!-- BACK-TO-TOP -->
        <a href="#top" id="back-to-top"><i class="fa fa-angle-up"></i></a>

        <!-- JQUERY JS -->
        <script src="../assets/js/jquery.min.js"></script>

        <!-- BOOTSTRAP JS -->
        <script src="../assets/plugins/bootstrap/js/popper.min.js"></script>
        <script src="../assets/plugins/bootstrap/js/bootstrap.min.js"></script>

        <!-- SPARKLINE JS-->
        <script src="../assets/js/jquery.sparkline.min.js"></script>

        <!-- CHART-CIRCLE JS-->
        <script src="../assets/js/circle-progress.min.js"></script>

        <!-- CHARTJS CHART JS-->
        <script src="../assets/plugins/chart/Chart.bundle.js"></script>
        <script src="../assets/plugins/chart/utils.js"></script>

        <!-- PIETY CHART JS-->
        <script src="../assets/plugins/peitychart/jquery.peity.min.js"></script>
        <script src="../assets/plugins/peitychart/peitychart.init.js"></script>

        <!-- INTERNAL SELECT2 JS -->
        <script src="../assets/plugins/select2/select2.full.min.js"></script>

        <!-- INTERNAL Data tables js-->
        <script src="../assets/plugins/datatable/js/jquery.dataTables.min.js"></script>
        <script src="../assets/plugins/datatable/js/dataTables.bootstrap5.js"></script>
        <script src="../assets/plugins/datatable/dataTables.responsive.min.js"></script>

        <!-- ECHART JS-->
        <script src="../assets/plugins/echarts/echarts.js"></script>

        <!-- SIDE-MENU JS-->
        <script src="../assets/plugins/sidemenu/sidemenu.js"></script>

        <!-- Sticky js -->
        <script src="../assets/js/sticky.js"></script>

        <!-- SIDEBAR JS -->
        <script src="../assets/plugins/sidebar/sidebar.js"></script>

        <!-- Perfect SCROLLBAR JS-->
        <script src="../assets/plugins/p-scroll/perfect-scrollbar.js"></script>
        <script src="../assets/plugins/p-scroll/pscroll.js"></script>
        <script src="../assets/plugins/p-scroll/pscroll-1.js"></script>

        <!-- APEXCHART JS -->
        <script src="../assets/js/apexcharts.js"></script>

        <!-- INDEX JS -->
        <script src="../assets/js/index1.js"></script>

        <!-- Color Theme js -->
        <script src="../assets/js/themeColors.js"></script>

        <!-- swither styles js -->
        <script src="../assets/js/swither-styles.js"></script>

        <!-- CUSTOM JS -->
        <script src="../assets/js/custom.js"></script>

                    <script type="text/javascript">
                $(function() {

                    $('.activation').on('click', function() {
                    modal = $('#exampleModal');
                    modal.modal('show');

                    //alert(ref)
                    })
                })

       function copyToClipboard(text) {

    var input = document.createElement('input');
    input.setAttribute('value', text);
    document.body.appendChild(input);
    input.select();
    var result = document.execCommand('copy');
    document.body.removeChild(input);
   alert('link copied');
}
            </script>

    </body>

</html>

?>