<?php
    Theme::set('pageTitle', $post->name);

    $coverImage = '';

    if ($post->getMetaData('cover_image', true)) {
        $coverImage = $post->getMetaData('cover_image', true);
    } elseif (theme_option('background_blog_single')) {
        $coverImage = theme_option('background_blog_single');
    }
?>

<main class="main">
    <?php if(is_plugin_active('ads')): ?>
        <?php echo apply_filters('ads_render', null, 'post_before', ['class' => 'my-2 text-center']); ?>

    <?php endif; ?>

    <section class="section-box">
        <?php if($coverImage): ?>
            <img class="cover-image-post" src="<?php echo e(RvMedia::getImageUrl($coverImage, null, false, RvMedia::getDefaultImage())); ?>" alt="<?php echo e($post->title); ?>">
        <?php endif; ?>
    </section>
    <section class="section-box">
        <div class="archive-header pt-50 text-center">
            <div class="container">
                <div class="box-white">
                    <div class="max-width-single">
                        <?php $__currentLoopData = $post->categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <a class="btn btn-tag" href="<?php echo e($category->url); ?>"><?php echo e($category->name); ?></a>&nbsp;
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <h2 class="mb-30 mt-20 text-center"><?php echo e($post->name); ?></h2>
                        <div class="post-meta text-muted d-flex align-items-center mx-auto justify-content-center">
                            <?php if(! theme_option('hide_blog_post_author') && !empty($post->author)): ?>
                                <div class="author d-flex align-items-center mr-30">
                                    <img  src="<?php echo e($post->author->avatar_url); ?>">
                                    <span><?php echo e($post->author->name); ?></span>
                                </div>
                            <?php endif; ?>
                            <div class="date">
                                <span class="font-xs color-text-paragraph-2 mr-20 d-inline-block">
                                    <img class="img-middle mr-5" src="<?php echo e(Theme::asset()->url('imgs/page/blog/calendar.svg')); ?>">
                                    <?php echo e($post->created_at->translatedFormat('M d, Y')); ?>

                                </span>
                                <span class="font-xs color-text-paragraph-2 d-inline-block">
                                    <img class="img-middle mr-5" src="<?php echo e(Theme::asset()->url('imgs/template/icons/time.svg')); ?>">
                                    <?php echo e(__(':time mins to read', ['time' => MetaBox::getMetaData($post, 'time_to_read', true) ?:  number_format(strlen(strip_tags($post->content)) / 300)])); ?>

                                </span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <div class="post-loop-grid">
        <div class="container">
            <div class="row">
                <div class="col-lg-10 mx-auto">
                    <div class="single-body">
                        <div class="max-width-single">
                            <div class="font-lg mb-30">
                                <p><?php echo e($post->description); ?></p>
                            </div>
                        </div>
                        <div class="max-width-single">
                            <div class="content-single">
                                <div class="ck-content">
                                    <?php echo BaseHelper::clean($post->content); ?>

                                </div>
                            </div>
                            <div class="single-apply-jobs mt-20">
                                <div class="row">
                                    <div class="col-lg-7">
                                        <?php $__currentLoopData = $post->tags; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tag): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <a class="btn btn-border-3 mr-10 hover-up" href="<?php echo e($tag->url); ?>"># <?php echo e($tag->name); ?></a>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </div>
                                    <div class="col-md-5 text-lg-end social-share">
                                        <h6 class="color-text-paragraph-2 d-inline-block d-baseline mr-20 mt-10"><?php echo e(__('Share')); ?></h6>
                                        <a class="mr-20 d-inline-block d-middle hover-up" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo e(urlencode($post->url)); ?>">
                                            <img alt="<?php echo e(__('Facebook')); ?>" src="<?php echo e(Theme::asset()->url('imgs/page/blog/fb.svg')); ?>">
                                        </a>
                                        <a class="mr-20 d-inline-block d-middle hover-up" href="https://twitter.com/intent/tweet?url=<?php echo e(urlencode($post->url)); ?>&text=<?php echo e(strip_tags($post->description)); ?>">
                                            <img alt="<?php echo e(__('Twitter')); ?>" src="<?php echo e(Theme::asset()->url('imgs/page/blog/tw.svg')); ?>">
                                        </a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <?php if(is_plugin_active('ads')): ?>
        <?php echo apply_filters('ads_render', null, 'post_after', ['class' => 'my-2 text-center']); ?>

    <?php endif; ?>
</main>
<?php /**PATH C:\xampp\htdocs\tngamechanger\platform\themes/jobbox/views/post.blade.php ENDPATH**/ ?>