@extends('layouts.app')

@section('title', $parent->title)

@section('content')
    <!-- 面包屑导航 -->
    @include('category.navigation')

    <!-- 内容 -->
    <div class="container">
        <div class="row">
            <!-- 左侧导航部分 -->
        @include('category.left')
        <!-- 右侧内容部分 -->
            <div class="col-xs-12 col-md-9">
                <div class="levelRight">
                    <!-- start 国际平台 -->
                    <div class="terraceInter">
                        <div class="terrace-title">
                            <span style="background-image: url(/assets/index/images/terraceTitle_back.png);">
                                {{ getOneCategory(55,'title') }}
                            </span>
                        </div>
                        <div class="row">
                            <div class="col-xs-12 col-md-6">
                                <div class="row">
                                    @if (getArticlesBYCate(55,5)->isNotEmpty())
                                        @foreach (getArticlesBYCate(55,5) as $info)
                                            @if($loop->iteration<5)
                                                <div class="col-xs-12 col-md-6 terraceInter-padding">
                                                    <div class="publicHover terraceInter-list"
                                                         data-href="{{ $info->link }}">
                                                        <div class="ce-nowrap-multi terraceInter-left-name">
                                                            {{ $info->title }}
                                                        </div>
                                                        <div class="ce-img terraceInter-left-img">
                                                            <!-- 图片为5:3 -->
                                                            <span style="background-image: url({{ $info->cover_url }});"></span>
                                                        </div>
                                                    </div>
                                                </div>
                                            @endif
                                        @endforeach
                                    @endif
                                </div>
                            </div>
                            @if (getArticlesBYCate(55,5)->isNotEmpty())
                                @foreach (getArticlesBYCate(55,5) as $info)
                                    @if($loop->iteration>4)
                                        <div class="col-xs-12 col-md-6 terraceInter-padding">
                                            <div class="publicHover terraceInter-list" data-href="{{ $info->link }}">
                                                <div class="ce-nowrap-multi terraceInter-right-name">
                                                    {{ $info->title }}
                                                </div>
                                                <div class="ce-img terraceInter-right-img">
                                                    <!-- 图片为4:3 -->
                                                    <span style="background-image: url({{ $info->cover_url }});"></span>
                                                </div>
                                            </div>
                                        </div>
                                    @endif
                                @endforeach
                            @endif

                        </div>
                    </div>
                    <!-- end 国际平台 -->

                    <!-- start 国家平台 -->
                    <div class="terraceHome briefMargin">
                        <div class="terrace-title">
                            <span style="background-image: url(/assets/index/images/terraceTitle_back.png);">
                                   {{ getOneCategory(56,'title') }}
                            </span>
                        </div>
                        <div class="row">
                            @if (getArticlesBYCate(56,3)->isNotEmpty())
                                @foreach (getArticlesBYCate(56,3) as $info)
                                    @if($loop->iteration==1)
                                        <div class="col-xs-12 col-md-4 terraceHome-nopadding">
                                            <div class="terraceHome-left" data-href="{{ $info->link }}">
                                                <div class="ce-img terraceHome-left-img">
                                                    <!-- 图片为1:1 -->
                                                    <span style="background-image: url({{ $info->cover_url }});"></span>
                                                </div>
                                                <div class="terraceHome-left-cont">
                                                    <div class="terraceHome-left-webkit">
                                                        <span class="ce-nowrap-multi">{{ $info->title }}</span>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    @endif
                                @endforeach
                            @endif

                            <div class="col-xs-12 col-md-8 terraceHome-nopadding">
                                <ul class="terraceHome-label">
                                    @if (getArticlesBYCate(56,3)->isNotEmpty())
                                        @foreach (getArticlesBYCate(56,3) as $info)
                                            @if($loop->iteration>1)
                                                <li class="" data-href="{{ $info->link }}">
                                                    <div class="ce-img terraceHome-right-img">
                                                        <!-- 图片为1:1 -->
                                                        <span style="background-image: url({{ $info->cover_url }});"></span>
                                                    </div>
                                                    <div class="terraceHome-cont">
                                                        <div class="terraceHome-webkit">
                                                            <span class="ce-nowrap-multi">{{ $info->title }}</span>
                                                        </div>
                                                    </div>
                                                </li>
                                            @endif
                                        @endforeach
                                    @endif
                                </ul>
                            </div>
                        </div>
                    </div>
                    <!-- end 国家平台 -->

                    <!-- start 省级平台 -->
                    <div class="terraceSave">
                        <div class="terrace-title">
                            <span style="background-image: url(/assets/index/images/terraceTitle_back.png);">
                                      {{ getOneCategory(57,'title') }}
                            </span>
                        </div>
                        <div class="row">
                            @if (getArticlesBYCate(57,6)->isNotEmpty())
                                @foreach (getArticlesBYCate(57,6) as $info)
                                    <div class="col-xs-12 col-md-4 terraceInter-padding">
                                        <div class="publicHover terraceSave-list" data-href="{{ $info->link }}">
                                            <div class="ce-nowrap-multi terraceSave-left-name">
                                                {{ $info->title }}
                                            </div>
                                            <div class="terraceSave-left-tips">
                                                省级
                                            </div>
                                            <div class="ce-img terraceInter-left-img">
                                                <!-- 图片为5:3 -->
                                                <span style="background-image: url({{ $info->cover_url }});"></span>
                                            </div>
                                        </div>
                                    </div>
                                @endforeach
                            @endif
                        </div>
                    </div>
                    <!-- end 省级平台 -->

                    <!-- start 院级平台 -->
                    <div class="terraceYard briefMargin">
                        <div class="terrace-title">
                            <span style="background-image: url(/assets/index/images/terraceTitle_back.png);">
                                {{ getOneCategory(58,'title') }}
                            </span>
                        </div>
                        <div class="row">
                            @if (getArticlesBYCate(58,3)->isNotEmpty())
                                @foreach (getArticlesBYCate(58,3) as $info)
                                    <div class="col-xs-12 col-md-4 terraceInter-padding">
                                        <div class="publicHover terraceYard-list" data-href="{{ $info->link }}">
                                            <div class="ce-nowrap-multi terraceSave-left-name">
                                                {{ $info->title }}
                                            </div>
                                            <div class="ce-img terraceInter-left-img terraceFixed-left-img">
                                                <!-- 图片为5:3 -->
                                                <span style="background-image: url({{ $info->cover_url }});"></span>
                                            </div>
                                        </div>
                                    </div>
                                @endforeach
                            @endif
                        </div>
                    </div>
                    <!-- end 院级平台 -->

                    <!-- start 定位研究站 -->
                    <div class="terraceFixed">
                        <div class="terrace-title">
                            <span style="background-image: url(/assets/index/images/terraceTitle_back.png);">
                                {{ getOneCategory(59,'title') }}
                            </span>
                        </div>
                        <div class="row">
                            @if (getArticlesBYCate(59,6)->isNotEmpty())
                                @foreach (getArticlesBYCate(59,6) as $info)
                                    <div class="col-xs-12 col-md-4 terraceInter-padding">
                                        <div class="publicHover terraceFixed-list" data-href="{{ $info->link }}">
                                            <div class="ce-nowrap-multi terraceFixed-left-name">
                                                {{ $info->title }}
                                            </div>
                                            <div class="ce-img terraceInter-left-img terraceFixed-left-img">
                                                <!-- 图片为4:3 -->
                                                <span style="background-image: url({{ $info->cover_url }});"></span>
                                            </div>
                                        </div>
                                    </div>
                                @endforeach
                            @endif
                        </div>
                    </div>
                    <!-- end 定位研究站 -->
                </div>
            </div>
        </div>
    </div>
@endsection

