<?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_37d4d67782adb9e7ae8a9fee79a66293 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;
        // 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, ($context["borne"] ?? null), "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, ($context["connector"] ?? null), "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, ($context["connector"] ?? null), "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, ($context["connector"] ?? null), "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, ($context["connector"] ?? null), "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, ($context["connector"] ?? null), "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, ($context["connector"] ?? null), "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, ($context["connector"] ?? null), "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, ($context["connector"] ?? null), "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, ($context["connector"] ?? null), "status", [], "any", false, false, false, 24) == "Available")) {
            // line 25
            echo "         
            ";
        } else {
            // line 27
            echo "             ";
            if ((twig_get_attribute($this->env, $this->source, ($context["connector"] ?? null), "status", [], "any", false, false, false, 27) == "Finishing")) {
                // line 28
                echo "
             ";
            } else {
                // line 30
                echo "             ";
                if ((twig_get_attribute($this->env, $this->source, ($context["connector"] ?? null), "status", [], "any", false, false, false, 30) == "Preparing")) {
                    // line 31
                    echo "             
             ";
                } else {
                    // line 33
                    echo "             ";
                    if ((twig_get_attribute($this->env, $this->source, ($context["connector"] ?? null), "status", [], "any", false, false, false, 33) == "Charging")) {
                        // line 34
                        echo "             
             ";
                    } else {
                        // line 36
                        echo "             ";
                        if ((twig_get_attribute($this->env, $this->source, ($context["connector"] ?? null), "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, ($context["connector"] ?? null), "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, ($context["connector"] ?? null), "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, ($context["connector"] ?? null), "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, ($context["connector"] ?? null), "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, ($context["connector"] ?? null), "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>
";
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  215 => 76,  209 => 75,  206 => 74,  202 => 72,  198 => 71,  195 => 70,  193 => 69,  189 => 67,  186 => 66,  183 => 65,  181 => 64,  178 => 63,  175 => 62,  171 => 60,  169 => 59,  166 => 58,  163 => 57,  159 => 55,  157 => 54,  153 => 52,  150 => 51,  146 => 49,  143 => 48,  141 => 47,  135 => 43,  132 => 42,  129 => 41,  126 => 40,  123 => 39,  119 => 37,  116 => 36,  112 => 34,  109 => 33,  105 => 31,  102 => 30,  98 => 28,  95 => 27,  91 => 25,  89 => 24,  83 => 21,  79 => 20,  70 => 14,  65 => 12,  60 => 10,  53 => 6,  49 => 5,  45 => 4,  41 => 3,  37 => 1,);
    }

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