<?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/index.html.twig */
class __TwigTemplate_321efed29535e66652719c4b3e4f1b5c 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 "base.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "borne/index.html.twig"));

        $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "borne/index.html.twig"));

        $this->parent = $this->loadTemplate("base.html.twig", "borne/index.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
        
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);

        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

    }

    // line 3
    public function block_title($context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));

        $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));

        echo "LODMI
";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);

    }

    // line 6
    public function block_body($context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));

        $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));

        // line 7
        echo "\t";
        $this->loadTemplate("_partials/_navbar.html.twig", "borne/index.html.twig", 7)->display($context);
        // line 8
        echo "\t<div class=\"container\">
\t\t<div class=\"row\">

\t\t\t<div class=\"text-center\">

\t\t\t\t<br>
\t\t\t\t<h1>IDENTIFIANT DU POINT DE CHARGEF:
\t\t\t\t\t<b>";
        // line 15
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["borne"]) || array_key_exists("borne", $context) ? $context["borne"] : (function () { throw new RuntimeError('Variable "borne" does not exist.', 15, $this->source); })()), "id", [], "any", false, false, false, 15), "html", null, true);
        echo "</b>
\t\t\t\t</h1>

\t\t\t</div>

\t\t</div>
\t\t<div class=\"row d-flex justify-content-lg-center\">
\t\t\t";
        // line 22
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["borne"]) || array_key_exists("borne", $context) ? $context["borne"] : (function () { throw new RuntimeError('Variable "borne" does not exist.', 22, $this->source); })()), "connectors", [], "any", false, false, false, 22));
        $context['loop'] = [
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        ];
        if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
            $length = count($context['_seq']);
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context["_key"] => $context["connector"]) {
            // line 23
            echo "\t\t\t\t<div class=\"col-12 col-md-6 col-lg-6 mt-3 mb-3\">
\t\t\t\t\t<div class=\"card\">
\t\t\t\t\t\t<div id=\"borneDiv\" data-controller=\"borne\" data-borne-id-value=\"";
            // line 25
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["borne"]) || array_key_exists("borne", $context) ? $context["borne"] : (function () { throw new RuntimeError('Variable "borne" does not exist.', 25, $this->source); })()), "id", [], "any", false, false, false, 25), "html", null, true);
            echo "\" data-borne-connectorid-value=\"";
            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 "\" data-borne-tagid-value=\"";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["connector"], "currentTagID", [], "any", false, false, false, 25), "html", null, true);
            echo "\" data-borne-visualtagid-value=\"";
            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 "\">
\t\t\t\t\t\t\t<div class=\"alert alert-info mt-3\">
\t\t\t\t\t\t\t\t";
            // line 27
            if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 27) == 2)) {
                // line 28
                echo "\t\t\t\t\t\t\t\t\t<h3>Informations connecteur 2 :</h3>
\t\t\t\t\t\t\t\t";
            } else {
                // line 30
                echo "\t\t\t\t\t\t\t\t\t<h3>Informations connecteur :</h3>
\t\t\t\t\t\t\t\t";
            }
            // line 32
            echo "\t\t\t\t\t\t\t\t<i class=\"fa-solid fa-circle-info\"></i>
\t\t\t\t\t\t\t\tRéférence connecteur :
\t\t\t\t\t\t\t\t<span>";
            // line 34
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["connector"], "currentTagID", [], "any", false, false, false, 34), "html", null, true);
            echo "</span><br>
\t\t\t\t\t\t\t\t<hr>
\t\t\t\t\t\t\t\t<i class=\"fa-solid fa-bolt\"></i>
\t\t\t\t\t\t\t\tPuissance du chargeur :
\t\t\t\t\t\t\t\t";
            // line 38
            echo twig_escape_filter($this->env, (twig_get_attribute($this->env, $this->source, $context["connector"], "power", [], "any", false, false, false, 38) / 1000), "html", null, true);
            echo "
\t\t\t\t\t\t\t\tKW<br>
\t\t\t\t\t\t\t\t<i class=\"fa-solid fa-bolt\"></i>
\t\t\t\t\t\t\t\tType de connecteur:
\t\t\t\t\t\t\t\t";
            // line 42
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["connector"], "type", [], "any", false, false, false, 42), "html", null, true);
            echo "<br>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"alert alert-info mt-3\">
\t\t\t\t\t\t\t\t<h3>
\t\t\t\t\t\t\t\t\t<i class=\"fa-regular fa-credit-card\"></i>
\t\t\t\t\t\t\t\t\tTarif (€ TTC)
\t\t\t\t\t\t\t\t</h3>
\t\t\t\t\t\t\t\t<hr>
\t\t\t\t\t\t\t\t<i class=\"fa-regular fa-credit-card\"></i>
\t\t\t\t\t\t\t\tPrix de session :
\t\t\t\t\t\t\t\t<span id=\"flatPrice-";
            // line 52
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["connector"], "connectorId", [], "any", false, false, false, 52), "html", null, true);
            echo "\">
