@php /** @var \WebDevEtc\BlogEtc\Models\Comment[] $comments */ @endphp @extends('blogetc_admin::layouts.admin_layout') @section('title', 'BlogEtc Manage Comments') @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 Post Edit Post @endif @if(!$comment->approved) {{--APPROVE BUTTON--}}
id)}}" class="float-right"> @csrf @method("PATCH")
@endif {{--DELETE BUTTON--}}
id)}}" class="float-right"> @csrf @method("DELETE")
@empty
None found
@endforelse
{{ $comments->links() }}
@endsection