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

Comment Moderation

Review and moderate user comments

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
@forelse($comments as $comment)
{{ strtoupper(substr($comment->user->name, 0, 1)) }}
{{ $comment->user->name }} • {{ $comment->created_at->diffForHumans() }}
@if($comment->isPending()) Pending Review @elseif($comment->isApproved()) Approved @else Rejected @endif

{{ $comment->body }}

@if($comment->moderated_at)
Moderated by: {{ $comment->moderator->name ?? 'Unknown' }} • Date: {{ $comment->moderated_at->format('M d, Y h:i A') }}
@if($comment->moderation_note)
Note: {{ $comment->moderation_note }}
@endif
@endif
@if($comment->isPending())
@csrf
@csrf
@elseif($comment->isApproved())
@csrf
@csrf
@else
@csrf
@csrf
@endif Edit
@csrf @method('DELETE')
@empty

No comments found

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