$comment->status === 'pending']) data-comment-id="{{ $comment->id }}" style="margin-left: {{ $level ? 30 : 0 }}px;">
@if(($level ?? 0) > 0) @endif @if($comment->author_profile_photo) {{ $comment->author }} @endif {{ $comment->author_name }} {{ $comment->published_at?->diffForHumans() ?? 'Just now' }} @if($comment->is_edited) (edited) @endif
{{-- Comment Actions --}}
{!! nl2br($comment->content) !!}
{{-- Comment Attachments --}} @if($comment->attachments && $comment->attachments->count() > 0)
@foreach($comment->attachments as $attachment) @if($attachment->is_image) {{ $attachment->original_name }} @else {{ Str::limit($attachment->original_name, 20) }} ({{ $attachment->file_size_human }}) @endif @endforeach
@endif {{-- Dynamic Reply Form Container --}}
{{-- Dynamic Edit Form Container --}}
{{-- Child Comments --}} @if($comment->children && $comment->children->count() > 0 && $level < 3)
@foreach($comment->children->sortByDesc('published_at') as $child) @include('sitemanager::board.partials.comment', ['comment' => $child, 'level' => $level + 1]) @endforeach
@endif