@extends('wsb::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 }}">
                                        <div class="nowrap studyList-name">{{ $relation->title }}</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
