<?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>




                <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() =='withdraw' || request()->path() =='settlement_records' || request()->path() =='settlement_account'){echo 'backstage_option_zhan';}?>" <?php if(request()->path() =='settlement_records' || request()->path() =='settlement_account' || request()->path() =='withdraw'){echo 'style="max-height:500px;"';}?>>
                    <div class="type_title">
                    <img class="icon" src="/members/baseicon/3.png">提现管理
                    <img src="/admins/baseicon/ac.png" class="jiant">
                    </div>
                 <div class="type_dang" data-url="/settlement_records" <?php if(request()->path() =='settlement_records'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>提款记录</div>
                   <div class="type_dang" data-url="/settlement_account" <?php if(request()->path() =='settlement_account'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>>提款账户</div>
                     <div class="type_dang" data-url="/withdraw" <?php if(request()->path() =='withdraw'){ 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="/change_password" <?php if(request()->path() =='change_password'){ echo 'style="background: #2d8cf0!important;color:#ffffff; font-weight: bold;"';}?>><span>修改密码</span></div>

                </div>
                <div class="backstage_option ">
                  <div class="type_title" data-url="/signout">
                    <img class="icon" src="/admins/baseicon/16.png"><a href="/signout">退出登录</a>


                  </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="lingd">
                    <img src="/admins/baseicon/10.png">
                    </div>
                    <div class="urel_box">
                    <img src="/admins/baseicon/11.png">
                    <span><?php echo e(session()->get('daili')['phone']); ?></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.laoshuzf.com/resources/views/daili/AdminBase.blade.php ENDPATH**/ ?>