<?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/_borne.html.twig */
class __TwigTemplate_375eefc102e5ae3c1f1fb63940b944e0 extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
    }

    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/_borne.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/_borne.html.twig"));

        // line 1
        echo "
<div id=\"borneDiv\" data-controller=\"borne\"
     data-borne-id-value=\"";
        // line 3
        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.', 3, $this->source); })()), "id", [], "any", false, false, false, 3), "html", null, true);
        echo "\"
     data-borne-connectorid-value=\"";
        // line 4
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["connector"]) || array_key_exists("connector", $context) ? $context["connector"] : (function () { throw new RuntimeError('Variable "connector" does not exist.', 4, $this->source); })()), "connectorId", [], "any", false, false, false, 4), "html", null, true);
        echo "\"
     data-borne-tagid-value=\"";
        // line 5
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["connector"]) || array_key_exists("connector", $context) ? $context["connector"] : (function () { throw new RuntimeError('Variable "connector" does not exist.', 5, $this->source); })()), "currentTagID", [], "any", false, false, false, 5), "html", null, true);
        echo "\"
     data-borne-visualtagid-value=\"";
        // line 6
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["connector"]) || array_key_exists("connector", $context) ? $context["connector"] : (function () { throw new RuntimeError('Variable "connector" does not exist.', 6, $this->source); })()), "connectorId", [], "any", false, false, false, 6), "html", null, true);
        echo "\"
