@extends('layouts.app')

@section('title', '首页')

@section('content')
    <!-- 科学研究 -->
    <div class="survey" style="background-image: url(/assets/index/images/studyBack.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"/>
                                {{ $category->title }}
                            </div>
                        </div>
                        @if ($articles->isNotEmpty())
                            <ul class="dateExtend">
                                @foreach ($articles as $article)
                                    <li>
                                        <a href="{{ $article->link }}" target="_blank">
                                            <div class="ce-img cxtdExtend-img">
                                                <span style="background-image: url({{ $article->cover_path }});"></span>
                                            </div>
                                            <div class="dateExtend-right cxtdExtend-right">
                                                <div class="ce-nowrap indexExtend-ul-name">
                                                    {{ $article->title }}
                                                </div>
                                                <div class="ce-nowrap-multi indexExtend-ul-text">
                                                    {{ $article->description }}
                                                </div>
                                            </div>
                                        </a>
                                    </li>
                                @endforeach
                            </ul>
                            <!-- 分页 -->
                            {{ $articles->links('layouts.pagination') }}
                        @else
                            <div class="no-searchCont">
                                <img src="/assets/index/images/org55.png"/>
                                <span>抱歉，暂无数据</span>
                            </div>
                        @endif

                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
