@extends('layouts.app')

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


@section('content')

    <!-- mian -->
    <div class="container child">
        <!-- content -->
        <div class="child-content sslb">
            <ul class="spiritual-ul jlhz-border">
                @if ($articles->isNotEmpty())
                    @foreach ($articles as $article)
                        <li>
                            <a class="nowrap" href="{{ $article->link }}">
                                <i class="fa fa-angle-double-right"></i>
                                {{ $article->title }}
                                <span>{{ $article->created_at->format('Y-m-d') }}</span>
                            </a>
                        </li>
                        <li class="spiritual-ul-li">
                            <a href="{{ $article->link }}">
                                <h3 class="spiritual-title nowrap">{{ $article->title }}</h3>
                                <p class="spiritual-info nowrap-multi">
                                    {{ $article->descriiption }}
                                </p>
                            </a>
                        </li>
                    @endforeach
                @endif


            </ul>
            <!-- 分页 -->
            <div class="pages">
                @if ($articles->isNotEmpty())
                    {{ $articles->appends(request()->all())->links('layouts.pagination') }}
                @endif
            </div>
        </div>
    </div>
    <!-- end mian -->

@endsection
