@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>
                        <ul class="indexExtend-ul studyExtend">

                            @if ($articles->isNotEmpty())
                                @foreach ($articles as $article)
                                    <li>
                                        <a href="{{ $article->link }}">
                                            <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>

                        <!-- 分页 -->

                        @if ($articles->isNotEmpty())
                            {{ $articles->links('layouts.pagination') }}
                        @endif
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
