<!DOCTYPE html>
<html lang="en">

<head>
    <base href="./">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
    <title>Tigon CMS - @yield('title')</title>
    <meta name="theme-color" content="#ffffff">
    <link rel="stylesheet" href="{{ URL::to('admin/vendors/simplebar/css/simplebar.css') }}">
    <link rel="stylesheet" href="{{ URL::to('admin/css/vendors/simplebar.css') }}">
    <link href="{{ URL::to('admin/css/style.css') }}" rel="stylesheet">
    <link href="{{ URL::to('admin/css/examples.css') }}" rel="stylesheet">
    <link href="{{ URL::to('admin/css/ads.css') }}" rel="stylesheet">
    <script src="{{ URL::to('admin/js/config.js') }}"></script>
    <script src="{{ URL::to('admin/js/color-modes.js') }}"></script>
    <link href="{{ URL::to('admin/vendors/@coreui/chartjs/css/coreui-chartjs.css') }}" rel="stylesheet">
    @yield('css')
    @stack('css')
</head>

<body>
    @include('admin.layout.sidebar')
    <div class="wrapper d-flex flex-column min-vh-100">
        @include('admin.layout.topbar')

        <div class="body flex-grow-1">
            @yield('content')
        </div>

        @include('admin.layout.footer')
    </div>

    <script src="{{ URL::to('admin/vendors/@coreui/coreui/js/coreui.bundle.min.js') }}"></script>
    <script src="{{ URL::to('admin/vendors/simplebar/js/simplebar.min.js') }}"></script>
    <script>
        const header = document.querySelector('header.header');

        document.addEventListener('scroll', () => {
            if (header) {
                header.classList.toggle('shadow-sm', document.documentElement.scrollTop > 0);
            }
        });
    </script>
    <!-- Plugins and scripts required by this view-->
    {{-- <script src="{{ URL::to('admin/vendors/chart.js/js/chart.umd.js') }}"></script> --}}
    {{-- <script src="{{ URL::to('admin/vendors/@coreui/chartjs/js/coreui-chartjs.js') }}"></script> --}}
    <script src="{{ URL::to('admin/vendors/@coreui/utils/js/index.js') }}"></script>
    <script src="{{ URL::to('admin/js/main.js') }}"></script>

    <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>

    @yield('js')
    @stack('js')
</body>

</html>