{{ get_label('discussions', 'Discussions') }} : {{ $project->title }}
@if (isset($project->comments) && $project->comments->isNotEmpty()) @foreach ($project->comments->whereNull('parent_id')->reverse() as $comment)
Jump to comment-{{ $comment->id }}
{{ isset($comment->user->first_name) && isset($comment->user->last_name) ? $comment->user->first_name . ' ' . $comment->user->last_name : 'User' }}
{{ isset($comment->user->first_name) && isset($comment->user->last_name) ? $comment->user->first_name . ' ' . $comment->user->last_name : 'Unknown User' }}

{{ isset($comment->created_at) ? $comment->created_at->diffForHumans() : '' }} @if (isset($comment->created_at) && $comment->created_at != $comment->updated_at) ({{ get_label('edited', 'Edited') }}) @endif

@if (isAdminOrHasAllDataAccess()) @endif

{!! isset($comment->content) ? $comment->content : '' !!}

@if (isset($comment->attachments) && $comment->attachments->isNotEmpty())
@foreach ($comment->attachments as $attachment) @endforeach
@endif
@if (isset($comment->children) && $comment->children->count() > 0)
@foreach ($comment->children->reverse() as $reply)
Jump to comment-{{ $reply->id }}
{{ isset($reply->user->first_name) && isset($reply->user->last_name) ? $reply->user->first_name . ' ' . $reply->user->last_name : 'User' }}
{{ isset($reply->user->first_name) && isset($reply->user->last_name) ? $reply->user->first_name . ' ' . $reply->user->last_name : 'Unknown User' }}

{{ isset($reply->created_at) ? $reply->created_at->diffForHumans() : '' }} @if (isset($reply->created_at) && $reply->created_at != $reply->updated_at) ({{ get_label('edited', 'Edited') }}) @endif

@if (isAdminOrHasAllDataAccess()) @endif

{!! isset($reply->content) ? $reply->content : '' !!}

@if (isset($reply->attachments) && $reply->attachments->isNotEmpty())
@foreach ($reply->attachments as $attachment) @endforeach
@endif
@endforeach
@endif
@endforeach @else

{{ get_label('no_comments', 'No Comments') }}

@endif
@if (isset($project->comments) && $project->comments->count() > 5)
@endif