        <!-- www.9yzy.com qq 81368028-->

<!-- Main Container -->
<main id="main-container">
    <!-- Notice Modal -->
    <div class="modal" id="myModal" tabindex="-1" role="dialog" aria-labelledby="modal-block-normal" aria-hidden="true">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="block block-rounded block-transparent mb-0">
                    <div class="block-header block-header-default">
                        <h3 class="block-title">欢迎回来，
                        <?php echo $userrow['username']?>
                        </h3>
                        <div class="block-options">
                            <button type="button" class="btn-block-option" data-bs-dismiss="modal" aria-label="Close">
                                <i class="fa fa-fw fa-times"></i>
                            </button>
                        </div>
                    </div>
                    <div class="block-content fs-sm">
                        <p><{$conf.button_pop_up_notice}>
</p>
                    </div>
                    <div class="block-content block-content-full text-end bg-body">
                        <button type="button" class="btn btn-sm btn-primary" data-bs-dismiss="modal">已阅</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- END Notice Modal -->        <!-- www.9yzy.com qq 81368028-->

    <!-- Hero -->
    <div class="content">
        <div class="d-flex flex-column flex-md-row justify-content-md-between align-items-md-center py-2 text-center text-md-start">
            <div class="flex-grow-1 mb-1 mb-md-0">
                <h1 class="h3 fw-bold mb-2">
                总览
              </h1>
                <h2 class="h6 fw-medium fw-medium text-muted mb-0">
                欢迎<a class="fw-semibold" href="<{url c='User/UserProfile' a='Index' PaGe='Modify'}>">&nbsp;<?php echo $userrow['username']?>&nbsp;</a>使用<?php echo $conf['sitename']?> ，一切看起来都很好。
              </h2>
            </div>
            <div class="mt-3 mt-md-0 ms-md-3 space-x-1">
                <a class="btn btn-sm btn-alt-secondary space-x-1" href="<{url c='User/UserProfile' a='Index' PaGe='Modify'}>">
                    <i class="fa fa-cogs opacity-50"></i>
                    <span>账户管理</span>
                </a>
                <a class="btn btn-sm btn-alt-secondary space-x-1" href="<{url c='User/UserProfile' a='Index' PaGe='SecretKey'}">
                    <i class="fa fa-key opacity-50"></i>
                    <span>API管理</span>
                </a>
            </div>
        </div>
    </div>
    <!-- END Hero -->
    <!-- Page Content -->
    <div class="content">
            
            
            

        
        

        
    
        <div class="alert alert-warning d-flex align-items-center justify-content-between" role="alert">
            <div class="flex-fill mr-3">
                <p class="mb-0">&nbsp;
                <h4 class="mt-2 mb-0"> <i class="fab fa-vimeo-v" style="color:#ff0000 "></i>
<span class="">
    
    
    
    <{if date("Y-m-d H:i:s") < $userrow.packvip_time}>
						<{foreach $Packvips as $v}>
							<{if $v.id==$userrow.packvip_id}>
								 <b class="text-success"><a href="<{url c='User/Packvip' a='Index'}>"><{packvip_days($userrow.packvip_time)}></b> </a>天 <a href="
								 <{url c='User/Packvip' a='Index'}>
								 
								 "><b class="text-success"><{$v.name}></b></a>
							<{/if}>
						<{/foreach}>
					<{else}>
						<a href="<{url c='User/Packvip' a='Index'}>"><font color=red>非会员,
<a class="dropdown-item" href="

<{url c='User/Packvip' a='Index'}>

">购买会员</a></font></a>
						
						
						
						
					<{/if}></h4></span>
<h6 class="mb-0 mt-3"><i class="fas fa-money-check-alt" style="color:#6040ff"> 余额：¥  <a href="


<{url c='User/Recharge' a='Index'}>


"><span class="text-primary"> <{$userrow.money}> </span></a>元</i></h6>
                </p>
            </div>
            <div class="flex-00-auto">
                <i class="fa fa-fw fa-exclamation-circle"></i>
            </div>
        </div>
            <!-- Stats -->
            <div class="row items-push">
                <div class="col-sm-6 col-xxl-3">
                    <div class="block block-rounded d-flex flex-column h-100 mb-0">
                        <div class="block-content block-content-full flex-grow-1 d-flex justify-content-between align-items-center">
                            <dl class="mb-0">
                                <dt class="fs-3 fw-bold">   
通道数量</dt>
                                <dd class="fs-sm fw-medium fs-sm fw-medium text-muted mb-0">                                <{$Channel_nums_all}> 个
</dd>
                                在线通道数量:    <{$Channel_nums_all_status}>个

                            </dl>
                            <div class="item item-rounded-lg bg-body-light">
                                <i class="far fa-money-bill-1 fs-3 text-primary"></i>
                            </div>
                        </div>
                        <div class="bg-body-light rounded-bottom">
                            <a class="block-content block-content-full block-content-sm fs-sm fw-medium d-flex align-items-center justify-content-between" href="<{url c='User/Channel' a='Index'}>">
                                <span>进入通道管理</span>
                                <i class="fa fa-arrow-alt-circle-right ms-1 opacity-25 fs-base"></i>
                            </a>
                        </div>
                    </div>
                </div>
                <div class="col-sm-6 col-xxl-3">
                    <div class="block block-rounded d-flex flex-column h-100 mb-0">
                        <div class="block-content block-content-full flex-grow-1 d-flex justify-content-between align-items-center">
                            <dl class="mb-0">
                                <dt class="fs-3 fw-bold" id="settle_money">¥ <?=($findMoney_Alipay_All+$findMoney_Wxpay_All+$findMoney_qpay_All)?>
