

<?php $__env->startSection('content'); ?>

<style>
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 140px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 150%;
  left: 50%;
  margin-left: -75px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}
</style>
	<div style="display:none;">
<input type="text" value=" <?php echo e(route('home')); ?>?invitecode=<?php echo e(auth()->user()->refCode); ?>" id="myInput">
</div>



	
	
<script>
function myFunction() {
  var copyText = document.getElementById("myInput");
  copyText.select();
  copyText.setSelectionRange(0, 99999);
  navigator.clipboard.writeText(copyText.value);
  
  var tooltip = document.getElementById("myTooltip");
  tooltip.innerHTML = "Copied "  ;
}

function outFunc() {
  var tooltip = document.getElementById("myTooltip");
  tooltip.innerHTML = "Copy";
}
</script>







<body class="huiBg">
<div class="top">
    <div class="topTit">Team</div>
</div>
<div class="team-main">
    <div class="team-inner">
        <div class="team-totalNum">
            <ul>
                <li>
                    <h3>      <?php echo e(refTotalCount($user->id)); ?></h3>
                    <p>Total Member</p>
                </li>
                <li>
                    <h3>  <?php echo e($general->cur_sym); ?><?php echo e(showAmount(refTotalDeposit($user->id))); ?></h3>
                    <p>Team Recharge</p>
                </li>
                <li>
                    <h3> <?php echo e($general->cur_sym); ?><?php echo e(showAmount(refTotalWithdraw($user->id))); ?></h3>
                    <p>Team withdrawal</p>
                </li>
                <li>
                    <h3><?php echo e(refTodayCount($user->id)); ?></h3>
                    <p>Today Valid</p>
                </li>

            </ul>
        </div>
        <div class="team-code">
            <div class="team-code-top">
                <div class="code-tit">Invitation Code</div>
                <div class="team-code-copy" style="display: flex" data-clipboard-text="">
                    <div class="team-code-input"><span><?php echo e(auth()->user()->refCode); ?></span></div>
                    <div class="copy">Copy</div>
                </div>
            </div>
            <div class="team-code-btm">
                <div class="team-code-left">
                    <div class="code-tit">Invitation Link</div>
                    <div class="team-code-copy" data-clipboard-text="">
                        <div class="team-code-input" style=" color: #9e9aa8">  <?php echo e(route('home')); ?>?invitecode=<?php echo e(auth()->user()->refCode); ?></div>
                        <div id="myTooltip"      onclick="myFunction()" onmouseout="outFunc()"  class="copy"  >Copy</div>
                    </div>
                </div>
            </div>
        </div>
        
        
        
        <div class="teamLvs">
            <ul>
                <li>
                    <div class="teamLvLe">
                        <img src="<?php echo e(asset ('core/img/lv.png')); ?>" alt="">
                        <span>B</span>
                    </div>
                    <div class="teamLvMask">
                        <div class="teamLvMaskList">
                            <div class="teamLvMaskLi">
                                <img src="<?php echo e(asset ('core/img/team_1.png')); ?>" alt="">
                                <dl>
                                    <dt>  <?php echo e($general->cur_sym); ?><?php echo e(showAmount(teamDeposit($user->id, 1))); ?></dt>
                                    <dd>Accumulated revenue</dd>
                                </dl>
                            </div>
                            <div class="teamLvMaskLi">
                                <img src="<?php echo e(asset ('core/img/team_2.png')); ?>" alt="">
                                <dl>
                                    <dt><?php echo e(teamSize($user->id, 1)); ?></dt>
                                    <dd>Total People</dd>
                                </dl>
                            </div>
                        </div>
                    </div>
                    <a href="<?php echo e(route('user.referrals.teams', 1)); ?>">Details</a>
                </li>
                <li>
                    <div class="teamLvLe">
                        <img src="<?php echo e(asset ('core/img/lv.png')); ?>" alt="">
                        <span>C</span>
                    </div>
                    <div class="teamLvMask">
                        <div class="teamLvMaskList">
                            <div class="teamLvMaskLi">
                                <img src="<?php echo e(asset ('core/img/team_1.png')); ?>" alt="">
                                <dl>
                                    <dt><?php echo e($general->cur_sym); ?><?php echo e(showAmount(teamDeposit($user->id, 2))); ?></dt>
                                    <dd>Accumulated revenue</dd>
                                </dl>
                            </div>
                            <div class="teamLvMaskLi">
                                <img src="<?php echo e(asset ('core/img/team_2.png')); ?>" alt="">
                                <dl>
                                    <dt><?php echo e(teamSize($user->id, 2)); ?></dt>
                                    <dd>Total People</dd>
                                </dl>
                            </div>
                        </div>
                    </div>
                    <a href="<?php echo e(route('user.referrals.teams', 2)); ?>">Details</a>
                </li>
                <li>
                    <div class="teamLvLe">
                        <img src="<?php echo e(asset ('core/img/lv.png')); ?>" alt="">
                        <span>D</span>
                    </div>
                    <div class="teamLvMask">
                        <div class="teamLvMaskList">
                            <div class="teamLvMaskLi">
                                <img src="<?php echo e(asset ('core/img/team_1.png')); ?>" alt="">
                                <dl>
                                    <dt><?php echo e($general->cur_sym); ?><?php echo e(showAmount(teamDeposit($user->id, 3))); ?></dt>
                                    <dd>Accumulated revenue</dd>
                                </dl>
                            </div>
                            <div class="teamLvMaskLi">
                                <img src="<?php echo e(asset ('core/img/team_2.png')); ?>" alt="">
                                <dl>
                                    <dt><?php echo e(teamSize($user->id, 3)); ?></dt>
                                    <dd>Total People</dd>
                                </dl>
                            </div>
                        </div>
                    </div>
                    <a href="<?php echo e(route('user.referrals.teams', 3)); ?>">Details</a>
                </li>
            </ul>
        </div>
    </div>
</div>



<?php $__env->stopSection(); ?>

<?php echo $__env->make($activeTemplate . 'layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/robotgpt/public_html/core/resources/views/templates/invester/user/referrals.blade.php ENDPATH**/ ?>