<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* default/notesEnseignes.html.twig */
class __TwigTemplate_dc2ee5186506db59ce75e5449232241221384e18a4089a88a016eb34dbfa393f extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base2.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/notesEnseignes.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/notesEnseignes.html.twig"));
$this->parent = $this->loadTemplate("base2.html.twig", "default/notesEnseignes.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo "Hello DefaultController!";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 6
echo "<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=\"";
// line 62
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 62, $this->source); })()), "user", [], "any", false, false, false, 62), "type", [], "any", false, false, false, 62), "part"))) {
echo "green";
} else {
echo "blue";
}
echo "\">Notes de l'enseigne ";
echo twig_escape_filter($this->env, (isset($context["noteEnseigne"]) || array_key_exists("noteEnseigne", $context) ? $context["noteEnseigne"] : (function () { throw new RuntimeError('Variable "noteEnseigne" does not exist.', 62, $this->source); })()), "html", null, true);
echo "/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\">
";
// line 72
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["notes"]) || array_key_exists("notes", $context) ? $context["notes"] : (function () { throw new RuntimeError('Variable "notes" does not exist.', 72, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["res"]) {
// line 73
echo " <div class=\"col-4\">
";
// line 74
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["res"], "date", [], "any", false, false, false, 74), "d-m-Y"), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["res"], "user", [], "any", false, false, false, 74), "nom", [], "any", false, false, false, 74), "html", null, true);
echo "<br>
";
// line 76
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["res"], "note", [], "any", false, false, false, 76), 0))) {
// line 77
echo " <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>
";
}
// line 83
echo "
";
// line 86
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["res"], "note", [], "any", false, false, false, 86), 1))) {
// line 87
echo " <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>
";
}
// line 93
echo "
";
// line 96
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["res"], "note", [], "any", false, false, false, 96), 2))) {
// line 97
echo " <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>
";
}
// line 103
echo "
";
// line 106
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["res"], "note", [], "any", false, false, false, 106), 3))) {
// line 107
echo " <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>
";
}
// line 113
echo "
";
// line 116
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["res"], "note", [], "any", false, false, false, 116), 4))) {
// line 117
echo " <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>
";
}
// line 123
echo "
";
// line 126
if ((0 <= twig_compare(twig_get_attribute($this->env, $this->source, $context["res"], "note", [], "any", false, false, false, 126), 5))) {
// line 127
echo " <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>
";
}
// line 133
echo " </div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['res'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 136
echo "
</div>
</div>
</div>
</div>
</div>
</section>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "default/notesEnseignes.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 272 => 136, 264 => 133, 256 => 127, 254 => 126, 249 => 123, 241 => 117, 239 => 116, 234 => 113, 226 => 107, 224 => 106, 219 => 103, 211 => 97, 209 => 96, 204 => 93, 196 => 87, 194 => 86, 189 => 83, 181 => 77, 179 => 76, 172 => 74, 169 => 73, 165 => 72, 146 => 62, 88 => 6, 78 => 5, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% 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 %}", "default/notesEnseignes.html.twig", "/var/www/vhosts/modixom.fr/httpdocs/templates/default/notesEnseignes.html.twig");
}
}