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



		<link rel="stylesheet" href="<?php echo e(asset ('core/css/style.css')); ?>">

<style type="text/css">
			/*.btn-primary {*/
			/*	border: none;*/
			/*}*/
			/*.iconed {*/
			/*	background: #fff;*/
			/*	border-radius: 20px;*/
			/*	padding: 6px 0px;*/
		 /*		margin-top: 15px;*/
			/*	box-shadow: 0px 0px 9px 2px rgba(0, 0, 0, 0.08);*/
			/*}*/

			/*.appContent {*/
			/*	background: none;*/
			/*}*/
			/*.appHeader {*/
			/*    height: 56px;*/
			/*    display: flex;*/
			/*    justify-content: center;*/
			/*    align-items: center;*/
			/*    position:absolute;*/
			/*    top: 0;*/
			/*    left: 0;*/
			/*    right: 0;*/
			/*    z-index: 9990;*/
			/*    background-color: #000;*/
			/*}*/
			.appHeader{background-color: #1C57A8;}
			/*.text-muted {*/
			/*    color: var(--white);*/
			/*    font-size: 12px;*/
			/*    font-weight: 400;*/
			/*    background: var(--yellow);*/
			/*    width: 80px;*/
			/*    text-align: center;*/
			/*    border-radius: 4px;*/
			/*}*/
			/*.listView .listItem .image img {*/
			/*    width: 18px;*/
			/*    height: auto;*/
			/*    border-radius: 6px;*/
			/*}*/
			.desc{
			    width: 100%;
			    height: 360px;
                background: linear-gradient(135deg, #569CFA 0%, #569CFA 100%);
                opacity: 1;
                /* 加载背景图 */
                background-image: url(https://perview.freelancerawais.online/solermine/core/core/img/bg.svg);
                /* 背景图垂直、水平均居中 */
                background-position: center center;
                /* 背景图不平铺 */
                background-repeat: no-repeat;
                /* 当内容高度大于图片高度时，背景图像的位置相对于viewport固定 */
                background-attachment: fixed;
                /* 让背景图基于容器大小伸缩 */
                background-size: cover;
			}
			.iconBox{ margin-top: 22px;}
			.leveltitle{font-size: 22px;font-weight: 600;color: #FFFFFF;line-height: 30px;}
			.c-name,.c-info{color: #FFFFFF;}
			.inline{width:96%;height: 1px;background: #FFFFFF; margin: auto;opacity:0.2;}
			.inlineh{ width: 1px;height: 80px;border: 1px solid #FFFFFF;opacity:0.2;}
			.wallet{
			    width: 90%;
                height: 80px;
                background: #FFFFFF;
                box-shadow: 0px 2px 16px 0px rgba(24,60,109,0.12);
                border-radius: 16px;
                opacity: 1;
                position: relative;
                z-index: 9800;
                margin:-60px auto 0 auto;
			}
			.myrow{
			    width: 100%;
			    height: 100%;
			    background: #FFFFFF;
                border-radius: 16px 16px 0px 0px;
                position: relative;
                z-index: 9700;
			    margin-top: -40px;
			}
			.c2-name,.c2-info{color: #333333;}
			.c2-name{font-size: 18px;}
			.inlineh2{width: 1px;height: 60px;margin-top: 10px;border: 1px solid #000000;opacity:0.2;}
			.wallet .holder-info{margin-top: 20px;}
			.recharge{width: 100%;height: 40px;}
            .btnimg{width: 90%; margin: auto;}
            .btnimg img{  width: 100%;height: 35px;}
            .list-memu{width: 90%;margin: auto;margin-top:20px;}
            .memu{display:flex;display: -webkit-flex;flex-direction: row ;flex-wrap: wrap; justify-content:space-between;margin-bottom:20px;}
            .mtitle{color:#333333;}
            .logout{width:90%;margin:auto;margin-bottom:120px;}
            .okbtn{
                margin-top: 30px;
    		    background-color: #1377FE;
    		    color: #FFFFFF;
    		    height: 48px;
    		    font-size: 16px;
    		    font-weight: 400;
    		    border-radius:25px;
    		}
    		.content{
			     padding-top: 56px;
			 }
		</style>
	</head>

	<body>

		<!-- Page loading -->
		<div class="loading">
			<div class="spinner-grow"></div>
		</div>
		<!-- * Page loading -->
		<!-- App Header -->
		<div class="appHeader">
			<div class="left">
				<a href="javascript:;" class="icon goBack">
					<i class="icon ion-ios-arrow-back"></i>
				</a>
			</div>
			<div class="pageTitle">Account</div>
		</div>
		<div class="content pb-2">
	        <div class="desc">
	            <div class="listView iconed">
					<div class="listItem" style="background: none; padding-left: 0;margin-top:0">
						<div class="iconBox">
							<img src="<?php echo e(asset ('core/core/img/user-icon.svg')); ?>" >
						</div>
						<div class="text pl-1 mt-2">
							<div>
								<div class="leveltitle">
								Account ID							</div>
								<strong style="font-size: 18px; font-weight: 500;color:#FFFFFF;opacity:0.6;"><?php echo e(auth()->user()->username); ?></strong>
							
							</div>
						</div>
					</div><?php
  $authUser = Auth::user();
  $userCount = App\Models\User::where('ref_by', $authUser->id)->count();
?>


<?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, '.', '');
?>




					<div class="card-content card2">
						<div class="card-info d-flex" style="text-align:center;">
							<div class="holder-info col-4">
								<h6 class="c-name mt-2 mb-0"><?php echo e(showAmount(auth()->user()->interest_wallet)); ?> <?php echo e($general->cur_text); ?></h6>
									<small class="c-info">Total income</small>
							</div>
							<div class="inlineh"></div>
							<div class="holder-info col-4">
								
								<h6 class="c-name mt-2 mb-0"><?php echo e(showAmount(auth()->user()->deposit_wallet)); ?> <?php echo e($general->cur_text); ?></h6>
								<small class="c-info">Total recharge</small>
							</div>
							<div class="inlineh"></div>
							<div class="holder-info col-4">
								<h6 class="c-name mt-2 mb-0"> <?php echo e(showAmount(auth()->user()-> completedInvests)); ?> <?php echo e($general->cur_text); ?></h6>
								<small class="c-info">Total Invest</small>
							</div>
						</div>
						<div class="inline"></div>
						<div class="card-info d-flex" style="text-align:center;">
						<div class="holder-info col-4">
							<h6 class="c-name mt-2 mb-0"><?php echo e(showAmount(auth()->user()->successfulWithdrawals)); ?> <?php echo e($general->cur_text); ?></h6>
								<small class="c-info">Total withdraw</small>
						</div>
						<div class="inlineh"></div>
						<div class="holder-info col-4">
							<h6 class="c-name mt-2 mb-0">                 <?php echo e($userCount); ?></h6>
							<small class="c-info">Team</small>
						</div>
						<div class="inlineh"></div>
						<div class="holder-info col-4">
							<h6 class="c-name mt-2 mb-0"><?php echo e($referralCommission); ?> <?php echo e($general->cur_text); ?></h6>
							<small class="c-info">Team income</small>
						</div>
						</div>
					</div>
				</div>
	        </div>
	        
        	<div class="wallet" >
				<div class="card-info d-flex" style="text-align:center;">
					<div class="holder-info col-6">
						<h6 class="c2-name mb-0">	<?php echo e(showAmount(auth()->user()->deposit_wallet)); ?> <?php echo e($general->cur_text); ?></h6>
							<small class="c2-info">Recharge</small>
					</div>
					
					<div class="inlineh2"></div>
					<div class="holder-info col-6">
					
						<h6 class="c2-name mb-0"><?php echo e(showAmount(auth()->user()->interest_wallet)); ?> <?php echo e($general->cur_text); ?></h6>
						<small class="c2-info">Balance</small>
					</div>
				</div>
			</div>
			<a href="<?php echo e(route ('user.deposit.index')); ?>">
			<div class="myrow">
			    <div style="width:100%;height:60px;"></div>
			    <div class="recharge">
                    <div class="btnimg"><img src="<?php echo e(asset ('core/core/static/img/rechange.svg')); ?>" usemap="#plantmap"></div>
                    <!-- map 客户端图像映射器。通过img标签的usemap与map的name绑定 -->
            		<map id="plantmap" name="plantmap">
            			<!-- area 定义图像映射中的区域:coords="0,0,120,35" :coords="140,35,260,0" -->
            			<area class="recharge-btn" shape="rect" alt="recharge" href="" />
            			<area class="withdraw-btn" shape="rect"  alt="withdraw" href="" />
            		</map>
        		</div>
        		</a>
        		<div class="list-memu">
        		    					<!--<a href="/index/pool/index.html" class="memu">-->
					<!--	<div class="left">-->
					<!--		<img src="/static/img/pool.svg">-->
					<!--		<span class="mtitle">Fund pool</span>-->
					<!--	</div>-->
					<!--	<div class="left">-->
					<!--	    <img src="/static/img/left.svg">-->
					<!--	</div>-->
					<!--</a>-->
					<a href="<?php echo e(route ('user.invest.log')); ?>" class="memu">
						<div class="left">
							<img src="<?php echo e(asset ('core/core/img/good.svg')); ?>">
							<span class="mtitle">My activation product</span>
						</div>
						<div class="left">
						    <img src="<?php echo e(asset ('core/core/img/left.svg')); ?>">
						</div>
					</a>
					<a href="<?php echo e(route ('user.deposit.history')); ?>" class="memu">
						<div class="left">
							<img src="<?php echo e(asset ('core/core/img/jiaoyi.svg')); ?>">
							<span class="mtitle">Recharge Record</span>
						</div>
						<div class="left">
						    <img src="<?php echo e(asset ('core/core/img/left.svg')); ?>">
						</div>
					</a>
					<a href="<?php echo e(route ('user.withdraw.history')); ?>" class="memu">
						<div class="left">
							<img src="<?php echo e(asset ('core/core/img/gift.svg')); ?>">
							<span class="mtitle">Withdraw Record</span>
						</div>
						<div class="left">
						    <img src="<?php echo e(asset ('core/core/img/left.svg')); ?>">
						</div>
					</a>
					<a href="<?php echo e(route('ticket.index')); ?>" class="memu">
						<div class="left">
							<img src="<?php echo e(asset ('core/core/img/bank.svg')); ?>">
							<span class="mtitle">Costumer Service</span>
						</div>
						<div class="left">
						    <img src="<?php echo e(asset ('core/core/img/left.svg')); ?>">
						</div>
					</a>
					<a href="<?php echo e(route('user.change.password')); ?>" class="memu">
						<div class="left">
							<img src="<?php echo e(asset ('core/core/img/pay.svg')); ?>">
							<span class="mtitle">Change login password</span>
						</div>
						<div class="left">
						    <img src="<?php echo e(asset ('core/core/img/left.svg')); ?>">
						</div>
					</a>
					<a href="<?php echo e(route('user.transactions')); ?>" class="memu">
						<div class="left">
							<img src="<?php echo e(asset ('core/core/img/pay.svg')); ?>">
							<span class="mtitle">Share</span>
						</div>
						<div class="left">
						    <img src="<?php echo e(asset ('core/core/img/left.svg')); ?>">
						</div>
					</a>
        		    
        		</div>
			    
			</div>
			
			<div class="logout ">
				<a href="<?php echo e(route ('user.logout')); ?>" class="btn okbtn btn-block">
					Log Out
				</a>
			</div>
			
		        
		        
	
		</div>
<?php $__env->stopSection(); ?>

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