<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/ico" href="{{ asset('img/favicon.ico') }}"/>
<title>
{% block title %}Welcome!
{% endblock %}
</title>
<link rel="stylesheet" href="{{ asset('assets/css/bootstrap.min.css') }}"> {% block stylesheets %}{% endblock %}
<link rel="stylesheet" href="{{ asset('assets/css/styles.css') }}">
<script src="{{ asset('assets/js/bootstrap.bundle.min.js') }}" defer></script>
{% block javascript %}{% endblock %}
<script src="{{ asset('assets/js/scripts.js') }}" defer></script>
</head>
<nav class="navbar navbar-expand-sm navbar-dark bg-primary">
<div class="container-fluid">
<a class="navbar-brand" href="{{ path('home') }}">Altergi</a>
<ul class="navbar-nav me-auto">
{% if is_granted('ROLE_USER') %}
<li class="nav-item">
<a class="nav-link active" href="{{ path('app_player_choose') }}">Jouer
<span class="visually-hidden">(current)</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ path('logout') }}">Déconnexion</a>
</li>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ path('user_self_config') }}">{{ app.user.nickname }}</a>
</li>
{% else %}
<li class="nav-item">
<a class="nav-link active" href="{{ path('login') }}">Connexion
<span class="visually-hidden">(current)</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ path('app_register') }}">Inscription</a>
</li>
{% endif %}
{% if is_granted('ROLE_MASTER') %}
<li class="nav-item">
<a class="nav-link" href="{{ path('office') }}">Bureaux des Maîtres de jeu</a>
</li>
{% endif %}
{% if is_granted('ROLE_FATHER') %}
<li class="nav-item">
<a class="nav-link" href="{{ path('desk') }}">家</a>
</li>
{% endif %}
</ul>
</div>
</html></nav>{% block body %}{% endblock %}</body></html>