<?php 
	include_once("../view/header-footer/InnerHeader.php");   
	include_once("leftMenu.php");   
?>
                
<style type="text/css">
		.content {
			position: absolute;
			top: 50%;
			left: 50%;
			transform: translate(-50%, -50%);
			width: 350px;
			height: 460px;
			text-align: center;
			background-color: #fff;
			box-sizing: border-box;
			padding: 10px;
			z-index: 100;
			display: none;
			/*to hide popup initially*/
		}
		
		.close-btn {
			position: absolute;
			right: 20px;
			top: 15px;
			background-color: black;
			color: white;
			border-radius: 50%;
			padding: 4px;
		}
	</style>      
      
                <script>
                  
                  function myFunction(id) 
                  { 
                    var temp = $("<input>");
                    $("body").append(temp);
                    temp.val($('#referral_link_left').text()).select();
                    document.execCommand("copy");
                    temp.remove();
                    
                  }
                  
                   function myFunction1(id) 
                  { 
                    var temp = $("<input>");
                    $("body").append(temp);
                    temp.val($('#right_link_left').text()).select();
                    document.execCommand("copy");
                    temp.remove();
                    
                  }
                
                </script>

<div class="page-wrapper">
<div class="page-content">

<div class="row">
<div class="col-lg-6 col-md-12 col-sm-12">
<div class="demo_detail_section" style="background:#28c76f !important;">
<div class="detail_welcome_section">
<h3 class="welcome_heading">Welcome Back, <?php echo $userNam->nm." (".$_SESSION['userId'].")"; ?> </h3>
            <div style="color:#ffff">Package  : &#8377;<?php echo ($PckAmt*2);?> On <?php echo end($UI__DChstrP)->Tdate;?></div>
            <div style="color:#ffff">Joining Date : <?php echo $user->RegOn;?></div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-12 col-sm-12">
<div class="demo_detail_section" style="background:#7367f0 !important;">
<div class="detail_welcome_section">
<h3 class="welcome_heading">Daily Balance </h3>

<h5> 
    &#8377;<?php echo $Tamnt;?>
</h5>
</div>
</div>
</div>
<div class="col-lg-3 col-md-12 col-sm-12">
<div class="demo_detail_section" style="background:#7367f0 !important;">
<div class="detail_welcome_section">
<h3 class="welcome_heading">Level Balance</h3>

<h5>
        &#8377;<?php echo  number_format((float)($LevelI), 2, '.', '');?>
</h5>
</div>
</div>
</div>    
</div> 



<div class="row">
<div class="col-lg-6 col-md-12 col-sm-12">
<div class="demo_detail_section new" style="background:#009688 !important;">
<div class="detail_welcome_section">
<div class="inner_side_content">
<div class="data_detail_inner">
    <a href="Payout.php">
    <p>Pay Money </p>
    <h4>Click To Payout</h4>
    </a>
</div>
<div class="data_detail_inner_icon">

</div>
</div>
</div>
</div>
</div>
<div class="col-lg-6 col-md-12 col-sm-12">
<div class="demo_detail_section new" style="background:#009688 !important;">
<div class="detail_welcome_section">
<div class="inner_side_content">
<div class="data_detail_inner">
<a href="addFund.php">
    <p>Add Money </p>
    <h4>Click To Fund Adding</h4>
    </a>
 </div>
<div class="data_detail_inner_icon">

</div>
</div>
</div>
</div>
</div>
</div>


<div class="row">  
<div class="col-lg-6 col-md-12 col-sm-12">
<div class="demo_detail_section new" style="background:#00005c !important;">
<div class="detail_welcome_section">
<div class="inner_side_content">
<div class="data_detail_inner">
<p>Pay Wallet</p>
<h4>&#8377;<?php echo  number_format((float)(GetNBal()), 2, '.', '');?></h4>
</div>
<div class="data_detail_inner_icon">

</div>
</div>
</div>
</div>
</div>


<div class="col-lg-6 col-md-12 col-sm-12"> 
<div class="demo_detail_section new" style="background:#00005c !important;">
<div class="detail_welcome_section">
<div class="inner_side_content">
<div class="data_detail_inner">
<p>Spot Balance </p>
<h4>&#8377;<?php echo ($TodaysBalance);?></h4>
</div>
<div class="data_detail_inner_icon"> 
</div>
</div>
</div>
</div>
</div>



<div class="col-lg-6 col-md-12 col-sm-12"> 
<div class="demo_detail_section new" style="background:#00005c !important;">
<div class="detail_welcome_section">
<div class="inner_side_content">
<div class="data_detail_inner">
<p>My Active Team </p>
<h4><?php echo $ActTeam;?></h4>
</div>
<div class="data_detail_inner_icon"> 
</div>
</div>
</div>
</div>
</div>



<div class="col-lg-6 col-md-12 col-sm-12"> 
<div class="demo_detail_section new" style="background:#00005c !important;">
<div class="detail_welcome_section">
<div class="inner_side_content">
<div class="data_detail_inner">
<p>My Direct Team </p>
<h4><?php echo ($MyDteam);?></h4>
</div>
<div class="data_detail_inner_icon"> 
</div>
</div>
</div>
</div>
</div>


<div class="col-lg-6 col-md-12 col-sm-12"> 
<div class="demo_detail_section new" style="background:#00005c !important;">
<div class="detail_welcome_section">
<div class="inner_side_content">
<div class="data_detail_inner">
<p>My Team </p>
<h4><?php echo ($myTT);?></h4>
</div>
<div class="data_detail_inner_icon"> 
</div>
</div>
</div>
</div>
</div>



