<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{{ config('app.name', '') }}</title>
    <link rel="stylesheet" type="text/css" href="{{ asset('assets/new_theme/css/bootstrap.min.css') }}"/>
    <link rel="stylesheet" type="text/css" href="{{ asset('assets/new_theme/css/style.css') }}"/>
    <link rel="stylesheet" type="text/css" href="{{ asset('assets/new_theme/css/swiper.min.css') }}"/>
</head>

<body oncontextmenu='return false' ondragstart='return false' onselectstart='return false' onselect='document.selection.empty()' oncopy='document.selection.empty()' onbeforecopy='return false' onmouseup='document.selection.empty()'>
<!-- 顶部 -->
<div class="indexHead">
    <div class="container">
        <div class="row">
            <div class="col-xs-8 col-md-9 indexHead-nav">
                <a href="#"><img src="new-theme-assets/images/collectIcon.png"/>加入收藏</a>
                <a href="#" style="margin-left: 20px;"><img src="new-theme-assets/images/websiteIcon.png"/>院所网站</a>
            </div>
            <form class="tool-search" action="{{ route('article.search') }}">
                <div class="col-xs-4 col-md-3 indexHead-search">
                    <input type="text" name="title" value="" placeholder="请输入..."/>
                    <button type="submit">搜索</button>
                </div>
            </form>
        </div>
    </div>
</div>

<!-- 导航 -->
<div class="indexNav">
    <div class="container">
        <div class="row">
            <div class="col-xs-12 col-md-4 indexNav-logo">
                <a href="/"><img src="/new-theme-assets/images/logo.png"/></a>
            </div>
            <ul class="col-xs-12 col-md-8 indexNav-nav">
                <li @if (!isset($parent)) class="active" @endif><a href="/">网站首页</a></li>
                @foreach ($all_categorys as $cate)
                    <li @if (isset($parent) && $cate->id==$parent->id) class="active" @endif
                    ><a href="{{ route('category.show',$cate) }}">{{ $cate->title }}</a></li>
                @endforeach
            </ul>
        </div>
    </div>
</div>

<!-- 日期 -->
<div class="indexDate">
    <div class="container">
        今天是 {{ now()->isoFormat('Y年M月D日 a h:mm:ss') }} {{ now()->get('dayName') }}
    </div>
</div>
@section('content')

@show
<script src="{{ asset('assets/new_theme/js/jquery-3.2.1.min.js') }}" type="text/javascript" charset="utf-8"></script>
<script src="{{ asset('assets/new_theme/js/bootstrap.min.js') }}" type="text/javascript" charset="utf-8"></script>
<script src="{{ asset('assets/new_theme/js/swiper.min.js') }}" type="text/javascript" charset="utf-8"></script>

<!-- 友情链接 -->
<div class="link">
    <div class="container">
        <div class="linkTitle">
            <span>友情链接</span>/ Links
        </div>
        <ul class="linkUl">
            @if ($links->isNotEmpty())
                @foreach ($links as $link)
                    <li><a href="{{ $link->url }}">{{ $link->title}}</a></li>
                @endforeach
            @endif
        </ul>
    </div>
</div>

<!-- 底部菜单 -->
<div class="footer">
    <div class="container">
        <ul class="footerList">
            <li>
                黑龙江省科学院大庆分院 版权所有 (C)2012 All Right Reserved Power by DedeCms
            </li>
            <li>
                <span>地址：黑龙江省大庆高新区博学大街45号</span>
                <span>黑ICP备1000001号</span>
            </li>
            <li>
                <span>邮箱：hkydqyb@126.com</span>
                <span>电话：086-459-8998866</span>
                <span>传真：086-459-8998866</span>
                <span>邮编：163319</span>
            </li>
        </ul>
        <img src="{{ asset('assets/new_theme/images/blue.png') }}"/>
    </div>
</div>

@stack('script')

</body>
</html>
