<!DOCTYPE html>
<html lang="fr ">
    <head>
        <meta charset="utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
        <meta name="description" content="Accueil" />
        <meta name="author" content="PINAGOT Antoine" />
        <title>{% block title %}{% endblock %}</title>
        <link href="https://cdn.jsdelivr.net/npm/simple-datatables@7.1.2/dist/style.min.css" rel="stylesheet" />
        <link href="/css/{% block css %}styles{% endblock %}.css" rel="stylesheet" />
        <script src="https://use.fontawesome.com/releases/v6.3.0/js/all.js" crossorigin="anonymous"></script>
    </head>
<body class="sb-nav-fixed">
    <nav class="sb-topnav navbar navbar-expand navbar-dark bg-dark">
            <!-- Navbar Brand-->
            <img class="navbar-brand ps-3" src="/assets/img/logo.png">
            <!-- Sidebar Toggle-->
            <button class="btn btn-link btn-sm order-1 order-lg-0 me-4 me-lg-0" id="sidebarToggle" href="#!"><i class="fas fa-bars"></i></button>
            <!-- Navbar Search-->
            <form class="d-none d-md-inline-block form-inline ms-auto me-0 me-md-3 my-2 my-md-0">
                <div class="input-group">
                    <input class="form-control" type="text" placeholder="Rechercher..." aria-label="Rechercher..." aria-describedby="btnNavbarSearch" />
                    <button class="btn btn-primary" id="btnNavbarSearch" type="button"><i class="fas fa-search"></i></button>
                </div>
            </form>
            <!-- Navbar-->
            <ul class="navbar-nav ms-auto ms-md-0 me-3 me-lg-4">
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" id="navbarDropdown" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                        <style> .image-ronde{ clip-path:ellipse(50% 50%); } </style>
                        <img src="/assets/img/person/{% block pp %}test{% endblock %}.png" width="30px" height="30px" class="image-ronde"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
                        <li><a class="dropdown-item" href="/profile">Profile</a></li>
                        <li><a class="dropdown-item" href="/settings">Paramètres</a></li>
                        <li><hr class="dropdown-divider" /></li>
                        <li><a class="dropdown-item" href="/">Déconnexion</a></li>
                    </ul>
                </li>
            </ul>
        </nav>
        <div id="layoutSidenav">
            <div id="layoutSidenav_nav">
                <nav class="sb-sidenav accordion sb-sidenav-dark" id="sidenavAccordion">
                    <div class="sb-sidenav-menu">
                        <div class="nav">
                            <div class="sb-sidenav-menu-heading">Menu</div>
                            <a class="nav-link" href="/home">
                                <div class="sb-nav-link-icon"><img src="/assets/img/house.png"></div>
                                Accueil
                            </a>
                            <div class="sb-sidenav-menu-heading">Activités</div>
                            <a class="nav-link" href="/exercice">
                                <div class="sb-nav-link-icon"><img src="/assets/img/sprinter.png"></div>
                                Exercices
                            </a>
                            <a class="nav-link" href="/analyses">
                                <div class="sb-nav-link-icon"><i class="fas fa-chart-area"></i></div>
                                Analyses
                            </a>
                            <div class="sb-sidenav-menu-heading">Social</div>
                            <a class="nav-link" href="/friendlist">
                                <div class="sb-nav-link-icon"><img src="/assets/img/group.png"></div>
                                Amis
                            </a>
                            <a class="nav-link" href="/coaching">
                                <div class="sb-nav-link-icon"><img src="/assets/img/coaching.png"></div>
                                Coaching
                            </a>
                            <a class="nav-link" href="/mail">
                                <div class="sb-nav-link-icon"><img src="/assets/img/letter.png"></div>
                                Messagerie
                            </a>
                            <div class="sb-sidenav-menu-heading">Gestion de données</div>
                            <a class="nav-link" href="/import">
                                <div class="sb-nav-link-icon"><img src="/assets/img/upload.png"></div>
                                Importer
                            </a>
                        </div>
                    </div>
                    <div class="sb-sidenav-footer">
                        <div class="small">Connecté en tant que:</div>
                        {% block user %} {% endblock %}
                    </div>
                </nav>
            </div>
            <div id="layoutSidenav_content">
                <main>
                    {% block body %}{% endblock %}
                </main>
                <footer class="py-4 bg-light mt-auto">
                    <div class="container-fluid px-4">
                        <div class="d-flex align-items-center justify-content-between small">
                            <div class="text-muted">Copyright &copy; HeartTrack 2023</div>
                            <div>
                                <a href="#">Politique de confidentialité</a>
                                &middot;
                                <a href="#">Termes &amp; Conditions d'utilisations</a>
                            </div>
                        </div>
                    </div>
                </footer>
            </div>
        </div>
        {% block script %}
        <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
        <script src="js/scripts.js"></script>
        {# <script src="js/preference.js"></script> #}
        <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.js" crossorigin="anonymous"></script>
        <script src=".assets/demo/chart-area-demo.js"></script>
        <script src="assets/demo/chart-bar-demo.js"></script>
        <script src="https://cdn.jsdelivr.net/npm/simple-datatables@7.1.2/dist/umd/simple-datatables.min.js" crossorigin="anonymous"></script>
        <script src="js/datatables-simple-demo.js"></script>
        {% endblock %}
    </body>
</html>