<!doctype html>
<html lang="{{ lang_code_to_iso(Localization::getActiveLocale()) }}">
<head>
    @include('frontend.includes.head', array('scripts' => isset($scripts) ? $scripts : array(), 'styles' => isset($styles) ? $styles : array()))
</head>
<body id="app" class="js-is-top {{ isset($body_class) ? $body_class : '' }}">
    @if(isset($embeds))
        @foreach($embeds as $embed)
            @if ($embed->embed_position == 'body')
                {!! $embed->type === 'multi_lang' ? $embed->code_lang : $embed->code !!}
            @endif
        @endforeach
    @endif
    @if(isset($objectEmbeds) && !empty($objectEmbeds))
        @foreach($objectEmbeds as $embed)
            @if($embed->embed_position == 'body' && !$embed->global && $embed->status == 'published')
                {!! $embed->type === 'multi_lang' ? $embed->code_lang : $embed->code !!}
            @endif
        @endforeach
    @endif

    <div class="" id="wrapper" @if(!(isset($noFade) && $noFade)) data-aos="simplefade" data-aos-delay="300" @endif>
        @yield('content')
    </div>
    @include('frontend.includes.sticky-cta')
    @include('frontend.includes.overlays')
    @include('frontend.includes.modals')
    @include('frontend.includes.video-overlay')
    @include('frontend.includes.lang-switcher-dialog')
    @if(!empty($isPreview) && $isPreview)
        <div class="main-layout__preview-notice">THIS IS A PREVIEW OF THIS PAGE <span>- link expires: {{ $shareLink->expires_at }}</span></div>
    @endif
    <script src="{{ mix('/js/app.js') }}"></script>
</body>
</html>
