<html>
 <head> 
  <meta charset="utf-8"> 
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> 
  <title>Team11</title> 
  <link rel="stylesheet" href="/public/site/layui/css/layui.css"> 
  <link rel="stylesheet" href="/public/site/css/swiper-bundle.min.css"> 
  <link rel="stylesheet" href="/public/site/css/common.css">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/layui/2.5.7/css/layui.min.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@9/swiper-bundle.min.css" />

  <style>

        .invite_btn{
            width: 47%;
            height: 40px;
            text-align: center;
            line-height: 40px;
            background: #396ED1;
            border-radius: 100px 100px 100px 100px;
            cursor: pointer;
        }
        .copy_link_btn{
            font-family: Arial, Arial;
            font-weight: 700;
            font-size: 14px;
            color: #FFFFFF;

        }
        .qr_code_btn{
            font-family: Arial, Arial;
            font-weight: 700;
            font-size: 14px;
            color: #FFFFFF;
            background: #29BE71;

        }
        .label{
            font-family: Arial, Arial;
            font-weight: 400;
            font-size: 14px;
            color: #95FCBE;
            line-height: 22px;
        }
        .value{
            font-family: Arial, Arial;
            font-weight: 700;
            font-size: 24px;
            color: #FFFB00;
            line-height: 28px;
        }
        .common_card .title{
            padding-left: 10px;
            font-family: Arial, Arial;
            font-weight: 700;
            font-size: 18px;
            color: #0F7A5A;
            height: 30px;
            line-height: 30px;
            display: flex;
            justify-content:space-between ;
        }
        .reward_card{
            height: auto;
            background-image: url("/public/site/img/tasks/bg.png?t=222");
            background-size: 100%;
            background-repeat: no-repeat;
            border-radius: 15px;
            padding-top: 40px;
        }

        .reward_icon{
            height: 30px;
            width: 30px;
        }
        .reward_card .title{
            padding-left: 15px;
            font-family: Arial, Arial;
            font-weight: 400;
            font-size: 18px;
            color: #333333;
        }
        .reward_card .label{
            font-family: Arial, Arial;
            font-weight: 400;
            font-size: 14px;
            color: #333333;
            line-height: 16px;
        }
        .reward_card .value{
            font-family: Arial, Arial;
            font-weight: 400;
            font-size: 16px;
            color: #333333;
            line-height: 18px;
        }
        .reward_card .content{
            margin-bottom: 15px;
            margin-top: unset;
            width: 100%;
        }
        .reward_text{
            margin-top: 10px;
            font-family: Arial, Arial;
            font-weight: 400;
            font-size: 14px;
            color: #666666;
            line-height: 24px;
        }
        .swiper{
            /*padding: 15px;*/
        }
        .swiper-container {
            width: 100%;
            height: 186px;
            margin: 10px auto;
        }
        .swiper-slide {
            width: 140px;
            height: 170px;
            background: linear-gradient( 180deg, #E6FFEF 0%, #FFFFFF 100%);
            border-radius: 12px 12px 12px 12px;
            padding: 10px;
            margin: auto;
        }
        .team_title{
            font-family: Arial, Arial;
            font-weight: 400;
            font-size: 14px;
            color: #248947;
            margin-top: 5px;
        }
        .team_invite{
            height: 32px;
            background: #FFFFFF;
            box-shadow: 0px 4px 10px 0px rgba(53,155,90,0.1);
            border-radius: 10px 10px 10px 10px;
            margin-top: 10px;
            line-height: 32px;
            font-family: Arial, Arial;
            font-weight: 400;
            font-size: 13px;
            color: #369758;
        }
        .team_invite img{ height:20px;width: 20px;margin:0 10px }
        .team_btn{
            display: inline-block;
            width: 100%;
            height: 32px;
            line-height: 32px;
            background: #359B5A;
            box-shadow: 0px 4px 10px 0px rgba(53,155,90,0.1);
            border-radius: 10px 10px 10px 10px;
            font-family: Arial, Arial;
            font-weight: 400;
            font-size: 18px;
            color: #FFFFFF;
            text-align: center;
            margin-top: 10px;
        }
        .team_value{
            font-family: Arial, Arial;
            font-weight: 400;
            font-size: 18px;
            color: #369758;
            margin-top: 10px;
        }
        .team_label{
            font-family: Arial, Arial;
            font-weight: 400;
            font-size: 14px;
            color: #248947;
            margin-top: 10px;
        }
         /*.swiper {
      width: 100%;
      height: 186px;
      margin: 10px auto;
    }

    .swiper-slide {
      width: 140px;
      height: 170px;
      background: linear-gradient(180deg, #E6FFEF 0%, #FFFFFF 100%);
      border-radius: 12px;
      padding: 10px;
      margin: auto;
    }

    .team_title {
      font-family: Arial, Arial;
      font-weight: 400;
      font-size: 14px;
      color: #248947;
      margin-top: 5px;
    }

    .team_invite {
      height: 32px;
      background: #FFFFFF;
      box-shadow: 0px 4px 10px 0px rgba(53, 155, 90, 0.1);
      border-radius: 10px;
      margin-top: 10px;
      line-height: 32px;
      font-family: Arial;
      font-weight: 400;
      font-size: 13px;
      color: #369758;
    }

    .team_invite img {
      height: 20px;
      width: 20px;
      margin: 0 10px;
    }

    .team_value {
      font-family: Arial;
      font-weight: 400;
      font-size: 18px;
      color: #369758;
      margin-top: 10px;
    }

    .team_label {
      font-family: Arial;
      font-weight: 400;
      font-size: 14px;
      color: #248947;
      margin-top: 10px;
    }

    .team_btn {
      display: inline-block;
      width: 100%;
      height: 32px;
      line-height: 32px;
      background: #359B5A;
      box-shadow: 0px 4px 10px 0px rgba(53, 155, 90, 0.1);
      border-radius: 10px;
      font-family: Arial;
      font-size: 18px;
      color: #FFFFFF;
      text-align: center;
      margin-top: 10px;
    }*/
    </style> 
 </head> 
 <body class="common_body"> 
  <div class="common_header common_header_order" style="height: 150px;"> 
   <a href="javascript:history.back(-1)" class="back position"> <p class="btn"><i class="layui-icon layui-icon-left layui-font-20"></i></p> Team11 </a> 
   <a href="/help" style="position:absolute;top:15px; right:15px;height: 36px;width: 36px;background: #20C57A;border-radius: 12px 12px 12px 12px;border: 1px solid #7DD8A2;"> <img src="/public/site/img/common/service.png" style="height:22px;width: 22px;padding-top: 8px;padding-left: 8px "> </a> 
   <div style="padding: 10px 20px;"> 
    <p class="label">Total Commission Rate</p> 
    <p class="value" style="margin-top: 10px">36%</p> 
   </div> 
  </div> 
  <div style=" margin-bottom: 100px;position: relative;top: -80px"> 
   <div class="common_card" style="margin: 15px;"> 
    <div class="flex_space"> 
     <div> 
      <p class="value" style="margin-bottom: 10px;color: #0F7A5A">36%</p> 
      <p class="label" style="color: #666666">Total Commission Rate</p> 
     </div> 
     <div>  
      <p class="value" style="margin-bottom: 10px;color: #0F7A5A">{{$team_size}}</p> 
      <p class="label" style="color: #666666">Invite Number</p> 
     </div> 
    </div> 
   </div> 
   <div class="swiper" style="margin-bottom: 0px"> 
    <div class="swiper-container mySwiper swiper-initialized swiper-horizontal swiper-free-mode swiper-android swiper-backface-hidden"> 
     <div class="swiper-wrapper" id="swiper-wrapper-b1aed939f77518c6" aria-live="polite" style="transition-duration: 0ms; transition-delay: 0ms; transform: translate3d(-70px, 0px, 0px);"> 
      <div class="swiper-slide swiper-slide-prev" role="group" aria-label="1 / 3" style="margin-right: 10px;"> 
       <div class="team_title">
         LEVEL-01
       </div> 
       <div class="team_invite">
        <img src="/public/site/img/team/team.png">Valid {{$first_level_users->where('investor', 1)->count()}} / {{$first_level_users->count()}}
       </div> 
       <p class="team_value">R{{$levelTotalCommission1}}（30%）</p> 
       <p class="team_label">Commission（Rate）</p> 
       <div style="margin: auto;text-align: center"> 
        <a href="/member/1" class="team_btn">Team Members</a> 
       </div> 
      </div> 
      <div class="swiper-slide swiper-slide-active" role="group" aria-label="2 / 3" style="margin-right: 10px;"> 
       <div class="team_title">
         LEVEL-02
       </div> 
       <div class="team_invite">
        <img src="/public/site/img/team/team.png">Valid {{$second_level_users->where('investor', 1)->count()}} / {{$second_level_users->count()}}
       </div> 
       <p class="team_value">R{{$levelTotalCommission2}}（5%）</p> 
       <p class="team_label">Commission（Rate）</p> 
       <a href="/member/2" class="team_btn">Team Members</a> 
      </div> 
      <div class="swiper-slide swiper-slide-next" role="group" aria-label="3 / 3" style="margin-right: 10px;"> 
       <div class="team_title">
         LEVEL-03
       </div> 
       <div class="team_invite">
        <img src="/public/site/img/team/team.png">Valid {{$third_level_users->where('investor', 1)->count()}} / {{$third_level_users->count()}}
       </div> 
       <p class="team_value">R{{$levelTotalCommission3}}（1%）</p> 
       <p class="team_label">Commission（Rate）</p> 
       <a href="/member/3" class="team_btn">Team Members</a>
      </div> 
     </div> 
     <span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span>
    </div> 
   </div> 
   <!--<div class="common_card" style="margin:15px;margin-bottom: 0px">--> 
   <!--    <div class="flex_left">--> 
   <!--        <img class="reward_icon" src="/public/site/img/tasks/reward_icon.png">--> 
   <!--        <div class="title">--> 
   <!--            Reward Description--> 
   <!--        </div>--> 
   <!--    </div>--> 
   <!--    <p class="reward_text">--> 
   <!--        If your friend upgrades toVIP1 or above, you willreceive <strong style="font-size: 1.2rem;">R10</strong> rewards--> 
   <!--    </p>--> 
   <!--</div>--> 
  </div> 
  <div style="position: fixed;bottom: 0;left: 0;height: 70px;background: #FFFFFF;border-radius: 0px;width: 100%"> 
   <div class="flex_space" style="padding:15px;"> 
    <p class="invite_btn copy_link_btn" id="copy" onclick="copyLink('{{url('register').'?shareCode='.auth()->user()->ref_id}}')">Copy invitation link</p> 
    <p class="invite_btn qr_code_btn" id="poster">Invitation QR code</p> 
   </div> 
  </div> 
  <textarea style="height: 1px;opacity: 0" name="copyTxt" id="copyTxt" readonly>{{url('register').'?shareCode='.auth()->user()->ref_id}}</textarea> 
  <!--&lt;!&ndash;	底部内容-开始	  &ndash;&gt;--> 
  <!--<div class="footer_menu">

    <div class="content">
        <a  href="/" class="item ">
            <img src="/public/site/img/footer/home.png"/>
            <p>Home</p>
        </a>
        <a  href="/product" class="item ">
            <img src="/public/site/img/footer/invest.png"/>
            <p>Invest</p>
        </a>
        <a  href="/tasks" class="item position" style="">
            <p style="position:absolute;top: -12px;left: 0px;width: 100%">
                <img src="/public/site/img/footer/Tasks.png" style="display:inline-block;height: 45px;width: 45px;"/>
            </p>

        </a>
        <a  href="/blog" class="item " >
            <img src="/public/site/img/footer/mboard.png"/>
            <p>Blog</p>
        </a>

        <a href="/my" class="item ">
            <img src="/public/site/img/footer/account.png"/>
            <p>Account</p>
        </a>
    </div>
</div>--> 
  <!--&lt;!&ndash;	底部内容-结束	  &ndash;&gt;--> 
  <!-- body 末尾处引入 layui --> 
  <!-- Swiper JS -->
<script src="https://cdn.jsdelivr.net/npm/swiper@9/swiper-bundle.min.js"></script>
@include('alert-message')
<script>

    function copyLink(text) {
        const body = document.body;
        const input = document.createElement("input");
        body.append(input);
        input.style.opacity = 0;
        input.value = text.replaceAll(' ', '');
        input.select();
        input.setSelectionRange(0, input.value.length);
        document.execCommand("Copy");
        input.blur();
        input.remove();
        message('copy success')
    }
</script>

<script>
  const swiper = new Swiper('.mySwiper', {
    slidesPerView: 'auto',
    centeredSlides: true,
    freeMode: true,
    initialSlide: 1,
    spaceBetween: 10,
    pagination: {
      el: '.swiper-pagination',
      clickable: true,
    },
  });
</script>

</body>
</html>
