<div class="comment-box-item comment-item @if ($comment->parent_id == 0) parentComment @endif ">
    <div class="comment-box-item__thumb">
        <img src="{{ getImage(getFilePath('userProfile') . '/' . @$comment->user->image) }}" alt="User Image">
    </div>
    <div class="comment-box-item__content">
        <p class="comment-box-item__name">{{ @$comment->user->fullname }}
            <span class="time">{{ $comment->created_at->diffForHumans() }}</span>
        </p>
        <p class="comment-box-item__text">
            @if ($comment->parent_id)
                <span class="badge badge--base"><span>@</span>{{ @$comment->replierUser->fullname }}</span>
            @endif
            <span> {{ $comment->comment }}</span>
        </p>
        <div class="reaction-btn">
            @include('Template::partials.comment_reaction')
            <div class="reaction-btn__reply">
                <button class="reply">@lang('Reply')</button>
            </div>
        </div>
        @if ($comment->parent_id == 0)
            <div class="reply-wrapper">
        @endif
        <form class="reply-form d-none mb-3">
            <input name="reply_to" type="hidden" value="{{ $comment->id }}" />

            <textarea class="form--control reply-form__textarea commentBox" name="comment" placeholder="Add a comment"></textarea>

            <div class="reply-form__input-btn">
                <button class="reply-form__btn submit-reply" type="submit">
                    <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
                         fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
                         stroke-linejoin="round" class="lucide lucide-send-horizontal">
                        <path
                              d="M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z">
                        </path>
                        <path d="M6 12h16"></path>
                    </svg>
                </button>
            </div>
        </form>
        @if ($comment->parent_id == 0)
    </div>
    @endif
</div>
</div>
