<?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/_search_clients_result.html.twig */
class __TwigTemplate_b2629a66fa09b335c7d92c7c0a6be070adbed7cc1214a6185271ca4f38ecd420 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/_search_clients_result.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/_search_clients_result.html.twig"));

        // line 1
        yield "<div class=\"d-flex align-items-center mt-3\">
    <label style=\"width:174px;\" class=\"me-1\">Resultats de la recherche</label>
    <select name=\"";
        // line 3
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["select_name"]) || array_key_exists("select_name", $context) ? $context["select_name"] : (function () { throw new RuntimeError('Variable "select_name" does not exist.', 3, $this->source); })()), "html", null, true);
        yield "\" id=\"";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["select_id"]) || array_key_exists("select_id", $context) ? $context["select_id"] : (function () { throw new RuntimeError('Variable "select_id" does not exist.', 3, $this->source); })()), "html", null, true);
        yield "\" form=\"";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["form_id"]) || array_key_exists("form_id", $context) ? $context["form_id"] : (function () { throw new RuntimeError('Variable "form_id" does not exist.', 3, $this->source); })()), "html", null, true);
        yield "\" style=\"width:auto\" class=\"form-control me-2\"  required>
        ";
        // line 4
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable((isset($context["clients"]) || array_key_exists("clients", $context) ? $context["clients"] : (function () { throw new RuntimeError('Variable "clients" does not exist.', 4, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["client"]) {
            // line 5
            yield "            <option value=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["client"], "id", [], "any", false, false, false, 5), "html", null, true);
            yield "\">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((((((CoreExtension::getAttribute($this->env, $this->source, $context["client"], "getFormattedNumeroClient", [], "any", false, false, false, 5) . " ") . CoreExtension::getAttribute($this->env, $this->source, $context["client"], "prenom", [], "any", false, false, false, 5)) . " ") . CoreExtension::getAttribute($this->env, $this->source, $context["client"], "nom", [], "any", false, false, false, 5)) . " - ") . CoreExtension::getAttribute($this->env, $this->source, $context["client"], "getAdresse", [], "any", false, false, false, 5)), "html", null, true);
            yield "</option>
        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['client'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 7
        yield "    </select>
    ";
        // line 8
        if ((isset($context["clients"]) || array_key_exists("clients", $context) ? $context["clients"] : (function () { throw new RuntimeError('Variable "clients" does not exist.', 8, $this->source); })())) {
            // line 9
            yield "    <a class=\"detail-client btn btn-primary\" style=\"width:100px\"
           data-select-id=\"";
            // line 10
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["select_id"]) || array_key_exists("select_id", $context) ? $context["select_id"] : (function () { throw new RuntimeError('Variable "select_id" does not exist.', 10, $this->source); })()), "html", null, true);
            yield "\"
           data-popup-id=\"popup-detail-client\"
           data-poppup-container=\"body\"
           data-dxpopup=\"\"
           data-content-template-ajax=\"\"
           data-popup-title=\"Infos client\"
           data-popup-width=\"auto\">
        <i class=\"fa fa-info-circle me-2\"></i>Détails
    </a>
    ";
        }
        // line 20
        yield "
</div>";
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        return; yield '';
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  92 => 20,  79 => 10,  76 => 9,  74 => 8,  71 => 7,  60 => 5,  56 => 4,  48 => 3,  44 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<div class=\"d-flex align-items-center mt-3\">
    <label style=\"width:174px;\" class=\"me-1\">Resultats de la recherche</label>
    <select name=\"{{ select_name }}\" id=\"{{ select_id }}\" form=\"{{ form_id }}\" style=\"width:auto\" class=\"form-control me-2\"  required>
        {% for client in clients %}
            <option value=\"{{ client.id }}\">{{ client.getFormattedNumeroClient ~ ' ' ~ client.prenom ~' ' ~ client.nom ~ ' - ' ~ client.getAdresse}}</option>
        {% endfor %}
    </select>
    {% if clients %}
    <a class=\"detail-client btn btn-primary\" style=\"width:100px\"
           data-select-id=\"{{ select_id }}\"
           data-popup-id=\"popup-detail-client\"
           data-poppup-container=\"body\"
           data-dxpopup=\"\"
           data-content-template-ajax=\"\"
           data-popup-title=\"Infos client\"
           data-popup-width=\"auto\">
        <i class=\"fa fa-info-circle me-2\"></i>Détails
    </a>
    {% endif %}

</div>", "clients/_search_clients_result.html.twig", "/builds/dev/refonte_sav/templates/clients/_search_clients_result.html.twig");
    }
}
