{{-- Comment Item Component --}}
{{ substr($comment->user->name, 0, 1) }}

{{ $comment->user->name }}

{{ $comment->created_at->diffForHumans() }}

{{ $comment->content }}

@auth @endauth @auth @if (auth()->id() === $comment->user_id || auth()->user()->isAdmin()) @endif @endauth
@auth @endauth @if ($comment->replies->count() > 0)
@foreach ($comment->replies as $reply) @include('components.comment-item', ['comment' => $reply]) @endforeach
@else
@endif