\t\t\t\t\t\t\t\t\t<i class=\"fa-solid fa-circle-notch fa-spin\"></i>
\t\t\t\t\t\t\t\t</span><br>
\t\t\t\t\t\t\t\t<i class=\"fa-regular fa-credit-card\"></i>
\t\t\t\t\t\t\t\tPrix Kwh consommé :
\t\t\t\t\t\t\t\t<span id=\"energyPrice-";
            // line 57
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["connector"], "connectorId", [], "any", false, false, false, 57), "html", null, true);
            echo "\">
\t\t\t\t\t\t\t\t\t<i class=\"fa-solid fa-circle-notch fa-spin\"></i>
\t\t\t\t\t\t\t\t</span><br>
\t\t\t\t\t\t\t</div>

\t\t\t\t\t\t\t<div id=\"borneBottom\">
\t\t\t\t\t\t\t\t";
            // line 63
            if ((twig_get_attribute($this->env, $this->source, $context["connector"], "status", [], "any", false, false, false, 63) == "Available")) {
                // line 64
                echo "\t\t\t\t\t\t\t\t\t";
                $this->loadTemplate("borne/_borne_start.html.twig", "borne/index.html.twig", 64)->display($context);
                // line 65
                echo "\t\t\t\t\t\t\t\t";
            } elseif ((twig_get_attribute($this->env, $this->source, $context["connector"], "status", [], "any", false, false, false, 65) == "Preparing")) {
                // line 66
                echo "\t\t\t\t\t\t\t\t\t<div class=\"form-inline alert alert-warning\">
\t\t\t\t\t\t\t\t\t\t<i class=\"fas fa-exclamation-triangle\"></i>
\t\t\t\t\t\t\t\t\t\t<b>Chargeur bien branché, Veuillez lancer la charge</b>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t";
                // line 70
                $this->loadTemplate("borne/_borne_start.html.twig", "borne/index.html.twig", 70)->display($context);
                // line 71
                echo "\t\t\t\t\t\t\t\t";
            } elseif ((twig_get_attribute($this->env, $this->source, $context["connector"], "status", [], "any", false, false, false, 71) == "Charging")) {
                // line 72
                echo "\t\t\t\t\t\t\t\t\t";
                $this->loadTemplate("borne/_borne_charging.html.twig", "borne/index.html.twig", 72)->display($context);
                // line 73
                echo "\t\t\t\t\t\t\t\t";
            } elseif ((twig_get_attribute($this->env, $this->source, $context["connector"], "status", [], "any", false, false, false, 73) == "Finishing")) {
                // line 74
                echo "\t\t\t\t\t\t\t\t\t";
                $this->loadTemplate("borne/_borne_start.html.twig", "borne/index.html.twig", 74)->display($context);
                // line 75
                echo "\t\t\t\t\t\t\t\t";
            } elseif ((twig_get_attribute($this->env, $this->source, $context["connector"], "status", [], "any", false, false, false, 75) == "Unavailable")) {
                // line 76
                echo "\t\t\t\t\t\t\t\t\t<div class=\"alert alert-danger form-inline\">
\t\t\t\t\t\t\t\t\t\t<i class=\"fa-solid fa-charging-station\"></i>
\t\t\t\t\t\t\t\t\t\tStatus du connecteur : Indisponible, Veuillez utiliser une autre borne
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t";
                // line 80
                $this->loadTemplate("borne/_borne_charging_no.html.twig", "borne/index.html.twig", 80)->display($context);
                // line 81
                echo "\t\t\t\t\t\t\t\t";
            } else {
                // line 82
                echo "\t\t\t\t\t\t\t\t\t<!-- Opcional: manejar cualquier otro estado no definido -->
\t\t\t\t\t\t\t\t\t<div class=\"alert alert-info\">
\t\t\t\t\t\t\t\t\t\tEstado desconocido. Por favor, consulte con soporte.
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t";
            }
            // line 87
            echo "\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if (isset($context['loop']['length'])) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['connector'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 92
        echo "\t\t</div>
