@extends('layouts.app')

@section('title', '搜索结果')


@section('content')
    <!-- 内容 -->
    <div class="second">
        <div class="container">
            <!-- 列表页 -->
            <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>
                                    <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>
    <!-- end 内容 -->
@endsection
