
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <meta name="robots" content="noindex, nofollow">

    <!-- CSRF Token -->
    <meta name="csrf-token" content="{{ csrf_token() }}">

    <link rel="shortcut icon" href="{{url('/')}}/media/favicons/favicon.png">
    <link rel="apple-touch-icon" sizes="180x180" href="{{url('/')}}/media/favicons/apple-touch-icon-180x180.png">

    {!! SEO::generate(true) !!}

    <!-- Modules -->
    @yield('css')
    @vite(['resources/sass/main.scss', 'resources/js/dashmix/app.js'])
    <script src="{{ asset('js/setTheme.js') }}"></script>
    @yield('js')
    @livewireStyles
    @laravelPWA
</head>
<body>
<div id="page-container" class="sidebar-o sidebar-dark enable-page-overlay side-scroll page-header-fixed main-content-narrow">
    <nav id="sidebar" aria-label="Main Navigation">
        <div class="smini-hidden">
            <div class="content-header justify-content-lg-center bg-white">
                <a class="fw-semibold text-white tracking-wide" href="/">
                    <img src="{{url('/')}}/media/logo.png" width="100px" class="img-fluid mx-auto d-none d-md-block" alt="Logo MyX">
                </a>
                <div class="d-lg-none">
                    <button type="button" class="btn btn-sm btn-alt-secondary d-lg-none" data-toggle="layout" data-action="sidebar_close">
                        <i class="fa fa-times-circle"></i>
                    </button>
                </div>
            </div>
        </div>
        <div class="js-sidebar-scroll">
            <div class="smini-hidden">
                <div class="content-side content-side-full bg-black-10 d-flex align-items-center">
                    <a class="img-link d-inline-block">
                        <img class="img-avatar img-avatar48 img-avatar-thumb" src="{{url('/')}}/media/avatars/avatar8.jpg" alt="">
                    </a>
                    <div class="ms-3">
                        <a class="fw-semibold text-dual">{{ucfirst(Auth::user()->name)}}</a>
                    </div>
                </div>
            </div>
            <div class="content-side">
                <ul class="nav-main">
                    <li class="nav-main-item">
                        <a class="nav-main-link" href="/">
                            <i class="nav-main-link-icon fa fa-gauge"></i>
                            <span class="nav-main-link-name">Dashboard</span>
                        </a>
                    </li>
                    <li class="nav-main-item">
                        <a class="nav-main-link" href="/accounts">
                            <i class="nav-main-link-icon fa fa-users"></i>
                            <span class="nav-main-link-name">Accounts</span>
                        </a>
                    </li>
                    <li class="nav-main-item">
                        <a class="nav-main-link" href="/contests">
                            <i class="nav-main-link-icon fa fa-gifts"></i>
                            <span class="nav-main-link-name">Contests</span>
                        </a>
                    </li>
                    <li class="nav-main-item">
                        <a class="nav-main-link" href="/history">
                            <i class="nav-main-link-icon fa fa-chart-line"></i>
                            <span class="nav-main-link-name">Historique</span>
                        </a>
                    </li>
                    <li class="nav-main-item">
                        <a class="nav-main-link" href="/nova" target="_blank">
                            <i class="nav-main-link-icon fa fa-toolbox"></i>
                            <span class="nav-main-link-name">Nova</span>
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
    <header id="page-header">
        <div class="content-header">
            <div class="row g-0 align-items-center w-100">
                <div class="col-5">
                    <button type="button" class="btn btn-alt-secondary" data-toggle="layout" data-action="sidebar_toggle">
                        <i class="fa fa-fw fa-bars"></i>
                    </button>
                </div>
                <div class="col-2 text-center">
                    <a href="/">
                        <img src="{{url('/')}}/media/logo.png" class="img-fluid mx-auto d-md-none d-sm-block" alt="Logo MyX">
                    </a>
                </div>
                <div class="col-5 text-end">
                    <div class="dropdown d-inline-block">
                        <button type="button" class="btn btn-sm btn-alt-primary ms-1 mx-2" id="page-header-user-dropdown" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                            <i class="far fa-fw fa-user-circle"></i>
                            <i class="fa fa-fw fa-angle-down ms-1 d-none d-sm-inline-block"></i>
                        </button>
                        <div class="dropdown-menu dropdown-menu-end p-0" aria-labelledby="page-header-user-dropdown">
                            <div class="p-2">
                                {{ucfirst(Auth::user()->name)}}
                                <div role="separator" class="dropdown-divider"></div>
                                <a class="dropdown-item" href="/profile">
                                    <i class="far fa-fw fa-user me-1"></i> Mon compte
                                </a>
                                <a class="dropdown-item" href="/history">
                                    <i class="fa-solid fa-chart-line me-1"></i> Historique
                                </a>
                                <div role="separator" class="dropdown-divider"></div>
                                <a class="dropdown-item" href="{{ route('logout') }}" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
                                    <i class="far fa-fw fa-arrow-alt-circle-left me-1"></i> Déconnexion
                                </a>
                                <form id="logout-form" action="{{ route('logout') }}" method="POST" class="d-none">
                                    @csrf
                                </form>
                            </div>
                        </div>
                </div>
            </div>
        </div>
    </header>
    <main id="main-container">
        @yield('content')
    </main>
    <footer id="page-footer" class="bg-body-extra-light">
        <div class="content py-3">
            <div class="row fs-sm">
                <div class="col-sm-6 order-sm-1 py-1 text-center text-sm-start">
                    Copyright © <span data-toggle="year-copy"></span> <b>MyX</b>. Tous droits réservés
                </div>
            </div>
        </div>
    </footer>
</div>
@livewireScripts
@yield('js')
</body>
</html>