<?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;
/* vendre_entreprise/fragments/fonds_acquereur/derniers_fonds_acquereurs.html.twig */
class __TwigTemplate_1d354ead1f3fbefa4cd1071d344b59d002dc767352708c1eadb81ed34c30d870 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", "vendre_entreprise/fragments/fonds_acquereur/derniers_fonds_acquereurs.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "vendre_entreprise/fragments/fonds_acquereur/derniers_fonds_acquereurs.html.twig"));
// line 1
yield "<div class=\"col-12 mt-5\">
<h5>";
// line 2
yield $this->extensions['App\Twig\TranslationExtension']->translate("derniers fonds acquereurs", (isset($context["lang"]) || array_key_exists("lang", $context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.', 2, $this->source); })()), "", "M", "");
yield "</h5>
<table class=\"table table-sm\">
<tbody>
";
// line 5
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["derniers_investisseurs"]) || array_key_exists("derniers_investisseurs", $context) ? $context["derniers_investisseurs"] : (function () { throw new RuntimeError('Variable "derniers_investisseurs" does not exist.', 5, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["investisseur"]) {
// line 6
yield " ";
$context["lienFondsInvestissement"] = ($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("vendre_entreprise_fonds_details_crypte", ["idFonds" => $this->extensions['App\Twig\DecryptageExtension']->encrypt((CoreExtension::getAttribute($this->env, $this->source, // line 8
$context["investisseur"], "id_gestionnaire_fonds", [], "any", false, false, false, 8) . "")), "codePays" => // line 9
(isset($context["codePays"]) || array_key_exists("codePays", $context) ? $context["codePays"] : (function () { throw new RuntimeError('Variable "codePays" does not exist.', 9, $this->source); })())]) . "?dernieresAnnonces=1");
// line 12
yield "
<tr>
<td>";
// line 14
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\TranslationExtension']->translate("dernière opération", (isset($context["lang"]) || array_key_exists("lang", $context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.', 14, $this->source); })()), "", "M", ""), "html", null, true);
yield " : ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["investisseur"], "date_investissement_formated", [], "any", false, false, false, 14), "html", null, true);
yield "</td>
<td>
";
// line 16
if ((CoreExtension::getAttribute($this->env, $this->source, $context["investisseur"], "cible", [], "any", true, true, false, 16) && CoreExtension::getAttribute($this->env, $this->source, $context["investisseur"], "prefixe_cible", [], "any", true, true, false, 16))) {
// line 17
yield " ";
$context["arrayVarsTrans"] = ["prefixe_localisation" => CoreExtension::getAttribute($this->env, $this->source, $context["investisseur"], "prefixe_localisation", [], "any", false, false, false, 17), "nom_localisation" => CoreExtension::getAttribute($this->env, $this->source, $context["investisseur"], "localisation", [], "any", false, false, false, 17), "prefixe_cible" => CoreExtension::getAttribute($this->env, $this->source, $context["investisseur"], "prefixe_cible", [], "any", false, false, false, 17), "cible" => CoreExtension::getAttribute($this->env, $this->source, $context["investisseur"], "cible", [], "any", false, false, false, 17)];
// line 18
yield " <a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["lienFondsInvestissement"]) || array_key_exists("lienFondsInvestissement", $context) ? $context["lienFondsInvestissement"] : (function () { throw new RuntimeError('Variable "lienFondsInvestissement" does not exist.', 18, $this->source); })()), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\TranslationExtension']->translate("fonds basé %\$prefixe_localisation%\$ %\$nom_localisation%\$ ciblant des sociétés %\$prefixe_cible%\$ %\$cible%\$", (isset($context["lang"]) || array_key_exists("lang", $context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.', 18, $this->source); })()), "", "M", "", (isset($context["arrayVarsTrans"]) || array_key_exists("arrayVarsTrans", $context) ? $context["arrayVarsTrans"] : (function () { throw new RuntimeError('Variable "arrayVarsTrans" does not exist.', 18, $this->source); })())), "html", null, true);
yield "</a>
";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 19
$context["investisseur"], "nb_cible", [], "any", true, true, false, 19) && CoreExtension::getAttribute($this->env, $this->source, $context["investisseur"], "type_cible", [], "any", true, true, false, 19))) {
// line 20
yield " ";
$context["arrayVarsTrans"] = ["prefixe_localisation" => CoreExtension::getAttribute($this->env, $this->source, $context["investisseur"], "prefixe_localisation", [], "any", false, false, false, 20), "nom_localisation" => CoreExtension::getAttribute($this->env, $this->source, $context["investisseur"], "localisation", [], "any", false, false, false, 20), "nb_cible" => CoreExtension::getAttribute($this->env, $this->source, $context["investisseur"], "nb_cible", [], "any", false, false, false, 20), "type_cible" => CoreExtension::getAttribute($this->env, $this->source, $context["investisseur"], "type_cible", [], "any", false, false, false, 20)];
// line 21
yield " <a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["lienFondsInvestissement"]) || array_key_exists("lienFondsInvestissement", $context) ? $context["lienFondsInvestissement"] : (function () { throw new RuntimeError('Variable "lienFondsInvestissement" does not exist.', 21, $this->source); })()), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\TranslationExtension']->translate("fonds basé %\$prefixe_localisation%\$ %\$nom_localisation%\$ ciblant %\$nb_cible%\$ %\$type_cible%\$", (isset($context["lang"]) || array_key_exists("lang", $context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.', 21, $this->source); })()), "", "M", "", (isset($context["arrayVarsTrans"]) || array_key_exists("arrayVarsTrans", $context) ? $context["arrayVarsTrans"] : (function () { throw new RuntimeError('Variable "arrayVarsTrans" does not exist.', 21, $this->source); })())), "html", null, true);
yield "</a>
";
} else {
// line 23
yield " ";
$context["arrayVarsTrans"] = ["prefixe_localisation" => CoreExtension::getAttribute($this->env, $this->source, $context["investisseur"], "prefixe_localisation", [], "any", false, false, false, 23), "nom_localisation" => CoreExtension::getAttribute($this->env, $this->source, $context["investisseur"], "localisation", [], "any", false, false, false, 23)];
// line 24
yield " <a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["lienFondsInvestissement"]) || array_key_exists("lienFondsInvestissement", $context) ? $context["lienFondsInvestissement"] : (function () { throw new RuntimeError('Variable "lienFondsInvestissement" does not exist.', 24, $this->source); })()), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\TranslationExtension']->translate("fonds basé %\$prefixe_localisation%\$ %\$nom_localisation%\$", (isset($context["lang"]) || array_key_exists("lang", $context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.', 24, $this->source); })()), "", "M", "", (isset($context["arrayVarsTrans"]) || array_key_exists("arrayVarsTrans", $context) ? $context["arrayVarsTrans"] : (function () { throw new RuntimeError('Variable "arrayVarsTrans" does not exist.', 24, $this->source); })())), "html", null, true);
yield "</a>
";
}
// line 26
yield " </td>
<td class=\"oneline text-right\">";
// line 27
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["investisseur"], "nb_participation", [], "any", false, false, false, 27), "html", null, true);
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\TranslationExtension']->translate("opérations", (isset($context["lang"]) || array_key_exists("lang", $context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.', 27, $this->source); })()), "", "M", ""), "html", null, true);
yield "</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['investisseur'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 30
yield " </tbody>
</table>
<div class=\"float-right\"><a href=\"";
// line 32
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("vendre_entreprise_resultats_fonds_acquereur", ["codePays" => (isset($context["codePays"]) || array_key_exists("codePays", $context) ? $context["codePays"] : (function () { throw new RuntimeError('Variable "codePays" does not exist.', 32, $this->source); })())]), "html", null, true);
yield "\">";
yield $this->extensions['App\Twig\TranslationExtension']->translate("tous les fonds acquéreurs", (isset($context["lang"]) || array_key_exists("lang", $context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.', 32, $this->source); })()), "", "M", "");
yield "</a></div>
</div>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "vendre_entreprise/fragments/fonds_acquereur/derniers_fonds_acquereurs.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 127 => 32, 123 => 30, 112 => 27, 109 => 26, 101 => 24, 98 => 23, 90 => 21, 87 => 20, 85 => 19, 78 => 18, 75 => 17, 73 => 16, 66 => 14, 62 => 12, 60 => 9, 59 => 8, 57 => 6, 53 => 5, 47 => 2, 44 => 1,);
}
public function getSourceContext()
{
return new Source("<div class=\"col-12 mt-5\">
<h5>{{ translate(\"derniers fonds acquereurs\",lang,\"\",\"M\", \"\") | raw }}</h5>
<table class=\"table table-sm\">
<tbody>
{% for investisseur in derniers_investisseurs %}
{% set lienFondsInvestissement = path('vendre_entreprise_fonds_details_crypte',
{
'idFonds':encrypt(investisseur.id_gestionnaire_fonds ~ ''),
'codePays':codePays
}) ~ '?dernieresAnnonces=1'
%}
<tr>
<td>{{ translate(\"dernière opération\", lang, \"\", \"M\", \"\") }} : {{ investisseur.date_investissement_formated }}</td>
<td>
{% if investisseur.cible is defined and investisseur.prefixe_cible is defined %}
{% set arrayVarsTrans = {\"prefixe_localisation\": investisseur.prefixe_localisation, \"nom_localisation\" : investisseur.localisation, \"prefixe_cible\" : investisseur.prefixe_cible, \"cible\" : investisseur.cible } %}
<a href=\"{{ lienFondsInvestissement }}\">{{ translate(\"fonds basé %\$prefixe_localisation%\$ %\$nom_localisation%\$ ciblant des sociétés %\$prefixe_cible%\$ %\$cible%\$\", lang, \"\", \"M\", \"\", arrayVarsTrans) }}</a>
{% elseif investisseur.nb_cible is defined and investisseur.type_cible is defined %}
{% set arrayVarsTrans = {\"prefixe_localisation\": investisseur.prefixe_localisation, \"nom_localisation\" : investisseur.localisation, \"nb_cible\" : investisseur.nb_cible, \"type_cible\" : investisseur.type_cible } %}
<a href=\"{{ lienFondsInvestissement }}\">{{ translate(\"fonds basé %\$prefixe_localisation%\$ %\$nom_localisation%\$ ciblant %\$nb_cible%\$ %\$type_cible%\$\", lang, \"\", \"M\", \"\", arrayVarsTrans) }}</a>
{% else %}
{% set arrayVarsTrans = {\"prefixe_localisation\": investisseur.prefixe_localisation, \"nom_localisation\" : investisseur.localisation } %}
<a href=\"{{ lienFondsInvestissement }}\">{{ translate(\"fonds basé %\$prefixe_localisation%\$ %\$nom_localisation%\$\", lang, \"\", \"M\", \"\", arrayVarsTrans) }}</a>
{% endif %}
</td>
<td class=\"oneline text-right\">{{ investisseur.nb_participation }} {{ translate(\"opérations\", lang, \"\", \"M\", \"\") }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<div class=\"float-right\"><a href=\"{{ path('vendre_entreprise_resultats_fonds_acquereur', { 'codePays': codePays }) }}\">{{ translate(\"tous les fonds acquéreurs\",lang,\"\",\"M\", \"\") | raw }}</a></div>
</div>", "vendre_entreprise/fragments/fonds_acquereur/derniers_fonds_acquereurs.html.twig", "/home/www/fusacq_symfony_5.4_preprod/templates/vendre_entreprise/fragments/fonds_acquereur/derniers_fonds_acquereurs.html.twig");
}
}