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



			
<?php
    use App\Models\Transaction;
    $authUserId = Auth::id();
    $referralCommission = Transaction::where('user_id', $authUserId)
                                    ->where('remark', 'referral_commission')
                                    ->sum('amount');
    $formattedReferralCommission = number_format($referralCommission, 0, '.', '');
?>
<?php
  $authUser = Auth::user();
  $userCount = App\Models\User::where('ref_by', $authUser->id)->count();
?>


	    
     <div class="container">
		<!-- Page loading -->
		<div class="loading" >
			<div class="spinner-grow"></div>
		</div>
		<!-- * Page loading -->

		
							
						
							<div   id="example1" class="listView iconed" style="margin-top:10px;margin-bottom:5px;  background: linear-gradient(90deg, #FF5733 0%, #C70039 50%, #900C3F 100%);">
					<div class="card-content card2">

						<div class="card-info d-flex" style="text-align:center;">
							<div class="holder-info col-6">
								<h6 class="c-name mb-0" style="color: #fff;"><?php echo e($userCount); ?>																	</h6>
									<small class="c-info" style="color: #fff;">Total People</small>
							</div>
							<div class="holder-info col-6">
								
								<h6 class="c-name mb-0" style="color: #fff;"><?php echo e($general->cur_text); ?> <?php echo e($referralCommission); ?>																	</h6>
								<small class="c-info" style="color: #fff;">Team Commission</small>
							</div>
							
						</div>

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

	<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Prompt&display=swap" rel="stylesheet">
		<body style="background: linear-gradient(90deg, #f3f3f3 0%, #d9d9d9 100%);">
		<!-- Page loading -->
		<div class="loading">
			<div class="spinner-grow"></div>
		</div>
		<div class="appHeader"style="  background: linear-gradient(90deg, #FF5733 0%, #C70039 50%, #900C3F 100%);">
			<div class="left">
				<a href="javascript:;" class="icon goBack">
					<i class="icon ion-ios-arrow-back"></i>
				</a>
			</div>
			<div  style="color:white;"  class="pageTitle">My team</div>
		</div>


		
			
				
				
													</div>
		</div>


       

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

<?php $__env->startPush('style'); ?>
    <link href="<?php echo e(asset('assets/global/css/jquery.treeView.css')); ?>" rel="stylesheet" type="text/css">
<?php $__env->stopPush(); ?>
<?php $__env->startPush('script'); ?>
<script src="<?php echo e(asset('assets/global/js/jquery.treeView.js')); ?>"></script>
<script>
    (function($){
    "use strict"
        $('.treeview').treeView();
        $('.copyBoard').click(function(){
                var copyText = document.getElementsByClassName("copyURL");
                copyText = copyText[0];
                copyText.select();
                copyText.setSelectionRange(0, 99999);

                /*For mobile devices*/
                document.execCommand("copy");
                $('.copyText').text('Copied');
                setTimeout(() => {
                    $('.copyText').text('Copy');
                }, 2000);
        });
    })(jQuery);
</script>
<?php $__env->stopPush(); ?>

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