<?php $__env->startSection('content'); ?>
    <style type="text/css">
        .topname {
            line-height: 46px;
            font-size: 14px;
            width: 75%;
            text-align: center;
            color: #fff;
            position: absolute;
            top: 0;
            right: 0;
            left: 0;
            bottom: 0;
            margin: auto;
            font-weight: bold;
        }


        .typeitem {
            float: left;
            width: 30.33%;
        }

        .over {
            border-bottom: 1px solid #fff;
        }
    </style>

    <body style="background-size: 100% auto; background:#000;">
        <div style="width: 100%; height: 100%; background: rgb(255, 255, 255); position: fixed; top: 0px; left: 0px; z-index: 99999; display: none;"
            id="loader">
            <div style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);">
                <div class="loader">
                    <img src="<?php echo e(asset('images/loader.gif')); ?>" style="width: 40px;">
                </div>
            </div>
        </div>
        <style>
            .colored {
                filter: invert(75%) sepia(30%) saturate(350%) hue-rotate(336deg) brightness(180%) contrast(90%);
            }


            /* .loader {
             --R: 20px;
             --g1: #514b82 96%, #0000;
             --g2: #ffffff 96%, #0000;
             width: calc(2*var(--R));
             aspect-ratio: 1;
             border-radius: 50%;
             display: grid;
             -webkit-mask: linear-gradient(#000 0 0);
             animation: l30 2s infinite linear;
            }
            .loader::before,
            .loader::after{
             content:"";
             grid-area: 1/1;
             width: 50%;
             background:
               radial-gradient(farthest-side,var(--g1)) calc(var(--R) + 0.866*var(--R) - var(--R)) calc(var(--R) - 0.5*var(--R)   - var(--R)),
               radial-gradient(farthest-side,var(--g1)) calc(var(--R) + 0.866*var(--R) - var(--R)) calc(var(--R) - 0.5*var(--R)   - var(--R)),
               radial-gradient(farthest-side,var(--g2)) calc(var(--R) + 0.5*var(--R)   - var(--R)) calc(var(--R) - 0.866*var(--R) - var(--R)),
               radial-gradient(farthest-side,var(--g1)) 0 calc(-1*var(--R)),
               radial-gradient(farthest-side,var(--g2)) calc(var(--R) - 0.5*var(--R)   - var(--R)) calc(var(--R) - 0.866*var(--R) - var(--R)),
               radial-gradient(farthest-side,var(--g1)) calc(var(--R) - 0.866*var(--R) - var(--R)) calc(var(--R) - 0.5*var(--R)   - var(--R)),
               radial-gradient(farthest-side,var(--g2)) calc(-1*var(--R))  0,
               radial-gradient(farthest-side,var(--g1)) calc(var(--R) - 0.866*var(--R) - var(--R)) calc(var(--R) + 0.5*var(--R)   - var(--R));
              background-size: calc(2*var(--R)) calc(2*var(--R));
              background-repeat :no-repeat;
            }
            .loader::after {
            transform: rotate(180deg);
            transform-origin: right;
            }

            @keyframes  l30 {
             100% {transform: rotate(-1turn)}
            }

            .image-filter {
                filter: hue-rotate(180deg) saturate(300%) brightness(120%);
            } */
        </style>
        <script>
            // Function to show the loader for 6 seconds
            function showLoaderFor2Seconds() {
                const loader = document.getElementById('loader');
                loader.style.display = 'block';
                setTimeout(() => {
                    loader.style.display = 'none';
                }, 400);
            }

            function showLoader() {
                const form = document.querySelector('form');
                form.addEventListener('submit', function(event) {
                    const submitButton = form.querySelector('button[type="submit"]');
                    submitButton.disabled = true;
                    submitButton.style.backgroundColor = '#ccc';
                });
            }

            document.addEventListener('DOMContentLoaded', showLoader);
            document.addEventListener('DOMContentLoaded', function() {
                // Get all <a> tags
                const links = document.querySelectorAll('aaaa');

                // Add click event listener to each <a> tag
                links.forEach(function(link) {
                    link.addEventListener('click', function(event) {
                        showLoaderFor2Seconds(); // Call the function to show the loader
                    });
                });
            });

            showLoaderFor2Seconds()
        </script>
        <div style="width: 100%; margin: 0 auto; background: #191A1F; border-bottom: 0px solid #000 " class="top">
            <div onclick="window.history.go(-1); return false;" style="float:left; text-align:left; line-height:46px;width:50%;" id="btnClose">
                <i class="layui-icon" style=" color:#fff; margin-left:12px; font-size:18px;  font-weight:bold;"></i>
            </div>
            <font class="topname">
                My team
            </font>
            <div style="float:right; text-align:right; line-height:46px;width:50%;">

            </div>
        </div>
        <div style=" max-width:450px; margin:0 auto;">
            <div
                style=" width: 100%; margin: 0 auto; margin-top: 55px; text-align: center; background: #191A1F; color: #fff; position: relative; height: auto; overflow: hidden;">
                <div class="typeitem over" id="1" onclick="toggleRecord(1)">
                    <div style="padding:10px;" id="number6">₦<?php echo e(number_format($level1_bonus,2)); ?></div>
                    <div style="padding:10px; padding-top:0px; font-size:12px;">Level 1(<font id="number3"><?php echo e($level1->count()); ?></font>)</div>
                </div>
                <div class="typeitem" id="2" onclick="toggleRecord(2)">
                    <div style="padding:10px;" id="number7">₦<?php echo e(number_format($level2_bonus,2)); ?></div>
                    <div style="padding: 10px; padding-top: 0px; font-size: 12px; ">Level 2(<font id="number4"><?php echo e($level2->count()); ?></font>)
                    </div>
                </div>
                <div class="typeitem" id="3" onclick="toggleRecord(3)">
                    <div style="padding:10px;" id="number8">₦<?php echo e(number_format($level3_bonus,2)); ?></div>
                    <div style="padding: 10px; padding-top: 0px; font-size: 12px; ">Level 3(<font id="number5"><?php echo e($level3->count()); ?></font>)
                    </div>
                </div>
            </div>
            <div style="width: 100%; margin: 0 auto; position: relative; margin-top: 10px; background: #191A1F; height: auto; overflow: hidden; padding-top: 10px;  "
                id="level1">
                <?php $__empty_1 = true; $__currentLoopData = $level1a; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <?php
                            $totalDeposit = \App\Models\Deposit::where('user_id', $item->id)->where('status',1)->first();
                        ?>
                        <div
                            style="height:auto; overflow:hidden; color:#333; background:#191A1F; margin:0 auto; width:100%; margin-top:10px;">
                            <div style="padding:5px; border-bottom: 1px solid #eee; height:auto; overflow:hidden;">
                                <div style="float:left; width:45%; margin-left:5%;">
                                    <div style="height:27px; line-height:27px;">
                                        <span
                                            style="padding:0px; padding-left:0px; padding-right:10px; border-radius:10px; color:#fff;">
                                            <?php echo e(Split_Hide_Name($item->mobile)); ?>

                                        </span>
                                    </div>
                                    <div style="height:27px; line-height:27px; font-size:12px; color:#888;">

                                        <?php echo e($item->created_at->format('Y-m-d h:i:s')); ?>

                                    </div>
                                </div>
                                <div style="float:left; width:45%; text-align:right; margin-right:5%;">
                                    <div style="height:27px; line-height:27px; font-size:12px; font-weight:200; color:#fff;">
                                        ₦ <?php echo e(number_format($totalDeposit->amount?? 0)); ?>

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

                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>

                        <div style="padding:2px; width:95%; margin:0 auto; margin-top:50px;">
                            <div style="border-radius: 5px; color:#fff; text-align:center; margin-top:35px;position:relative;">
                                <img src="<?php echo e(asset('customv2/history/imgs/no.png')); ?>" style=" width:100%;">
                                <br>
                            </div>
                        </div>

                    <?php endif; ?>

                <p style="text-align: center; padding: 20px; color: #fff">No more data</p>
            </div>

            <div style="width: 100%; margin: 0 auto; position: relative; margin-top: 10px; background: #191A1F; height: auto; overflow: hidden; padding-top: 10px; display: none;  "
                id="level2">
                <?php $__empty_1 = true; $__currentLoopData = $level2a; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                <?php
                            $totalDeposit = \App\Models\Deposit::where('user_id', $item->id)->where('status',1)->first();
                        ?>
                        <div
                            style="height:auto; overflow:hidden; color:#333; background:#191A1F; margin:0 auto; width:100%; margin-top:10px;">
                            <div style="padding:5px; border-bottom: 1px solid #eee; height:auto; overflow:hidden;">
                                <div style="float:left; width:45%; margin-left:5%;">
                                    <div style="height:27px; line-height:27px;">
                                        <span
                                            style="padding:0px; padding-left:0px; padding-right:10px; border-radius:10px; color:#fff;">
                                            <?php echo e(Split_Hide_Name($item->mobile)); ?>

                                        </span>
                                    </div>
                                    <div style="height:27px; line-height:27px; font-size:12px; color:#888;">

                                        <?php echo e($item->created_at->format('Y-m-d h:i:s')); ?>

                                    </div>
                                </div>
                                <div style="float:left; width:45%; text-align:right; margin-right:5%;">
                                    <div style="height:27px; line-height:27px; font-size:12px; font-weight:200; color:#fff;">
                                        ₦ <?php echo e(number_format($totalDeposit->amount?? 0)); ?>

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

                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>

                        <div style="padding:2px; width:95%; margin:0 auto; margin-top:50px;">
                            <div style="border-radius: 5px; color:#fff; text-align:center; margin-top:35px;position:relative;">
                                <img src="<?php echo e(asset('customv2/history/imgs/no.png')); ?>" style=" width:100%;">
                                <br>
                            </div>
                        </div>

                    <?php endif; ?>
                <p style="text-align: center; padding: 20px; color: #fff">No more data</p>
            </div>

            <div style="width: 100%; margin: 0 auto; position: relative; margin-top: 10px; background: #191A1F; height: auto; overflow: hidden; padding-top: 10px; display: none;  "
                id="level3">
                <?php $__empty_1 = true; $__currentLoopData = $level3a; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                <?php
                            $totalDeposit = \App\Models\Deposit::where('user_id', $item->id)->where('status',1)->first();
                        ?>
                        <div
                            style="height:auto; overflow:hidden; color:#333; background:#191A1F; margin:0 auto; width:100%; margin-top:10px;">
                            <div style="padding:5px; border-bottom: 1px solid #eee; height:auto; overflow:hidden;">
                                <div style="float:left; width:45%; margin-left:5%;">
                                    <div style="height:27px; line-height:27px;">
                                        <span
                                            style="padding:0px; padding-left:0px; padding-right:10px; border-radius:10px; color:#fff;">
                                            <?php echo e(Split_Hide_Name($item->mobile)); ?>

                                        </span>
                                    </div>
                                    <div style="height:27px; line-height:27px; font-size:12px; color:#888;">

                                        <?php echo e($item->created_at->format('Y-m-d h:i:s')); ?>

                                    </div>
                                </div>
                                <div style="float:left; width:45%; text-align:right; margin-right:5%;">
                                    <div style="height:27px; line-height:27px; font-size:12px; font-weight:200; color:#fff;">
                                        ₦ <?php echo e(number_format($totalDeposit->amount?? 0)); ?>

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

                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>

                        <div style="padding:2px; width:95%; margin:0 auto; margin-top:50px;">
                            <div style="border-radius: 5px; color:#fff; text-align:center; margin-top:35px;position:relative;">
                                <img src="<?php echo e(asset('customv2/history/imgs/no.png')); ?>" style=" width:100%;">
                                <br>
                            </div>
                        </div>

                    <?php endif; ?>
                <p style="text-align: center; padding: 20px; color: #fff">No more data</p>
            </div>
        </div>
        <script>
            function toggleRecord(id) {
                var elements = document.querySelectorAll('.typeitem');
                elements.forEach(function(element) {
                    element.classList.remove('over');
                });

                var clickedElement = document.getElementById(id);
                clickedElement.classList.add('over');

                if (id === 1) {
                    document.getElementById('level1').style.display = 'block';
                    document.getElementById('level2').style.display = 'none';
                    document.getElementById('level3').style.display = 'none';
                } else if (id === 2) {
                    document.getElementById('level1').style.display = 'none';
                    document.getElementById('level2').style.display = 'block';
                    document.getElementById('level3').style.display = 'none';
                } else {
                    document.getElementById('level1').style.display = 'none';
                    document.getElementById('level2').style.display = 'none';
                    document.getElementById('level3').style.display = 'block';
                }
            }
        </script>

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

<?php echo $__env->make('layouts.users', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/xsjpetiv/vrpark.com.ng/core/resources/views/templates/basic/user/referral_list.blade.php ENDPATH**/ ?>