<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;

/* clients/_detail_client.html.twig */
class __TwigTemplate_3407999b5baa97368fc1a347a47a1c21efeef0b64819d4fc2ebe84c9b6ec2c50 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "clients/_detail_client.html.twig"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "clients/_detail_client.html.twig"));

        // line 1
        yield "<div class=\" me-5 \">
    <div class=\"d-flex\">
        <div class=\"d-flex flex-column me-4\">
            <div><label  class=\"color-primary my-1\"><b>N°Client :  </b></label> ";
        // line 4
        ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 4, $this->source); })()), "getFormattedNumeroClient", [], "any", false, false, false, 4)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 4, $this->source); })()), "getFormattedNumeroClient", [], "any", false, false, false, 4), "html", null, true)) : (yield ""));
        yield "</div>
            <div><label class=\"color-primary my-1\"><b>Nom : </b></label> ";
        // line 5
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 5, $this->source); })()), "getNom", [], "method", false, false, false, 5)) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 5, $this->source); })()), "getNom", [], "method", false, false, false, 5)) : (CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 5, $this->source); })()), "getNomEntreprise", [], "method", false, false, false, 5))), "html", null, true);
        yield "&nbsp;&nbsp;</div>
            <div><label class=\"color-primary my-1\"><b>Adresse : </b></label> ";
        // line 6
        ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 6, $this->source); })()), "getAdresse", [], "any", false, false, false, 6)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 6, $this->source); })()), "getAdresse", [], "any", false, false, false, 6), "html", null, true)) : (yield ""));
        yield "</div>
            <div><label class=\"color-primary my-1\"><b>Téléphone(s) : </b></label>
                ";
        // line 8
        if ((1 === CoreExtension::compare(Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 8, $this->source); })()), "clientTels", [], "any", false, false, false, 8)), 0))) {
            // line 9
            yield "                    ";
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 9, $this->source); })()), "clientTels", [], "any", false, false, false, 9));
            $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["telephone"]) {
                // line 10
                yield "                        ";
                if (CoreExtension::getAttribute($this->env, $this->source, $context["telephone"], "getNumTel", [], "method", false, false, false, 10)) {
                    // line 11
                    yield "                            ";
                    if ((0 !== CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 11), 1))) {
                        // line 12
                        yield "                                -
                            ";
                    }
                    // line 14
                    yield "                            ";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["telephone"], "getNumTel", [], "method", false, false, false, 14), "html", null, true);
                    yield "
                        ";
                }
                // line 16
                yield "                    ";
                ++$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['telephone'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 17
            yield "                ";
        }
        // line 18
        yield "            </div>
        </div>
        <div class=\"d-flex flex-column\">
            <div><label class=\"color-primary  my-1\"><b>Ancien numéro client : </b> </label> ";
        // line 21
        ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 21, $this->source); })()), "getEquipementPrincipal", [], "any", false, false, false, 21)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 21, $this->source); })()), "getEquipementPrincipal", [], "any", false, false, false, 21), "getNumeroClientOracle", [], "any", false, false, false, 21), "html", null, true)) : (yield ""));
        yield "</div>
            <div><label class=\"color-primary  my-1\"><b>Prénom : </b></label> ";
        // line 22
        ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 22, $this->source); })()), "getPrenom", [], "any", false, false, false, 22)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 22, $this->source); })()), "getPrenom", [], "any", false, false, false, 22), "html", null, true)) : (yield ""));
        yield "</div>
            <div class=\" my-1\">&nbsp;</div>
            <div class=\"color-primary  my-1\"><label><b>Email : </b></label>  ";
        // line 24
        ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 24, $this->source); })()), "clientEmails", [], "any", false, false, false, 24), "get", [0], "method", false, false, false, 24)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 24, $this->source); })()), "ClientEmails", [], "any", false, false, false, 24), "get", [0], "method", false, false, false, 24), "email", [], "any", false, false, false, 24), "html", null, true)) : (yield ""));
        yield "</div>
        </div>
    </div>
</div>";
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        return; yield '';
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  129 => 24,  124 => 22,  120 => 21,  115 => 18,  112 => 17,  98 => 16,  92 => 14,  88 => 12,  85 => 11,  82 => 10,  64 => 9,  62 => 8,  57 => 6,  53 => 5,  49 => 4,  44 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<div class=\" me-5 \">
    <div class=\"d-flex\">
        <div class=\"d-flex flex-column me-4\">
            <div><label  class=\"color-primary my-1\"><b>N°Client :  </b></label> {{ client.getFormattedNumeroClient ? client.getFormattedNumeroClient : '' }}</div>
            <div><label class=\"color-primary my-1\"><b>Nom : </b></label> {{ client.getNom() ? client.getNom() : client.getNomEntreprise() }}&nbsp;&nbsp;</div>
            <div><label class=\"color-primary my-1\"><b>Adresse : </b></label> {{ client.getAdresse ? client.getAdresse : '' }}</div>
            <div><label class=\"color-primary my-1\"><b>Téléphone(s) : </b></label>
                {% if client.clientTels|length > 0 %}
                    {%  for telephone in client.clientTels  %}
                        {%  if telephone.getNumTel() %}
                            {% if loop.index != 1 %}
                                -
                            {% endif %}
                            {{ telephone.getNumTel() }}
                        {% endif %}
                    {% endfor %}
                {% endif %}
            </div>
        </div>
        <div class=\"d-flex flex-column\">
            <div><label class=\"color-primary  my-1\"><b>Ancien numéro client : </b> </label> {{ client.getEquipementPrincipal ? client.getEquipementPrincipal.getNumeroClientOracle : '' }}</div>
            <div><label class=\"color-primary  my-1\"><b>Prénom : </b></label> {{ client.getPrenom ? client.getPrenom : '' }}</div>
            <div class=\" my-1\">&nbsp;</div>
            <div class=\"color-primary  my-1\"><label><b>Email : </b></label>  {{ client.clientEmails.get(0) ? client.ClientEmails.get(0).email : '' }}</div>
        </div>
    </div>
</div>", "clients/_detail_client.html.twig", "/builds/dev/refonte_sav/templates/clients/_detail_client.html.twig");
    }
}