\t</div>
";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);

    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  268 => 92,  250 => 87,  243 => 82,  240 => 81,  238 => 80,  232 => 76,  229 => 75,  226 => 74,  223 => 73,  220 => 72,  217 => 71,  215 => 70,  209 => 66,  206 => 65,  203 => 64,  201 => 63,  192 => 57,  184 => 52,  171 => 42,  164 => 38,  157 => 34,  153 => 32,  149 => 30,  145 => 28,  143 => 27,  132 => 25,  128 => 23,  111 => 22,  101 => 15,  92 => 8,  89 => 7,  79 => 6,  59 => 3,  36 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("{% extends 'base.html.twig' %}

{% block title %}LODMI
{% endblock %}

{% block body %}
\t{% include '_partials/_navbar.html.twig' %}
\t<div class=\"container\">
\t\t<div class=\"row\">

\t\t\t<div class=\"text-center\">

\t\t\t\t<br>
\t\t\t\t<h1>IDENTIFIANT DU POINT DE CHARGEF:
\t\t\t\t\t<b>{{ borne.id }}</b>
\t\t\t\t</h1>

\t\t\t</div>

\t\t</div>
\t\t<div class=\"row d-flex justify-content-lg-center\">
\t\t\t{% for connector in borne.connectors %}
\t\t\t\t<div class=\"col-12 col-md-6 col-lg-6 mt-3 mb-3\">
\t\t\t\t\t<div class=\"card\">
\t\t\t\t\t\t<div id=\"borneDiv\" data-controller=\"borne\" data-borne-id-value=\"{{ borne.id }}\" data-borne-connectorid-value=\"{{ connector.connectorId }}\" data-borne-tagid-value=\"{{ connector.currentTagID }}\" data-borne-visualtagid-value=\"{{ connector.connectorId }}\">
\t\t\t\t\t\t\t<div class=\"alert alert-info mt-3\">
\t\t\t\t\t\t\t\t{% if loop.index == 2 %}
\t\t\t\t\t\t\t\t\t<h3>Informations connecteur 2 :</h3>
\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t<h3>Informations connecteur :</h3>
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t<i class=\"fa-solid fa-circle-info\"></i>
\t\t\t\t\t\t\t\tRéférence connecteur :
\t\t\t\t\t\t\t\t<span>{{ connector.currentTagID }}</span><br>
\t\t\t\t\t\t\t\t<hr>
\t\t\t\t\t\t\t\t<i class=\"fa-solid fa-bolt\"></i>
\t\t\t\t\t\t\t\tPuissance du chargeur :
\t\t\t\t\t\t\t\t{{ connector.power /1000 }}
\t\t\t\t\t\t\t\tKW<br>
\t\t\t\t\t\t\t\t<i class=\"fa-solid fa-bolt\"></i>
\t\t\t\t\t\t\t\tType de connecteur:
\t\t\t\t\t\t\t\t{{ connector.type }}<br>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"alert alert-info mt-3\">
\t\t\t\t\t\t\t\t<h3>
\t\t\t\t\t\t\t\t\t<i class=\"fa-regular fa-credit-card\"></i>
\t\t\t\t\t\t\t\t\tTarif (€ TTC)
\t\t\t\t\t\t\t\t</h3>
\t\t\t\t\t\t\t\t<hr>
\t\t\t\t\t\t\t\t<i class=\"fa-regular fa-credit-card\"></i>
\t\t\t\t\t\t\t\tPrix de session :
\t\t\t\t\t\t\t\t<span id=\"flatPrice-{{ connector.connectorId }}\">
\t\t\t\t\t\t\t\t\t<i class=\"fa-solid fa-circle-notch fa-spin\"></i>
\t\t\t\t\t\t\t\t</span><br>
\t\t\t\t\t\t\t\t<i class=\"fa-regular fa-credit-card\"></i>
\t\t\t\t\t\t\t\tPrix Kwh consommé :
\t\t\t\t\t\t\t\t<span id=\"energyPrice-{{ connector.connectorId }}\">
\t\t\t\t\t\t\t\t\t<i class=\"fa-solid fa-circle-notch fa-spin\"></i>
\t\t\t\t\t\t\t\t</span><br>
\t\t\t\t\t\t\t</div>

\t\t\t\t\t\t\t<div id=\"borneBottom\">
\t\t\t\t\t\t\t\t{% if connector.status == 'Available' %}
\t\t\t\t\t\t\t\t\t{% include 'borne/_borne_start.html.twig' %}
\t\t\t\t\t\t\t\t{% elseif connector.status == 'Preparing' %}
\t\t\t\t\t\t\t\t\t<div class=\"form-inline alert alert-warning\">
\t\t\t\t\t\t\t\t\t\t<i class=\"fas fa-exclamation-triangle\"></i>
\t\t\t\t\t\t\t\t\t\t<b>Chargeur bien branché, Veuillez lancer la charge</b>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t{% include 'borne/_borne_start.html.twig' %}
\t\t\t\t\t\t\t\t{% elseif connector.status == 'Charging' %}
\t\t\t\t\t\t\t\t\t{% include 'borne/_borne_charging.html.twig' %}
\t\t\t\t\t\t\t\t{% elseif connector.status == 'Finishing' %}
\t\t\t\t\t\t\t\t\t{% include 'borne/_borne_start.html.twig' %}
\t\t\t\t\t\t\t\t{% elseif connector.status == 'Unavailable' %}
\t\t\t\t\t\t\t\t\t<div class=\"alert alert-danger form-inline\">
\t\t\t\t\t\t\t\t\t\t<i class=\"fa-solid fa-charging-station\"></i>
\t\t\t\t\t\t\t\t\t\tStatus du connecteur : Indisponible, Veuillez utiliser une autre borne
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t{% include 'borne/_borne_charging_no.html.twig' %}
\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t<!-- Opcional: manejar cualquier otro estado no definido -->
\t\t\t\t\t\t\t\t\t<div class=\"alert alert-info\">
\t\t\t\t\t\t\t\t\t\tEstado desconocido. Por favor, consulte con soporte.
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t{% endfor %}
\t\t</div>
\t</div>
{% endblock %}
", "borne/index.html.twig", "C:\\Users\\Administrator\\Desktop\\Qrcode_LODMI\\templates\\borne\\index.html.twig");
    }
}
