Bình luận

@if ($isUserLoggedIn) @if($currentUser->hasVerifiedEmail())
@if($message = session('success')) @endif @if($errors->has('content')) @endif
@csrf
@else

Vui lòng xác thực email để bình luận!

@endif @else

Vui đăng nhập để bình luận!

@endif
@foreach($comments as $comment)
@php $commentUser = $comment->user; @endphp
{{ $commentUser->username }}
{!! $commentUser->renderUserName() !!} {{ $comment->created_at_text }}
{!! nl2br($comment->content) !!}
@if(isMyAccount($currentUser, $commentUser))
@csrf @method('delete')
@endif
@endforeach
{{ $comments->links() }}
@section('comment-article-scripts') @endsection