<?php
    $redirectPath = lang_url(config('path.frontend.blog_listing_slug'));
?>

<div class="blog-post-hero block-margin-top--<?php echo e($block->margin_type_top); ?> block-margin-bottom--<?php echo e($block->margin_type_bottom); ?>">
    <div class="blog-post-hero__wrapper">
        <div class="blog-post-hero__container">
            <div class="blog-post-hero__intro">
                <div class="blog-post-hero__image-container">
                    <?php echo getMediaImg($post->media, '1440x1325', htmlspecialchars($post->title)); ?>

                    <?php if($post->image_caption): ?>
                        <div class="blog-post-hero__image-caption">
                            <div class="blog-post-hero__image-caption-bg"></div>
                            <span><?php echo e($post->image_caption); ?></span>
                        </div>
                    <?php endif; ?>
                </div>
                <div class="blog-post-hero__title-container bg--<?php echo e($block->bg_color); ?>">
                    <span class="blog-post-hero__date"><?php echo e(format_date($post->date)); ?></span>
                    <h1 class="blog-post-hero__title"><?php echo e($post->title); ?></h1>
                    <?php if($post->reading_info): ?>
                        <span class="blog-post-hero__reading-info"><?php echo e($post->reading_info); ?></span>
                    <?php endif; ?>
                    <div class="blog-post-hero__line"></div>
                </div>
            </div>
            <div class="blog-post-hero__info">
                <div class="blog-post-hero__categories">
                    <?php $__currentLoopData = $post->categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <a href="<?php echo e($redirectPath . '?c=' . $category->id); ?>" class="blog-post-hero__category">
                            <?php echo e($category->title); ?>

                        </a>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>
                <div class="blog-post-hero__author-container">
                    <?php $__currentLoopData = $post->authors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $author): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <a href="<?php echo e(lang_url($author->uri)); ?>" class="blog-post-hero__author">
                            <div class="blog-post-hero__photo">
                                <?php echo getMediaImg($author->media, '200x200', htmlspecialchars($author->title)); ?>

                            </div>
                            <div class="blog-post-hero__author-info">
                                <span class="blog-post-hero__name">
                                    <?php echo e($author->title); ?>

                                </span>
                                <?php if($author->position_company): ?>
                                    <span class="blog-post-hero__position">
                                        <?php echo e($author->position_company); ?>

                                    </span>
                                <?php endif; ?>
                            </div>
                        </a>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>
                <div class="blog-post-hero__share-container">
                    <span class="blog-post-hero__share"><?php echo app('translator')->get('frontend.share_this'); ?></span>
                    <div class="blog-post-hero__share-icons">
                        <a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo e(url()->current()); ?>" class="blog-post-hero__share-icon" target="_blank">
                            <?php echo $__env->make('frontend.svg.facebook', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                        </a>
                        <a href="https://www.linkedin.com/shareArticle?mini=true&url=<?php echo e(url()->current()); ?>" class="blog-post-hero__share-icon" target="_blank">
                            <?php echo $__env->make('frontend.svg.linkedin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                        </a>
                        <a href="https://twitter.com/share?url=<?php echo e(url()->current()); ?>" class="blog-post-hero__share-icon" target="_blank">
                            <?php echo $__env->make('frontend.svg.x_twitter', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                        </a>
                        <a href="mailto:?subject=Look at this!&body=Hi, I found this page and thought you might like it <?php echo e(url()->current()); ?>" class="blog-post-hero__share-icon" target="_blank">
                            <?php echo $__env->make('frontend.templates.icons.email', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                        </a>
                    </div>
                </div>
                <div class="blog-post-hero__line-horizontal"></div>
            </div>
        </div>
    </div>
</div>
<?php /**PATH /var/www/html/resources/views/frontend/templates/blocks/blog-post-hero.blade.php ENDPATH**/ ?>