<!-- 微信漂浮窗 -->
<div class="Rightfixed">
    <div class="Rightfixed-img">
        <img class="Rightfixed-img-code" src="/assets/index/images/wxFixed.png"/>
        <img src="/assets/index/images/wxImg.png" class="Rightfixed-pop">
    </div>
</div>
<!-- 头部 -->
<div class="navTop">
    <div class="container">
        <div class="row">
            <div class="col-xs-12 col-md-12">
                <span data-href="#">联系我们</span> /
                <span data-href="#">网站地图</span> /
                <span data-href="#">电子邮箱</span>
            </div>
        </div>
    </div>
</div>

<!-- 导航 -->
<div class="container">
    <div class="navHead">
        <div class="row">
            <div class="col-md-8 col-xs-12">
                <img data-href="/" src="/assets/index/images/logo.png"/>
            </div>
            <div class="col-md-4 col-xs-12">
                <form action="{{ route('index.search') }}">

                    <div class="navHead-search">
                        <input type="text" name="title" placeholder="输入关键字搜索">
                        <button class="navHead-logo"><img src="/assets/index/images/search_Icon.png"/></button>
                    </div>
                </form>
            </div>

        </div>
    </div>
</div>

<!-- banner -->
<div class="container">
    <div class="banner">
        <div class="row">
            <div class="col-md-12 col-xs-12">
                <img src="{{ getOneAdvertByCate(34,'cover_url') }}"/>
            </div>
            <div class="col-md-12 col-xs-12">
                <ul class="banner-nav">
                    <li data-href="/" @if (!isset($parent)) class="active" @endif>首页</li>
                    @php
                        $top_ids =[];
                        if (isset($parent)) {
                           if (!is_array($parent)) {
                                 $top_ids = [$parent->id];
                            }else{
                              $top_ids = $parent;
                            }
                        }
                    @endphp
                    @foreach ($all_categorys as $cate)
                        <li @if (in_array($cate->id,$top_ids)) class="active" @endif data-href="{{ $cate->link }}">
                            {{ $cate->title }}
                        </li>
                    @endforeach
                </ul>
            </div>
        </div>
    </div>
</div>

