
<?php
    $firstItemCard = $block->cards->get(0);
    $secondItemCard = $block->cards->get(1);
    $thirdItemCard = $block->cards->get(2);

    $firstItem = $firstItemCard ? $firstItemCard->getCardFields() : null;
    $secondItem = $secondItemCard ? $secondItemCard->getCardFields() : null;
    $thirdItem = $thirdItemCard ? $thirdItemCard->getCardFields() : null;
?>

<?php if($firstItem || $secondItem || $thirdItem): ?>
    <div class="featured-three-items block-margin-top--<?php echo e($block->margin_type_top); ?> block-margin-bottom--<?php echo e($block->margin_type_bottom); ?> <?php echo e($block->white_grid ? 'featured-three-items--white-grid' : ''); ?>">
        <?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">
                    <?php if(!empty($firstItem)): ?>
                        <div class="featured-three-items__container-info" data-role="cta-block">
                            <div class="featured-three-items__featured-image" data-action="click-cta">
                                <?php if($firstItem->image): ?>
                                    <picture>
                                        <source media="(min-width: 768px)" srcset="<?php echo e(getMediaUrl($firstItem->image->filename, '1300x872')); ?>.webp" type="image/webp">
                                        <source media="(min-width: 768px)" srcset="<?php echo e(getMediaUrl($firstItem->image->filename, '1300x872')); ?>">
                                        <source srcset="<?php echo e(getMediaUrl($firstItem->image->filename, '600x600')); ?>.webp" type="image/webp">
                                        <?php echo getMediaImg($firstItem->image, '600x600', htmlspecialchars($firstItem->image_alt)); ?>

                                    </picture>
                                <?php endif; ?>
                            </div>
                            <div class="featured-three-items__featured-block">
                                <span class="featured-three-items__featured-pretitle">
                                    <?php echo co2_subscript(e($firstItem->subject)); ?>
                                </span>
                                <h2 class="featured-three-items__featured-title" data-action="click-cta">
                                    <?php echo co2_subscript(e($firstItem->title)); ?>
                                </h2>
                                <?php if($firstItem->excerpt): ?>
                                    <p class="featured-three-items__featured-content">
                                        <?php echo strip_tags($firstItem->excerpt, '<b><sup><strong><sub><i><span><u>'); ?>

                                    </p>
                                <?php endif; ?>
                                <div class="featured-three-items__cta">
                                    <?php echo generateLink($firstItem->cta2, 'std-button std-button--small', '', '', false, $firstItemCard->cta2_label); ?>

                                    <?php echo generateLink($firstItem->cta, 'std-button std-button--small', '', '', false, $firstItemCard->cta_label); ?>

                                </div>
                            </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.featured-slide', [
                    'firstItem' => $secondItem,
                    'secondItem' => $thirdItem,
                    'container_class' => 'featured-slide--single',
                    'firstItemCtaLabels' => $secondItemCard ? [$secondItemCard->cta_label, $secondItemCard->cta2_label] : ['', ''],
                    'secondItemCtaLabels' => $thirdItemCard ? [$thirdItemCard->cta_label, $thirdItemCard->cta2_label] : ['', '']
                ], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            </div>
        </div>
    </div>
<?php endif; ?>
<?php /**PATH /var/www/html-staging/resources/views/frontend/templates/blocks/featured-three-items.blade.php ENDPATH**/ ?>