@extends('layouts.app')

@section('meta')
    @include('meta.list')
@endsection

@section('content')
    <!-- 内容 -->
    <div class="second">
        <div class="container">
            @include('category.left')

            <div class="secondRight">
                <div class="crumbs">
                    当前位置： 首页 &gt; {{ $category->title }}
                </div>

                <!-- 列表页 -->
                <div class="noGraph">
                    @if ($articles->isNotEmpty())
                        <ul class="studyList">
                            @foreach ($articles as $relation)
                                <li>
                                    <a href="{{ $relation->link }}" target="_blank">
                                        <div class="ce-nowrap studyList-name">
                                            {{ $relation->title }}
                                        </div>
                                        <div class="studyList-time">
                                            {{ $relation->created_at->format('Y-m-d') }}
                                        </div>
                                    </a>
                                </li>
                            @endforeach
                        </ul>

                        <!-- 分页 -->
                        <div class="pageUl">
                            @if ($articles->isNotEmpty())
                                {{ $articles->links('layouts.pagination') }}
                            @endif
                        </div>
                    @else
                        @include('layouts.empty')
                    @endif
                </div>
            </div>
        </div>
    </div>
    <!-- end 内容 -->
@endsection
