@extends('layouts.app')


@section('content')
    <!-- 科学研究 -->
    <div class="survey" style="background-image: url(/assets/index/images/flowBack.png);">
        <div class="container">
            <div class="row">
                @include('category.left')
                <div class="col-xs-12 col-md-9 secondRight">
                    <!-- 科研动态 -->
                    <div class="surveyCont">
                        <div class="secondTop">
                            <div class="secondTop-name">
                                <img src="/assets/index/images/studyIcon_00.png"/>
                                {{ getOneCategory(8,'title') }}
                            </div>
                        </div>
                        <ul class="indexTeam-ul studyDynamic">
                            @if (getArticlesBYCate(8,4)->isNotEmpty())
                                @foreach (getArticlesBYCate(8,4) as $article)
                                    <li>
                                        <a href="{{ $article->link }}" target="_blank">
                                            <div class="ce-img indexTeam-img">
                                                <span style="background-image: url({{ $article->cover_path }});"></span>
                                            </div>
                                            <div class="indexTeam-cont">
                                                <div class="ce-nowrap-multi studyDynamic-name">
                                                    {{ $article->title }}
                                                </div>
                                                <div class="ce-nowrap-multi studyDynamic-time">
                                                    <div class="studyDynamic-icon">
                                                        <img src="/assets/index/images/studyTime.png"/>
                                                        {{ $article->created_at->format('Y/m/d') }}
                                                    </div>
                                                    <img src="/assets/index/images/studyRow.png"/>
                                                </div>
                                                <img class="studyDynamic-img" src="/assets/index/images/studyImg.png"/>
                                            </div>
                                        </a>
                                    </li>

                                @endforeach
                            @endif
                        </ul>
                        <div class="secondMore">
                            <a href="{{ getOneCategory(8,'link') }}" target="_blank">查看更多&gt;</a>
                        </div>
                    </div>

                    <!-- 成果专利 -->
                    <div class="surveyCont">
                        <div class="secondTop">
                            <div class="secondTop-name">
                                <img src="/assets/index/images/studyIcon_01.png"/>
                                {{ getOneCategory(16,'title') }}
                            </div>
                            <a href="{{ getOneCategory(16,'link') }}" target="_blank" class="secondTop-more">
                                查看更多&gt;&gt;
                            </a>
                        </div>
                        <ul class="indexExtend-ul studyExtend">
                            @if (getArticlesBYCate(16,4)->isNotEmpty())
                                @foreach (getArticlesBYCate(16,4) as $article)
                                    <li>
                                        <a href="{{ $article->link }}" target="_blank">
                                            <div class="ce-nowrap indexExtend-ul-name">
                                                {{ $article->title }}
                                            </div>
                                            <div class="ce-nowrap-multi indexExtend-ul-text">
                                                {{ $article->description }}
                                            </div>
                                        </a>
                                    </li>
                                @endforeach
                            @endif
                        </ul>
                    </div>

                    <!-- 项目推广 -->
                    <div class="surveyCont">
                        <div class="secondTop">
                            <div class="secondTop-name">
                                <img src="/assets/index/images/studyIcon_01.png"/>
                                {{ getOneCategory(18,'title') }}
                            </div>
                            <a href="{{ getOneCategory(18,'link') }}" target="_blank" class="secondTop-more">
                                查看更多&gt;&gt;
                            </a>
                        </div>
                        <ul class="indexExtend-ul studyExtend">

                            @if (getArticlesBYCate(18,4)->isNotEmpty())
                                @foreach (getArticlesBYCate(18,4) as $article)
                                    <li>
                                        <a href="{{ $article->link }}" target="_blank">
                                            <div class="ce-nowrap indexExtend-ul-name">
                                                {{ $article->title }}
                                            </div>
                                            <div class="ce-nowrap-multi indexExtend-ul-text">
                                                {{ $article->description }}
                                            </div>
                                        </a>
                                    </li>
                                @endforeach
                            @endif
                        </ul>
                    </div>

                    <!-- 创新平台 -->
                    <div class="surveyCont">
                        <div class="secondTop">
                            <div class="secondTop-name">
                                <img src="/assets/index/images/studyIcon_02.png"/>
                                {{ getOneCategory(24,'title') }}
                            </div>
                        </div>
                        <ul class="studyTerrace">
                            @if (getArticlesBYCate(24,6)->isNotEmpty())
                                @foreach (getArticlesBYCate(24,6) as $article)
                                    <li>
                                        <a href="{{ $article->link }}" target="_blank">
                                            <div class="studyTerrace-name">
                                                <div class="studyTerrace-tips">
                                                    {{ $article->title }}
                                                </div>
                                            </div>
                                        </a>
                                    </li>
                                @endforeach
                            @endif
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
