<!doctype html>
<html lang="fr">
  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="<?=base_url();?>/assets/css/bootstrap.min.css">

    <link rel="stylesheet" href="<?=base_url();?>/assets/css/jquery-ui.min.css">

    <link rel="stylesheet" href="<?=base_url();?>/assets/css/jquery.fancybox.css">

    <link href="<?=base_url();?>/assets/css/spectrum.css" rel="stylesheet" type="text/css" />

    <link rel="stylesheet" href="<?=base_url();?>/assets/css/style_boutons.css">

    <link rel="stylesheet" href="<?=base_url();?>/assets/css/agenda.css">

    <link rel="stylesheet" href="<?=base_url();?>/assets/css/patient.css">

    <link rel="stylesheet" href="<?=base_url();?>/assets/css/scan.css">

	    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">


    <title>Agendinf</title>
  </head>
  <body>
    <div id="div_dialog"></div>
    <header>
      <nav class="navbar navbar-expand-lg navbar-dark bg-primary">
        <div class="container-fluid">
          <a class="navbar-brand" href="#"><i class="far fa-calendar-alt fa-2x"></i></a>
          <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
          </button>
          <div class="collapse navbar-collapse" id="navbarSupportedContent">
            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
              <?php if (!session()->get('isLoggedIn')): ?>
                <li class="nav-item"><a class="nav-link" href="<?=base_url();?>/ident">Identification</a></a>
              <?php else: ?>
                <li class="nav-item">
                  <a class="nav-link" href="<?=base_url();?>/agenda">Agenda</a>
                </li>
                <!-- <li class="nav-item">
                  <a class="nav-link" href="/scan">Scan</a>
                </li> -->
                <li class="nav-item">
                  <a class="nav-link" href="<?=base_url();?>/patient">Patients</a>
                </li>
                <li class="nav-item dropdown">
                  <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                    Bibliothèque
                  </a>
                  <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
                    <li><a class="dropdown-item" href="<?=base_url();?>/bo_user">Utilisateurs</a></li>
                    <li><hr class="dropdown-divider"></li>
                    <li><a class="dropdown-item" href="<?=base_url();?>/acte">Actes médicaux</a></li>
                    <li><hr class="dropdown-divider"></li>
                    <li><a class="dropdown-item" href="<?=base_url();?>/ville">Villes</a></li>
                  </ul>
                </li>
              <?php endif; ?>

              <!-- <li class="nav-item">
                <a class="nav-link disabled">Disabled</a>
              </li> -->
            </ul>
            <?php if (session('isLoggedIn')): ?>
              <div class="d-flex">
                <a href="<?=base_url();?>/logout" class="top"><i class="fas fa-sign-out-alt fa-2x"></i></a>
              </div>
            <?php endif; ?>
          </div>
        </div>
      </nav>
      <?php if (session('isLoggedIn')): ?>
        <div class="text-center mb-3">
          <span><?=session('prenom');?> <?=session('nom');?> (<?=session('email');?>)</span>
        </div>
      <?php endif; ?>
    </header>
