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

    <link rel="stylesheet" href="<?php echo e(asset('static/index/v1/css/order.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset('static/index/v1/css/team.css')); ?>">

    <body>
        <div class="headerbg flex_be">
            <div class="flex_sta">
                <img class="back" src="<?php echo e(asset('uploads/material/back.png')); ?>" alt="">
                <p class="pagetitle">My Team</p>
            </div>
            <div class="flex_sta icons">
                <a href="<?php echo e(route('user.referrals')); ?>"><img src="<?php echo e(asset('uploads/material/toteamicon.png')); ?>" alt=""></a>
                <a class="sharebutton"><img src="<?php echo e(asset('uploads/material/toshareicon.png')); ?>" alt=""></a>
            </div>
        </div>



        

        <a href="<?php echo e($general->telegram_chat_id); ?>" class="kfimg" style="z-index: 999">
            <img src="<?php echo e(asset('uploads/material/kf.png')); ?>" alt="">
        </a>
        <input type="hidden" id="TOKEN" value="b15b4900853ee628e8b8b7f64149ad7a">
        <div class="centeritem">
            <div class="flex_be">
                <div class="orderuser">
                    <img class="orderbg" src="<?php echo e(asset('uploads/material/teambg.png')); ?>" alt="">
                    <div class="orderinfo">
                        <p class="userid">ID <span>|</span><?php echo e($user->mobile); ?></p>
                        <p class="userbalance">Total Balance</p>
                        <h5><?php echo e($general->cur_sym); ?><?php echo e(number_format($user->bonus_balance)); ?></h5>
                    </div>
                </div>
                <div class="greenbox">
                    <img class="balanceicon" src="<?php echo e(asset('uploads/material/icon.png')); ?>" alt="">
                    <p class="already">My Referral</p>
                    <h5><span class="header_active_number_count"><?php echo e($active_ref); ?></span><span>/<span
                                class="header_total_number_count"><?php echo e($level1->count() + $level2->count() + $level3->count()); ?></span></span> </h5>
                    <div class="incomebox">
                        <div>
                            <span>Total Income</span>
                            <p class="header_total_money_number"><?php echo e($general->cur_sym); ?><?php echo e(number_format($level1_bonus+$level2_bonus+$level3_bonus)); ?></p>
                        </div>
                        <div class="bordertop">
                            <span>Today’s Income</span>
                            <p class="header_today_money_number"><?php echo e($general->cur_sym); ?><?php echo e(number_format($level1_bonus_today+$level2_bonus_today+$level3_bonus_today)); ?></p>
                        </div>
                    </div>
                </div>
            </div>
            <div class="due">You obtain
                <?php echo e($general->lv1); ?>% of your level 1 referals' deposit amount as commission,
                <?php echo e($general->lv2); ?>% of level 2's and
                <?php echo e($general->lv3); ?>% of Level 3's.</div>
        </div>
        <div class="detailbox">
            <h5>Record</h5>
            <div class="">


                <div class="teamlevel flex_be level1">
                    <div class="levelleft">
                        <img src="<?php echo e(asset('uploads/material/level.png')); ?>" alt="">
                        <p class="levelname">Level-01 <?php echo e($general->lv1); ?>%</p>
                        <h6 class="today_income_number"><?php echo e($general->cur_sym); ?><?php echo e(number_format($level1_bonus_today)); ?></h6>
                        <p class="commission">Today Commission</p>
                        <h6 class="total_income_number"><?php echo e($general->cur_sym); ?><?php echo e(number_format($level1_bonus)); ?></h6>
                        <p class="commission">Total Commission</p>
                    </div>
                    <div class="levelright flex_clbe">
                        <div class="righttopcontent">
                            <img src="<?php echo e(asset('uploads/material/teamreferral.png')); ?>" alt="">
                            <p class="levelname">My Referral</p>
                            <h6><span class="level_active_number"><?php echo e($level1active->count()); ?></span> <span>/<span
                                        class="level_total_number"><?php echo e($level1->count()); ?></span></span> </h6>
                            
                        </div>
                        <a class="detailbtn flex_be" href="<?php echo e(route('user.referrals.lv1')); ?>">
                            <p>Detail</p>
                            <img src="<?php echo e(asset('uploads/material/detail1.png')); ?>" alt="">
                        </a>
                    </div>
                </div>


                <div class="teamlevel flex_be level2">
                    <div class="levelleft">
                        <img src="<?php echo e(asset('uploads/material/level.png')); ?>" alt="">
                        <p class="levelname">Level-02 <?php echo e($general->lv1); ?>%</p>
                        <h6 class="today_income_number"><?php echo e($general->cur_sym); ?><?php echo e(number_format($level2_bonus_today)); ?></h6>
                        <p class="commission">Today Commission</p>
                        <h6 class="total_income_number"><?php echo e($general->cur_sym); ?><?php echo e(number_format($level2_bonus)); ?></h6>
                        <p class="commission">Total Commission</p>
                    </div>
                    <div class="levelright flex_clbe">
                        <div class="righttopcontent">
                            <img src="<?php echo e(asset('uploads/material/teamreferral.png')); ?>" alt="">
                            <p class="levelname">My Referral</p>
                            <h6><span class="level_active_number"><?php echo e($level2active->count()); ?></span> <span>/<span
                                class="level_total_number"><?php echo e($level2->count()); ?></span></span> </h6>
                            
                        </div>
                        <a class="detailbtn flex_be" href="<?php echo e(route('user.referrals.lv2')); ?>">
                            <p>Detail</p>
                            <img src="<?php echo e(asset('uploads/material/detail1.png')); ?>" alt="">
                        </a>
                    </div>
                </div>



                <div class="teamlevel flex_be level3">
                    <div class="levelleft">
                        <img src="<?php echo e(asset('uploads/material/level.png')); ?>" alt="">
                        <p class="levelname">Level-03 <?php echo e($general->lv3); ?>%</p>
                        <h6 class="today_income_number"><?php echo e($general->cur_sym); ?><?php echo e(number_format($level3_bonus_today)); ?></h6>
                        <p class="commission">Today Commission</p>
                        <h6 class="total_income_number"><?php echo e($general->cur_sym); ?><?php echo e(number_format($level3_bonus)); ?></h6>
                        <p class="commission">Total Commission</p>
                    </div>
                    <div class="levelright flex_clbe">
                        <div class="righttopcontent">
                            <img src="<?php echo e(asset('uploads/material/teamreferral.png')); ?>" alt="">
                            <p class="levelname">My Referral</p>
                            <h6><span class="level_active_number"><?php echo e($level3active->count()); ?></span> <span>/<span
                                        class="level_total_number"><?php echo e($level3->count()); ?></span></span> </h6>
                            
                        </div>
                        <a class="detailbtn flex_be" href="<?php echo e(route('user.referrals.lv3')); ?>">
                            <p>Detail</p>
                            <img src="<?php echo e(asset('uploads/material/detail1.png')); ?>" alt="">
                        </a>
                    </div>
                </div>



            </div>
        </div>
        <div class="footer flex_be">
            <a href="<?php echo e(route('user.home')); ?>">
                <img src="<?php echo e(asset('uploads\material\20250411\f009397ad7700e00d7a6d8189fefe4d3.png')); ?>" alt="">
                <p>Home</p>
            </a>
            <a href="<?php echo e(route('user.investment.log')); ?>">
                <img src="<?php echo e(asset('uploads\material\20250411\d6c4a41a832f1a3372d4d80ecfbd0ce3.png')); ?>" alt="">
                <p>Order</p>
            </a>
            <a href="<?php echo e(route('user.profile.setting')); ?>">
                <img src="<?php echo e(asset('uploads\material\20250411\fa0eed652edb4df4c344aa74ef9328ac.png')); ?>" alt="">
                <p>Me</p>
            </a>

        </div>

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

<?php echo $__env->make('layouts.users', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Applications/MAMP/htdocs/photowatt/core/resources/views/templates/basic/user/referrals.blade.php ENDPATH**/ ?>