@extends('layouts.app')

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


@section('css')
    <link href="{{ asset('assets/index/css/video.css') }}" rel="stylesheet" type="text/css"/>
@endsection

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

    <!-- 内容 -->
    <div class="container">
        <div class="row">
            <!-- 左侧导航部分 -->
        @include('category.left')
        <!-- 右侧内容部分 -->
            @if ($articles->isNotEmpty())
                <div class="col-xs-12 col-md-9">
                    <div class="levelRight">
                        <div class="row">
                            @foreach ($articles as $article)
                                <div class="col-lg-4">
                                    <div class="videoList">
                                        <div class="ce-img videoImg m-video"
                                             data-src="{{ $article->cover_url }}">
                                            <span style="background-image: url(/assets/index/images/index-news.png);"></span>
                                            <img class="videoImg-icon"
                                                 src="/assets/index/images/srIcon/srSpread_icon_list.png"/>
                                        </div>
                                        <div class="videoText">
                                            <p class="ce-nowrap-multi">{{ $article->title }}</p>
                                        </div>
                                    </div>
                                </div>
                            @endforeach
                        </div>
                    </div>
                    <div class="pageUl">
                        @if ($articles->isNotEmpty())
                            {{ $articles->links('layouts.pagination') }}
                        @endif
                    </div>
                </div>
            @else
                <div class="col-md-12 col-xs-12">
                    <div class="no-searchCont">
                        <img src="/assets/index/images/org55.png"/>
                        <span>抱歉，暂无内容</span>
                    </div>
                </div>
            @endif
        </div>
    </div>
@endsection
@push('script')
    <script type="text/javascript" src="{{ asset('assets/index/js/pingzi_video.js') }}"></script>
@endpush
