@props(['comments', 'level' => 0])
@foreach ($comments as $comment)
{{ $comment->user?->name ?? 'Unknown user' }}
{{ $comment->created_at?->format('d M Y H:i') }}
@if ($comment->is_internal) Internal @endif
{!! $comment->body !!}
@if ($comment->attachments->isNotEmpty())
@foreach ($comment->attachments as $attachment) {{ $attachment->original_name }} @endforeach
@endif
Reply
@if (($reply_parent_id ?? null) === $comment->id)
Cancel Post reply
@endif @if ($comment->replies->isNotEmpty())
@include('helpdesk::partials.comment-thread', ['comments' => $comment->replies, 'level' => ((int) $level) + 1])
@endif
@endforeach