@extends('layouts.app')

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

@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">
                    <ul class="indexExtend-ul studyExtend">
                        @foreach ($articles as $article)
                            <li data-href="{{ $article->link }}" class="publicHover">
                                <div class="ce-nowrap indexExtend-ul-name">
                                    {{ $article->title }}
                                </div>
                                <div class="ce-nowrap-multi indexExtend-ul-text">
                                    {{ $article->description }}
                                </div>
                            </li>
                        @endforeach
                    </ul>
                    <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
