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



<body>


    <div class="invitation">
        <div class="bgh">
            <h4>My invitation link</h4>
            <h5>
                Invite Friends To Leasing Get Extra Rewards！
            </h5>
            <img src="<?php echo e(asset('core/img/ws.png')); ?>" alt="">

        </div>


        <div class="box1">
            <div class="code">
                <img src="<?php echo e(asset('core/img/ewm.jpg')); ?>" alt="">
            </div>
            <div class="copy-wrap">
                <div class="text">
                    <p>Click on the copy code</p>
                    <h6><?php echo e(auth()->user()->ref_code); ?></h6>
                             <span id="paragraph1" data-v-0b24035f="" class="link text-15px"
                                title="<?php echo e(route('home')); ?>?invite_code=<?php echo e(auth()->user()->ref_code); ?>">

                            </span>
                </div>
            </div>
        </div>
        <div  onclick="copyTxt('paragraph1')"   class="btncopy">COPY</div>

 <script>
                    const copyTxt = (id) => {
                        var r = document.createRange();
                        r.selectNode(document.getElementById(id));
                        window.getSelection().removeAllRanges();
                        window.getSelection().addRange(r);
                        document.execCommand('copy');
                        window.getSelection().removeAllRanges();
                        alert('Copy Success!')
                    }
                </script>

                <script>
                    function copyText(elementId) {
                        var textToCopy = document.getElementById(elementId).innerText;
                        navigator.clipboard.writeText(textToCopy)
                            .then(function() {
                                alert('Referral Tag Copied!');
                            })
                            .catch(function(error) {
                                console.error('Unable to copy link: ', error);
                            });
                    }
                </script>

        <div class="box2">
            <h6>Invitation rule description</h6>
            <p>
                1.Stable 10% - 20% revenue per day<br>
                2.Level 3 promotion income with20%4%1% <br>
                3.Min Withdraw ₦1000.<br>
                4.Withdrawal Fees: NONE.<br>
                5.Register now and get ₦200 for free
            </p>
        </div>
    </div>
    <script>
        // tabBar

        var text = "<?php echo e(route('home')); ?>?invite_code=<?php echo e(auth()->user()->ref_code); ?>";
        $('.btncopy').click(function(){
            copy(text)
        })
    </script>
</body>

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


<?php $__env->startPush('script'); ?>
    <script type="text/javascript">
        var text = '<?php echo e(route('home')); ?>?invite_code=<?php echo e(auth()->user()->ref_code); ?>';
        $('.btncopy').click(function() {
            copy(text)
        });
    </script>
<?php $__env->stopPush(); ?>

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