<?php if($blog->comments && $blog->comments->count() > 0): ?>
    <article>
        <h2 class="area-title xl:text-3xl mb-5"> <?php echo e(translate('Comment') . ' ' . $blog?->comments?->count() ?? 0); ?></h2>
        <ul class="flex flex-col gap-5">
            <?php if (isset($component)) { $__componentOriginal0e530623ff23786276e8c658eea3f140 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal0e530623ff23786276e8c658eea3f140 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'f484570d7cf557020e11ace406901b10::comments.user-comment-list','data' => ['comments' => $blog->comments]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('theme::comments.user-comment-list'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['comments' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($blog->comments)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal0e530623ff23786276e8c658eea3f140)): ?>
<?php $attributes = $__attributesOriginal0e530623ff23786276e8c658eea3f140; ?>
<?php unset($__attributesOriginal0e530623ff23786276e8c658eea3f140); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal0e530623ff23786276e8c658eea3f140)): ?>
<?php $component = $__componentOriginal0e530623ff23786276e8c658eea3f140; ?>
<?php unset($__componentOriginal0e530623ff23786276e8c658eea3f140); ?>
<?php endif; ?>
        </ul>
    </article>
<?php endif; ?>
<?php if(auth()->guard()->check()): ?>
    <article>
        <h2 class="area-title xl:text-3xl mb-5"> <?php echo e(translate('Leave a Comment')); ?> </h2>
        <form class="form" action="<?php echo e(route('blog.comment')); ?>" method="POST">
            <?php echo csrf_field(); ?>
            <input type="hidden" name="blog_id" value="<?php echo e($blog->id); ?>">
            <input type="hidden" name="reply_id" id="replyId">
            <input type="hidden" name="user_id" value="<?php echo e(authCheck()->id); ?>">

            <div class="relative">
                <textarea id="instructor-education" rows="10" name="comment" class="form-input rounded-2xl h-auto peer"
                    placeholder=""></textarea>
                <label for="instructor-education" class="form-label floating-form-label">
                    <?php echo e(translate('Write your message')); ?>

                </label>
            </div>
            <span class="text-danger error-text comment_err"></span>
            <div class="mt-5 flex gap-2">
                <button type="submit" class="btn b-solid btn-primary-solid !rounded-full comment-button">
                    <?php echo e(translate('Submit Now')); ?>

                </button>
                <button type="button" class="cancel-button btn b-solid btn-danger-solid !rounded-full">
                    <?php echo e(translate('Cancel')); ?>

                </button>
            </div>
        </form>
    </article>
<?php endif; ?>
<!-- LEAVE A COMMENT -->
<?php /**PATH D:\www\edulab\Modules\LMS\resources\views\components\comments\blog-comment.blade.php ENDPATH**/ ?>