<div class="error-page error-page--<?php echo e($isMissingTranslation ? 'missing-trans' : 'not-found'); ?> block-margin-top--<?php echo e($block->margin_type_top); ?> block-margin-bottom--<?php echo e($block->margin_type_bottom); ?>">
    <div class="error-page__container">
        <div class="error-page__header">
            <div class="error-page__header-image">
                <?php if($block->image1): ?>
                    <picture class="default-page-header__background">
                        <?php if($block->image1Mobile): ?>
                            <source media="(max-width: 768px)" srcset="<?php echo e(getMediaUrl($block->image1Mobile->filename, '660x520')); ?>.webp" type="image/webp">
                            <source media="(max-width: 768px)" srcset="<?php echo e(getMediaUrl($block->image1Mobile->filename, '660x520')); ?>">
                        <?php endif; ?>
                        <source srcset="<?php echo e(getMediaUrl($block->image1->filename, '1920x670')); ?>.webp" type="image/webp">
                        <?php echo getMediaImg($block->image1, '1920x670', htmlspecialchars($block->block_title)); ?>

                    </picture>
                <?php endif; ?>
            </div>
            <div class="error-page__header-info">
                <?php if($isMissingTranslation): ?>
                    <?php
                        $availableTranslations = \RequestContext::get('translated_uris');
                        $languages = \Localization::getSupportedLanguages()->keyBy('id');
                        $currentLang = \Localization::getActiveLocale();
                        $maxLangButtons = 4;
                    ?>
                    <h1><?php echo e($block->block_title); ?> ‘<?php echo e($languages[$currentLang]->native_name); ?>’</h1>
                    <h2><?php echo e($block->block_subtitle); ?></h2>
                    <div class="error-page__alternative-langs">
                        <div class="error-page__alternative-lang-btns">
                            <?php $__currentLoopData = array_slice($availableTranslations, 0, $maxLangButtons); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $langId => $langUri): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <a
                                    href="<?php echo e(lang_url($langUri, $langId)); ?>"
                                    class="outline-btn outline-btn--icon outline-btn--icon-world error-page__alternative-lang-btn">
                                    <?php echo e($languages[$langId]->native_name); ?>

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

                        <div class="error-page__alternative-lang-more">
                            <?php if(sizeof($availableTranslations) > $maxLangButtons): ?>
                                <a href="#" class="link-left-arrow" data-action="showLanguageSwitcher"><?php echo app('translator')->get('frontend.other_languages'); ?></a>
                            <?php endif; ?>
                            <a href="#" class="error-page__alternative-lang-mobile-button" data-action="showLanguageSwitcher">
                                <?php echo e($languages[array_keys($availableTranslations)[0]]->native_name); ?>

                            </a>
                        </div>
                    </div>
                <?php else: ?>
                    <h1><?php echo e($block->block_title); ?></h1>
                    <h2><?php echo e($block->block_subtitle); ?></h2>
                    <div class="error-page__header-search">
                        <form action="<?php echo e(lang_url('search')); ?>" method="get">
                            <input type="text" name="q" data-role="search-input" placeholder="<?php echo app('translator')->get('frontend.404_search_placeholder'); ?>">
                            <button type="submit"><?php echo $__env->make('frontend.svg.search', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?></button>
                            <?php echo generateLink($block->cta1, '', view('frontend.svg.icon-arrow-white-down')); ?>

                        </form>
                    </div>
                <?php endif; ?>
            </div>
            <span class="error-page__header-image-caption">
                <strong><?php echo e($block->image1_title); ?></strong>
                <?php echo generateLink($block->image1_cta, ''); ?>

            </span>
        </div>
        <div class="error-page__content">
        </div>
    </div>
</div>
<?php /**PATH /var/www/html-staging/resources/views/frontend/templates/blocks/error-page-block-inner.blade.php ENDPATH**/ ?>