<!doctype html>
<html lang="{{ lang_code_to_iso(getActiveLocale()) }}">
<head>
    @include('frontend.includes.head', array('scripts' => isset($scripts) ? $scripts : array(), 'styles' => isset($styles) ? $styles : array()))
</head>
<body id="app" class="main-layout js-is-top {{ isset($body_class) ? $body_class : '' }} lang--{{ getActiveLocale() }}">
    @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="top-btn" data-action="totop" data-controller="components/top-button"><i class="fa fa-chevron-up"></i></div>
    @include('frontend.includes.header')
    <div class="nav-overlay"></div>
    <div class="" id="wrapper">
        @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')
    @include('frontend.includes.footer')
    @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
</body>
</html>
