<div class="entry-header single-header-default entry-header-1 mb-30">
    <?php $category = $post->categories->first(); ?>
    <?php if($category): ?>
        <div class="entry-meta meta-0 font-small mb-15">
            <a href="<?php echo e($category->url); ?>">
                <span class="post-cat <?php echo e(random_background()); ?> color-white"><?php echo e($category->name); ?></span>
            </a>
        </div>
    <?php endif; ?>
    <h1 class="post-title">
        <a href="<?php echo e(get_external_link($post)); ?>" <?php echo e(is_external_link($post) ? 'target="_blank"' : ''); ?>><?php echo e($post->name); ?></a>
    </h1>

    <div class="entry-meta meta-1 font-small color-grey mt-15 mb-15">
        <?php if(theme_option('enable_show_post_author_detail', 'yes') == 'yes' && class_exists($post->author_type) && $post->author && $post->author->id): ?>
            <span class="post-by"><?php echo e(__('By')); ?> <a href="<?php echo e($post->author->url); ?>"><?php echo e($post->author->name); ?></a></span>
        <?php endif; ?>
        <span class="post-on has-dot"><?php echo e($post->created_at->format(post_date_format())); ?></span>
        <span class="time-reading has-dot"><?php echo e(get_time_to_read($post)); ?> <?php echo e(__('mins read')); ?></span>
        <span class="hit-count"><i class="ti-bolt"></i> <?php echo e(number_format($post->views) . ' ' . __('views')); ?></span>
    </div>

    <div class="bt-1 border-color-1 mt-20 mb-20"></div>
    <div class="clearfix">
        <div class="entry-meta meta-1 font-small color-grey float-left mt-10">
            <?php if(is_plugin_active('comment')): ?>
                <span class="hit-count"><i class="ti-comment mr-5"></i> <?php echo e($totalComment); ?> <?php echo e(__('comments')); ?></span>
            <?php endif; ?>
            <?php if(is_plugin_active('pro-posts')): ?>
                <span
                    class="btn-action-favorite-post <?php echo e(getIsFavoritePost($post->id) ? 'background8 post-bookmarked' : ''); ?>"
                    title="<?php echo e(__('Add to favorite')); ?>"
                    data-post-id="<?php echo e($post->id); ?>"
                    data-login-id="<?php echo e(auth()->guard('member')->check() ? auth()->guard('member')->id() : ''); ?>"
                    data-url="<?php echo e(route('public.favorite-post')); ?>">
                    <i class="ti-heart mr-5"></i>
                </span>
                <span> <?php echo e(getPostTotalFavorite($post->id)); ?> <?php echo e(__('likes')); ?></span>
                <span
                    class="hit-count btn-action-favorite-post <?php echo e(getIsBookmarkPost($post->id) ? 'background8 post-bookmarked' : ''); ?>"
                    title="<?php echo e(__('Add to bookmark')); ?>"
                    data-type="bookmark"
                    data-post-id="<?php echo e($post->id); ?>"
                    data-login-id="<?php echo e(auth()->guard('member')->check() ? auth()->guard('member')->id() : ''); ?>"
                    data-url="<?php echo e(route('public.bookmark-post')); ?>">
                    <i class="ti-bookmark mr-5"></i>
                </span>
            <?php endif; ?>
        </div>
        <ul class="d-inline-block list-inline float-right single-social-share">
            <?php echo Theme::partial('components.social-share-post', compact('post')); ?>

        </ul>
    </div>
</div>

<div class="video-player">
    <?php if($videoLink): ?>
        <div class="embed-responsive embed-responsive-16by9 mb-30">
            <iframe class="embed-responsive-item" src="<?php echo e($videoLink); ?>" allowfullscreen></iframe>
        </div>
    <?php elseif($videoUploadId): ?>
        <?php $videoLink = RvMedia::getImageUrl($videoUploadId); ?>
        <video id="player" playsinline controls>
            <source src="<?php echo e($videoLink); ?>"
                    type="video/mp4">
            <source src="<?php echo e($videoLink); ?>"
                    type="video/webm">
        </video>
    <?php else: ?>
        <figure class="single-thumnail">
            <div class="border-radius-5">
                <div class="slider-single text-center">
                    <img class="border-radius-10 lazy"
                         src="<?php echo e(RvMedia::getImageUrl($post->image)); ?>"
                         data-src="<?php echo e(RvMedia::getImageUrl($post->image, 'large', false, RvMedia::getDefaultImage())); ?>"
                         src="<?php echo e(RvMedia::getImageUrl(theme_option('img_loading'))); ?>"
                         loading="lazy"
                         style="width: 100%;"
                         alt="<?php echo e($post->name); ?>">
                </div>
            </div>
        </figure>
    <?php endif; ?>
</div>
<?php /**PATH C:\Users\Admin\Documents\UltraNews v4.0.0 Nulled\UltraNews v4.0.0 Nulled\ultra-news\platform\themes/ultra/partials/components/single/headers/default.blade.php ENDPATH**/ ?>