var/cache/dev/twig/20/202422407071f1ba6ef381c37748767c.php line 56
<?phpuse 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;/* default/cotizaciones.html.twig */class __TwigTemplate_5bb55ca326548997c1eb0bd6bcb5ca18 extends Template{private $source;private $macros = [];public function __construct(Environment $env){parent::__construct($env);$this->source = $this->getSourceContext();$this->blocks = ['title' => [$this, 'block_title'],'metadescription' => [$this, 'block_metadescription'],'metakeywords' => [$this, 'block_metakeywords'],'metarobots' => [$this, 'block_metarobots'],'canonical' => [$this, 'block_canonical'],'bodyId' => [$this, 'block_bodyId'],'body' => [$this, 'block_body'],'empresas' => [$this, 'block_empresas'],'funciones_eventos' => [$this, 'block_funciones_eventos'],];}protected function doGetParent(array $context){// line 2return "base.html.twig";}protected function doDisplay(array $context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/cotizaciones.html.twig"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/cotizaciones.html.twig"));$this->parent = $this->loadTemplate("base.html.twig", "default/cotizaciones.html.twig", 2);$this->parent->display($context, array_merge($this->blocks, $blocks));$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);}// line 4public function block_title($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));echo twig_escape_filter($this->env, twig_replace_filter(((twig_get_attribute($this->env, $this->source, ($context["contenido"] ?? null), "metaTitle", [], "any", true, true, false, 4)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["contenido"] ?? null), "metaTitle", [], "any", false, false, false, 4), twig_get_attribute($this->env, $this->source, (isset($context["contenido"]) || array_key_exists("contenido", $context) ? $context["contenido"] : (function () { throw new RuntimeError('Variable "contenido" does not exist.', 4, $this->source); })()), "titulo", [], "any", false, false, false, 4))) : (twig_get_attribute($this->env, $this->source, (isset($context["contenido"]) || array_key_exists("contenido", $context) ? $context["contenido"] : (function () { throw new RuntimeError('Variable "contenido" does not exist.', 4, $this->source); })()), "titulo", [], "any", false, false, false, 4))), ["| Eurochange.es" => ""]), "html", null, true);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 5public function block_metadescription($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metadescription"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metadescription"));echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["contenido"] ?? null), "metaDescription", [], "any", true, true, false, 5)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["contenido"] ?? null), "metaDescription", [], "any", false, false, false, 5), twig_get_attribute($this->env, $this->source, (isset($context["contenido"]) || array_key_exists("contenido", $context) ? $context["contenido"] : (function () { throw new RuntimeError('Variable "contenido" does not exist.', 5, $this->source); })()), "intro", [], "any", false, false, false, 5))) : (twig_get_attribute($this->env, $this->source, (isset($context["contenido"]) || array_key_exists("contenido", $context) ? $context["contenido"] : (function () { throw new RuntimeError('Variable "contenido" does not exist.', 5, $this->source); })()), "intro", [], "any", false, false, false, 5))), "html", null, true);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 6public function block_metakeywords($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metakeywords"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metakeywords"));echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["contenido"]) || array_key_exists("contenido", $context) ? $context["contenido"] : (function () { throw new RuntimeError('Variable "contenido" does not exist.', 6, $this->source); })()), "metaKeywords", [], "any", false, false, false, 6), "html", null, true);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 7public function block_metarobots($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metarobots"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metarobots"));echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["contenido"] ?? null), "metaRobots", [], "any", true, true, false, 7)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["contenido"] ?? null), "metaRobots", [], "any", false, false, false, 7), $this->renderParentBlock("metarobots", $context, $blocks))) : ($this->renderParentBlock("metarobots", $context, $blocks))), "html", null, true);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 8public function block_canonical($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "canonical"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "canonical"));if (twig_get_attribute($this->env, $this->source, (isset($context["contenido"]) || array_key_exists("contenido", $context) ? $context["contenido"] : (function () { throw new RuntimeError('Variable "contenido" does not exist.', 8, $this->source); })()), "canonical", [], "any", false, false, false, 8)) {echo "<link rel=\"canonical\" href=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["contenido"]) || array_key_exists("contenido", $context) ? $context["contenido"] : (function () { throw new RuntimeError('Variable "contenido" does not exist.', 8, $this->source); })()), "canonical", [], "any", false, false, false, 8), "html", null, true);echo "\" />";}$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 10public function block_bodyId($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyId"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyId"));echo "cotizacion";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 12public function block_body($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));// line 13echo " <div class=\"title container\"><h1>";// line 14echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Cotizaciones y tipo de cambio de divisas"), "html", null, true);echo "</h1></div><div id=\"cotizaciones\" class=\"container\"><p id=\"pri\" class=\"d-none d-md-block\">";// line 18echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Si vas a viajar al extranjero, en Eurochange.es podrás cambiar tus Euros a la divisa que necesites. A tu vuelta también podrás cambiar los billetes extranjeros que te sobren a Euros en cualquiera de nuestras oficinas de cambio de divisas."), "html", null, true);echo "</p><p class=\"d-none d-md-block\">";// line 19echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Consulta el tipo de cambio de las principales divisas a continuación. Busca tu oficina de cambio más cercana y comprueba los servicios disponibles, o haz tu reserva online y recóge tu dinero en cualquiera de nuestras casas de cambio, de una manera comoda en cualquier punto de España. ¡Así de sencillo!"), "html", null, true);echo "</p>";// line 27echo "";// line 28echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\DefaultController::oficinaAction", ["select_id" => "select_ofi2"]));echo "";// line 30if (((isset($context["of"]) || array_key_exists("of", $context) ? $context["of"] : (function () { throw new RuntimeError('Variable "of" does not exist.', 30, $this->source); })()) != "")) {echo "<p class=\"info-select\">";echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Precios para"), "html", null, true);echo " ";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["of"]) || array_key_exists("of", $context) ? $context["of"] : (function () { throw new RuntimeError('Variable "of" does not exist.', 30, $this->source); })()), "nombre", [], "any", false, false, false, 30), "html", null, true);echo " ";echo twig_escape_filter($this->env, (isset($context["diaMax"]) || array_key_exists("diaMax", $context) ? $context["diaMax"] : (function () { throw new RuntimeError('Variable "diaMax" does not exist.', 30, $this->source); })()), "html", null, true);echo "</p>";}// line 31echo "";// line 32if (((isset($context["ofi_var"]) || array_key_exists("ofi_var", $context) ? $context["ofi_var"] : (function () { throw new RuntimeError('Variable "ofi_var" does not exist.', 32, $this->source); })()) == 0)) {// line 33echo " <span id=\"no-cot\">";echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Porfavor selecciona una oficina para que le podamos dar las tarifas correctas"), "html", null, true);echo "</span>";}// line 35echo " <table id=\"tabla-cot\"><tr><th>";// line 37echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Divisa"), "html", null, true);echo "</th><th>";// line 38echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Compramos"), "html", null, true);echo "<span class=\"info-valor1\">i<p style=\"display:none;\">";echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Utiliza la flecha para ver el tipo de cambio directo o indirecto."), "html", null, true);echo "</p></span></th><th>";// line 39echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Vendemos"), "html", null, true);echo "<span class=\"info-valor2\">i<p style=\"display:none;\">";echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Utiliza la flecha para ver el tipo de cambio directo o indirecto."), "html", null, true);echo "</p></span></th></tr>";// line 41$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable((isset($context["cotizaciones"]) || array_key_exists("cotizaciones", $context) ? $context["cotizaciones"] : (function () { throw new RuntimeError('Variable "cotizaciones" does not exist.', 41, $this->source); })()));foreach ($context['_seq'] as $context["_key"] => $context["cotizacion"]) {// line 42echo " <tr data-oficina=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "oficina", [], "any", false, false, false, 42), "html", null, true);echo "\"><td><a href=\"";// line 44echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("divisas", ["nombre" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 44), "slug", [], "any", false, false, false, 44)]), "html", null, true);echo "\"><span class=\"banderas\">";// line 45if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 45), "imagen", [], "any", false, false, false, 45)) {// line 46echo " ";echo $this->env->getRuntime('Sonata\MediaBundle\Twig\MediaRuntime')->thumbnail(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 46), "imagen", [], "any", false, false, false, 46), "flag", ["title" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 46), "nombre", [], "any", false, false, false, 46)]);echo "";}// line 48echo " </span>";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 48), "shortName", [], "any", false, false, false, 48), "html", null, true);echo " - ";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 48), "nombre", [], "any", false, false, false, 48), "html", null, true);echo "</a></td><td>";// line 51if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "oficina", [], "any", false, false, false, 51), "id", [], "any", false, false, false, 51) == 66)) {// line 52echo " -";} elseif (twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 53$context["cotizacion"], "oficina", [], "any", false, false, false, 53), "franjas", [], "any", false, false, false, 53))) {// line 54echo " -";} else {// line 56echo " <span class=\"antes\">1</span><label class=\"switch\"><input type=\"checkbox\" class=\"toggleSwitch\" autocomplete=\"off\"><span class=\"slider\"></span><span class=\"label-on\">";// line 60echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 60), "html", null, true);echo "</span><span class=\"label-off\">EUR</span></label><span class=\"despues\">";// line 63echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "precioCompra", [], "any", false, false, false, 63), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 63), "numDecimales", [], "any", false, false, false, 63)), "html", null, true);echo "</span>";}// line 65echo " </td><td>";// line 67if (twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "oficina", [], "any", false, false, false, 67), "franjas", [], "any", false, false, false, 67))) {// line 68echo " -";} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 69$context["cotizacion"], "oficina", [], "any", false, false, false, 69), "permiteCompra", [], "any", false, false, false, 69) == 1)) {// line 70echo " <span class=\"antes\">1</span><label class=\"switch\"><input type=\"checkbox\" class=\"toggleSwitch\" autocomplete=\"off\"><span class=\"slider\"></span><span class=\"label-on\">";// line 74echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 74), "html", null, true);echo "</span><span class=\"label-off\">EUR</span></label><span class=\"despues\">";// line 77echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "precioVenta", [], "any", false, false, false, 77), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 77), "numDecimales", [], "any", false, false, false, 77)), "html", null, true);echo "</span>";} else {// line 79echo " -";}// line 81echo " </td></tr>";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cotizacion'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 84echo " </table><div id=\"tabla-cot-res\"><ul class=\"nav nav-tabs\" id=\"tabla-res\" role=\"tablist\"><span id=\"divRes\">";// line 88echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Divisa"), "html", null, true);echo "</span><span class=\"info-valor1\">i<p style=\"display:none;\">";// line 89echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Utiliza la flecha para ver el tipo de cambio directo o indirecto."), "html", null, true);echo "</p></span><li class=\"nav-item\" role=\"presentation\"><button class=\"nav-link active\" id=\"comp\" data-bs-toggle=\"tab\" data-bs-target=\"#compramos\" type=\"button\" role=\"tab\" aria-controls=\"home\" aria-selected=\"true\">";// line 91echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Compramos"), "html", null, true);echo "</button></li><li class=\"nav-item\" role=\"presentation\"><button class=\"nav-link\" id=\"vend\" data-bs-toggle=\"tab\" data-bs-target=\"#vendemos\" type=\"button\" role=\"tab\" aria-controls=\"profile\" aria-selected=\"false\">";// line 94echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Vendemos"), "html", null, true);echo "</button></li></ul><div class=\"tab-content\" id=\"tabla-res-content\"><div class=\"tab-pane fade show active\" id=\"compramos\" role=\"tabpanel\" aria-labelledby=\"home-tab\">";// line 100$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable((isset($context["cotizaciones"]) || array_key_exists("cotizaciones", $context) ? $context["cotizaciones"] : (function () { throw new RuntimeError('Variable "cotizaciones" does not exist.', 100, $this->source); })()));foreach ($context['_seq'] as $context["_key"] => $context["cotizacion"]) {// line 101echo " <div class=\"row\"><div class=\"col-6 voltN\"><a href=\"";// line 103echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("divisas", ["nombre" => twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 103)]), "html", null, true);echo "\"><span class=\"banderas\">";// line 104if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 104), "imagen", [], "any", false, false, false, 104)) {// line 105echo " ";echo $this->env->getRuntime('Sonata\MediaBundle\Twig\MediaRuntime')->thumbnail(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 105), "imagen", [], "any", false, false, false, 105), "flag", ["title" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 105), "nombre", [], "any", false, false, false, 105)]);echo "";}// line 107echo " </span>";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 107), "html", null, true);echo "</a></div><div class=\"col-6 volt\">";// line 110if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "oficina", [], "any", false, false, false, 110), "id", [], "any", false, false, false, 110) == 66)) {// line 111echo " -";} elseif (twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 112$context["cotizacion"], "oficina", [], "any", false, false, false, 112), "franjas", [], "any", false, false, false, 112))) {// line 113echo " -";} else {// line 115echo " <span class=\"antes\">1</span><label class=\"switch\"><input type=\"checkbox\" class=\"toggleSwitch\" autocomplete=\"off\"><span class=\"slider\"></span><span class=\"label-on\">";// line 119echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 119), "html", null, true);echo "</span><span class=\"label-off\">EUR</span></label><span class=\"despues\">";// line 122echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "precioCompra", [], "any", false, false, false, 122), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 122), "numDecimales", [], "any", false, false, false, 122)), "html", null, true);echo "</span>";}// line 124echo " </div></div>";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cotizacion'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 127echo " </div><div class=\"tab-pane fade\" id=\"vendemos\" role=\"tabpanel\" aria-labelledby=\"profile-tab\">";// line 130$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable((isset($context["cotizaciones"]) || array_key_exists("cotizaciones", $context) ? $context["cotizaciones"] : (function () { throw new RuntimeError('Variable "cotizaciones" does not exist.', 130, $this->source); })()));foreach ($context['_seq'] as $context["_key"] => $context["cotizacion"]) {// line 131echo " <div class=\"row\"><div class=\"col-6 voltN\"><a href=\"";// line 133echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("divisas", ["nombre" => twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 133)]), "html", null, true);echo "\"><span class=\"banderas\">";// line 134if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 134), "imagen", [], "any", false, false, false, 134)) {// line 135echo " ";echo $this->env->getRuntime('Sonata\MediaBundle\Twig\MediaRuntime')->thumbnail(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 135), "imagen", [], "any", false, false, false, 135), "flag", ["title" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 135), "nombre", [], "any", false, false, false, 135)]);echo "";}// line 137echo " </span>";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 137), "html", null, true);echo "</a></div><div class=\"col-6 volt\">";// line 140if (twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "oficina", [], "any", false, false, false, 140), "franjas", [], "any", false, false, false, 140))) {// line 141echo " -";} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 142$context["cotizacion"], "oficina", [], "any", false, false, false, 142), "permiteCompra", [], "any", false, false, false, 142) == 1)) {// line 143echo " <span class=\"antes\">1</span><label class=\"switch\"><input type=\"checkbox\" class=\"toggleSwitch\" autocomplete=\"off\"><span class=\"slider\"></span><span class=\"label-on\">";// line 147echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 147), "html", null, true);echo "</span><span class=\"label-off\">EUR</span></label><span class=\"despues\">";// line 150echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "precioVenta", [], "any", false, false, false, 150), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 150), "numDecimales", [], "any", false, false, false, 150)), "html", null, true);echo "</span>";} else {// line 152echo " -";}// line 154echo " </div></div>";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cotizacion'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 157echo " </div></div></div><button id=\"ver-mas\">";// line 161echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Ver +"), "html", null, true);echo "</button></div>";// line 164$this->displayBlock('empresas', $context, $blocks);// line 167echo "";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 164public function block_empresas($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "empresas"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "empresas"));// line 165echo " ";echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\DefaultController::empresas"));echo "";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 171public function block_funciones_eventos($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "funciones_eventos"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "funciones_eventos"));// line 172echo " ";$this->displayParentBlock("funciones_eventos", $context, $blocks);echo "<script>// Hacer el cambio de Compramos/Vendemosconst toggleSwitches = document.querySelectorAll('.toggleSwitch');const spanAntes = document.querySelectorAll('.antes');const spanDespues = document.querySelectorAll('.despues');toggleSwitches.forEach((toggleSwitch, index) => {toggleSwitch.addEventListener('change', function() {const numero1 = parseFloat(spanAntes[index].innerText);const numero2 = parseFloat(spanDespues[index].innerText);if (toggleSwitch.checked) {spanAntes[index].innerText = (numero1 / numero2).toFixed(3);spanDespues[index].innerText = '1';} else {spanAntes[index].innerText = '1';spanDespues[index].innerText = (numero2 / numero1).toFixed(3);}});});// Funcionalidad del botón \"Ver +\"var tablaCuerpo = document.getElementById('tabla-cot');var verMas = document.getElementById('ver-mas');var filasVisibles = 16;var aumento = 10;function actualizarFilasVisibles() {var filas = tablaCuerpo.getElementsByTagName('tr');var filasOcultas = filas.length - filasVisibles;for (var i = 0; i < filas.length; i++) {if (i < filasVisibles) {filas[i].style.display = 'table-row';} else {filas[i].style.display = 'none';}}if (filasOcultas > 0) {verMas.style.display = 'block';} else {verMas.style.display = 'none';}}actualizarFilasVisibles();verMas.addEventListener('click', function() {filasVisibles += aumento;actualizarFilasVisibles();});</script>";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}public function getTemplateName(){return "default/cotizaciones.html.twig";}public function isTraitable(){return false;}public function getDebugInfo(){return array ( 581 => 172, 571 => 171, 558 => 165, 548 => 164, 537 => 167, 535 => 164, 529 => 161, 523 => 157, 515 => 154, 511 => 152, 506 => 150, 500 => 147, 494 => 143, 492 => 142, 489 => 141, 487 => 140, 480 => 137, 474 => 135, 472 => 134, 468 => 133, 464 => 131, 460 => 130, 455 => 127, 447 => 124, 442 => 122, 436 => 119, 430 => 115, 426 => 113, 424 => 112, 421 => 111, 419 => 110, 412 => 107, 406 => 105, 404 => 104, 400 => 103, 396 => 101, 392 => 100, 383 => 94, 377 => 91, 372 => 89, 368 => 88, 362 => 84, 354 => 81, 350 => 79, 345 => 77, 339 => 74, 333 => 70, 331 => 69, 328 => 68, 326 => 67, 322 => 65, 317 => 63, 311 => 60, 305 => 56, 301 => 54, 299 => 53, 296 => 52, 294 => 51, 285 => 48, 279 => 46, 277 => 45, 273 => 44, 267 => 42, 263 => 41, 256 => 39, 250 => 38, 246 => 37, 242 => 35, 236 => 33, 234 => 32, 231 => 31, 221 => 30, 216 => 28, 213 => 27, 208 => 19, 204 => 18, 197 => 14, 194 => 13, 184 => 12, 165 => 10, 142 => 8, 123 => 7, 104 => 6, 85 => 5, 66 => 4, 43 => 2,);}public function getSourceContext(){return new Source("{# {% extends 'default/contenido.html.twig' %} #}{% extends 'base.html.twig' %}{% block title %}{{ contenido.metaTitle|default(contenido.titulo)| replace({'| Eurochange.es':''}) }}{% endblock %}{% block metadescription %}{{ contenido.metaDescription|default(contenido.intro) }}{% endblock %}{% block metakeywords %}{{ contenido.metaKeywords }}{% endblock %}{% block metarobots %}{{ contenido.metaRobots|default(parent()) }}{% endblock %}{% block canonical %}{% if contenido.canonical %}<link rel=\"canonical\" href=\"{{contenido.canonical}}\" />{% endif %}{% endblock %}{% block bodyId %}cotizacion{% endblock %}{% block body %}<div class=\"title container\"><h1>{{ 'Cotizaciones y tipo de cambio de divisas' | trans}}</h1></div><div id=\"cotizaciones\" class=\"container\"><p id=\"pri\" class=\"d-none d-md-block\">{{ 'Si vas a viajar al extranjero, en Eurochange.es podrás cambiar tus Euros a la divisa que necesites. A tu vuelta también podrás cambiar los billetes extranjeros que te sobren a Euros en cualquiera de nuestras oficinas de cambio de divisas.' | trans}}</p><p class=\"d-none d-md-block\">{{ 'Consulta el tipo de cambio de las principales divisas a continuación. Busca tu oficina de cambio más cercana y comprueba los servicios disponibles, o haz tu reserva online y recóge tu dinero en cualquiera de nuestras casas de cambio, de una manera comoda en cualquier punto de España. ¡Así de sencillo!' | trans}}</p>{#<select id=\"select-ofi\" class=\"form-select\" aria-label=\"Default select example\"><option value=\"todos\" selected>Para comenzar, selecciona tu oficina más cercana</option>{% for oficina in oficinas %}<option value=\"{{ oficina.nombre }}\">{{ oficina.nombre }}</option>{% endfor %}</select>#}{{ render(controller('App\\\\Controller\\\\DefaultController::oficinaAction', { select_id: 'select_ofi2' } )) }}{% if of != \"\" %}<p class=\"info-select\">{{ 'Precios para' | trans}} {{ of.nombre }} {{ diaMax }}</p>{% endif %}{% if ofi_var == 0 %}<span id=\"no-cot\">{{ 'Porfavor selecciona una oficina para que le podamos dar las tarifas correctas' | trans}}</span>{% endif %}<table id=\"tabla-cot\"><tr><th>{{ 'Divisa' | trans}}</th><th>{{ 'Compramos' | trans}}<span class=\"info-valor1\">i<p style=\"display:none;\">{{ 'Utiliza la flecha para ver el tipo de cambio directo o indirecto.' | trans}}</p></span></th><th>{{ 'Vendemos' | trans}}<span class=\"info-valor2\">i<p style=\"display:none;\">{{ 'Utiliza la flecha para ver el tipo de cambio directo o indirecto.' | trans}}</p></span></th></tr>{% for cotizacion in cotizaciones %}<tr data-oficina=\"{{ cotizacion.oficina }}\"><td><a href=\"{{ path('divisas', {'nombre': cotizacion.shortName.slug}) }}\"><span class=\"banderas\">{% if cotizacion.shortName.imagen %}{{ sonata_thumbnail(cotizacion.shortName.imagen, 'flag', {'title': cotizacion.shortName.nombre}) }}{% endif %}</span>{{ cotizacion.shortName.shortName }} - {{ cotizacion.shortName.nombre }}</a></td><td>{% if cotizacion.oficina.id == 66 %}-{% elseif cotizacion.oficina.franjas is empty %}-{% else %}<span class=\"antes\">1</span><label class=\"switch\"><input type=\"checkbox\" class=\"toggleSwitch\" autocomplete=\"off\"><span class=\"slider\"></span><span class=\"label-on\">{{ cotizacion.shortName }}</span><span class=\"label-off\">EUR</span></label><span class=\"despues\">{{ cotizacion.precioCompra|number_format(cotizacion.shortName.numDecimales) }}</span>{% endif %}</td><td>{% if cotizacion.oficina.franjas is empty %}-{% elseif cotizacion.oficina.permiteCompra == 1 %}<span class=\"antes\">1</span><label class=\"switch\"><input type=\"checkbox\" class=\"toggleSwitch\" autocomplete=\"off\"><span class=\"slider\"></span><span class=\"label-on\">{{ cotizacion.shortName }}</span><span class=\"label-off\">EUR</span></label><span class=\"despues\">{{ cotizacion.precioVenta|number_format(cotizacion.shortName.numDecimales) }}</span>{% else %}-{% endif %}</td></tr>{% endfor %}</table><div id=\"tabla-cot-res\"><ul class=\"nav nav-tabs\" id=\"tabla-res\" role=\"tablist\"><span id=\"divRes\">{{ 'Divisa' | trans}}</span><span class=\"info-valor1\">i<p style=\"display:none;\">{{ 'Utiliza la flecha para ver el tipo de cambio directo o indirecto.' | trans}}</p></span><li class=\"nav-item\" role=\"presentation\"><button class=\"nav-link active\" id=\"comp\" data-bs-toggle=\"tab\" data-bs-target=\"#compramos\" type=\"button\" role=\"tab\" aria-controls=\"home\" aria-selected=\"true\">{{ 'Compramos' | trans}}</button></li><li class=\"nav-item\" role=\"presentation\"><button class=\"nav-link\" id=\"vend\" data-bs-toggle=\"tab\" data-bs-target=\"#vendemos\" type=\"button\" role=\"tab\" aria-controls=\"profile\" aria-selected=\"false\">{{ 'Vendemos' | trans}}</button></li></ul><div class=\"tab-content\" id=\"tabla-res-content\"><div class=\"tab-pane fade show active\" id=\"compramos\" role=\"tabpanel\" aria-labelledby=\"home-tab\">{% for cotizacion in cotizaciones %}<div class=\"row\"><div class=\"col-6 voltN\"><a href=\"{{ path('divisas', {'nombre': cotizacion.shortName}) }}\"><span class=\"banderas\">{% if cotizacion.shortName.imagen %}{{ sonata_thumbnail(cotizacion.shortName.imagen, 'flag', {'title': cotizacion.shortName.nombre}) }}{% endif %}</span>{{ cotizacion.shortName }}</a></div><div class=\"col-6 volt\">{% if cotizacion.oficina.id == 66 %}-{% elseif cotizacion.oficina.franjas is empty %}-{% else %}<span class=\"antes\">1</span><label class=\"switch\"><input type=\"checkbox\" class=\"toggleSwitch\" autocomplete=\"off\"><span class=\"slider\"></span><span class=\"label-on\">{{ cotizacion.shortName }}</span><span class=\"label-off\">EUR</span></label><span class=\"despues\">{{ cotizacion.precioCompra|number_format(cotizacion.shortName.numDecimales) }}</span>{% endif %}</div></div>{% endfor %}</div><div class=\"tab-pane fade\" id=\"vendemos\" role=\"tabpanel\" aria-labelledby=\"profile-tab\">{% for cotizacion in cotizaciones %}<div class=\"row\"><div class=\"col-6 voltN\"><a href=\"{{ path('divisas', {'nombre': cotizacion.shortName}) }}\"><span class=\"banderas\">{% if cotizacion.shortName.imagen %}{{ sonata_thumbnail(cotizacion.shortName.imagen, 'flag', {'title': cotizacion.shortName.nombre}) }}{% endif %}</span>{{ cotizacion.shortName }}</a></div><div class=\"col-6 volt\">{% if cotizacion.oficina.franjas is empty %}-{% elseif cotizacion.oficina.permiteCompra == 1 %}<span class=\"antes\">1</span><label class=\"switch\"><input type=\"checkbox\" class=\"toggleSwitch\" autocomplete=\"off\"><span class=\"slider\"></span><span class=\"label-on\">{{ cotizacion.shortName }}</span><span class=\"label-off\">EUR</span></label><span class=\"despues\">{{ cotizacion.precioVenta|number_format(cotizacion.shortName.numDecimales) }}</span>{% else %}-{% endif %}</div></div>{% endfor %}</div></div></div><button id=\"ver-mas\">{{ 'Ver +' | trans}}</button></div>{% block empresas %}{{ render(controller('App\\\\Controller\\\\DefaultController::empresas' )) }}{% endblock %}{% endblock %}{% block funciones_eventos %}{{ parent() }}<script>// Hacer el cambio de Compramos/Vendemosconst toggleSwitches = document.querySelectorAll('.toggleSwitch');const spanAntes = document.querySelectorAll('.antes');const spanDespues = document.querySelectorAll('.despues');toggleSwitches.forEach((toggleSwitch, index) => {toggleSwitch.addEventListener('change', function() {const numero1 = parseFloat(spanAntes[index].innerText);const numero2 = parseFloat(spanDespues[index].innerText);if (toggleSwitch.checked) {spanAntes[index].innerText = (numero1 / numero2).toFixed(3);spanDespues[index].innerText = '1';} else {spanAntes[index].innerText = '1';spanDespues[index].innerText = (numero2 / numero1).toFixed(3);}});});// Funcionalidad del botón \"Ver +\"var tablaCuerpo = document.getElementById('tabla-cot');var verMas = document.getElementById('ver-mas');var filasVisibles = 16;var aumento = 10;function actualizarFilasVisibles() {var filas = tablaCuerpo.getElementsByTagName('tr');var filasOcultas = filas.length - filasVisibles;for (var i = 0; i < filas.length; i++) {if (i < filasVisibles) {filas[i].style.display = 'table-row';} else {filas[i].style.display = 'none';}}if (filasOcultas > 0) {verMas.style.display = 'block';} else {verMas.style.display = 'none';}}actualizarFilasVisibles();verMas.addEventListener('click', function() {filasVisibles += aumento;actualizarFilasVisibles();});</script>{% endblock %}", "default/cotizaciones.html.twig", "/home/alien/www/eurochange/templates/default/cotizaciones.html.twig");}}