{{-- User Avatar --}}
@if($comment?->user?->avatar) {{ $comment?->user?->name }} @else
{{ strtoupper(substr($comment?->user?->name, 0, 2)) }}
@endif
{{-- Comment Content --}}
{{-- Comment Header --}}
{{ $comment?->user?->name }} {{ $comment->created_at->format('d.m.Y H:i') }}
@can('delete', $comment)
@endcan
{{-- Comment Body --}}
{!! nl2br(e($comment->content)) !!}
{{-- Reply Button --}} @if(!$comment->parent_id && !$discussionThread->is_locked)
@endif
{{-- Reply Form --}} @if(!$discussionThread->is_locked) @endif {{-- Replies --}} @if($comment->replies && $comment->replies->isNotEmpty())
@foreach($comment->replies as $reply) @include('pages.discussions.partials.comment', ['comment' => $reply]) @endforeach
@endif
@push('js') @endpush