<!DOCTYPE html>

<html lang="{{ config('siberfx.ui.default_language') ?? app()->getLocale() }}" dir="{{ siberfx_theme_config('html_direction') }}">

<head>
    @include(siberfx_view('inc.head'))
    <style>
        footer {
            width: 100%;
            position: fixed;
            bottom: 0;
            background-color: transparent !important;
            border: none !important;
        }
        .switch-mode {
            position: absolute;
            top: 0;
            right: 0;
            z-index: 999;
        }
    </style>
</head>

<body class="{{ siberfx_theme_config('classes.body') }} @if(siberfx_theme_config('auth_layout') === 'cover') d-flex flex-column theme-light @endif">

@include(siberfx_view('layouts.partials.light_dark_mode_logic'))

@if(siberfx_theme_config('options.showColorModeSwitcher'))
    <div class="switch-mode p-3">
        @includeWhen(siberfx_theme_config('options.showColorModeSwitcher'), siberfx_view('layouts.partials.switch_theme'))
    </div>
@endif

@yield('content')

@yield('before_scripts')
@stack('before_scripts')

@include(siberfx_view('inc.footer'))

@include(siberfx_view('inc.scripts'))
@include(siberfx_view('inc.theme_scripts'))

@yield('after_scripts')
@stack('after_scripts')
</body>
</html>
