@extends('admin_base') @section('title', 'Blog Comments') @section('style') @endsection @section('content')

Blog Comments

@if($paginatedComments->isEmpty())

No comments found.

@else
@foreach($paginatedComments as $item) @if($item['type'] === 'comment') @php $comment = $item['data']['comment']; $replies = $item['data']['replies']; @endphp @else @php $reply = $item['reply']; $comment = $item['data']['comment']; @endphp @endif @endforeach
User Comment Post Date Actions
{{ $comment->comment }}
@if($replies->count() > 0)
{{ $replies->count() }} {{ Str::plural('reply', $replies->count()) }}
@endif
{{ $item['blog']->title }}
{{ $comment->created_at->format('d M, Y h:i A') }}
{{ $comment->created_at->format('h:i A') }}
{{ $reply->comment }}
Reply
{{ $reply->created_at->format('d M, Y h:i A') }}
{{ $reply->created_at->format('h:i A') }}
@if($paginatedComments->hasPages())
{{ $paginatedComments->links('pagination::bootstrap-4') }}
@endif @endif
@endsection @section('script') @endsection