@extends('theme::layout')

@section('content')
    <div class="panel"><h1 class="page-title">最新评论</h1></div>
    <div class="panel">
        @forelse($comments as $comment)
            <div class="comment">
                @include('theme::partials.comment-author')
                <span class="meta"> · <a href="{{ url('/show-'.$comment->article_id.'.shtml') }}">{{ $comment->article?->title }}</a></span>
                <div>{!! $comment->content !!}</div>
            </div>
        @empty
            <p class="meta">暂无评论</p>
        @endforelse
    </div>
    <div class="pagination">{{ $comments->links() }}</div>
@endsection
