@if(!$showForm && !$editCommentId)
@endif @if($showForm)

{{ __('messages.comments_recipients_hint') }}

@error('content') {{ $message }} @enderror @error('selectedRecipientIds') {{ $message }} @enderror
@endif
@if(count($comments) > 0) @foreach($comments as $comment)
@if ($comment->user->avatar_url) {{ trim(collect([$comment->user->name, $comment->user->surname])->filter()->implode(' ')) ?: $comment->user->email }} @else
{{ $comment->user->initials() }}
@endif
{{ trim(collect([$comment->user->name, $comment->user->surname])->filter()->implode(' ')) ?: $comment->user->email }} @if($hasCommentRecipientsTable && $comment->recipients->isNotEmpty())
@foreach($comment->recipients as $recipient) {{ trim(collect([$recipient->name, $recipient->surname])->filter()->implode(' ')) ?: $recipient->email }} @endforeach
@endif
{{ $comment->user->group?->title }}
{!! $comment->content !!}
{{ $comment->created_at->diffForHumans() }}
@if($editCommentId === $comment->id)

{{ __('messages.comments_recipients_hint') }}

@error('editContent') {{ $message }} @enderror @error('editRecipientIds') {{ $message }} @enderror
@endif
@endforeach @else
{{ __('messages.comments_empty') }}
@endif