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

Comments

@forelse($comments as $comment) @empty @endforelse
Article Author Comment Status Actions
{{ $comment->article->title ?? 'N/A' }} {{ $comment->user?->name ?? 'Guest' }} {{ $comment->body }} {{ ucfirst($comment->status) }} @if($comment->status !== 'approved')
@csrf
@endif @if($comment->status !== 'hidden')
@csrf
@endif
@csrf @method('DELETE')
No comments found.
{{ $comments->links() }}
@endsection