>
    <div class=\"alert alert-info mt-3\">
        <h3>Informations connecteur :</h3>
        <i class=\"fa-solid fa-circle-info\"></i> Référence connecteur : <span id=\"\">";
        // line 10
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["connector"]) || array_key_exists("connector", $context) ? $context["connector"] : (function () { throw new RuntimeError('Variable "connector" does not exist.', 10, $this->source); })()), "currentTagID", [], "any", false, false, false, 10), "html", null, true);
        echo "</span><br>
        <hr>
        <i class=\"fa-solid fa-bolt\"></i> Puissance du chargeur : ";
        // line 12
        echo twig_escape_filter($this->env, (twig_get_attribute($this->env, $this->source, (isset($context["connector"]) || array_key_exists("connector", $context) ? $context["connector"] : (function () { throw new RuntimeError('Variable "connector" does not exist.', 12, $this->source); })()), "power", [], "any", false, false, false, 12) / 1000), "html", null, true);
        echo " KW<br>
        
        <i class=\"fa-solid fa-bolt\"></i> Type de connecteur: ";
        // line 14
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["connector"]) || array_key_exists("connector", $context) ? $context["connector"] : (function () { throw new RuntimeError('Variable "connector" does not exist.', 14, $this->source); })()), "type", [], "any", false, false, false, 14), "html", null, true);
        echo "<br>
    </div>

    <div class=\"alert alert-info mt-3\">
        <h3><i class=\"fa-regular fa-credit-card\"></i> Tarif (€ TTC)</h3>
        <hr>
        <i class=\"fa-regular fa-credit-card\"></i> Prix de session : <span id=\"flatPrice-";
        // line 20
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["connector"]) || array_key_exists("connector", $context) ? $context["connector"] : (function () { throw new RuntimeError('Variable "connector" does not exist.', 20, $this->source); })()), "connectorId", [], "any", false, false, false, 20), "html", null, true);
        echo "\"><i class=\"fa-solid fa-circle-notch fa-spin\"></i></span> <br>
        <i class=\"fa-regular fa-credit-card\"></i> Prix Kwh consommé : <span id=\"energyPrice-";
        // line 21
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["connector"]) || array_key_exists("connector", $context) ? $context["connector"] : (function () { throw new RuntimeError('Variable "connector" does not exist.', 21, $this->source); })()), "connectorId", [], "any", false, false, false, 21), "html", null, true);
        echo "\"><i class=\"fa-solid fa-circle-notch fa-spin\"></i></span> <br>
    </div>
    
      ";
        // line 24
        if ((twig_get_attribute($this->env, $this->source, (isset($context["connector"]) || array_key_exists("connector", $context) ? $context["connector"] : (function () { throw new RuntimeError('Variable "connector" does not exist.', 24, $this->source); })()), "status", [], "any", false, false, false, 24) == "Available")) {
            // line 25
            echo "         
            ";
        } else {
            // line 27
            echo "             ";
            if ((twig_get_attribute($this->env, $this->source, (isset($context["connector"]) || array_key_exists("connector", $context) ? $context["connector"] : (function () { throw new RuntimeError('Variable "connector" does not exist.', 27, $this->source); })()), "status", [], "any", false, false, false, 27) == "Finishing")) {
                // line 28
                echo "
             ";
            } else {
                // line 30
                echo "             ";
                if ((twig_get_attribute($this->env, $this->source, (isset($context["connector"]) || array_key_exists("connector", $context) ? $context["connector"] : (function () { throw new RuntimeError('Variable "connector" does not exist.', 30, $this->source); })()), "status", [], "any", false, false, false, 30) == "Preparing")) {
                    // line 31
                    echo "             
             ";
                } else {
                    // line 33
                    echo "             ";
                    if ((twig_get_attribute($this->env, $this->source, (isset($context["connector"]) || array_key_exists("connector", $context) ? $context["connector"] : (function () { throw new RuntimeError('Variable "connector" does not exist.', 33, $this->source); })()), "status", [], "any", false, false, false, 33) == "Charging")) {
                        // line 34
                        echo "             
             ";
                    } else {
                        // line 36
                        echo "             ";
                        if ((twig_get_attribute($this->env, $this->source, (isset($context["connector"]) || array_key_exists("connector", $context) ? $context["connector"] : (function () { throw new RuntimeError('Variable "connector" does not exist.', 36, $this->source); })()), "status", [], "any", false, false, false, 36) == "Unavailable")) {
                            // line 37
                            echo "                    
        ";
                        }
                        // line 39
                        echo "        ";
                    }
                    // line 40
                    echo "        ";
                }
                // line 41
                echo "        ";
            }
            // line 42
            echo "        ";
        }
        // line 43
        echo "
       
    </div>
    <div id=\"borneBottom\">
        ";
        // line 47
        if ((twig_get_attribute($this->env, $this->source, (isset($context["connector"]) || array_key_exists("connector", $context) ? $context["connector"] : (function () { throw new RuntimeError('Variable "connector" does not exist.', 47, $this->source); })()), "status", [], "any", false, false, false, 47) == "Available")) {
            // line 48
            echo "            ";
            $this->loadTemplate("borne/_borne_start.html.twig", "borne/_borne.html.twig", 48)->display($context);
            // line 49
            echo "
        ";
        } else {
            // line 51
            echo "        ";
            if ((twig_get_attribute($this->env, $this->source, (isset($context["connector"]) || array_key_exists("connector", $context) ? $context["connector"] : (function () { throw new RuntimeError('Variable "connector" does not exist.', 51, $this->source); })()), "status", [], "any", false, false, false, 51) == "Preparing")) {
                // line 52
                echo "            <div class=\"form-inline alert alert-warning\">
            <i class=\"fas fa-exclamation-triangle\"></i>  <b>Chargeur bien branché, Veuillez lancer la charge</b></div>
            ";
                // line 54
                $this->loadTemplate("borne/_borne_start.html.twig", "borne/_borne.html.twig", 54)->display($context);
                // line 55
                echo "
        ";
            } else {
                // line 57
                echo "        ";
                if ((twig_get_attribute($this->env, $this->source, (isset($context["connector"]) || array_key_exists("connector", $context) ? $context["connector"] : (function () { throw new RuntimeError('Variable "connector" does not exist.', 57, $this->source); })()), "status", [], "any", false, false, false, 57) == "Charging")) {
                    // line 58
                    echo "
            ";
                    // line 59
                    $this->loadTemplate("borne/_borne_charging.html.twig", "borne/_borne.html.twig", 59)->display($context);
                    // line 60
                    echo "
        ";
                } else {
                    // line 62
                    echo "        ";
                    if ((twig_get_attribute($this->env, $this->source, (isset($context["connector"]) || array_key_exists("connector", $context) ? $context["connector"] : (function () { throw new RuntimeError('Variable "connector" does not exist.', 62, $this->source); })()), "status", [], "any", false, false, false, 62) == "Finishing")) {
                        // line 63
                        echo "
            ";
                        // line 64
                        $this->loadTemplate("borne/_borne_start.html.twig", "borne/_borne.html.twig", 64)->display($context);
                        // line 65
                        echo "        ";
                    } else {
                        // line 66
                        echo "            ";
                        if ((twig_get_attribute($this->env, $this->source, (isset($context["connector"]) || array_key_exists("connector", $context) ? $context["connector"] : (function () { throw new RuntimeError('Variable "connector" does not exist.', 66, $this->source); })()), "status", [], "any", false, false, false, 66) == "Unavailable")) {
                            // line 67
                            echo "            <div class=\"alert alert-danger form-inline\">
            <i class=\"fa-solid fa-charging-station\"></i> Status du connecteur : Indisponible, Veuillez utiliser une autre borne</div>
            ";
                            // line 69
                            $this->loadTemplate("borne/_borne_charging_no.html.twig", "borne/_borne.html.twig", 69)->display($context);
                            // line 70
                            echo "            ";
                        } else {
                            // line 71
                            echo "                
        ";
                        }
                        // line 72
                        echo "   
        ";
                    }
                    // line 74
                    echo "        ";
                }
                // line 75
                echo "        ";
            }
            echo " 
        ";
        }
        // line 76
        echo " 
    </div>

