@if(!$_W['isajax'])
@include('common.headerbase')
<body layadmin-themealias="ocean-header" class="layui-layout-body" style="position:inherit !important;">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="fui-header-sm">
            <div class="layui-logo">
                <a href="{{ $_W['consolePage'] }}">@lang($_W['page']['title'])</a>
                @if($_W['routePath']!='console')
                    <a href="/console" class="fui-homepage margin-left-sm{{ $_W['inAccount'] && SITEACID==$_W['uniacid'] ? ' layui-hide':'' }}" title="@lang('backConsole')"><span class="layui-icon layui-icon-home"></span></a>
                @endif
            </div>

            <ul class="layui-nav layui-layout-right">
                @if($_W['uid']>0)
                    <li class="layui-nav-item">
                        <a href="javascript:"><!--这个A标签不要加链接-->
                            <img alt="{{$_W['user']['username']}}" src="{{ globalMedia($_W['user']['avatar']) }}" class="layui-nav-img user-avatar layui-hide-xs" />
                            {{$_W['user']['username']}}
                            @if($_W['user']['register_type']==1)<span class="layui-badge-dot"></span>&nbsp;&nbsp;&nbsp;&nbsp;@endif
                        </a>
                        <dl id="layui-admin-usermenu" class="layui-nav-child layui-anim layui-anim-upbit">
                            <dd><a href="{{ wurl('user/profile') }}">@lang('accountManagement')@if($_W['user']['register_type']==1)<span class="layui-badge-dot"></span>&nbsp;&nbsp;&nbsp;&nbsp;@endif</a></dd>
                            <dd><a href="javascript:Core.cacheclear();">@lang('更新缓存')</a></dd>
                            <hr />
                            <dd><a href="javascript:Core.logout();">@lang('logout')</a></dd>
                        </dl>
                    </li>
                    @if($_W['isfounder'])
                        <li class="layui-nav-item{{ $_W['inSetting']?' layui-this':'' }}">
                            @if($_W['config']['site']['id']==0)
                                <a href="{{wurl('active')}}">@lang('systemActivation')<span class="layui-badge-dot"></span></a>
                            @else
                                <a href="{{wurl('setting')}}">@lang('系统管理')</a>
                                <dl id="layui-admin-sysmenu" class="layui-nav-child layui-anim layui-anim-upbit">
                                    <dd><a href="{{ wurl('setting') }}">@lang('站点信息')</a></dd>
                                    <dd><a href="{{ wurl('server') }}">@lang('服务管理')</a></dd>
                                    <dd><a href="{{ wurl('module') }}">@lang('应用管理')</a></dd>
                                    <dd><a href="{{ wurl('logs') }}">@lang('日志管理')</a></dd>
                                </dl>
                            @endif
                        </li>
                        <li class="layui-nav-item layui-hide-xs{{ $_W['inReport']?' layui-this':'' }}">
                            <a href="{{wurl('report')}}">@lang('提交工单')</a>
                        </li>
                    @endif
                    <li class="layui-nav-item layui-hide-xs js-fullscreen" lay-unselect>
                        <a href="javascript:" layadmin-event="fullscreen">
                            <i class="layui-icon layui-icon-screen-full"></i>
                        </a>
                    </li>
                @else
                    <li class="layui-nav-item">
                        <a href="/login">@lang('login')</a>
                    </li>
                    <li class="layui-nav-item layui-hide">
                        <a href="/register">@lang('register')</a>
                    </li>
                @endif
            </ul>
        </div>
    </div>
    <div class="layui-body">
@endif
