<?php
$projects = $block->projects()
    ->full()
    ->where('status', 'published')
    ->where('lang_status', 'published')
    ->orderBy('block_project.position')
    ->get();
$projectOne = $projects->get(0);
$projectTwo = $projects->get(1);
$projectThree = $projects->get(2);
?>
<div class="featured-projects featured-three-items block-margin-top--<?php echo e($block->margin_type_top); ?> block-margin-bottom--<?php echo e($block->margin_type_bottom); ?>">
    <?php if($block->anchor_id ): ?>
        <div id="<?php echo e($block->anchor_id); ?>" class="anchor-offset"></div>
    <?php endif; ?>
    <div class="featured-three-items__container">
        <div class="featured-three-items__featured">
            
            <div class="featured-three-items__background-white" data-aos="simplefade" data-aos-once="true" data-aos-delay="500"></div>

            <div class="featured-three-items__wrapper" data-aos="fade-up" data-aos-once="true" data-aos-delay="700">
                <h2 class="featured-three-items__title">
                    <?php echo co2_subscript(e($block->block_title)); ?>
                </h2>
                <p class="featured-three-items__subtitle">
                    <?php echo co2_subscript(e($block->block_subtitle)); ?>
                </p>

                <?php if(isset($projectOne)): ?>
                    <div class="featured-three-items__container-info" data-role="cta-block">
                        <div class="featured-three-items__featured-image" data-action="click-cta">
                            <?php if($projectOne->overviewImage): ?>
                                <picture>
                                    <source media="(min-width: 768px)" srcset="<?php echo e(getMediaUrl($projectOne->overviewImage->filename, '1180x640')); ?>.webp" type="image/webp">
                                    <source media="(min-width: 768px)" srcset="<?php echo e(getMediaUrl($projectOne->overviewImage->filename, '1180x640')); ?>">
                                    <source srcset="<?php echo e(getMediaUrl($projectOne->overviewImage->filename, '600x600')); ?>.webp" type="image/webp">
                                    <img src="<?php echo e(getMediaUrl($projectOne->overviewImage->filename, '600x600')); ?>" alt="<?php echo e(htmlentities($projectOne->title)); ?>">
                                </picture>
                                <!--
                                <img src="<?php echo e(getMediaUrl($projectOne->overviewImage->filename, '1180x640')); ?>" alt="<?php echo e(htmlentities($projectOne->title)); ?>" />
                                -->
                            <?php endif; ?>
                        </div>
                        <div class="featured-three-items__featured-block">
                            <span class="featured-three-items__featured-pretitle">
                                <?php if(!empty($projectOne->country->title)): ?>
                                    <?php echo e($projectOne->country->title); ?>

                                <?php endif; ?>
                            </span>

                            <h2 class="featured-three-items__featured-title" data-action="click-cta">
                                <?php echo strip_tags($projectOne->title, '<b><sup><strong><sub><i><span><u>'); ?>

                            </h2>

                            <?php if(isset($projectOne->objective)): ?>
                                <p class="featured-three-items__featured-summary">
                                    <?php echo strip_tags($projectOne->objective, '<b><sup><strong><sub><i><span><u>'); ?>

                                </p>
                            <?php endif; ?>
                            <a class="link-left-arrow link-animation-arrow" href="<?php echo e(lang_url($projectOne->lang_uri)); ?>"><?php echo app('translator')->get('frontend.read_more'); ?></a>
                        </div>
                    </div>
                <?php endif; ?>
            </div>

        </div>
        <div class="featured-three-items__slide" data-aos="fade-up" data-aos-once="true" data-aos-delay="700">
            <?php echo $__env->make('frontend.templates.blocks.project-slide', ['projectOne' => $projectTwo, 'projectTwo' => $projectThree, 'container_class' => 'project-slide--single' ], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
            <?php if($block->cta1): ?>
                <div class="featured-three-items__container-button">
                    <?php echo generateLink($block->cta1, 'square-button square-button--arrow'); ?>

                </div>
            <?php endif; ?>
        </div>
    </div>
</div>
<?php /**PATH /var/www/html/resources/views/frontend/templates/blocks/featured-projects.blade.php ENDPATH**/ ?>