<?php
    $web = DB::table('admin_site')->first();
?>
<!DOCTYPE html>
<html lang="<?php echo e(app()->getLocale()); ?>">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <title>后台管理 - <?php echo e($web->web_title); ?></title>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
    <meta name="keywords" content="<?php echo e($web->web_title); ?>">
    <meta name="description" content="<?php echo e($web->web_title); ?>">
    <link rel="shortcut icon" href="<?php echo e(URL::asset('admins/icon/icon.png')); ?>"  type="image/x-icon"/>
    <link href="<?php echo e(URL::asset('admins/css/app.css')); ?>" rel="stylesheet" type="text/css">
    </head>
    <body>
       <div id="backstage">
        <div class="ivu-layout ivu-layout-has-sider" style="min-height: 100vh;">
          <div class="ivu-layout-sider" style="width: 208px; min-width: 208px; max-width: 208px; flex: 0 0 208px;">
            <div class="ivu-layout-sider-children">
             <div class="left_backstage_box">
                <img src="<?php echo e($web->web_logo); ?>" class="logo" style="display: block;">
                <div class="suod" style="display: block;"><img src="/admins/icon/suo.png"></div>
                <div class="backstage_option <?php if(request()->path() =='/' || request()->path() =='login_log' || request()->path() =='operation_log'){echo 'backstage_option_zhan';}?>" <?php if(request()->path() =='/' || request()->path() =='login_log' || request()->path() =='operation_log'){echo 'style="max-height:500px;"';}?>>
                    <div class="type_title">
                    <img class="icon" src="/admins/baseicon/19.png">控制台
                    <img src="/admins/baseicon/ac.png" class="jiant">
                    </div>
                 <div class="type_dang" data-url="/" <?php if(request()->path() =='/'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>主控制台</div>
                 <div class="type_dang" data-url="/login_log" <?php if(request()->path() =='login_log'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>登录记录</div>
                 <div class="type_dang" data-url="/operation_log" <?php if(request()->path() =='operation_log'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>操作日志</div>
                </div>

                <!--//webtext-->
                <div class="backstage_option <?php if(request()->path() =='daililist' || request()->path() =='dailiadd' ){echo 'backstage_option_zhan';}?>"
                  <?php if(request()->path() =='daililist' || request()->path() =='dailiadd' ){echo 'style="max-height:500px;"';}?>>
                    <div class="type_title">
                    <img class="icon" src="/admins/baseicon/19.png">代理管理
                    <img src="/admins/baseicon/ac.png" class="jiant">
                    </div>

                 <div class="type_dang" data-url="/daililist" <?php if(request()->path() =='daililist'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>代理列表</div>
                 <div class="type_dang" data-url="/daililist?add_box=1" <?php if(request()->path() =='dailiadd'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>添加代理</div>

                </div>

                <div class="backstage_option <?php if(request()->path() =='merchantlist' || request()->path() =='merchant_loginlog' || request()->path() =='merchant_payment' || request()->path() =='merchant_polling' || request()->path() =='merchant_diecode' || request()->path() =='merchant_livecode' || request()->path() == 'merchant_amount_change'){echo 'backstage_option_zhan';}?>" <?php if(request()->path() =='merchantlist' || request()->path() =='merchant_loginlog' || request()->path() =='merchant_payment' || request()->path() =='merchant_polling' || request()->path() =='merchant_diecode' || request()->path() =='merchant_livecode' || request()->path() == 'merchant_amount_change'){echo 'style="max-height:500px;"';}?>">
                    <div class="type_title">
                    <img class="icon" src="/admins/baseicon/2.png">码商管理
                    <img src="/admins/baseicon/ac.png" class="jiant">
                    </div>
                 <div class="type_dang" data-url="/merchantlist" <?php if(request()->path() =='merchantlist'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>码商列表</div>
                 <div class="type_dang" data-url="/merchant_loginlog" <?php if(request()->path() =='merchant_loginlog'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>登录记录</div>
                 <div class="type_dang" data-url="/merchant_amount_change" <?php if(request()->path() =='merchant_amount_change'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>加款记录</div>
                 <div class="type_dang" data-url="/merchant_payment" <?php if(request()->path() =='merchant_payment'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>APP通道</div>
                 <div class="type_dang" data-url="/merchant_polling" <?php if(request()->path() =='merchant_polling'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>通道账户</div>
                 <div class="type_dang" data-url="/merchant_diecode" <?php if(request()->path() =='merchant_diecode'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>固码通道</div>
                 <div class="type_dang" data-url="/merchant_livecode"<?php if(request()->path() =='merchant_livecode'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>活码通道</div>
                </div>
                <div class="backstage_option <?php if(request()->path() =='memberlist' || request()->path() =='member_loginlog' || request()->path() =='member_payment' || request()->path() =='member_amount_change'){echo 'backstage_option_zhan';}?>" <?php if(request()->path() =='memberlist' || request()->path() =='member_loginlog' || request()->path() =='member_payment' || request()->path() =='member_amount_change'){echo 'style="max-height:500px;"';}?>">
                    <div class="type_title">
                    <img class="icon" src="/admins/baseicon/1.png">商户管理
                    <img src="/admins/baseicon/ac.png" class="jiant">
                    </div>
                 <div class="type_dang" data-url="/memberlist" <?php if(request()->path() =='memberlist'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>商户列表</div>
                 <div class="type_dang" data-url="/member_loginlog" <?php if(request()->path() =='member_loginlog'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>登录记录</div>
                 <div class="type_dang" data-url="/member_amount_change" <?php if(request()->path() =='member_amount_change'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>加款记录</div>
                 <div class="type_dang" data-url="/member_payment" <?php if(request()->path() =='member_payment'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>通道管理</div>
                </div>
                <div class="backstage_option <?php if(request()->path() =='order_record' || request()->path() =='merchant_recharge' || request()->path() =='member_upgrade'){echo 'backstage_option_zhan';}?>" <?php if(request()->path() =='order_record' || request()->path() =='merchant_recharge' || request()->path() =='member_upgrade'){echo 'style="max-height:500px;"';}?>>
                    <div class="type_title">
                    <img class="icon" src="/admins/baseicon/18.png">交易管理
                    <img src="/admins/baseicon/ac.png" class="jiant">
                    </div>
                 <div class="type_dang" data-url="/order_record" <?php if(request()->path() =='order_record'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>交易记录</div>
                 <!--<div class="type_dang" data-url="/merchant_recharge" <?php if(request()->path() =='merchant_recharge'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>码商充值记录</div>
                 <div class="type_dang" data-url="/member_upgrade">商户升级记录</div>-->
                </div>
                <div class="backstage_option <?php if(request()->path() =='drawing'){echo 'backstage_option_zhan';}?>" <?php if(request()->path() =='drawing'){echo 'style="max-height:500px;"';}?>>
                    <div class="type_title">
                    <img class="icon" src="/admins/baseicon/17.png">提现管理
                    <img src="/admins/baseicon/ac.png" class="jiant">
                    </div>
                 <div class="type_dang" data-url="/drawing" <?php if(request()->path() =='drawing'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>提现记录</div>
                </div>
                <!--<div class="backstage_option <?php if(request()->path() =='member_notice' || request()->path() =='merchant_notice'){echo 'style="max-height:500px;"';}?>">
                    <div class="type_title">
                    <img class="icon" src="/admins/baseicon/20.png">公告管理
                    <img src="/admins/baseicon/ac.png" class="jiant">
                    </div>
                 <div class="type_dang" data-url="" <?php if(request()->path() =='member_notice'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>商户公告</div>
                 <div class="type_dang" data-url="" <?php if(request()->path() =='merchant_notice'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>码商公告</div>
                </div>-->
                <div class="backstage_option <?php if(request()->path() =='code_pool' || request()->path() =='code_error'){echo 'backstage_option_zhan';}?>" <?php if(request()->path() =='code_pool' || request()->path() =='code_error'){echo 'style="max-height:500px;"';}?>">
                    <div class="type_title">
                    <img class="icon" src="/admins/baseicon/21.png">系统队列
                    <img src="/admins/baseicon/ac.png" class="jiant">
                    </div>
                 <!--<div class="type_dang" data-url="" <?php if(request()->path() =='code_pool'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>码池队列</div>-->
                 <div class="type_dang" data-url="code_error" <?php if(request()->path() =='code_error'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>清码记录</div>
                </div>
                <div class="backstage_option <?php if(request()->path() =='diecode' || request()->path() =='livecode'){echo 'backstage_option_zhan';}?>" <?php if(request()->path() =='diecode' || request()->path() =='livecode'){echo 'style="max-height:500px;"';}?>">
                    <div class="type_title">
                    <img class="icon" src="/admins/baseicon/3.png">平台通道管理
                    <img src="/admins/baseicon/ac.png" class="jiant">
                    </div>
                 <div class="type_dang" data-url="/diecode" <?php if(request()->path() =='diecode'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>固码通道</div>
                 <div class="type_dang" data-url="/livecode" <?php if(request()->path() =='livecode'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>活码通道</div>
                </div>
                <div class="backstage_option <?php if(request()->path() =='statistics'){echo 'backstage_option_zhan';}?>" <?php if(request()->path() =='statistics'){echo 'style="max-height:500px;"';}?>>
                    <div class="type_title">
                    <img class="icon" src="/admins/baseicon/4.png">数据统计
                    <img src="/admins/baseicon/ac.png" class="jiant">
                    </div>
                 <div class="type_dang" data-url="/statistics" <?php if(request()->path() =='statistics'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>数据统计</div>
                </div>
                <div class="backstage_option <?php if(request()->path() =='membersite' || request()->path() =='merchantsite' || request()->path() =='site' || request()->path() =='merchantsite'){echo 'backstage_option_zhan';}?>" <?php if(request()->path() =='membersite' || request()->path() =='merchantsite' || request()->path() =='site' || request()->path() =='merchantsite'){echo 'style="max-height:500px;"';}?>">
                    <div class="type_title">
                    <img class="icon" src="/admins/baseicon/5.png">系统管理
                    <img src="/admins/baseicon/ac.png" class="jiant">
                    </div>
                 <div class="type_dang" data-url="/membersite" <?php if(request()->path() =='membersite'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>商户设置</div>
                 <div class="type_dang" data-url="/merchantsite" <?php if(request()->path() =='merchantsite'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>码商设置</div>
                 <div class="type_dang" data-url="/site" <?php if(request()->path() =='site'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>系统设置</div>
                </div>
                <!---->
             </div>
            </div>
            <div class="ivu-layout-sider-trigger" style="width: 208px;"><i class="ivu-icon ivu-icon-ios-arrow-back ivu-layout-sider-trigger-icon"></i></div>
          </div>
          <div class="ivu-layout">
            <div class="hide">
                <div class="hide_z">
                <div class="coz_box">
                    <div class="bianjie" style="margin-right: 25px;" data-url="/memberlist">
                    <img src="/admins/baseicon/1.png" class="img_2" style="width:21px">
                    <img src="/admins/baseicon/1-s.png" class="img_1" style="width:21px">
                    <span>商户管理</span>
                    </div>
                    <div class="bianjie" style="margin-right: 25px;" data-url="/merchantlist">
                    <img src="/admins/baseicon/2.png" class="img_2" style="width:21px">
                    <img src="/admins/baseicon/2-s.png" class="img_1" style="width:21px">
                    <span>码商管理</span>
                    </div>
                    <div class="bianjie" data-url="">
                    <img src="/admins/baseicon/9.png" class="img_2">
                    <img src="/admins/baseicon/9-s.png" class="img_1">
                    <span>便捷操作</span>
                    </div>
                    <div class="bianjie_box">
                    <div data-url=""><img src="/admins/baseicon/4.png"><img src="/admins/baseicon/4-s.png"><span>数据统计</span></div>
                    <div data-url="/site"><img src="/admins/baseicon/5.png"><img src="/admins/baseicon/5-s.png"><span>系统设置</span></div>
                    <div data-url="/order_record"><img src="/admins/baseicon/14.png"><img src="/admins/baseicon/14-s.png"><span>交易记录</span></div>
                    </div>
                    <div class="lingd">
                    <img src="/admins/baseicon/10.png">
                    </div>
                    <div class="urel_box">
                    <img src="/admins/baseicon/11.png">
                    <span><?php echo e(session()->get('admin')['username']); ?></span>
                    </div>
                    <div class="bianjie_box dengc">
                    <div data-url="/change_password"><img src="/admins/baseicon/15.png"><img src="/admins/baseicon/15-s.png"><span>修改密码</span></div>
                    <div data-url="/signout"><img src="/admins/baseicon/16.png"><img src="/admins/baseicon/16-s.png"><span>退出登录</span></div>
                    </div>
                    </div>
                </div>
            </div>
          <?php echo $__env->yieldContent('content'); ?>
          </div>
        </div>
       </div>
    <script>
     function hasClass(element, cls) {
       var className = " " + cls + " ",
         rclass = /[\t\n\r\f]/g;
       if (element.nodeType === 1
         && (" " + element.className + " ").replace(rclass, " ").indexOf(className) >= 0) {
         return true;
       }
       return false;
     }
     function addClass(elements, cName) {
        if (!hasClass(elements, cName)) {
            elements.className += " " + cName;
        };
    }
    function stopPropagation(e) {
            e = e || window.event;
            if(e.stopPropagation) { //W3C阻止冒泡方法
                e.stopPropagation();
            } else {
                e.cancelBubble = true; //IE阻止冒泡方法
            }
    }

    </script>
     <script>
     var divli =document.getElementsByClassName('backstage_option');
        for(var i = 0;i < divli.length;i++){
            divli[i].addEventListener('click',function(event){
                event.stopPropagation();
                if(hasClass(this,'backstage_option_zhan')){
                    this.classList.remove("backstage_option_zhan");
                    this.style.maxHeight='53px';
                }else{
                    if(document.getElementsByClassName('backstage_option_zhan')[0]){
                        document.getElementsByClassName('backstage_option_zhan')[0].style.maxHeight='53px';
                        document.getElementsByClassName('backstage_option_zhan')[0].classList.remove("backstage_option_zhan");
                    }
                    addClass(this,'backstage_option_zhan');
                    this.style.maxHeight='500px';
                }
            },false);
            var divtype=divli[i].getElementsByClassName('type_dang');
            for(var s=0;s<divtype.length;s++){
                divtype[s].addEventListener('click',function(event){
                    event.stopPropagation();
                    if(this.getAttribute("data-url")!= null){
                        window.location.href=this.getAttribute("data-url");
                    }
                },false);
            }
        }
        var topdiv =  document.getElementsByClassName('bianjie_box');
         for(var i = 0;i < topdiv.length;i++){
            var topdivs=topdiv[i].getElementsByTagName('div');
            for(var n=0;n<topdivs.length;n++){
                topdivs[n].addEventListener('click',function(event){
                    if(this.getAttribute("data-url")!= null){
                         window.location.href=this.getAttribute("data-url");
                     }
                });
            }
         }
         var bianjiediv = document.getElementsByClassName('bianjie');
         for(var i= 0;i<bianjiediv.length;i++){
              bianjiediv[i].addEventListener('click',function(event){
                    if(this.getAttribute("data-url")!= null){
                         window.location.href=this.getAttribute("data-url");
                     }
              });
         }
     </script>
    </body>
</html>
<?php /**PATH /www/wwwroot/www.13mv.com/resources/views/admin/AdminBase.blade.php ENDPATH**/ ?>