<?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_occupe.html.twig */
class __TwigTemplate_a11257495928ef0ec298f9696b7979d6 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>
    <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> Puissnace 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 "         <div class=\"alert alert-success form-inline\">
         <i class=\"fa fa-charging-station\"></i> <b>Point de charge disponible</b></div>
            ";
        } else {
            // line 28
            echo "             ";
            if ((twig_get_attribute($this->env, $this->source, ($context["connector"] ?? null), "status", [], "any", false, false, false, 28) == "Finishing")) {
                // line 29
                echo "                      <div class=\"alert alert-success form-inline\">
                         <i class=\"fa fa-charging-station\"></i> <b>Charge terminée</b></div>
             ";
            } else {
                // line 32
                echo "             ";
                if ((twig_get_attribute($this->env, $this->source, ($context["connector"] ?? null), "status", [], "any", false, false, false, 32) == "Preparing")) {
                    // line 33
                    echo "             <div class=\"form-inline alert alert-warning\">
                     <i class=\"fas fa-exclamation-triangle\"></i>  <b>Ce point de recharge est actuellement en cours d'utilisation</b></div>
             ";
                } else {
                    // line 36
                    echo "             ";
                    if ((twig_get_attribute($this->env, $this->source, ($context["connector"] ?? null), "status", [], "any", false, false, false, 36) == "Charging")) {
                        // line 37
                        echo "             <div class=\"form-inline alert alert-warning\">
                    <i class=\"fas fa-exclamation-triangle\"></i>  <b>Ce point de recharge est actuellement en cours d'utilisation</b></div>
             ";
                    } else {
                        // line 40
                        echo "             ";
                        if ((twig_get_attribute($this->env, $this->source, ($context["connector"] ?? null), "status", [], "any", false, false, false, 40) == "Unavailable")) {
                            // line 41
                            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 44
                        echo "        ";
                    }
                    // line 45
                    echo "        ";
                }
                // line 46
                echo "        ";
            }
            // line 47
            echo "        ";
        }
        // line 48
        echo "       
    </div>
    <div id=\"borneBottom\">
        ";
        // line 51
        if ((twig_get_attribute($this->env, $this->source, ($context["connector"] ?? null), "status", [], "any", false, false, false, 51) == "Charging")) {
            // line 52
            echo "            ";
            $this->loadTemplate("borne/_borne_charging.html.twig", "borne/_borne_occupe.html.twig", 52)->display($context);
            // line 53
            echo "        ";
        } else {
            // line 54
            echo "            ";
            if ((twig_get_attribute($this->env, $this->source, ($context["connector"] ?? null), "status", [], "any", false, false, false, 54) == "Preparing")) {
                // line 55
                echo "                ";
                $this->loadTemplate("borne/_borne_charging.html.twig", "borne/_borne_occupe.html.twig", 55)->display($context);
                // line 56
                echo "        ";
            } else {
                // line 57
                echo "            ";
                if ((twig_get_attribute($this->env, $this->source, ($context["connector"] ?? null), "status", [], "any", false, false, false, 57) == "Unavailable")) {
                    // line 58
                    echo "                ";
                    $this->loadTemplate("borne/_borne_charging_no.html.twig", "borne/_borne_occupe.html.twig", 58)->display($context);
                    // line 59
                    echo "                ";
                } else {
                    // line 60
                    echo "            ";
                    if ((twig_get_attribute($this->env, $this->source, ($context["connector"] ?? null), "status", [], "any", false, false, false, 60) == "Unavailable")) {
                        // line 61
                        echo "
            ";
                    } else {
                        // line 63
                        echo "            
                ";
                        // line 64
                        $this->loadTemplate("borne/_borne_start.html.twig", "borne/_borne_occupe.html.twig", 64)->display($context);
                        // line 65
                        echo "            ";
                    }
                    // line 66
                    echo "        ";
                }
                // line 67
                echo "        ";
            }
            // line 68
            echo "        ";
        }
        // line 69
        echo "    </div>

</div>
";
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  195 => 69,  192 => 68,  189 => 67,  186 => 66,  183 => 65,  181 => 64,  178 => 63,  174 => 61,  171 => 60,  168 => 59,  165 => 58,  162 => 57,  159 => 56,  156 => 55,  153 => 54,  150 => 53,  147 => 52,  145 => 51,  140 => 48,  137 => 47,  134 => 46,  131 => 45,  128 => 44,  123 => 41,  120 => 40,  115 => 37,  112 => 36,  107 => 33,  104 => 32,  99 => 29,  96 => 28,  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_occupe.html.twig", "C:\\Users\\Administrator\\Desktop\\Qrcode_LODMI\\templates\\borne\\_borne_occupe.html.twig");
    }
}