</dt>
                                <dd class="fs-sm fw-medium fs-sm fw-medium text-muted mb-0">收款总额</dd>
                            </dl>
                            <div class="item item-rounded-lg bg-body-light">
                                <i class="fa fa-money-check fs-3 text-primary"></i>
                            </div>
                        </div>
                        <div class="bg-body-light rounded-bottom">
                            <a class="block-content block-content-full block-content-sm fs-sm fw-medium d-flex align-items-center justify-content-between" href="<{url c='User/Callbill' a='Index'}>">
                                <span>查看收款记录</span>
                                <i class="fa fa-arrow-alt-circle-right ms-1 opacity-25 fs-base"></i>
                            </a>
                        </div>
                    </div>
                </div>
                <div class="col-sm-6 col-xxl-3">
                    <div class="block block-rounded d-flex flex-column h-100 mb-0">
                        <div class="block-content block-content-full flex-grow-1 d-flex justify-content-between align-items-center">
                            <dl class="mb-0">
                                <dt class="fs-3 fw-bold" id="orders_today">0</dt>
                                <dd class="fs-sm fw-medium fs-sm fw-medium text-muted mb-0">今日订单</dd>
                            </dl>
                            <div class="item item-rounded-lg bg-body-light">
                                <i class="fa fa-cart-shopping fs-3 text-primary"></i>
                            </div>
                        </div>
                        <div class="bg-body-light rounded-bottom">
                            <a class="block-content block-content-full block-content-sm fs-sm fw-medium d-flex align-items-center justify-content-between" href="<{url c='User/order' a='Index'}>">
                                <span>查看更多详情</span>
                                <i class="fa fa-arrow-alt-circle-right ms-1 opacity-25 fs-base"></i>
                            </a>
                        </div>
                    </div>
                </div>
                <div class="col-sm-6 col-xxl-3">
                    <div class="block block-rounded d-flex flex-column h-100 mb-0">
                        <div class="block-content block-content-full flex-grow-1 d-flex justify-content-between align-items-center">
                            <dl class="mb-0">
                                <dt class="fs-3 fw-bold" id="orders">												    <?=($findCount_Alipay_All+$findCount_Wxpay_All+$findCount_qpay_All)?>