<div class="col-lg-6 col-md-12 col-sm-12"> 
<div class="demo_detail_section new" style="background:#00005c !important;">
<div class="detail_welcome_section">
<div class="inner_side_content">
<div class="data_detail_inner">
<p>Level Business </p>
<h4><?php echo ($NBusinessAmt);?></h4>
</div>
<div class="data_detail_inner_icon"> 
</div>
</div>
</div>
</div>
</div>


</div>
 

<div class="row">
    
    

<div class="col-lg-6 col-md-12 col-sm-12">
<div class="demo_detail_section new" style="background:#00005c !important;"> 
<div class="detail_welcome_section">
<div class="inner_side_content">
<div class="data_detail_inner">
<p>My Bussiness</p>
<h4>&#8377;<?php echo $NBusinessAmt;?></h4>
</div>
<div class="data_detail_inner_icon">

</div>
</div>
</div>
</div>
</div>

<div class="col-lg-6 col-md-12 col-sm-12">
<div class="demo_detail_section new" style="background:#00005c !important;"> 
<div class="detail_welcome_section">
<div class="inner_side_content">
<div class="data_detail_inner">
<p>Top Up History</p>
<h4>&nbsp;<?php //if($UI__Fundtransfer->availableFund=='') echo 0; else echo $UI__Fundtransfer->availableFund;?></h4>
</div>
<div class="data_detail_inner_icon">

</div>
</div>
</div>
</div>
</div>
</div>

<div class="row">
<div class="col-lg-6 col-md-12 col-sm-12">
<div class="demo_detail_section new" style="background:#009688 !important;">
<div class="detail_welcome_section">
<div class="inner_side_content">
<div class="data_detail_inner">
<p>Total Used Balance </p>
<h4>&#8377;<?php echo ($UsedBal);?></h4>
</div>
<div class="data_detail_inner_icon">

</div>
</div>
</div>
</div>
</div>
<div class="col-lg-6 col-md-12 col-sm-12">
<div class="demo_detail_section new" style="background:#009688 !important;">
<div class="detail_welcome_section">
<div class="inner_side_content">
<div class="data_detail_inner">
<p>Team Business</p>
<h4>&#8377; <?php echo $NBusinessAmt;?></h4>
 </div>
<div class="data_detail_inner_icon">

</div>
</div>
</div>
</div>
</div>
</div>

<div class="row">
<!--div class="col-lg-6 col-md-12 col-sm-12">
<div class="demo_detail_section" id="section_tema_detail_data">
<h2> Team Section</h2>
<div class="user_list_team">
<ul>
<li><i class="fa fa-users" style="color:;"></i>
<span>0</span>Total Directs </li>
</ul>
</div>
<div class="user_list_team">
<ul>
<li><i class="fa fa-user" style="color:#147e14;"></i>
<span>0</span>Active Directs </li>
</ul>
</div>
<div class="user_list_team">
<ul>
<li><i class="fa fa-users" style="color:;"></i>
<span>0</span>Inactive Directs </li>
</ul>
</div>
<div class="user_list_team">
<ul>
<li><i class="fa fa-users" style="color:#147e14;"></i>
<span>0</span>Total generation </li>
</ul>
</div>
<div class="user_list_team">
<ul>
<li><i class="fa fa-users" style="color:;"></i>
<span>0</span>Active generation </li>
</ul>
</div>
<div class="user_list_team">
<ul>
<li><i class="fa fa-user-plus" style="color:;"></i>
<span>0</span>Left team </li>
</ul>
</div>
<div class="user_list_team">
<ul>
<li><i class="fa fa-user-plus" style="color:;"></i>
<span>0</span>Right team </li>
</ul>
</div>
<div class="user_list_team">
<ul>
<li><i class="fa fa-users" style="color:;"></i>
<span>0</span>Matched </li>
</ul>
</div>
<div class="user_list_team">
<ul>
<li><i class="fa fa-users" style="color:;"></i>
<span>0</span>Carry </li>
</ul>
</div>

</div>
</div-->

<div class="col-lg-12 col-md-12 col-sm-12">
<div class="demo_detail_section" id="section_tema_detail_data">
<div class="card_new_body">
<div class="earn_refer_title">
<div class="user_eran_heading">
<h5>Refer Us &amp; Earn</h5>
<p>Use the bellow link to invite your friends.</p>
</div>

</div>
<div class="input-group card-bg-2 ">
 
 
<a class="form-control"  target="_blank" href="<?php echo ROOTPATH;?>/registration/default.php?RefId=<?php echo $_SESSION['userId']?>"> <?php echo ROOTPATH;?>/registration/default.php?RefId=<?php echo $_SESSION['userId']?> </a>
<a id="referral_link_left" style="display:none;"><?php echo ROOTPATH;?>/registration/default.php?RefId=<?php echo $_SESSION['userId']?></a>
<div class="input-group-append">
 
</div>
</div>   

<div class="user_invite" style="margin-top:5px;">
    <a href="javascript:void(0);" class="user_anchor" onclick="myFunction('referral_link_left');">Copy Referral</a>
</div> 
<br>  
    
    <span style="color:#fff;font-width:18px;">Withdraw Available In Between : 7:00 AM TO 10:00 AM</span>

</div>
</div>  

</div>
</div>

<br>
<br>
</div>
</div>


<div class="content">
		<div onclick="togglePopup()" class="close-btn">
			×
		</div> 
		<p> 
	        <img src="newpic1.jpg" />
		</p>
	</div> 

<script type="text/javascript">
	
		//$(".content").toggle();
		// Function to show and hide the popup
		function togglePopup() 
		{
			$(".content").toggle();
		}
</script>
	
<?php 
	include_once("../view/header-footer/footer.php");    
?> 