<!-- 右侧漂浮窗 -->
<div class="sidebar">
    <br>
    <a class="sidebar-item" href="javascript:;">
        <i class="sidebar-icon sidebar-icon-wx"></i>
        <span>公众号</span>
        <img src="{{ asset('assets/index/images/code.png') }}" width="150" height="150"/>
    </a>
    <br>
    <a class="sidebar-item" href="javascript:window.scrollTo(0,0)">
        <i class="sidebar-icon sidebar-icon-top"></i>
        <span>回到顶部</span>
    </a>
</div>
<!-- End 右侧漂浮窗 -->

<!-- header -->
<header class="header">
    <div class="container">
        <div class="col-md-12">
            <div class="top">
                <a href="https://www.has.ac.cn/">黑龙江省科学院</a>|
                <a href="{{ $gLxwmCate->link }}">联系我们</a>
{{--                <a href="#">网站地图</a>--}}
            </div>
            <div class="bottom">
                <div class="logo">
                    <img src="{{ asset('assets/index/images/logo.png') }}"/>
                </div>
                <div class="search">
                    <form action="{{ route('search') }}" method="post">
                        @csrf

                        <input type="text" name="title" value="{{ request()->title }}" placeholder="请输入您要搜索的内容">
                        <button>
                            <img src="{{ asset('assets/index/images/search.png') }}"/>
                        </button>
                    </form>
                </div>
            </div>
        </div>
    </div>
</header>
<!-- end header -->

<!-- nav -->
<nav class="nav">
    <div class="container">
        <div class="col-md-12">
            <ul class="nav-list">
                <li @if (!isset($topCate)) class="active" @endif>
                    <a href="/">
                        <img src="{{ asset('assets/index/images/home.png') }}"/>
                        首页
                    </a>
                </li>
                @foreach ($all_categorys as $cate)
                    <li @if (isset($topCate) && $cate->id==$topCate->id) class="active" @endif>
                        <a href="{{ $cate->link }}">
                            {{ $cate->title }}
                        </a>
                    </li>
                @endforeach
            </ul>
        </div>
    </div>
</nav>
<!-- end header -->