@forelse($comments as $comment)
{{ $comment->name }}
@if($comment->status === 'pending')
Pending
@elseif($comment->status === 'approved')
Approved
@else
Spam
@endif
{{ $comment->email }}
{{ Str::limit($comment->user_agent, 50) }}
{{ $comment->post->title }}
{{ $comment->created_at->diffForHumans() }}
{{ $comment->ip_address }}
@if($comment->status !== 'approved')
@endif
@if($comment->status !== 'spam')
@endif
@empty
No comments found
There are no comments matching the selected filter.
@endforelse
@if($comments->hasPages())
{{ $comments->links() }}
@endif