<!DOCTYPE html>
<html class="scroll-smooth" lang="{{ str_replace('_', '-', app()->getLocale()) }}"
      dir="{{(in_array(app()->getLocale(), ['fa','ar'])) ? 'rtl' : 'ltr'}}">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    @include('core.header')
    <style>
        [x-cloak] {
            display: none !important;
        }
    </style>
    <link rel="stylesheet" href="{{theme('/assets/packages/plyrjs/css/cdn.plyr.io_3.7.8_plyr.css')}}"/>
    <script src="{{theme('/assets/packages/swiper/js/swiper-bundle.min.js')}}"></script>
    <script src="{{theme('/assets/packages/plyrjs/js/hls.min.js')}}"></script>
    <script src="{{theme('/assets/packages/plyrjs/js/plyr.polyfilled.js')}}"></script>
</head>

<body>
    {!! theme_option('custom_html') !!}

    <main>
        {{ $slot }}
    </main>

    @include('core.footer')

    <script src="{{theme('/assets/index-10f00ba2.js')}}" data-navigate-once="true"></script>

    <script>
        window.addEventListener('scrollToTop', event => {
            window.scrollTo({ top: 15, left: 15, behaviour: 'smooth' })
        })

        document.addEventListener('livewire:navigated', () => {
            const event = new CustomEvent("scrollToTop", {});
            document.dispatchEvent(event);
        })
    </script>
</body>
</html>
