var/cache/dev/twig/b1/b18901f8d5553f818aa66a9db4774de2.php line 52
<?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/ficha_oficina.html.twig */class __TwigTemplate_17ff6d3eddce58b2a40c50539741d5f1 extends Template{private $source;private $macros = [];public function __construct(Environment $env){parent::__construct($env);$this->source = $this->getSourceContext();$this->blocks = ['idiomas' => [$this, 'block_idiomas'],'bodyId' => [$this, 'block_bodyId'],'body' => [$this, 'block_body'],'empresas' => [$this, 'block_empresas'],'javascripts_footer' => [$this, 'block_javascripts_footer'],];}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/ficha_oficina.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/ficha_oficina.html.twig"));$this->parent = $this->loadTemplate("base.html.twig", "default/ficha_oficina.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_idiomas($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", "idiomas"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "idiomas"));// line 5echo " ";$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable((isset($context["locales"]) || array_key_exists("locales", $context) ? $context["locales"] : (function () { throw new RuntimeError('Variable "locales" does not exist.', 5, $this->source); })()));foreach ($context['_seq'] as $context["k"] => $context["idioma"]) {// line 6echo " ";if (($context["k"] == twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 6, $this->source); })()), "request", [], "any", false, false, false, 6), "locale", [], "any", false, false, false, 6))) {echo "<option selected value=\"";// line 7echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 7, $this->source); })()), "request", [], "any", false, false, false, 7), "get", [0 => "_route", 1 => "index"], "method", false, false, false, 7), twig_array_merge(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 7, $this->source); })()), "request", [], "any", false, false, false, 7), "get", [0 => "_route_params", 1 => []], "method", false, false, false, 7), ["_locale" => $context["k"]])), "html", null, true);echo "\" title=\"";echo twig_escape_filter($this->env, $context["idioma"], "html", null, true);echo "\">";echo twig_escape_filter($this->env, twig_upper_filter($this->env, $context["k"]), "html", null, true);echo "</option>";} else {// line 9echo " <option value=\"";echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 9, $this->source); })()), "request", [], "any", false, false, false, 9), "get", [0 => "_route", 1 => "index"], "method", false, false, false, 9), twig_array_merge(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 9, $this->source); })()), "request", [], "any", false, false, false, 9), "get", [0 => "_route_params", 1 => []], "method", false, false, false, 9), ["_locale" => $context["k"], "slugP" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 9, $this->source); })()), "provincia", [], "any", false, false, false, 9), "translate", [0 => $context["k"]], "method", false, false, false, 9), "slug", [], "method", false, false, false, 9), "slugL" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 9, $this->source); })()), "localidad", [], "any", false, false, false, 9), "slug", [], "any", false, false, false, 9), "slugO" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 9, $this->source); })()), "translate", [0 => $context["k"]], "method", false, false, false, 9), "slug", [], "method", false, false, false, 9)])), "html", null, true);echo "\" title=\"";echo twig_escape_filter($this->env, $context["idioma"], "html", null, true);echo "\">";echo twig_escape_filter($this->env, twig_upper_filter($this->env, $context["k"]), "html", null, true);echo "</option>";}// line 11echo " ";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['k'], $context['idioma'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 12echo " ";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 14public 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 "ficha-oficina";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 16public 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 17echo "<div id=\"cab-fi-ofi\" class=\"container\"><div id=\"img-ofi\">";// line 23echo " <img src=\"/img/banner_currency_offices.png\"/></div><div id=\"horario\" class=\"row\"><div id=\"franjas\" class=\"col-12 col-md-8\"><div id=\"nomH\"><span>";// line 28echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Horarios"), "html", null, true);echo "</span></div><div id=\"textH\">";// line 31$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 31, $this->source); })()), "franjas", [], "any", false, false, false, 31));foreach ($context['_seq'] as $context["_key"] => $context["franja"]) {// line 32echo " >";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["franja"], "nombre", [], "any", false, false, false, 32), "html", null, true);echo ":";// line 34echo " ";$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["franja"], "franjaHoras", [], "any", false, false, false, 34));foreach ($context['_seq'] as $context["_key"] => $context["horas"]) {// line 35echo " <strong> ";echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["horas"], "horaInicio", [], "any", false, false, false, 35), "H:i"), "html", null, true);echo "a ";// line 36echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["horas"], "horaFin", [], "any", false, false, false, 36), "H:i"), "html", null, true);echo " </strong>";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['horas'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 38echo " <br/>";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['franja'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 40echo " ";$context["hoy"] = twig_date_format_filter($this->env, "now", "Y-m-d");// line 41echo " ";$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 41, $this->source); })()), "dayoffs", [], "any", false, false, false, 41));foreach ($context['_seq'] as $context["_key"] => $context["festivo"]) {// line 42echo " ";$context["fechaFestivo"] = twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["festivo"], "date", [], "any", false, false, false, 42), "Y-m-d");// line 43echo "";// line 44$context["segundosEnUnDia"] = 86400;// line 45echo " ";$context["segundosDeDiferencia"] = (twig_date_format_filter($this->env, (isset($context["fechaFestivo"]) || array_key_exists("fechaFestivo", $context) ? $context["fechaFestivo"] : (function () { throw new RuntimeError('Variable "fechaFestivo" does not exist.', 45, $this->source); })()), "U") - twig_date_format_filter($this->env, (isset($context["hoy"]) || array_key_exists("hoy", $context) ? $context["hoy"] : (function () { throw new RuntimeError('Variable "hoy" does not exist.', 45, $this->source); })()), "U"));// line 46echo " ";$context["diasDeDiferencia"] = ((isset($context["segundosDeDiferencia"]) || array_key_exists("segundosDeDiferencia", $context) ? $context["segundosDeDiferencia"] : (function () { throw new RuntimeError('Variable "segundosDeDiferencia" does not exist.', 46, $this->source); })()) / (isset($context["segundosEnUnDia"]) || array_key_exists("segundosEnUnDia", $context) ? $context["segundosEnUnDia"] : (function () { throw new RuntimeError('Variable "segundosEnUnDia" does not exist.', 46, $this->source); })()));// line 47echo "";// line 48if ((((isset($context["fechaFestivo"]) || array_key_exists("fechaFestivo", $context) ? $context["fechaFestivo"] : (function () { throw new RuntimeError('Variable "fechaFestivo" does not exist.', 48, $this->source); })()) == (isset($context["hoy"]) || array_key_exists("hoy", $context) ? $context["hoy"] : (function () { throw new RuntimeError('Variable "hoy" does not exist.', 48, $this->source); })())) || (((isset($context["diasDeDiferencia"]) || array_key_exists("diasDeDiferencia", $context) ? $context["diasDeDiferencia"] : (function () { throw new RuntimeError('Variable "diasDeDiferencia" does not exist.', 48, $this->source); })()) >= -2) && ((isset($context["diasDeDiferencia"]) || array_key_exists("diasDeDiferencia", $context) ? $context["diasDeDiferencia"] : (function () { throw new RuntimeError('Variable "diasDeDiferencia" does not exist.', 48, $this->source); })()) <= 30)))) {// line 49echo " ";// line 54echo " <div>>Festivo: <strong>";// line 55echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["festivo"], "date", [], "any", false, false, false, 55), "d/m/Y"), "html", null, true);if (twig_test_empty(twig_get_attribute($this->env, $this->source, $context["festivo"], "horarioReducidos", [], "any", false, false, false, 55))) {echo " - ";echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Cerrado"), "html", null, true);echo " ";} else {echo " ";$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["festivo"], "horarioReducidos", [], "any", false, false, false, 55));foreach ($context['_seq'] as $context["_key"] => $context["hor"]) {if ((twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["hor"], "horaInicio", [], "any", false, false, false, 55), "H:i") != "00:00")) {echo " - ";echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["hor"], "horaInicio", [], "any", false, false, false, 55), "H:i"), "html", null, true);echo " a ";echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["hor"], "horaFin", [], "any", false, false, false, 55), "H:i"), "html", null, true);echo " ";} else {echo " - ";echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Cerrado"), "html", null, true);echo " ";}}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['hor'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;}echo "</strong></div>";}// line 58echo " ";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['festivo'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 59echo " </div></div><div id=\"tel\" class=\"col-12 col-md-4\"><span>";// line 63echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 63, $this->source); })()), "telefono", [], "any", false, false, false, 63), "html", null, true);echo "</span></div></div><div id=\"info-ofi\"><div id=\"lin-ofi\" class=\"row\"><div class=\"texto col-12 col-lg-6\"><p id=\"title\">";// line 69echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 69, $this->source); })()), "title", [], "any", false, false, false, 69), "html", null, true);echo "</p>";// line 70echo twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 70, $this->source); })()), "descripcion", [], "any", false, false, false, 70);echo "</div><div class=\"tabla col-12 col-lg-6\"><p class=\"precios\">";// line 73echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Precios"), "html", null, true);echo "</p><div class=\"cont-table\"><table id=\"tabla-cot\"><tr><th>";// line 77echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Divisa"), "html", null, true);echo "</th><th>";// line 78echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Compramos"), "html", null, true);echo "</th><th>";// line 79echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Vendemos"), "html", null, true);echo "</th></tr>";// line 81$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.', 81, $this->source); })()));foreach ($context['_seq'] as $context["_key"] => $context["cotizacion"]) {// line 82echo " <tr data-oficina=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "oficina", [], "any", false, false, false, 82), "html", null, true);echo "\"><td><a class=\"d-none d-sm-block\" href=\"";// line 84echo 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, 84), "slug", [0 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 84, $this->source); })()), "request", [], "any", false, false, false, 84), "locale", [], "any", false, false, false, 84)], "method", false, false, false, 84)]), "html", null, true);echo "\"><span class=\"banderas\">";// line 85if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 85), "imagen", [], "any", false, false, false, 85)) {// line 86echo " ";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, 86), "imagen", [], "any", false, false, false, 86), "flag");echo "";}// line 88echo " </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, 88), "nombre", [], "any", false, false, false, 88), "html", null, true);echo "</a><a class=\"d-block d-sm-none\" href=\"";// line 89echo 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, 89), "slug", [0 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 89, $this->source); })()), "request", [], "any", false, false, false, 89), "locale", [], "any", false, false, false, 89)], "method", false, false, false, 89)]), "html", null, true);echo "\"><span class=\"banderas\">";// line 90if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 90), "imagen", [], "any", false, false, false, 90)) {// line 91echo " ";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, 91), "imagen", [], "any", false, false, false, 91), "flag");echo "";}// line 93echo " </span>";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 93), "html", null, true);echo "</a></td><td>";// line 96if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "oficina", [], "any", false, false, false, 96), "id", [], "any", false, false, false, 96) == 66)) {// line 97echo " -";} elseif (twig_test_empty(twig_get_attribute($this->env, $this->source, // line 98(isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 98, $this->source); })()), "franjas", [], "any", false, false, false, 98))) {// line 99echo " -";} else {// line 101echo " ";echo 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, 101), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 101), "numDecimales", [], "any", false, false, false, 101)), "html", null, true);echo "";}// line 103echo " </td><td>";// line 105if (twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 105, $this->source); })()), "franjas", [], "any", false, false, false, 105))) {// line 106echo " -";} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 107$context["cotizacion"], "oficina", [], "any", false, false, false, 107), "permiteCompra", [], "any", false, false, false, 107) == 1)) {// line 108echo " ";echo 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, 108), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 108), "numDecimales", [], "any", false, false, false, 108)), "html", null, true);echo "";} else {// line 110echo " -";}// line 112echo " </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 115echo " </table></div>";// line 117if (((isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 117, $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, (isset($context["diaMax"]) || array_key_exists("diaMax", $context) ? $context["diaMax"] : (function () { throw new RuntimeError('Variable "diaMax" does not exist.', 117, $this->source); })()), "html", null, true);echo "</p>";}// line 118echo " <div id=\"mas-cot\"><a href=\"/cotizaciones\">";// line 119echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Ver mas cotizaciones >"), "html", null, true);echo "</a></div></div></div></div>";// line 125if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 125, $this->source); })()), "servicios", [], "any", false, false, false, 125)) > 0)) {// line 126echo " <h2>";echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Servicios disponibles en esta oficina de cambio"), "html", null, true);echo "</h2><div id=\"ofi-servicios\" class=\"row\"><ul>";// line 129$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 129, $this->source); })()), "servicios", [], "any", false, false, false, 129));foreach ($context['_seq'] as $context["_key"] => $context["servicio"]) {// line 130echo " <li ><div class=\"card\">";// line 132if (twig_get_attribute($this->env, $this->source, $context["servicio"], "imagenCabecera", [], "any", false, false, false, 132)) {// line 133echo " ";echo $this->env->getRuntime('Sonata\MediaBundle\Twig\MediaRuntime')->thumbnail(twig_get_attribute($this->env, $this->source, $context["servicio"], "imagenCabecera", [], "any", false, false, false, 133), "reference");echo "";} elseif (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 134$context["servicio"], "translate", [0 => "es"], "method", false, false, false, 134), "imagenCabecera", [], "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["servicio"], "translate", [0 => "es"], "method", false, false, false, 135), "imagenCabecera", [], "any", false, false, false, 135), "reference");echo "";}// line 137echo " <div class=\"card-body\"><h5 class=\"card-title\">";// line 138echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["servicio"], "texto", [], "any", false, false, false, 138), "html", null, true);echo "</h5></div></div><li>";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['servicio'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 144echo " <ul></div>";}// line 147echo "<div id=\"text-servicios\">";// line 149echo twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 149, $this->source); })()), "serviciosTexto", [], "any", false, false, false, 149);echo "</div><div id=\"mapa\" class=\"container\"><div id=\"map\"></div><div id=\"texto-mapa\"><p>";// line 158echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 158, $this->source); })()), "direccion", [], "any", false, false, false, 158), "html", null, true);echo "</p><a target=\"_blank\" href=\"https://www.google.com/maps/dir/Current+Location/";// line 159echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 159, $this->source); })()), "latitud", [], "any", false, false, false, 159), "html", null, true);echo ",";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 159, $this->source); })()), "longitud", [], "any", false, false, false, 159), "html", null, true);echo "\">";echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("¿Cómo llegar? >"), "html", null, true);echo "</a></div></div><div id=\"resto\" class=\"container\"><p id=\"ind\">";// line 164echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Indicaciones para llegar:"), "html", null, true);echo "</p>";// line 165echo twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 165, $this->source); })()), "indicaciones", [], "any", false, false, false, 165);echo "</div></div>";// line 169$this->displayBlock('empresas', $context, $blocks);// line 172echo "";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 169public 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 170echo " ";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 177public function block_javascripts_footer($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", "javascripts_footer"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts_footer"));// line 178echo " ";$this->displayParentBlock("javascripts_footer", $context, $blocks);echo "<script>// function initMap() {//// var mapElement = document.getElementById('map');//// if (mapElement) {//// var map = new google.maps.Map(mapElement, {// center: { lat: ";// line 188echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 188, $this->source); })()), "latitud", [], "any", false, false, false, 188), "html", null, true);echo ", lng: ";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 188, $this->source); })()), "longitud", [], "any", false, false, false, 188), "html", null, true);echo " },// zoom: 12// });// }// }</script>";// line 196$this->loadTemplate("includes/mapa_javascript.html.twig", "default/ficha_oficina.html.twig", 196)->display(twig_to_array(["oficinasMapa" => [0 => (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 196, $this->source); })())]]));// line 197echo "";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}public function getTemplateName(){return "default/ficha_oficina.html.twig";}public function isTraitable(){return false;}public function getDebugInfo(){return array ( 598 => 197, 596 => 196, 583 => 188, 569 => 178, 559 => 177, 546 => 170, 536 => 169, 525 => 172, 523 => 169, 516 => 165, 512 => 164, 500 => 159, 496 => 158, 484 => 149, 480 => 147, 475 => 144, 463 => 138, 460 => 137, 454 => 135, 452 => 134, 447 => 133, 445 => 132, 441 => 130, 437 => 129, 430 => 126, 428 => 125, 419 => 119, 416 => 118, 408 => 117, 404 => 115, 396 => 112, 392 => 110, 386 => 108, 384 => 107, 381 => 106, 379 => 105, 375 => 103, 369 => 101, 365 => 99, 363 => 98, 360 => 97, 358 => 96, 351 => 93, 345 => 91, 343 => 90, 339 => 89, 334 => 88, 328 => 86, 326 => 85, 322 => 84, 316 => 82, 312 => 81, 307 => 79, 303 => 78, 299 => 77, 292 => 73, 286 => 70, 282 => 69, 273 => 63, 267 => 59, 261 => 58, 230 => 55, 227 => 54, 225 => 49, 223 => 48, 220 => 47, 217 => 46, 214 => 45, 212 => 44, 209 => 43, 206 => 42, 201 => 41, 198 => 40, 191 => 38, 183 => 36, 178 => 35, 173 => 34, 168 => 32, 164 => 31, 158 => 28, 151 => 23, 146 => 17, 136 => 16, 117 => 14, 107 => 12, 101 => 11, 91 => 9, 82 => 7, 77 => 6, 72 => 5, 62 => 4, 39 => 2,);}public function getSourceContext(){return new Source("{# {% extends 'default/contenido.html.twig' %} #}{% extends 'base.html.twig' %}{% block idiomas %}{% for k,idioma in locales %}{% if k == app.request.locale %}<option selected value=\"{{ path(app.request.get('_route', 'index'), app.request.get('_route_params', [])|merge({_locale: k})) }}\" title=\"{{ idioma }}\">{{ k | upper}}</option>{% else %}<option value=\"{{ path(app.request.get('_route', 'index'), app.request.get('_route_params', [])|merge({_locale: k, slugP: oficina.provincia.translate(k).slug(), slugL: oficina.localidad.slug, slugO: oficina.translate(k).slug() })) }}\" title=\"{{ idioma }}\">{{ k | upper}}</option>{% endif %}{% endfor %}{% endblock %}{% block bodyId %}ficha-oficina{% endblock %}{% block body %}<div id=\"cab-fi-ofi\" class=\"container\"><div id=\"img-ofi\">{#{% if oficina.imagen %}{{ sonata_media(oficina.imagen, 'cabecera') }}{% endif %}#}<img src=\"/img/banner_currency_offices.png\"/></div><div id=\"horario\" class=\"row\"><div id=\"franjas\" class=\"col-12 col-md-8\"><div id=\"nomH\"><span>{{ 'Horarios' | trans}}</span></div><div id=\"textH\">{% for franja in oficina.franjas %}>{{ franja.nombre }}:{# FOR DE LAS HORAS #}{% for horas in franja.franjaHoras %}<strong> {{ horas.horaInicio |date('H:i') }}a {{ horas.horaFin |date('H:i') }} </strong>{% endfor %}<br/>{% endfor %}{% set hoy = \"now\"|date(\"Y-m-d\") %}{% for festivo in oficina.dayoffs %}{% set fechaFestivo = festivo.date|date(\"Y-m-d\") %}{% set segundosEnUnDia = 86400 %}{% set segundosDeDiferencia = fechaFestivo|date(\"U\") - hoy|date(\"U\") %}{% set diasDeDiferencia = segundosDeDiferencia / segundosEnUnDia %}{% if fechaFestivo == hoy or diasDeDiferencia >= -2 and diasDeDiferencia <= 30 %}{#{% for hor in festivo.horarioReducidos %}<div>>Festivo: <strong>{{ festivo.date |date('d/m/Y') }}{% if hor.horaInicio|date('H:i') != '00:00' %} - {{ hor.horaInicio |date('H:i') }} a {{ hor.horaFin |date('H:i') }} {% endif %}</strong></div>{% endfor %}#}<div>>Festivo: <strong>{{ festivo.date |date('d/m/Y') }}{% if festivo.horarioReducidos is empty %} - {{ 'Cerrado' | trans }} {% else %} {% for hor in festivo.horarioReducidos %}{% if hor.horaInicio|date('H:i') != '00:00' %} - {{ hor.horaInicio |date('H:i') }} a {{ hor.horaFin |date('H:i') }} {% else %} - {{ 'Cerrado' | trans }} {% endif %}{% endfor %}{% endif %}</strong></div>{% endif %}{% endfor %}</div></div><div id=\"tel\" class=\"col-12 col-md-4\"><span>{{ oficina.telefono }}</span></div></div><div id=\"info-ofi\"><div id=\"lin-ofi\" class=\"row\"><div class=\"texto col-12 col-lg-6\"><p id=\"title\">{{ oficina.title }}</p>{{ oficina.descripcion|raw }}</div><div class=\"tabla col-12 col-lg-6\"><p class=\"precios\">{{ 'Precios' | trans}}</p><div class=\"cont-table\"><table id=\"tabla-cot\"><tr><th>{{ 'Divisa' | trans}}</th><th>{{ 'Compramos' | trans}}</th><th>{{ 'Vendemos' | trans}}</th></tr>{% for cotizacion in cotizaciones %}<tr data-oficina=\"{{ cotizacion.oficina }}\"><td><a class=\"d-none d-sm-block\" href=\"{{ path('divisas', {'nombre': cotizacion.shortName.slug(app.request.locale)}) }}\"><span class=\"banderas\">{% if cotizacion.shortName.imagen %}{{ sonata_thumbnail(cotizacion.shortName.imagen, 'flag') }}{% endif %}</span>{{ cotizacion.shortName.nombre }}</a><a class=\"d-block d-sm-none\" href=\"{{ path('divisas', {'nombre': cotizacion.shortName.slug(app.request.locale)}) }}\"><span class=\"banderas\">{% if cotizacion.shortName.imagen %}{{ sonata_thumbnail(cotizacion.shortName.imagen, 'flag') }}{% endif %}</span>{{ cotizacion.shortName }}</a></td><td>{% if cotizacion.oficina.id == 66 %}-{% elseif oficina.franjas is empty %}-{% else %}{{ cotizacion.precioCompra|number_format(cotizacion.shortName.numDecimales) }}{% endif %}</td><td>{% if oficina.franjas is empty %}-{% elseif cotizacion.oficina.permiteCompra == 1 %}{{ cotizacion.precioVenta|number_format(cotizacion.shortName.numDecimales) }}{% else %}-{% endif %}</td></tr>{% endfor %}</table></div>{% if oficina != \"\" %}<p class=\"info-select\">{{ 'Precios para' | trans}} {{ diaMax }}</p>{% endif %}<div id=\"mas-cot\"><a href=\"/cotizaciones\">{{ 'Ver mas cotizaciones >' | trans}}</a></div></div></div></div>{% if oficina.servicios | length > 0 %}<h2>{{ 'Servicios disponibles en esta oficina de cambio' | trans }}</h2><div id=\"ofi-servicios\" class=\"row\"><ul>{% for servicio in oficina.servicios %}<li ><div class=\"card\">{% if servicio.imagenCabecera %}{{ sonata_thumbnail(servicio.imagenCabecera, 'reference') }}{% elseif servicio.translate('es').imagenCabecera %}{{ sonata_thumbnail(servicio.translate('es').imagenCabecera, 'reference') }}{% endif %}<div class=\"card-body\"><h5 class=\"card-title\">{{ servicio.texto }}</h5></div></div><li>{% endfor %}<ul></div>{% endif %}<div id=\"text-servicios\">{{ oficina.serviciosTexto|raw }}</div><div id=\"mapa\" class=\"container\"><div id=\"map\"></div><div id=\"texto-mapa\"><p>{{ oficina.direccion }}</p><a target=\"_blank\" href=\"https://www.google.com/maps/dir/Current+Location/{{ oficina.latitud }},{{ oficina.longitud }}\">{{ '¿Cómo llegar? >' | trans}}</a></div></div><div id=\"resto\" class=\"container\"><p id=\"ind\">{{ 'Indicaciones para llegar:' | trans}}</p>{{ oficina.indicaciones|raw }}</div></div>{% block empresas %}{{ render(controller('App\\\\Controller\\\\DefaultController::empresas' )) }}{% endblock %}{# {{ dump(oficinaIdioma) }} #}{% endblock %}{% block javascripts_footer %}{{ parent() }}<script>// function initMap() {//// var mapElement = document.getElementById('map');//// if (mapElement) {//// var map = new google.maps.Map(mapElement, {// center: { lat: {{ oficina.latitud }}, lng: {{ oficina.longitud }} },// zoom: 12// });// }// }</script>{% include \"includes/mapa_javascript.html.twig\" with { oficinasMapa:[oficina] } only %}{% endblock %}", "default/ficha_oficina.html.twig", "/home/alien/www/eurochange/templates/default/ficha_oficina.html.twig");}}