@extends('layouts.admin') @section('content')

Comment Moderation

Manage and moderate user comments

{{ $pendingCount }} Pending {{ $spamCount }} Spam
Comments List
@forelse($comments as $comment)
{{ $comment->name }}
{{ $comment->name }}
@if($comment->status === 'pending') Pending @elseif($comment->status === 'approved') Approved @else Spam @endif
{{ $comment->email }}
{{ Str::limit($comment->user_agent, 50) }}

{{ $comment->comment }}

{{ $comment->post->title }} {{ $comment->created_at->diffForHumans() }} {{ $comment->ip_address }}
@if($comment->status !== 'approved')
@csrf
@endif @if($comment->status !== 'spam')
@csrf
@endif
@empty
No comments found

There are no comments matching the selected filter.

@endforelse @if($comments->hasPages())
{{ $comments->links() }}
@endif
@endsection