@extends('layouts.app')


@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"/>
                                {{ getOneCategory(12,'title') }}
                            </div>
                        </div>
                        <ul class="mediaList">
                            @if (getArticlesBYCate(12,2)->isNotEmpty())
                                @foreach (getArticlesBYCate(12,2) as $article)
                                    <li>
                                        <a href="{{ $article->link }}" target="_blank">
                                            <div class="ce-img mediaList-img">
                                                <span style="background-image: url({{ $article->cover_path }});"></span>
                                            </div>
                                            <div class="mediaList-text">
                                                <div class="ce-nowrap-multi mediaList-name">
                                                    {{ $article->title }}
                                                </div>
                                                <span>{{ $article->description }}</span>
                                            </div>
                                        </a>
                                    </li>
                                @endforeach
                            @endif

                        </ul>
                        <div class="secondMore">
                            <a href=" {{ getOneCategory(12,'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(30,'title') }}
                            </div>
                            <a href="{{ getOneCategory(30,'link') }}" target="_blank" class="secondTop-more">
                                查看更多&gt;&gt;
                            </a>
                        </div>
                        <ul class="indexExtend-ul studyExtend">
                            @if (getArticlesBYCate(30,4)->isNotEmpty())
                                @foreach (getArticlesBYCate(30,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>
            </div>
        </div>
    </div>

@endsection
