@foreach ($comments as $key => $comment) @if ($comment->sender_id && $comment->sender_id == $currentUser->id)
@if ($comment->is_attachment)
@include('livewire.comment.inc.file-preview', ['comment_media' => $comment])
@endif {!! $comment->decoded_message ?? '' !!} @if ($comment->position) {{ $dotCommentCount-- }} @endif
@if ($comment->is_attachment) @endif {{ $comment->created_at->diffForHumans() ?? '' }}
@if(isset($replies[$comment->id])) @foreach ($replies[$comment->id] ?? [] as $key1 => $reply)
@if ($reply->is_attachment)
@include('livewire.comment.inc.file-preview', ['comment_media' => $reply])
@endif {!! $reply->decoded_message ?? '' !!}
@if ($reply->is_attachment) @endif {{ $reply->created_at->diffForHumans() ?? '' }}
@endforeach @endif
@else
@if ($comment->is_attachment)
@include('livewire.comment.inc.file-preview', ['comment_media' => $comment])
@endif {!! $comment->decoded_message ?? '' !!} @if ($comment->position) {{ $dotCommentCount-- }} @endif
@if ($comment->is_attachment) @endif {{ $comment->created_at->diffForHumans() ?? '' }}
@if(isset($replies[$comment->id])) @foreach ($replies[$comment->id] ?? [] as $key1 => $reply)
@if ($reply->is_attachment)
@include('livewire.comment.inc.file-preview', ['comment_media' => $reply])
@endif {!! $reply->decoded_message ?? '' !!}
@if ($reply->is_attachment) @endif {{ $reply->created_at->diffForHumans() ?? '' }}
@endforeach @endif
@endif @endforeach