<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>{% block title %}Welcome!{% endblock %}</title>
{% block stylesheets %}
{{ encore_entry_link_tags('theme') }}
{% endblock %}
</head>
<body data-spy="scroll" data-target="#v-pills-tab">
{% if is_granted('ROLE_CLIENT') %}
{% block header %}
<header>
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<div class="container">
<img src="{{ asset('firplast-logo.svg') }}" class="img-thumbnail float-left" alt="Logo Firplast">
{% if is_granted('ROLE_COMMERCIAL') or is_granted('ROLE_ACCOUNTANT') %}
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="{{ path('company_index') }}">
Sociétés
</a>
</li>
{% if is_granted('ROLE_ADMIN') %}
<li class="nav-item">
<a class="nav-link" href="{{ path('user_index') }}">
Utilisateurs
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ path('setting') }}">
Paramètres
</a>
</li>
{% endif %}
</ul>
{% endif %}
<div>
<a class="btn btn-secondary" href="{{ path('app_logout') }}">
<i class="fa fa-unlock"></i> Déconnexion
</a>
</div>
</div>
</nav>
</header>
{% endblock %}
{% endif %}
{% block main %}
<main role="main">
<div class="container">
{% for message in app.flashes('success') %}
<div class="alert alert-success alert-dismissible fade show" role="alert">
{{ message }}
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
{% endfor %}
{% for message in app.flashes('warning') %}
<div class="alert alert-warning alert-dismissible fade show" role="alert">
{{ message }}
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
{% endfor %}
{% block nav %}{% endblock %}
{% block body %}{% endblock %}
</div>
</main>
{% endblock %}
<footer>
<div class="container text-center">
Copyright 2020 | <a href="https://www.greentic.net" target="_blank">Développement Greentic.net</a>
</div>
</footer>
<div role="alert" aria-live="assertive" aria-atomic="true" class="toast" data-delay="2000" data-autohide="true">
<div class="toast-header">
<strong class="mr-auto">Notification</strong>
<button type="button" class="ml-2 mb-1 close" data-dismiss="toast" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="toast-body"></div>
</div>
{% block javascripts %}{{ encore_entry_script_tags('script') }}{% endblock %}
</body>
</html>