<?php $__env->startSection('title', $blogArticle->title); ?>
<?php $__env->startSection('breadcrumbs_schema', Breadcrumbs::view('breadcrumbs::json-ld', 'blog_article', $blogArticle)); ?>
<?php $__env->startSection('og_image', $blogArticle->getImageLink()); ?>
<?php $__env->startSection('description', $blogArticle->short_description); ?>
<?php $__env->startSection('content'); ?>
    <div class="blog-container">
        <div class="row row-cols-1 g-4">
            <div class="col">
                <div class="blog-post v2 blog-post-single">
                    <div class="text-center mb-4">
                        <h1 class="blog-post-title h2 mb-3"><?php echo e($blogArticle->title); ?></h1>
                        <div class="blog-post-meta">
                            <div class="row row-cols-auto align-items-center justify-content-center gx-3 gy-2">
                                <div class="col">
                                    <div class="blog-post-meta-item"><a
                                            href="<?php echo e($blogArticle->category->getLink()); ?>"><?php echo e($blogArticle->category->name); ?></a>
                                    </div>
                                </div>
                                <div class="col d-flex align-items-center text-muted small">
                                    <i class="far fa-calendar me-2"></i>
                                    <span><?php echo e(dateFormat($blogArticle->created_at)); ?></span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="blog-post-header">
                        <img src="<?php echo e($blogArticle->getImageLink()); ?>" alt="<?php echo e($blogArticle->title); ?>" class="blog-post-img">
                    </div>
                    <div class="blog-post-body px-sm-5">
                        <?php if (isset($component)) { $__componentOriginalfd18b85732e6a336f727c097d7e6751f = $component; } ?>
<?php $component = App\View\Components\Ad::resolve(['alias' => 'blog_article_page_top'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('ad'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Ad::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(\Illuminate\Support\Arr::toCssClasses('mb-4'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalfd18b85732e6a336f727c097d7e6751f)): ?>
<?php $component = $__componentOriginalfd18b85732e6a336f727c097d7e6751f; ?>
<?php unset($__componentOriginalfd18b85732e6a336f727c097d7e6751f); ?>
<?php endif; ?>
                        <div class="blog-post-single-text">
                            <?php echo $blogArticle->body; ?>

                        </div>
                        <?php if (isset($component)) { $__componentOriginalfd18b85732e6a336f727c097d7e6751f = $component; } ?>
<?php $component = App\View\Components\Ad::resolve(['alias' => 'blog_article_page_bottom'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('ad'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Ad::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(\Illuminate\Support\Arr::toCssClasses('mt-4'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalfd18b85732e6a336f727c097d7e6751f)): ?>
<?php $component = $__componentOriginalfd18b85732e6a336f727c097d7e6751f; ?>
<?php unset($__componentOriginalfd18b85732e6a336f727c097d7e6751f); ?>
<?php endif; ?>
                        <?php echo $__env->make('themes.basic.partials.share-buttons', [
                            'socials_classes' => 'mt-4',
                            'link' => $blogArticle->getLink(),
                        ], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                        <div class="comments">
                            <h5 class="comments-title">
                                <i class="far fa-comments me-2"></i><?php echo e(translate('Comments')); ?>

                                (<?php echo e($blogArticleComments->count()); ?>)
                            </h5>
                            <?php $__empty_1 = true; $__currentLoopData = $blogArticleComments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $blogArticleComment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                <?php
                                    $user = $blogArticleComment->user;
                                ?>
                                <div class="card-v border p-4 mb-3">
                                    <div class="comment">
                                        <div class="comment-info">
                                            <div class="comment-img">
                                                <a href="<?php echo e($user->getProfileLink()); ?>">
                                                    <img src="<?php echo e($user->getAvatar()); ?>" alt="<?php echo e($user->username); ?>">
                                                </a>
                                            </div>
                                            <div class="d-flex flex-column">
                                                <a href="<?php echo e($user->getProfileLink()); ?>" class="text-dark">
                                                    <h6 class="comment-title mb-1">
                                                        <?php echo e($user->username); ?>

                                                    </h6>
                                                </a>
                                                <time class="comment-time small text-muted">
                                                    <i class="far fa-calendar me-1"></i>
                                                    <?php echo e(dateFormat($blogArticleComment->created_at)); ?>

                                                </time>
                                            </div>
                                        </div>
                                        <p class="comment-text mb-0"><?php echo purifier($blogArticleComment->body); ?></p>
                                    </div>
                                </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </div>
                        <div class="card-v border p-4">
                            <?php if(authUser()): ?>
                                <h5 class="mb-4"><?php echo e(translate('Leave a comment')); ?></h5>
                                <form action="<?php echo e($blogArticle->getLink()); ?>" method="POST">
                                    <?php echo csrf_field(); ?>
                                    <div class="mb-3">
                                        <textarea class="form-control form-control-md" name="comment" rows="4"
                                            placeholder="<?php echo e(translate('Your comment')); ?>" required><?php echo e(old('comment')); ?></textarea>
                                    </div>
                                    <?php if (isset($component)) { $__componentOriginalff0a9fdc5428085522b49c68070c11d6 = $component; } ?>
<?php $component = App\View\Components\Captcha::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('captcha'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Captcha::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalff0a9fdc5428085522b49c68070c11d6)): ?>
<?php $component = $__componentOriginalff0a9fdc5428085522b49c68070c11d6; ?>
<?php unset($__componentOriginalff0a9fdc5428085522b49c68070c11d6); ?>
<?php endif; ?>
                                    <button class="btn btn-primary btn-md"><?php echo e(translate('Publish')); ?></button>
                                </form>
                            <?php else: ?>
                                <div class="text-center">
                                    <?php echo e(translate('Login or create account to leave comments')); ?>

                                </div>
                            <?php endif; ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <?php $__env->startPush('schema'); ?>
        <?php echo schema($__env, 'article', ['article' => $blogArticle]); ?>

    <?php $__env->stopPush(); ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('themes.basic.blog.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/gxramdau/public_html/resources/views/themes/basic/blog/article.blade.php ENDPATH**/ ?>