<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" data-theme="light">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="csrf-token" content="{{ csrf_token() }}">

    <title>@yield('title', config('viartas-theme.name', 'Viartas Admin'))</title>

    <script>
        window.Dropzone = { autoDiscover: false };
    </script>

    <!-- Fonts -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">

    <!-- begin::Css App Libraries -->
    <x:core::vite.styles type="library" />
    <!-- Font Awesome 6 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA==" crossorigin="anonymous" referrerpolicy="no-referrer" />

    <!-- Bootstrap Icons -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.2/font/bootstrap-icons.min.css">

    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">

    <!-- begin::Css App Modules -->
    <x:core::vite.styles type="module" />

    <!-- begin::Css App Scripts -->
    <x:core::vite.styles type="script" />

    @stack('styles')
</head>
<body>
    <div class="vt-wrapper">
        <!-- Sidebar Backdrop (Mobile) -->
        <div class="vt-sidebar-backdrop"></div>

        <!-- Sidebar -->
        @include('viartas::accounting.partials.sidebar')

        <!-- Main Content -->
        <div class="vt-main">
            <!-- Header -->
            @include('viartas::accounting.partials.header')

            <!-- Content -->
            <div class="vt-content">
                @yield('content')
            </div>
        </div>
    </div>

    <!-- Toast Container -->
    <div class="vt-toast-container"></div>

    <!-- begin::Javascript App Libraries -->
    <x:core::vite.scripts type="library" />
    <!-- jQuery -->
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js"></script>

    <!-- Bootstrap 5 JS -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>

    <!-- Perfect Scrollbar -->
    <script src="https://cdn.jsdelivr.net/npm/perfect-scrollbar@1.5.5/dist/perfect-scrollbar.min.js"></script>

    @stack('config-scripts')

    <!-- begin::Javascript App Modules -->
    <x:core::vite.scripts type="module" />

    <!-- begin::Javascript App Scripts -->
    <x:core::vite.scripts type="script" />

    @stack('push-js')
    @yield('section-js')

    @stack('scripts')
</body>
</html>
