<div
    class="latest-posts block-margin-top--<?php echo e($block->margin_type_top); ?> block-margin-bottom--<?php echo e($block->margin_type_bottom); ?>"
    data-controller="blocks/latest-posts"
    data-redirect="<?php echo e($redirectPath); ?>"
>
    <div class="latest-posts__wrapper">
        <div class="latest-posts__container">

            <div class="latest-posts__filter-holder" data-role="filter-holder">
                <div class="latest-posts__filter-container" data-role="filter-container">
                    <div class="latest-posts__filter">
                        <div class="latest-posts__filter-actions">

                            <div class="latest-posts__search">
                                <span class="latest-posts__icon-search">
                                    <?php echo $__env->make('frontend.svg.search', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                </span>
                                <input type="text" name="blog-search" class="latest-posts__search-input" value="" placeholder="<?php echo app('translator')->get('frontend.search_in_the_blog'); ?>"/>
                            </div>

                            <div class="latest-posts__category-container">
                                <a href="#" class="latest-posts__filter-label-mobile" data-action="toggle-filter">
                                    <span><?php echo app('translator')->get('frontend.categories'); ?></span>
                                </a>
                                <span class="latest-posts__category-title">
                                    <?php echo app('translator')->get('frontend.pick_a_category'); ?>
                                </span>
                            </div>
                        </div>
                        <div class="latest-posts__categories-container">
                            <div class="latest-posts__categories" data-role="filter-items">
                                <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <a href="<?php echo e($redirectPath . '?c=' . $category->id); ?>" class="latest-posts__category">
                                        <?php echo e($category->title); ?>

                                    </a>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="latest-posts__row latest-posts--first-row">
                <?php if(!empty($items[0])): ?>
                    <div class="latest-posts__big-posts" data-role="first-post">
                        <div>
                            <a href="<?php echo e(lang_url($items[0]->lang_uri)); ?>" class="latest-posts__big-posts-image">
                                <?php echo getMediaImg($items[0]->media, '1200x1000', htmlspecialchars($items[0]->title)); ?>

                            </a>
                            <div class="latest-posts__posts-info">
                                <div class="latest-posts__posts-header">

                                    <div class="latest-posts__posts-author-container">
                                        <div class="latest-posts__posts-author-images">
                                            <?php $__currentLoopData = $items[0]->authors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $author): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <div class="latest-posts__photo">
                                                    <?php echo getMediaImg($author->media, '200x200', htmlentities($author->title)); ?>

                                                </div>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </div>
                                        <div class="latest-posts__posts-author-names">
                                            <?php $__currentLoopData = $items[0]->authors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $author): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <a href="<?php echo e(lang_url($author->uri)); ?>" class="latest-posts__posts-author">
                                                    <span class="latest-posts__name">
                                                        <?php echo e($author->title); ?>

                                                    </span>
                                                </a>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </div>
                                    </div>

                                    <span class="latest-posts__posts-date latest-posts--desktop">
                                        <?php echo e(format_date($items[0]->date)); ?>

                                    </span>
                                </div>
                                <a href="<?php echo e(lang_url($items[0]->lang_uri)); ?>">
                                    <h3 class="latest-posts__big-posts-title">
                                        <?php echo e($items[0]->title); ?>

                                    </h3>
                                </a>
                                <p class="latest-posts__posts-excerpt" data-role="excerpt">
                                    <?php echo e($items[0]->reference_summary); ?>

                                </p>
                                <span class="latest-posts__posts-date latest-posts--mobile">
                                    <?php echo e(format_date($items[0]->date)); ?>

                                </span>
                                <div class="latest-posts__tags">
                                    <?php $__currentLoopData = $items[0]->categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <a href="<?php echo e($redirectPath . '?c=' . $category->id); ?>" class="latest-posts__tag">
                                            <?php echo e($category->title); ?>

                                        </a>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </div>
                            </div>
                        </div>
                    </div>
                <?php endif; ?>

                <?php if(!empty($items[1])): ?>
                    <div class="latest-posts__small-posts" data-role="second-post">
                        <a href="<?php echo e(lang_url($items[1]->lang_uri)); ?>" class="latest-posts__small-posts-image">
                            <?php echo getMediaImg($items[1]->media, '1200x1000', htmlspecialchars($items[1]->title)); ?>

                        </a>
                        <div class="latest-posts__posts-info">
                            <div class="latest-posts__posts-header">

                                <div class="latest-posts__posts-author-container">
                                    <div class="latest-posts__posts-author-images">
                                        <?php $__currentLoopData = $items[1]->authors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $author): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <div class="latest-posts__photo">
                                                <?php echo getMediaImg($author->media, '200x200', htmlentities($author->title)); ?>

                                            </div>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </div>
                                    <div class="latest-posts__posts-author-names">
                                        <?php
                                            $count = count($items[1]->authors) - 1;
                                        ?>
                                        <?php $__currentLoopData = $items[1]->authors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $author): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <a href="<?php echo e(lang_url($author->uri)); ?>" class="latest-posts__posts-author" data-count="<?php echo e($count > 0 ? '+'.$count : ''); ?>">
                                                <span class="latest-posts__name">
                                                    <?php echo e($author->title); ?>

                                                </span>
                                            </a>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </div>
                                </div>

                                <span class="latest-posts__posts-date latest-posts--desktop">
                                    <?php echo e(format_date($items[1]->date)); ?>

                                </span>
                            </div>

                            <a href="<?php echo e(lang_url($items[1]->lang_uri)); ?>">
                                <h3 class="latest-posts__small-posts-title">
                                    <?php echo e($items[1]->title); ?>

                                </h3>
                            </a>

                            <p class="latest-posts__posts-excerpt" data-role="excerpt">
                                <?php echo e($items[1]->reference_summary); ?>

                            </p>

                            <span class="latest-posts__posts-date latest-posts--mobile">
                                <?php echo e(format_date($items[1]->date)); ?>

                            </span>
                            <div class="latest-posts__tags">
                                <?php $__currentLoopData = $items[1]->categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <a href="<?php echo e($redirectPath . '?c=' . $category->id); ?>" class="latest-posts__tag">
                                        <?php echo e($category->title); ?>

                                    </a>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </div>
                        </div>
                    </div>
                <?php endif; ?>
            </div>
            <div class="latest-posts__row latest-posts--second-row">

                <?php if(!empty($items[2])): ?>
                    <div class="latest-posts__small-posts" data-role="third-post">
                        <a href="<?php echo e(lang_url($items[2]->lang_uri)); ?>" class="latest-posts__small-posts-image">
                            <?php echo getMediaImg($items[2]->media, '1200x1000', htmlspecialchars($items[2]->title)); ?>

                        </a>
                        <div class="latest-posts__posts-info">
                            <div class="latest-posts__posts-header">

                                <div class="latest-posts__posts-author-container">
                                    <div class="latest-posts__posts-author-images">
                                        <?php $__currentLoopData = $items[2]->authors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $author): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <div class="latest-posts__photo">
                                                <?php echo getMediaImg($author->media, '200x200', htmlentities($author->title)); ?>

                                            </div>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </div>
                                    <div class="latest-posts__posts-author-names">
                                        <?php
                                            $count = count($items[2]->authors) - 1;
                                        ?>
                                        <?php $__currentLoopData = $items[2]->authors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $author): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <a href="<?php echo e(lang_url($author->uri)); ?>" class="latest-posts__posts-author" data-count="<?php echo e($count > 0 ? '+'.$count : ''); ?>">
                                                <span class="latest-posts__name">
                                                    <?php echo e($author->title); ?>

                                                </span>
                                            </a>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </div>
                                </div>

                                <span class="latest-posts__posts-date latest-posts--desktop">
                                    <?php echo e(format_date($items[2]->date)); ?>

                                </span>
                            </div>

                            <a href="<?php echo e(lang_url($items[2]->lang_uri)); ?>">
                                <h3 class="latest-posts__small-posts-title">
                                    <?php echo e($items[2]->title); ?>

                                </h3>
                            </a>

                            <p class="latest-posts__posts-excerpt" data-role="excerpt">
                                <?php echo e($items[2]->reference_summary); ?>

                            </p>
                            <span class="latest-posts__posts-date latest-posts--mobile">
                                <?php echo e(format_date($items[2]->date)); ?>

                            </span>
                            <div class="latest-posts__tags">
                                <?php $__currentLoopData = $items[2]->categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <a href="<?php echo e($redirectPath . '?c=' . $category->id); ?>" class="latest-posts__tag">
                                        <?php echo e($category->title); ?>

                                    </a>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </div>
                        </div>
                    </div>
                <?php endif; ?>

                <?php if(!empty($items[3])): ?>
                    <div class="latest-posts__big-posts">
                        <a href="<?php echo e(lang_url($items[3]->lang_uri)); ?>" class="latest-posts__big-posts-image">
                            <?php echo getMediaImg($items[3]->media, '1200x1000', htmlspecialchars($items[3]->title)); ?>

                        </a>
                        <div class="latest-posts__posts-info">
                            <div class="latest-posts__posts-header">

                                <div class="latest-posts__posts-author-container">
                                    <div class="latest-posts__posts-author-images">
                                        <?php $__currentLoopData = $items[3]->authors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $author): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <div class="latest-posts__photo">
                                                <?php echo getMediaImg($author->media, '200x200', htmlentities($author->title)); ?>

                                            </div>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </div>
                                    <div class="latest-posts__posts-author-names">
                                        <?php $__currentLoopData = $items[3]->authors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $author): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <a href="<?php echo e(lang_url($author->uri)); ?>" class="latest-posts__posts-author">
                                                <span class="latest-posts__name">
                                                    <?php echo e($author->title); ?>

                                                </span>
                                            </a>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </div>
                                </div>

                                <span class="latest-posts__posts-date latest-posts--desktop">
                                    <?php echo e(format_date($items[3]->date)); ?>

                                </span>
                            </div>
                            <a href="<?php echo e(lang_url($items[3]->lang_uri)); ?>">
                                <h3 class="latest-posts__big-posts-title">
                                    <?php echo e($items[3]->title); ?>

                                </h3>
                            </a>

                            <p class="latest-posts__posts-excerpt" data-role="excerpt">
                                <?php echo e($items[3]->reference_summary); ?>

                            </p>
                            <span class="latest-posts__posts-date latest-posts--mobile">
                                <?php echo e(format_date($items[3]->date)); ?>

                            </span>
                            <div class="latest-posts__tags">
                                <?php $__currentLoopData = $items[3]->categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <a href="<?php echo e($redirectPath . '?c=' . $category->id); ?>" class="latest-posts__tag">
                                        <?php echo e($category->title); ?>

                                    </a>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </div>
                        </div>
                    </div>
                <?php endif; ?>
            </div>
        </div>
    </div>
</div>
<?php /**PATH /var/www/html/resources/views/frontend/templates/blocks/latest-posts.blade.php ENDPATH**/ ?>