@extends("blogetc_admin::layouts.admin_layout") @section("content") @forelse ($comments as $comment)
{{$comment->author()}} commented on: @if($comment->post)
{{$comment->post->title}}
@else Unknown blog post @endif on {{$comment->created_at}}
{{$comment->comment}}
@if($comment->post) {{--VIEW + EDIT POST LINKS--}}
View Post
Edit Post
@endif @if(!$comment->approved) {{--APPROVE BUTTON--}}
@csrf @method("PATCH")
@endif {{--DELETE BUTTON--}}
@csrf @method("DELETE")
@empty
None found
@endforelse
{{$comments->appends( [] )->links()}}
@endsection