{% extends 'base2.html.twig' %}
{% block title %}Hello DefaultController!{% endblock %}
{% block body %}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.0/jquery.min.js" integrity="sha512-3gJwYpMe3QewGELv8k/BX9vcqhryRdzRMxVfq6ngyWXwo03GFEzjsUm8Q7RZcHPHksttq7/GFoxjCVUjkjvPdw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.8/js/select2.min.js" defer></script>
<style>
.txt-inscription,
label {
color: #adb9ca;
}
button {
background-color: #adb9ca !important;
color: white !important;
}
button:hover {
background-color: #0073CD !important;
color: white !important;
}
.btn-logo {
width: 0.1px;
opacity: 0;
}
#pro .style-choix-logo {
background-color: #adb9ca;
color: white;
padding: 0.5em;
border-radius: 5px;
}
#part .style-choix-logo {
background-color: #B0DB82 !important;
color: white !important;
padding: 0.5em;
border-radius: 5px;
}
#part .theme-btn-pro{
background-color: #B0DB82 !important;
color: white !important;
}
#pro .theme-btn-pro{
background-color: #adb9ca;
color: white;
}
</style>
<section class="contact-area page-paddings" style="background-color: white">
<div class="container">
<div class="row">
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
<div class="section-title text-center">
<h1 data-watermark="Contact" class="{% if app.user.type == 'part' %}green{% else %}blue{% endif %}">Notes de l'enseigne {{noteEnseigne}}/5</h1>
<p class="subtitle">Vous trouverez ci-dessous la liste de toutes les notes de votre enseigne .</p>
</div>
</div>
</div>
<div class="row">
<div class="col-xl-8 col-lg-10 col-md-10 col-sm-12 col-12 offset-xl-2 offset-lg-1 offset-md-1">
<div class="contact-box-main">
<div class="row">
{% for res in notes %}
<div class="col-4">
{{res.date|date('d-m-Y')}} - {{res.user.nom}}<br>
{% if res.note == 0 %}
<i class="far fa-star"></i>
<i class="far fa-star"></i>
<i class="far fa-star"></i>
<i class="far fa-star"></i>
<i class="far fa-star"></i>
{% endif %}
{% if res.note == 1 %}
<i class="fas fa-star"></i>
<i class="far fa-star"></i>
<i class="far fa-star"></i>
<i class="far fa-star"></i>
<i class="far fa-star"></i>
{% endif %}
{% if res.note == 2 %}
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="far fa-star"></i>
<i class="far fa-star"></i>
<i class="far fa-star"></i>
{% endif %}
{% if res.note == 3 %}
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="far fa-star"></i>
<i class="far fa-star"></i>
{% endif %}
{% if res.note == 4 %}
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="far fa-star"></i>
{% endif %}
{% if res.note >= 5 %}
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
{% endif %}
</div>
{% endfor %}
</div>
</div>
</div>
</div>
</div>
</section>
{% endblock %}