@extends('layouts.app')

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


@section('content')

    <div class="survey" style="background-image: url(/assets/index/images/studyBack.png);">
        <div class="container">
            <div class="row searchCont">

                @if ($articles->isNotEmpty())
                    <div class="col-xs-12 col-md-12">
                        <ul class="indexExtend-ul studyExtend">
                            @foreach ($articles as $article)
                                <li>
                                    <a href="{{ $article->link }}" target="_blank">
                                        <div class="ce-nowrap indexExtend-ul-name">
                                            {{ $article->title }}
                                        </div>
                                        <div class="indexExtend-ul-time">{{ $article->created_at }}</div>
                                        <div class="ce-nowrap-multi indexExtend-ul-text">
                                            {{ $article->descriiption }}
                                        </div>
                                    </a>
                                </li>
                            @endforeach
                        </ul>
                        @if ($articles->isNotEmpty())
                            {{ $articles->appends(request()->all())->links('layouts.pagination') }}
                        @endif
                    </div>

                @else
                    <div class="no-searchCont">
                        <img src="/assets/index/images/org55.png"/>
                        <span>抱歉，暂无搜索到内容</span>
                    </div>
                @endif
            </div>
        </div>
    </div>
@endsection
