<?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;

/* borne/estimation.html.twig */
class __TwigTemplate_7a9e43e24b6b401ab72c28d098ab634e 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 2
        return "base.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        $context["Charge"] = 0;
        // line 2
        $this->parent = $this->loadTemplate("base.html.twig", "borne/estimation.html.twig", 2);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 4
    public function block_title($context, array $blocks = [])
    {
        $macros = $this->macros;
        echo "LODMI";
    }

    // line 6
    public function block_body($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 7
        $this->loadTemplate("_partials/_navbar.html.twig", "borne/estimation.html.twig", 7)->display($context);
        // line 8
        echo "    <div class=\"container\">
        <div class=\"row\">
            <div class=\"col-lg-12 card mt-4\">
                <div class=\"text-center\">
                    <h1 class=\"card-title\">";
        // line 12
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["borne"] ?? null), "id", [], "any", false, false, false, 12), "html", null, true);
        echo "</h1>
                </div>
            </div>
        </div>
        <div class=\"row d-flex justify-content-lg-center\">
            ";
        // line 17
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, ($context["borne"] ?? null), "connectors", [], "any", false, false, false, 17));
        foreach ($context['_seq'] as $context["_key"] => $context["connector"]) {
            // line 18
            echo "            <div class=\"col-6 card mt-3 mb-3\">
            
            
<div id=\"borneDiv\" data-controller=\"borne\"
     data-borne-id-value=\"";
            // line 22
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["borne"] ?? null), "id", [], "any", false, false, false, 22), "html", null, true);
            echo "\"
     data-borne-connectorid-value=\"";
            // line 23
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["connector"], "connectorId", [], "any", false, false, false, 23), "html", null, true);
            echo "\"
     data-borne-tagid-value=\"";
            // line 24
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["connector"], "currentTagID", [], "any", false, false, false, 24), "html", null, true);
            echo "\"
     data-borne-visualtagid-value=\"";
            // line 25
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["connector"], "connectorId", [], "any", false, false, false, 25), "html", null, true);
            echo "\"
</div>
    <div class=\"alert alert-info mt-3\">
        <h3>Informations connecteur :</h3>
        <hr>
        <i class=\"fa-solid fa-bolt\"></i> Puissnace du chargeur : ";
            // line 30
            echo twig_escape_filter($this->env, (twig_get_attribute($this->env, $this->source, $context["connector"], "power", [], "any", false, false, false, 30) / 1000), "html", null, true);
            echo " KW<br>
        
        <i class=\"fa-solid fa-bolt\"></i> Type de connecteur: : ";
            // line 32
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["connector"], "type", [], "any", false, false, false, 32), "html", null, true);
            echo "<br>
     </div>

     ";
            // line 35
            if ((twig_get_attribute($this->env, $this->source, $context["connector"], "status", [], "any", false, false, false, 35) == "Charging")) {
                // line 36
                echo "         ";
                $context["Charge"] = (($context["Charge"] ?? null) + 1);
                // line 37
                echo "      ";
            }
            // line 38
            echo "    <div class=\"alert alert-success form-inline\">
        <h3>Fréquentation de la borne :</h3>
        <hr>
        <i class=\"fa fa-charging-station\"></i> Ce point de charge était utilisé : ";
            // line 41
            echo twig_escape_filter($this->env, ($context["Charge"] ?? null), "html", null, true);
            echo " fois <br>
        
     </div>
    
     
        
  
  

</div>
            </div>
            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['connector'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 53
        echo "             
        </div>
    </div>
        
";
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "borne/estimation.html.twig";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable()
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  149 => 53,  131 => 41,  126 => 38,  123 => 37,  120 => 36,  118 => 35,  112 => 32,  107 => 30,  99 => 25,  95 => 24,  91 => 23,  87 => 22,  81 => 18,  77 => 17,  69 => 12,  63 => 8,  61 => 7,  57 => 6,  50 => 4,  45 => 2,  43 => 1,  36 => 2,);
    }

    public function getSourceContext()
    {
        return new Source("", "borne/estimation.html.twig", "C:\\Users\\Administrator\\Desktop\\Qrcode_LODMI\\templates\\borne\\estimation.html.twig");
    }
}
