var/cache/dev/twig/8f/8f24efa29004ecad12191d568733b2cab0e7c45373c513ee5687ddb34ccce307.php line 39

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* default/notesEnseignes.html.twig */
  14. class __TwigTemplate_dc2ee5186506db59ce75e5449232241221384e18a4089a88a016eb34dbfa393f extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'body' => [$this'block_body'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "base2.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/notesEnseignes.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/notesEnseignes.html.twig"));
  39.         $this->parent $this->loadTemplate("base2.html.twig""default/notesEnseignes.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  43.         
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  45.     }
  46.     // line 3
  47.     public function block_title($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         echo "Hello DefaultController!";
  55.         
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  57.         
  58.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  59.     }
  60.     // line 5
  61.     public function block_body($context, array $blocks = [])
  62.     {
  63.         $macros $this->macros;
  64.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  66.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  68.         // line 6
  69.         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>
  70. <link href=\"https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css\" rel=\"stylesheet\" />
  71. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.8/js/select2.min.js\" defer></script>
  72. <style>
  73.     .txt-inscription,
  74.     label {
  75.        color: #adb9ca;
  76.     }
  77.  
  78.     button {
  79.        background-color: #adb9ca !important;
  80.        color: white !important;
  81.     }
  82.  
  83.     button:hover {
  84.        background-color: #0073CD !important;
  85.        color: white !important;
  86.     }
  87.  
  88.     .btn-logo {
  89.        width: 0.1px;
  90.        opacity: 0;
  91.     }
  92.  
  93.     #pro .style-choix-logo {
  94.        background-color: #adb9ca;
  95.        color: white;
  96.        padding: 0.5em;
  97.        border-radius: 5px;
  98.     }
  99.       #part .style-choix-logo {
  100.          background-color: #B0DB82 !important;
  101.          color: white !important;
  102.          padding: 0.5em;
  103.        border-radius: 5px;
  104.       }  
  105.       #part .theme-btn-pro{
  106.          background-color: #B0DB82 !important;
  107.          color: white !important;
  108.       }
  109.       #pro .theme-btn-pro{
  110.          background-color: #adb9ca;
  111.          color: white;
  112.       }
  113.  </style>
  114.  <section class=\"contact-area page-paddings\" style=\"background-color: white\">
  115.          <div class=\"container\">
  116.             <div class=\"row\">
  117.                <div class=\"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12\">
  118.                   <div class=\"section-title text-center\">
  119.                      <h1 data-watermark=\"Contact\" class=\"";
  120.         // line 62
  121.         if ((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse62), "type", [], "any"falsefalsefalse62), "part"))) {
  122.             echo "green";
  123.         } else {
  124.             echo "blue";
  125.         }
  126.         echo "\">Notes de l'enseigne ";
  127.         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"nulltrue);
  128.         echo "/5</h1>
  129.                     
  130.                      <p class=\"subtitle\">Vous trouverez ci-dessous la liste de toutes les notes de votre enseigne .</p>
  131.                   </div>
  132.                </div>
  133.             </div>
  134.             <div class=\"row\">
  135.                <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\">
  136.                   <div class=\"contact-box-main\">
  137.                      <div class=\"row\">
  138.                      ";
  139.         // line 72
  140.         $context['_parent'] = $context;
  141.         $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); })()));
  142.         foreach ($context['_seq'] as $context["_key"] => $context["res"]) {
  143.             // line 73
  144.             echo "                        <div class=\"col-4\">
  145.                         ";
  146.             // line 74
  147.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["res"], "date", [], "any"falsefalsefalse74), "d-m-Y"), "html"nulltrue);
  148.             echo " - ";
  149.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["res"], "user", [], "any"falsefalsefalse74), "nom", [], "any"falsefalsefalse74), "html"nulltrue);
  150.             echo "<br>
  151.                               ";
  152.             // line 76
  153.             if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["res"], "note", [], "any"falsefalsefalse76), 0))) {
  154.                 // line 77
  155.                 echo "                                                <i class=\"far fa-star\"></i>
  156.                                                 <i class=\"far fa-star\"></i>
  157.                                                 <i class=\"far fa-star\"></i>
  158.                                                 <i class=\"far fa-star\"></i>
  159.                                                 <i class=\"far fa-star\"></i> 
  160.                                              ";
  161.             }
  162.             // line 83
  163.             echo "
  164.                                             
  165.                                                ";
  166.             // line 86
  167.             if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["res"], "note", [], "any"falsefalsefalse86), 1))) {
  168.                 // line 87
  169.                 echo "                                                <i class=\"fas fa-star\"></i>
  170.                                                 <i class=\"far fa-star\"></i>
  171.                                                 <i class=\"far fa-star\"></i>
  172.                                                 <i class=\"far fa-star\"></i>
  173.                                                 <i class=\"far fa-star\"></i> 
  174.                                              ";
  175.             }
  176.             // line 93
  177.             echo "
  178.                                               
  179.                                                ";
  180.             // line 96
  181.             if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["res"], "note", [], "any"falsefalsefalse96), 2))) {
  182.                 // line 97
  183.                 echo "                                                <i class=\"fas fa-star\"></i>
  184.                                                 <i class=\"fas fa-star\"></i>
  185.                                                 <i class=\"far fa-star\"></i>
  186.                                                 <i class=\"far fa-star\"></i>
  187.                                                 <i class=\"far fa-star\"></i> 
  188.                                              ";
  189.             }
  190.             // line 103
  191.             echo "
  192.                                              
  193.                                                ";
  194.             // line 106
  195.             if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["res"], "note", [], "any"falsefalsefalse106), 3))) {
  196.                 // line 107
  197.                 echo "                                                <i class=\"fas fa-star\"></i>
  198.                                                 <i class=\"fas fa-star\"></i>
  199.                                                 <i class=\"fas fa-star\"></i>
  200.                                                 <i class=\"far fa-star\"></i>
  201.                                                 <i class=\"far fa-star\"></i> 
  202.                                              ";
  203.             }
  204.             // line 113
  205.             echo "
  206.                                               
  207.                                                ";
  208.             // line 116
  209.             if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["res"], "note", [], "any"falsefalsefalse116), 4))) {
  210.                 // line 117
  211.                 echo "                                                <i class=\"fas fa-star\"></i>
  212.                                                 <i class=\"fas fa-star\"></i>
  213.                                                 <i class=\"fas fa-star\"></i>
  214.                                                 <i class=\"fas fa-star\"></i>
  215.                                                 <i class=\"far fa-star\"></i> 
  216.                                              ";
  217.             }
  218.             // line 123
  219.             echo "
  220.                                              
  221.                                                ";
  222.             // line 126
  223.             if ((<= twig_compare(twig_get_attribute($this->env$this->source$context["res"], "note", [], "any"falsefalsefalse126), 5))) {
  224.                 // line 127
  225.                 echo "                                                <i class=\"fas fa-star\"></i>
  226.                                                 <i class=\"fas fa-star\"></i>
  227.                                                 <i class=\"fas fa-star\"></i>
  228.                                                 <i class=\"fas fa-star\"></i>
  229.                                                 <i class=\"fas fa-star\"></i> 
  230.                                              ";
  231.             }
  232.             // line 133
  233.             echo "                        </div>
  234.                         ";
  235.         }
  236.         $_parent $context['_parent'];
  237.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['res'], $context['_parent'], $context['loop']);
  238.         $context array_intersect_key($context$_parent) + $_parent;
  239.         // line 136
  240.         echo "                      
  241.                        
  242.                        
  243.                      </div>
  244.                   </div>
  245.                </div>
  246.             </div>
  247.          </div>
  248.       </section>
  249. ";
  250.         
  251.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  252.         
  253.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  254.     }
  255.     public function getTemplateName()
  256.     {
  257.         return "default/notesEnseignes.html.twig";
  258.     }
  259.     public function isTraitable()
  260.     {
  261.         return false;
  262.     }
  263.     public function getDebugInfo()
  264.     {
  265.         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,);
  266.     }
  267.     public function getSourceContext()
  268.     {
  269.         return new Source("{% extends 'base2.html.twig' %}
  270. {% block title %}Hello DefaultController!{% endblock %}
  271. {% block body %}
  272. <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>
  273. <link href=\"https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css\" rel=\"stylesheet\" />
  274. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.8/js/select2.min.js\" defer></script>
  275. <style>
  276.     .txt-inscription,
  277.     label {
  278.        color: #adb9ca;
  279.     }
  280.  
  281.     button {
  282.        background-color: #adb9ca !important;
  283.        color: white !important;
  284.     }
  285.  
  286.     button:hover {
  287.        background-color: #0073CD !important;
  288.        color: white !important;
  289.     }
  290.  
  291.     .btn-logo {
  292.        width: 0.1px;
  293.        opacity: 0;
  294.     }
  295.  
  296.     #pro .style-choix-logo {
  297.        background-color: #adb9ca;
  298.        color: white;
  299.        padding: 0.5em;
  300.        border-radius: 5px;
  301.     }
  302.       #part .style-choix-logo {
  303.          background-color: #B0DB82 !important;
  304.          color: white !important;
  305.          padding: 0.5em;
  306.        border-radius: 5px;
  307.       }  
  308.       #part .theme-btn-pro{
  309.          background-color: #B0DB82 !important;
  310.          color: white !important;
  311.       }
  312.       #pro .theme-btn-pro{
  313.          background-color: #adb9ca;
  314.          color: white;
  315.       }
  316.  </style>
  317.  <section class=\"contact-area page-paddings\" style=\"background-color: white\">
  318.          <div class=\"container\">
  319.             <div class=\"row\">
  320.                <div class=\"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12\">
  321.                   <div class=\"section-title text-center\">
  322.                      <h1 data-watermark=\"Contact\" class=\"{% if app.user.type == 'part' %}green{% else %}blue{% endif %}\">Notes de l'enseigne {{noteEnseigne}}/5</h1>
  323.                     
  324.                      <p class=\"subtitle\">Vous trouverez ci-dessous la liste de toutes les notes de votre enseigne .</p>
  325.                   </div>
  326.                </div>
  327.             </div>
  328.             <div class=\"row\">
  329.                <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\">
  330.                   <div class=\"contact-box-main\">
  331.                      <div class=\"row\">
  332.                      {% for res in notes %}
  333.                         <div class=\"col-4\">
  334.                         {{res.date|date('d-m-Y')}} - {{res.user.nom}}<br>
  335.                               {% if res.note == 0 %}
  336.                                                 <i class=\"far fa-star\"></i>
  337.                                                 <i class=\"far fa-star\"></i>
  338.                                                 <i class=\"far fa-star\"></i>
  339.                                                 <i class=\"far fa-star\"></i>
  340.                                                 <i class=\"far fa-star\"></i> 
  341.                                              {% endif %}
  342.                                             
  343.                                                {% if res.note == 1 %}
  344.                                                 <i class=\"fas fa-star\"></i>
  345.                                                 <i class=\"far fa-star\"></i>
  346.                                                 <i class=\"far fa-star\"></i>
  347.                                                 <i class=\"far fa-star\"></i>
  348.                                                 <i class=\"far fa-star\"></i> 
  349.                                              {% endif %}
  350.                                               
  351.                                                {% if res.note == 2 %}
  352.                                                 <i class=\"fas fa-star\"></i>
  353.                                                 <i class=\"fas fa-star\"></i>
  354.                                                 <i class=\"far fa-star\"></i>
  355.                                                 <i class=\"far fa-star\"></i>
  356.                                                 <i class=\"far fa-star\"></i> 
  357.                                              {% endif %}
  358.                                              
  359.                                                {% if res.note == 3 %}
  360.                                                 <i class=\"fas fa-star\"></i>
  361.                                                 <i class=\"fas fa-star\"></i>
  362.                                                 <i class=\"fas fa-star\"></i>
  363.                                                 <i class=\"far fa-star\"></i>
  364.                                                 <i class=\"far fa-star\"></i> 
  365.                                              {% endif %}
  366.                                               
  367.                                                {% if res.note == 4 %}
  368.                                                 <i class=\"fas fa-star\"></i>
  369.                                                 <i class=\"fas fa-star\"></i>
  370.                                                 <i class=\"fas fa-star\"></i>
  371.                                                 <i class=\"fas fa-star\"></i>
  372.                                                 <i class=\"far fa-star\"></i> 
  373.                                              {% endif %}
  374.                                              
  375.                                                {% if res.note >= 5 %}
  376.                                                 <i class=\"fas fa-star\"></i>
  377.                                                 <i class=\"fas fa-star\"></i>
  378.                                                 <i class=\"fas fa-star\"></i>
  379.                                                 <i class=\"fas fa-star\"></i>
  380.                                                 <i class=\"fas fa-star\"></i> 
  381.                                              {% endif %}
  382.                         </div>
  383.                         {% endfor %}
  384.                       
  385.                        
  386.                        
  387.                      </div>
  388.                   </div>
  389.                </div>
  390.             </div>
  391.          </div>
  392.       </section>
  393. {% endblock %}""default/notesEnseignes.html.twig""/var/www/vhosts/modixom.fr/httpdocs/templates/default/notesEnseignes.html.twig");
  394.     }
  395. }