@extends('admin.layouts.app') @section('title', 'Blog Comments') @section('content')

Blog Comments

Moderate blog comments

@if($comments->count() > 0)
@foreach($comments as $comment)
{{ $comment->name }} {{ $comment->email }} {{ ucfirst($comment->status) }}

{{ $comment->comment }}

On: {{ $comment->blog->title ?? 'Unknown Post' }} {{ $comment->created_at->diffForHumans() }}
@if($comment->status === 'pending')
@csrf
@csrf
@endif
@csrf @method('DELETE')
@endforeach
{{ $comments->links() }}
@else

No comments found

@endif
@endsection