</div>
";
        
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);

        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

    }

    public function getTemplateName()
    {
        return "borne/_borne.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  221 => 76,  215 => 75,  212 => 74,  208 => 72,  204 => 71,  201 => 70,  199 => 69,  195 => 67,  192 => 66,  189 => 65,  187 => 64,  184 => 63,  181 => 62,  177 => 60,  175 => 59,  172 => 58,  169 => 57,  165 => 55,  163 => 54,  159 => 52,  156 => 51,  152 => 49,  149 => 48,  147 => 47,  141 => 43,  138 => 42,  135 => 41,  132 => 40,  129 => 39,  125 => 37,  122 => 36,  118 => 34,  115 => 33,  111 => 31,  108 => 30,  104 => 28,  101 => 27,  97 => 25,  95 => 24,  89 => 21,  85 => 20,  76 => 14,  71 => 12,  66 => 10,  59 => 6,  55 => 5,  51 => 4,  47 => 3,  43 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("
<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 }}\"
>
    <div class=\"alert alert-info mt-3\">
        <h3>Informations connecteur :</h3>
        <i class=\"fa-solid fa-circle-info\"></i> Référence connecteur : <span id=\"\">{{ connector.currentTagID }}</span><br>
        <hr>
        <i class=\"fa-solid fa-bolt\"></i> Puissance du chargeur : {{ connector.power /1000 }} KW<br>
        
        <i class=\"fa-solid fa-bolt\"></i> Type de connecteur: {{ connector.type }}<br>
    </div>

    <div class=\"alert alert-info mt-3\">
        <h3><i class=\"fa-regular fa-credit-card\"></i> Tarif (€ TTC)</h3>
        <hr>
        <i class=\"fa-regular fa-credit-card\"></i> Prix de session : <span id=\"flatPrice-{{ connector.connectorId }}\"><i class=\"fa-solid fa-circle-notch fa-spin\"></i></span> <br>
        <i class=\"fa-regular fa-credit-card\"></i> Prix Kwh consommé : <span id=\"energyPrice-{{ connector.connectorId }}\"><i class=\"fa-solid fa-circle-notch fa-spin\"></i></span> <br>
    </div>
    
      {% if connector.status == 'Available'%}
         
            {% else %}
             {% if connector.status == 'Finishing' %}

             {% else %}
             {% if connector.status == 'Preparing' %}
             
             {% else %}
             {% if connector.status == 'Charging' %}
             
             {% else %}
             {% if connector.status == 'Unavailable' %}
                    
        {% endif %}
        {% endif %}
        {% endif %}
        {% endif %}
        {% endif %}

       
    </div>
    <div id=\"borneBottom\">
        {% if connector.status == 'Available'%}
            {% include 'borne/_borne_start.html.twig' %}

        {% else %}
        {% if connector.status == 'Preparing'%}
            <div class=\"form-inline alert alert-warning\">
            <i class=\"fas fa-exclamation-triangle\"></i>  <b>Chargeur bien branché, Veuillez lancer la charge</b></div>
            {% include 'borne/_borne_start.html.twig' %}

        {% else %}
        {% if connector.status == 'Charging' %}

            {% include 'borne/_borne_charging.html.twig' %}

        {% else %}
        {% if connector.status == 'Finishing'%}

            {% include 'borne/_borne_start.html.twig' %}
        {% else %}
            {% if connector.status == 'Unavailable' %}
            <div class=\"alert alert-danger form-inline\">
            <i class=\"fa-solid fa-charging-station\"></i> Status du connecteur : Indisponible, Veuillez utiliser une autre borne</div>
            {% include 'borne/_borne_charging_no.html.twig' %}
            {% else %}
                
        {% endif %}   
        {% endif %}
        {% endif %}
        {% endif %} 
        {% endif %} 
    </div>

</div>
", "borne/_borne.html.twig", "C:\\Users\\ayoub\\Desktop\\Application lodmi\\Qrcode_dev\\templates\\borne\\_borne.html.twig");
    }
}
