@extends('user::layouts.backend-master') @section('breadcrumb_title', 'View Blog Comment') @section('content')

Comment Details

Edit Back to Comments
{{-- Comment Info --}}

Comment Information

User
@if ($blogComment->user)
@if ($blogComment->user->getFirstMediaUrl('avatar')) @else
@endif
{{ $blogComment->user->name }}
{{ $blogComment->user->email }}
@else Guest User @endif
Name
{{ $blogComment->user->name ?? 'N/A' }}
Email
{{ $blogComment->user->email ?? 'N/A' }}
Blog Post
@if ($blogComment->commentable) {{ $blogComment->commentable->title }} @else Blog not found @endif
Comment Content
{{ $blogComment->content ?? 'No content' }}
Status
@if ($blogComment->status == 'approved') Approved @elseif ($blogComment->status == 'spam') Spam @elseif ($blogComment->status == 'pending') Pending @endif
Created At
{{ customDateTimeFormate($blogComment->created_at) }}
Updated At
{{ customDateTimeFormate($blogComment->updated_at) }}
{{-- Parent Comment --}} @if ($blogComment->parent_id && $blogComment->parent)

Parent Comment

{{ $blogComment->parent->user->name ?? $blogComment->parent->name }} {{ $blogComment->parent->created_at->format('M d, Y H:i') }}

{!! nl2br(e($blogComment->parent->content ?? $blogComment->parent->comment)) !!}

@endif {{-- Replies --}} @if ($blogComment->children && $blogComment->children->count() > 0)

Replies ({{ $blogComment->children->count() }})

@foreach ($blogComment->children as $reply)
@if ($reply->user && $reply->user->getFirstMediaUrl('avatar')) User Image @endif {{ $reply->user->name ?? $reply->name }} {{ customDateTimeFormate($reply->created_at) }}

{{ $reply?->content }}

@include('backend::components.show-button', [ 'route' => route('admin.blog-comments.show', $reply->id), ]) @include('backend::components.edit-button', [ 'route' => route('admin.blog-comments.edit', $reply->id), ])
@endforeach
@endif
{{-- Sidebar --}}

Quick Actions

@if ($blogComment->status == 'pending' || $blogComment->status == 'spam') @endif

Add Reply

@csrf
@error('content')

{{ $message }}

@enderror
@endsection @push('scripts') @endpush