</dt>
                                <dd class="fs-sm fw-medium fs-sm fw-medium text-muted mb-0">订单总数</dd>
                            </dl>
                            <div class="item item-rounded-lg bg-body-light">
                                <i class="fa fa-chart-bar fs-3 text-primary"></i>
                            </div>
                        </div>
                        <div class="bg-body-light rounded-bottom">
                            <a class="block-content block-content-full block-content-sm fs-sm fw-medium d-flex align-items-center justify-content-between" href="<{url c='User/Order' a='Index'}>">
                                <span>查看所有订单</span>
                                <i class="fa fa-arrow-alt-circle-right ms-1 opacity-25 fs-base"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
            <!-- END Stats -->
        <div class="row">			
            <div class="col-lg-8">
                <!-- Notice Table -->
                <div class="block block-rounded">
                    <div class="block-header block-header-default">
                        <h3 class="block-title"><i class="fa fa-fw fa-volume-up"></i>&nbsp;公告通知</h3>
                    </div>
                    <div class="block-content block-content-full" id="inner-content">
           <div class="col-12">
                    <div class="block block-rounded">
                        <div class="block-content text-center">
                    
                                <{$conf.usernotice}>

                            </p>
                        </div>
                    </div>
                </div>
                            <div class="border-start border-4 rounded-2 border-primary mb-2">
                                
                                
           </div>
                            </div>

                        <!-- www.9yzy.com qq 81368028-->

                <!-- END Notice Table -->
            </div>	
            <div class="col-lg-4">
                <!-- User Info -->
                <div class="block block-rounded">
                    <div class="block-content text-center">
                        <div class="py-4">
                            <div class="mb-0">
                                <img class="img-avatar" src="<?php echo ($userrow['qq'])?'//q2.qlogo.cn/headimg_dl?bs=qq&dst_uin='.$userrow['qq'].'&src_uin='.$userrow['qq'].'&fid='.$userrow['qq'].'&spec=100&url_enc=0&referer=bu_interface&term_type=PC':'./uiassets/img/avatar.jpg'?>" alt="">
                            </div>
                            <h1 class="fs-lg mb-2">
                                        <span><?php echo $userrow['username']?></span>
                            </h1>
                            <h2 class="fs-lg mb-2">
                                        <span>商户状态：</span>
                            </h2>
                        </div>
                    </div>
                    <div class="block-content bg-body-light text-center">
                        <div class="row items-push text-uppercase">
                            <div class="col-6 col-md-6">
                                <div class="fw-semibold text-dark mb-1">昨日收入</div>    支付宝:¥ +<{$findMoney_Alipay_Lastday}>
    <br>微信:¥ +<{$findMoney_Wxpay_Lastday}>
    <br>QQ: ¥ +<{$findMoney_Qqpay_Lastday}>

                        
                            </div>						
                            <div class="col-6 col-md-6">
                                <div class="fw-semibold text-dark mb-1">今日收入</div>
    支付宝:¥ +<{$findMoney_Alipay_All}>
    <br>微信:¥ +<{$findMoney_Wxpay_Today}>
    <br>QQ:￥+<{$findCount_Qqpay_Today}>

                            </div>
                        </div>
                    </div>
                </div>
                <!-- END User Info -->
            </div>			
        </div>
            <div class="col-md-12 col-xl-12">
            <!-- Channel -->
                <div class="block block-rounded">
                    <div class="block-header block-header-default">
                        <h3 class="block-title">收入统计与通道费率</h3>
                        <div class="block-options">
                        </div>
                    </div>
                    <div class="block-content overflow-x-auto" >
                        <table class="table table-striped table-hover table-bordered" >
                            <thead>
                                <tr id="paytypes"></tr>
                            </thead>
                            <tbody>
                									
									<table class="table table-bordered table-bordered-bd-info mt-4">
										<thead>
											<tr>
												<th scope="col">通道</th>
												<th scope="col">今日数据</th>
												<th scope="col">昨日数据</th>
												<th scope="col">总数据</th>
											</tr>
										</thead>
										<tbody>
											<tr>
												<td><img src="/Assets/Icon/alipay.jpeg" style="width:30px; height:30px;"></td>
												<td>
												<span class="text-muted">订单：<{$findCount_Alipay_Today}></span><br>
												<span class="text-muted">¥ +<{$findMoney_Alipay_Today}></span>
												</td>
												<td>
												<span class="text-muted">订单：<{$findCount_Alipay_Lastday}></span><br>
												<span class="text-muted">¥ +<{$findMoney_Alipay_Lastday}></span>
												</td>
												<td>
												<span class="text-muted">订单：<{$findCount_Alipay_All}></span><br>
												<span class="text-muted">¥ +<{$findMoney_Alipay_All}></span>
												</td>
											</tr>
											<tr>
												<td><img src="/Assets/Icon/wxpay.jpeg" style="width:30px; height:30px;"></td>
												<td>
												<span class="text-muted">订单：<{$findCount_Wxpay_Today}></span><br>
												<span class="text-muted">¥ +<{$findMoney_Wxpay_Today}></span>
												</td>
												<td>
												<span class="text-muted">订单：<{$findCount_Wxpay_Lastday}></span><br>
												<span class="text-muted">¥ +<{$findMoney_Wxpay_Lastday}></span>
												</td>
												<td>
												<span class="text-muted">订单：<{$findCount_Wxpay_All}></span><br>
												<span class="text-muted">¥ +<{$findMoney_Wxpay_All}></span>
												</td>
											</tr>
											<tr>
												<td><img src="/Assets/Icon/qqpay.jpeg" style="width:30px; height:30px;"></td>
												<td>
												<span class="text-muted">订单：<{$findCount_Qqpay_Today}></span><br>
												<span class="text-muted">¥ +<{$findMoney_Qqpay_Today}></span>
												</td>
												<td>
												<span class="text-muted">订单：<{$findCount_Qqpay_Lastday}></span><br>
												<span class="text-muted">¥ +<{$findMoney_Qqpay_Lastday}></span>
												</td>
												<td>
												<span class="text-muted">订单：<{$findCount_Qqpay_All}></span><br>
												<span class="text-muted">¥ +<{$findMoney_QQpay_All}></span>
												</td>
											</tr>
								
                            </tbody>
                        </table>
                        						
						
						
						<div class="col-md-6">
							<div class="card">
								<div class="card-header">
									<div class="card-title">最近余额变动 </div>
								</div>
								<div class="card-body pb-0">
								<{foreach $findall as $v}>
									<div class="d-flex">
										<div class="avatar">
											<img src="/Assets/Assets_User_1/img/logoproduct.svg" alt="..." class="avatar-img rounded-circle">
										</div>
										<div class="flex-1 pt-1 ml-2">
											<h class="fw-bold mb-1"><?=($v['newmoney'] - $v['money'])>0?'进账':'支出'?></h>
											<small class="text-muted"><{$v.data}></small>
										</div>
										<div class="d-flex ml-auto align-items-center">
											<h class="text-info fw-bold">￥<?=round(($v['newmoney']*100 - $v['money']*100)/100,2)?></h>
										</div>
									</div>
									<div class="separator-dashed"></div>
									<{/foreach}>
									<div class="pull-in">
									</div>
								</div>
                        
                        
                        
                        
                        
                        
                        
                        
                    </div>
                </div>
            <!-- Channel -->
            </div>
    </div>
    <!-- END Page Content -->        <!-- www.9yzy.com qq 81368028-->

</main>
<!-- END Main Container -->