<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="robots" content="noindex">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}E-digi MED{% endblock %}</title>
{% block stylesheets %}{% endblock %}
{# <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" #}
{# integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> #}
{# <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.3/css/all.css"> #}
{# <link rel="stylesheet" #}
{# href="https://cdnjs.cloudflare.com/ajax/libs/tempusdominus-bootstrap-4/5.0.1/css/tempusdominus-bootstrap-4.min.css"/> #}
{# <link rel="stylesheet" type="text/css" href="{{ asset('css/app.css') }}"> #}
<link rel="icon" type="image/png" href="{{ asset('img/favicon.png') }}">
{# FONTS #}
<link href="https://fonts.googleapis.com/css?family=Comic+Neue&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Cabin&display=swap" rel="stylesheet">
{{ encore_entry_link_tags('app') }}
</head>
<body>
{% if is_granted('IS_AUTHENTICATED_FULLY') or is_granted('IS_AUTHENTICATED_REMEMBERED') %}
<nav class="navbar navbar-expand-lg navbar-light">
<img src="{{ asset('img/logo.jpg') }}" id="logo">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar" aria-controls="navbar"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-icon">
<i class="navbar-burger-trait"></i>
<i class="navbar-burger-trait"></i>
<i class="navbar-burger-trait"></i>
</span>
<span id="span_notification_menu_burger" class="badge badge-pill badge-primary invisible"> </span>
</button>
<div class="collapse navbar-collapse" id="navbar">
<ul class="navbar-nav mr-auto mt-2 mt-lg-0">
{% if is_granted('ROLE_PROFESSIONAL') %}
<li class="nav-item {% if current_menu is defined and current_menu == 'calendar' %}active{% endif %}">
<a class="nav-link" href="{{ path('home_calendar') }}">Tournée</a>
</li>
<li class="nav-item {% if current_menu is defined and current_menu == 'office' %}active{% endif %}">
<a class="nav-link" href="{{ path('office_index') }}">Gestion Cabinet</a>
</li>
<li class="nav-item {% if current_menu is defined and current_menu == 'prescription_book' %}active{% endif %}">
<a class="nav-link" href="{{ path('prescription_book_index') }}">Ordonnancier</a>
</li>
<li class="nav-item {% if current_menu is defined and current_menu == 'patient' %}active{% endif %}">
<a class="nav-link" href="{{ path('patient_index') }}">Gestion Patient</a>
</li>
<li class="nav-item {% if current_menu is defined and current_menu == 'archive' %}active{% endif %}">
<a class="nav-link" href="{{ path('archive_index') }}">Archive</a>
</li>
<li class="nav-item {% if current_menu is defined and current_menu == 'notification' %}active{% endif %}">
<a class="nav-link" href="{{ path('notification_index') }}">Notifications <span
class="badge badge-pill badge-primary invisible span_notification_menu"> </span></a>
</li>
{% elseif is_granted('ROLE_PATIENT') %}
<li class="nav-item {% if current_menu is defined and current_menu == 'calendar_patient' %}active{% endif %}">
<a class="nav-link" href="{{ path('calendar_patient_get') }}">Calendrier</a>
</li>
<li class="nav-item {% if current_menu is defined and current_menu == 'message' %}active{% endif %}">
<a class="nav-link" href="{{ path('index_message_patient') }}">Echanger avec l'infirmier<span
class="badge badge-pill badge-primary invisible span_notification_menu"> </span></a>
</li>
<li class="nav-item {% if current_menu is defined and current_menu == 'patient_paper' %}active{% endif %}">
<a class="nav-link" href="{{ path('paper_patient_index_patient') }}">Mes documents</a>
</li>
<li class="nav-item {% if current_menu is defined and current_menu == 'intervention_history' %}active{% endif %}">
<a class="nav-link" href="{{ path('intervention_history_index') }}">Historique</a>
</li>
{% elseif is_granted('ROLE_FACTURIER') %}
<li class="nav-item {% if current_menu is defined and current_menu == 'facturier_professional' %}active{% endif %}">
<a class="nav-link" href="{{ path('facturier_index') }}">Gestion Infirmier</a>
</li>
<li class="nav-item {% if current_menu is defined and current_menu == 'notification' %}active{% endif %}">
<a class="nav-link" href="{{ path('notification_index') }}">Notifications <span
class="badge badge-pill badge-primary invisible span_notification_menu"> </span></a>
</li>
{% endif %}
<li class="nav-item">
<a class="nav-link {% if current_menu is defined and current_menu == 'profil' %}active{% endif %}"
href="{{ path('profil') }}"><i class="fa fa-user"></i></a>
</li>
</ul>
</div>
</nav>
{% if is_granted('ROLE_PROFESSIONAL') %}
<div class="mobile-navbar">
<ul>
<li class="{% if current_menu is defined and current_menu == 'calendar' %}active{% endif %}">
<a href="{{ path('home_calendar') }}"><i class="fa fa-calendar"></i></a>
</li>
<li class="{% if current_menu is defined and current_menu == 'office' %}active{% endif %}">
<a href="{{ path('office_index') }}"><i class="fa fa-clinic-medical"></i></a>
</li>
<li class="{% if current_menu is defined and current_menu == 'prescription_book' %}active{% endif %}">
<a href="{{ path('prescription_book_index') }}"><i class="fa fa-file-signature"></i></a>
</li>
<li class="{% if current_menu is defined and current_menu == 'patient' %}active{% endif %}">
<a href="{{ path('patient_index') }}"><i class="fa fa-address-book"></i></a>
</li>
<li class="{% if current_menu is defined and current_menu == 'archive' %}active{% endif %}">
<a href="{{ path('archive_index') }}"><i class="fa fa-archive"></i></a>
</li>
<li class="{% if current_menu is defined and current_menu == 'notification' %}active{% endif %}">
<a href="{{ path('notification_index') }}"><i class="fa fa-bell notification"></i>
{# <span class="badge badge-pill badge-primary invisible span_notification_menu"> </span> #}
</a>
</li>
<li class="{% if current_menu is defined and current_menu == 'profil' %}active{% endif %}">
<a href="{{ path('profil') }}"><i class="fa fa-user"></i></a>
</li>
</ul>
</div>
{% elseif is_granted('ROLE_PATIENT') %}
<div class="mobile-navbar">
<ul>
<li class="{% if current_menu is defined and current_menu == 'calendar_patient' %}active{% endif %}">
<a href="{{ path('calendar_patient_get') }}"><i class="fa fa-calendar"></i></a>
</li>
<li class="{% if current_menu is defined and current_menu == 'message' %}active{% endif %}">
<a href="{{ path('index_message_patient') }}">
<i class="fa fa-envelope notification"></i>
{# <span id="span_notification_menu" class="badge badge-pill badge-primary invisible"> </span> #}
</a>
</li>
<li class="{% if current_menu is defined and current_menu == 'patient_paper' %}active{% endif %}">
<a href="{{ path('paper_patient_index_patient') }}"><i class="fa fa-paste"></i></a>
</li>
<li class="{% if current_menu is defined and current_menu == 'intervention_history' %}active{% endif %}">
<a href="{{ path('intervention_history_index') }}"><i class="fa fa-archive"></i></a>
</li>
<li class="{% if current_menu is defined and current_menu == 'profil' %}active{% endif %}">
<a href="{{ path('profil') }}"><i class="fa fa-user"></i></a>
</li>
</ul>
</div>
{% elseif is_granted('ROLE_FACTURIER') %}
<div class="mobile-navbar">
<ul>
<li class="{% if current_menu is defined and current_menu == 'facturier_professional' %}active{% endif %}">
<a href="{{ path('facturier_index') }}"><i class="fa fa-address-book"></i></a>
</li>
<li class="{% if current_menu is defined and current_menu == 'notification' %}active{% endif %}">
<a href="{{ path('notification_index') }}"><i class="fa fa-bell notification"></i>
{# <span class="badge badge-pill badge-primary invisible span_notification_menu"> </span> #}
</a>
</li>
<li class="{% if current_menu is defined and current_menu == 'profil' %}active{% endif %}">
<a href="{{ path('profil') }}"><i class="fa fa-user"></i></a>
</li>
</ul>
</div>
{% else %}
<div class="mobile-navbar">
<ul>
<li class="{% if current_menu is defined and current_menu == 'profil' %}active{% endif %}">
<a href="{{ path('profil') }}"><i class="fa fa-user"></i></a>
</li>
</ul>
</div>
{% endif %}
{% endif %}
<div class="container">
{% for label, messages in app.flashes %}
{% for message in messages %}
<div class="mt-5 alert alert-{{ label }}">
{{ message }}
</div>
{% endfor %}
{% endfor %}
{% block body %}{% endblock %}
</div>
<div class="container-fluid">
{% block calendar %}{% endblock %}
</div>
{% if is_granted('ROLE_PROFESSIONAL') %}
<div id="div_sos">
<button class="btn btn-danger" id="btn_sos">SOS</button>
</div>
{% endif %}
<footer>
<hr style="background-color:#E5361E">
<hr style="background-color:#F59E17">
<hr style="background-color:#FFEE0F">
<hr style="background-color:#00A339">
<hr style="background-color:#26B7EB">
<hr style="background-color:#562678">
<hr style="background-color:#C80975">
</footer>
{{ encore_entry_script_tags('app') }}
{% block javascripts %}
{% endblock %}
</body>
</html>