var/cache/dev/twig/b1/b18901f8d5553f818aa66a9db4774de2.php line 42

  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* default/ficha_oficina.html.twig */
  14. class __TwigTemplate_17ff6d3eddce58b2a40c50539741d5f1 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'idiomas' => [$this'block_idiomas'],
  24.             'bodyId' => [$this'block_bodyId'],
  25.             'body' => [$this'block_body'],
  26.             'empresas' => [$this'block_empresas'],
  27.             'javascripts_footer' => [$this'block_javascripts_footer'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 2
  33.         return "base.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/ficha_oficina.html.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/ficha_oficina.html.twig"));
  42.         $this->parent $this->loadTemplate("base.html.twig""default/ficha_oficina.html.twig"2);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46.         
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  48.     }
  49.     // line 4
  50.     public function block_idiomas($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""idiomas"));
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""idiomas"));
  57.         // line 5
  58.         echo " ";
  59.         $context['_parent'] = $context;
  60.         $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); })()));
  61.         foreach ($context['_seq'] as $context["k"] => $context["idioma"]) {
  62.             // line 6
  63.             echo "     ";
  64.             if (($context["k"] == twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse6), "locale", [], "any"falsefalsefalse6))) {
  65.                 echo "    
  66.      <option selected value=\"";
  67.                 // line 7
  68.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse7), "get", [=> "_route"=> "index"], "method"falsefalsefalse7), twig_array_merge(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse7), "get", [=> "_route_params"=> []], "method"falsefalsefalse7), ["_locale" => $context["k"]])), "html"nulltrue);
  69.                 echo "\" title=\"";
  70.                 echo twig_escape_filter($this->env$context["idioma"], "html"nulltrue);
  71.                 echo "\">";
  72.                 echo twig_escape_filter($this->envtwig_upper_filter($this->env$context["k"]), "html"nulltrue);
  73.                 echo "</option>
  74.      ";
  75.             } else {
  76.                 // line 9
  77.                 echo "     <option value=\"";
  78.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse9), "get", [=> "_route"=> "index"], "method"falsefalsefalse9), twig_array_merge(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse9), "get", [=> "_route_params"=> []], "method"falsefalsefalse9), ["_locale" => $context["k"], "slugP" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse9), "translate", [=> $context["k"]], "method"falsefalsefalse9), "slug", [], "method"falsefalsefalse9), "slugL" => twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse9), "slug", [], "any"falsefalsefalse9), "slugO" => twig_get_attribute($this->env$this->sourcetwig_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", [=> $context["k"]], "method"falsefalsefalse9), "slug", [], "method"falsefalsefalse9)])), "html"nulltrue);
  79.                 echo "\" title=\"";
  80.                 echo twig_escape_filter($this->env$context["idioma"], "html"nulltrue);
  81.                 echo "\">";
  82.                 echo twig_escape_filter($this->envtwig_upper_filter($this->env$context["k"]), "html"nulltrue);
  83.                 echo "</option>
  84.      ";
  85.             }
  86.             // line 11
  87.             echo " ";
  88.         }
  89.         $_parent $context['_parent'];
  90.         unset($context['_seq'], $context['_iterated'], $context['k'], $context['idioma'], $context['_parent'], $context['loop']);
  91.         $context array_intersect_key($context$_parent) + $_parent;
  92.         // line 12
  93.         echo " ";
  94.         
  95.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  96.         
  97.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  98.     }
  99.     // line 14
  100.     public function block_bodyId($context, array $blocks = [])
  101.     {
  102.         $macros $this->macros;
  103.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  104.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyId"));
  105.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  106.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyId"));
  107.         echo "ficha-oficina";
  108.         
  109.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  110.         
  111.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  112.     }
  113.     // line 16
  114.     public function block_body($context, array $blocks = [])
  115.     {
  116.         $macros $this->macros;
  117.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  118.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  119.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  120.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  121.         // line 17
  122.         echo "    
  123.     <div id=\"cab-fi-ofi\" class=\"container\">
  124.         <div id=\"img-ofi\">
  125.             ";
  126.         // line 23
  127.         echo "            <img src=\"/img/banner_currency_offices.png\"/>
  128.         </div>
  129.         <div id=\"horario\" class=\"row\">
  130.             <div id=\"franjas\" class=\"col-12 col-md-8\">
  131.                 <div id=\"nomH\">
  132.                     <span>";
  133.         // line 28
  134.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Horarios"), "html"nulltrue);
  135.         echo "</span>
  136.                 </div>
  137.                 <div id=\"textH\">
  138.                     ";
  139.         // line 31
  140.         $context['_parent'] = $context;
  141.         $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"falsefalsefalse31));
  142.         foreach ($context['_seq'] as $context["_key"] => $context["franja"]) {
  143.             // line 32
  144.             echo "                        &gt;";
  145.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["franja"], "nombre", [], "any"falsefalsefalse32), "html"nulltrue);
  146.             echo ":
  147.                         ";
  148.             // line 34
  149.             echo "                        ";
  150.             $context['_parent'] = $context;
  151.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["franja"], "franjaHoras", [], "any"falsefalsefalse34));
  152.             foreach ($context['_seq'] as $context["_key"] => $context["horas"]) {
  153.                 // line 35
  154.                 echo "                            <strong> ";
  155.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["horas"], "horaInicio", [], "any"falsefalsefalse35), "H:i"), "html"nulltrue);
  156.                 echo "
  157.                                 a ";
  158.                 // line 36
  159.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["horas"], "horaFin", [], "any"falsefalsefalse36), "H:i"), "html"nulltrue);
  160.                 echo " </strong>
  161.                         ";
  162.             }
  163.             $_parent $context['_parent'];
  164.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['horas'], $context['_parent'], $context['loop']);
  165.             $context array_intersect_key($context$_parent) + $_parent;
  166.             // line 38
  167.             echo "                        <br/>
  168.                     ";
  169.         }
  170.         $_parent $context['_parent'];
  171.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['franja'], $context['_parent'], $context['loop']);
  172.         $context array_intersect_key($context$_parent) + $_parent;
  173.         // line 40
  174.         echo "                    ";
  175.         $context["hoy"] = twig_date_format_filter($this->env"now""Y-m-d");
  176.         // line 41
  177.         echo "                    ";
  178.         $context['_parent'] = $context;
  179.         $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"falsefalsefalse41));
  180.         foreach ($context['_seq'] as $context["_key"] => $context["festivo"]) {
  181.             // line 42
  182.             echo "                        ";
  183.             $context["fechaFestivo"] = twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["festivo"], "date", [], "any"falsefalsefalse42), "Y-m-d");
  184.             // line 43
  185.             echo "                        
  186.                         ";
  187.             // line 44
  188.             $context["segundosEnUnDia"] = 86400;
  189.             // line 45
  190.             echo "                        ";
  191.             $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"));
  192.             // line 46
  193.             echo "                        ";
  194.             $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); })()));
  195.             // line 47
  196.             echo "                        
  197.                         ";
  198.             // line 48
  199.             if ((((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)))) {
  200.                 // line 49
  201.                 echo "                            ";
  202.                 $context['_parent'] = $context;
  203.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["festivo"], "horarioReducidos", [], "any"falsefalsefalse49));
  204.                 foreach ($context['_seq'] as $context["_key"] => $context["hor"]) {
  205.                     // line 50
  206.                     echo "                                <div>
  207.                                     &gt;Festivo: <strong>";
  208.                     // line 51
  209.                     echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["festivo"], "date", [], "any"falsefalsefalse51), "d/m/Y"), "html"nulltrue);
  210.                     if ((twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["hor"], "horaInicio", [], "any"falsefalsefalse51), "H:i") != "00:00")) {
  211.                         echo " - ";
  212.                         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["hor"], "horaInicio", [], "any"falsefalsefalse51), "H:i"), "html"nulltrue);
  213.                         echo " a ";
  214.                         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["hor"], "horaFin", [], "any"falsefalsefalse51), "H:i"), "html"nulltrue);
  215.                         echo " ";
  216.                     }
  217.                     echo "</strong>
  218.                                 </div>
  219.                             ";
  220.                 }
  221.                 $_parent $context['_parent'];
  222.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['hor'], $context['_parent'], $context['loop']);
  223.                 $context array_intersect_key($context$_parent) + $_parent;
  224.                 // line 54
  225.                 echo "                        ";
  226.             }
  227.             // line 55
  228.             echo "                    ";
  229.         }
  230.         $_parent $context['_parent'];
  231.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['festivo'], $context['_parent'], $context['loop']);
  232.         $context array_intersect_key($context$_parent) + $_parent;
  233.         // line 56
  234.         echo "                </div>
  235.                 
  236.             </div>
  237.             <div id=\"tel\" class=\"col-12 col-md-4\">
  238.                 <span>";
  239.         // line 60
  240.         echo twig_escape_filter($this->envtwig_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.'60$this->source); })()), "telefono", [], "any"falsefalsefalse60), "html"nulltrue);
  241.         echo "</span>
  242.             </div>
  243.         </div>
  244.         <div id=\"info-ofi\">
  245.             <div id=\"lin-ofi\" class=\"row\">
  246.                 <div class=\"texto col-12 col-lg-6\">
  247.                     <p id=\"title\">";
  248.         // line 66
  249.         echo twig_escape_filter($this->envtwig_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.'66$this->source); })()), "title", [], "any"falsefalsefalse66), "html"nulltrue);
  250.         echo "</p>
  251.                     ";
  252.         // line 67
  253.         echo 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.'67$this->source); })()), "descripcion", [], "any"falsefalsefalse67);
  254.         echo "
  255.                 </div>
  256.                 <div class=\"tabla col-12 col-lg-6\">
  257.                         <p class=\"precios\">";
  258.         // line 70
  259.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Precios"), "html"nulltrue);
  260.         echo "</p>
  261.                         <div class=\"cont-table\">
  262.                             <table id=\"tabla-cot\">
  263.                                 <tr>
  264.                                     <th>";
  265.         // line 74
  266.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Divisa"), "html"nulltrue);
  267.         echo "</th>
  268.                                     <th>";
  269.         // line 75
  270.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Compramos"), "html"nulltrue);
  271.         echo "</th>
  272.                                     <th>";
  273.         // line 76
  274.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Vendemos"), "html"nulltrue);
  275.         echo "</th>
  276.                                 </tr>
  277.                                 ";
  278.         // line 78
  279.         $context['_parent'] = $context;
  280.         $context['_seq'] = twig_ensure_traversable((isset($context["cotizaciones"]) || array_key_exists("cotizaciones"$context) ? $context["cotizaciones"] : (function () { throw new RuntimeError('Variable "cotizaciones" does not exist.'78$this->source); })()));
  281.         foreach ($context['_seq'] as $context["_key"] => $context["cotizacion"]) {
  282.             // line 79
  283.             echo "                                    <tr data-oficina=\"";
  284.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cotizacion"], "oficina", [], "any"falsefalsefalse79), "html"nulltrue);
  285.             echo "\">
  286.                                         <td>
  287.                                             <a class=\"d-none d-sm-block\" href=\"";
  288.             // line 81
  289.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("divisas", ["nombre" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["cotizacion"], "shortName", [], "any"falsefalsefalse81), "slug", [=> twig_get_attribute($this->env$this->sourcetwig_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.'81$this->source); })()), "request", [], "any"falsefalsefalse81), "locale", [], "any"falsefalsefalse81)], "method"falsefalsefalse81)]), "html"nulltrue);
  290.             echo "\"><span class=\"banderas\">
  291.                                                 ";
  292.             // line 82
  293.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["cotizacion"], "shortName", [], "any"falsefalsefalse82), "imagen", [], "any"falsefalsefalse82)) {
  294.                 // line 83
  295.                 echo "                                                    ";
  296.                 echo $this->env->getRuntime('Sonata\MediaBundle\Twig\MediaRuntime')->thumbnail(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["cotizacion"], "shortName", [], "any"falsefalsefalse83), "imagen", [], "any"falsefalsefalse83), "flag");
  297.                 echo "
  298.                                                 ";
  299.             }
  300.             // line 85
  301.             echo "                                            </span>";
  302.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["cotizacion"], "shortName", [], "any"falsefalsefalse85), "nombre", [], "any"falsefalsefalse85), "html"nulltrue);
  303.             echo "</a>
  304.                                             <a class=\"d-block d-sm-none\" href=\"";
  305.             // line 86
  306.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("divisas", ["nombre" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["cotizacion"], "shortName", [], "any"falsefalsefalse86), "slug", [=> twig_get_attribute($this->env$this->sourcetwig_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.'86$this->source); })()), "request", [], "any"falsefalsefalse86), "locale", [], "any"falsefalsefalse86)], "method"falsefalsefalse86)]), "html"nulltrue);
  307.             echo "\"><span class=\"banderas\">
  308.                                                 ";
  309.             // line 87
  310.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["cotizacion"], "shortName", [], "any"falsefalsefalse87), "imagen", [], "any"falsefalsefalse87)) {
  311.                 // line 88
  312.                 echo "                                                    ";
  313.                 echo $this->env->getRuntime('Sonata\MediaBundle\Twig\MediaRuntime')->thumbnail(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["cotizacion"], "shortName", [], "any"falsefalsefalse88), "imagen", [], "any"falsefalsefalse88), "flag");
  314.                 echo "
  315.                                                 ";
  316.             }
  317.             // line 90
  318.             echo "                                            </span>";
  319.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cotizacion"], "shortName", [], "any"falsefalsefalse90), "html"nulltrue);
  320.             echo "</a>
  321.                                         </td>
  322.                                         <td>
  323.                                             ";
  324.             // line 93
  325.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["cotizacion"], "oficina", [], "any"falsefalsefalse93), "id", [], "any"falsefalsefalse93) == 66)) {
  326.                 // line 94
  327.                 echo "                                                -
  328.                                             ";
  329.             } elseif (twig_test_empty(twig_get_attribute($this->env$this->source,             // line 95
  330. (isset($context["oficina"]) || array_key_exists("oficina"$context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.'95$this->source); })()), "franjas", [], "any"falsefalsefalse95))) {
  331.                 // line 96
  332.                 echo "                                                -
  333.                                             ";
  334.             } else {
  335.                 // line 98
  336.                 echo "                                                ";
  337.                 echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["cotizacion"], "precioCompra", [], "any"falsefalsefalse98), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["cotizacion"], "shortName", [], "any"falsefalsefalse98), "numDecimales", [], "any"falsefalsefalse98)), "html"nulltrue);
  338.                 echo "
  339.                                             ";
  340.             }
  341.             // line 100
  342.             echo "                                        </td>
  343.                                         <td>
  344.                                             ";
  345.             // line 102
  346.             if (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.'102$this->source); })()), "franjas", [], "any"falsefalsefalse102))) {
  347.                 // line 103
  348.                 echo "                                                -
  349.                                             ";
  350.             } elseif ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 104
  351. $context["cotizacion"], "oficina", [], "any"falsefalsefalse104), "permiteCompra", [], "any"falsefalsefalse104) == 1)) {
  352.                 // line 105
  353.                 echo "                                                ";
  354.                 echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["cotizacion"], "precioVenta", [], "any"falsefalsefalse105), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["cotizacion"], "shortName", [], "any"falsefalsefalse105), "numDecimales", [], "any"falsefalsefalse105)), "html"nulltrue);
  355.                 echo "
  356.                                             ";
  357.             } else {
  358.                 // line 107
  359.                 echo "                                                -
  360.                                             ";
  361.             }
  362.             // line 109
  363.             echo "                                        </td>
  364.                                     </tr>
  365.                                 ";
  366.         }
  367.         $_parent $context['_parent'];
  368.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cotizacion'], $context['_parent'], $context['loop']);
  369.         $context array_intersect_key($context$_parent) + $_parent;
  370.         // line 112
  371.         echo "                            </table>
  372.                         </div>
  373.                         ";
  374.         // line 114
  375.         if (((isset($context["oficina"]) || array_key_exists("oficina"$context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.'114$this->source); })()) != "")) {
  376.             echo "<p class=\"info-select\">";
  377.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Precios para"), "html"nulltrue);
  378.             echo " ";
  379.             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.'114$this->source); })()), "html"nulltrue);
  380.             echo "</p>";
  381.         }
  382.         // line 115
  383.         echo "                        <div id=\"mas-cot\">
  384.                             <a href=\"/cotizaciones\">";
  385.         // line 116
  386.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Ver mas cotizaciones >"), "html"nulltrue);
  387.         echo "</a>
  388.                         </div>
  389.                 </div>
  390.             </div>
  391.         </div>
  392.         
  393.         ";
  394.         // line 122
  395.         if ((twig_length_filter($this->envtwig_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.'122$this->source); })()), "servicios", [], "any"falsefalsefalse122)) > 0)) {
  396.             // line 123
  397.             echo "        <h2>";
  398.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Servicios disponibles en esta oficina de cambio"), "html"nulltrue);
  399.             echo "</h2>
  400.         <div id=\"ofi-servicios\" class=\"row\">
  401.         <ul>
  402.         ";
  403.             // line 126
  404.             $context['_parent'] = $context;
  405.             $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.'126$this->source); })()), "servicios", [], "any"falsefalsefalse126));
  406.             foreach ($context['_seq'] as $context["_key"] => $context["servicio"]) {
  407.                 // line 127
  408.                 echo "            <li >
  409.                 <div class=\"card\">
  410.                 ";
  411.                 // line 129
  412.                 if (twig_get_attribute($this->env$this->source$context["servicio"], "imagenCabecera", [], "any"falsefalsefalse129)) {
  413.                     // line 130
  414.                     echo "                ";
  415.                     echo $this->env->getRuntime('Sonata\MediaBundle\Twig\MediaRuntime')->thumbnail(twig_get_attribute($this->env$this->source$context["servicio"], "imagenCabecera", [], "any"falsefalsefalse130), "reference");
  416.                     echo "
  417.                 ";
  418.                 } elseif (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,                 // line 131
  419. $context["servicio"], "translate", [=> "es"], "method"falsefalsefalse131), "imagenCabecera", [], "any"falsefalsefalse131)) {
  420.                     // line 132
  421.                     echo "                ";
  422.                     echo $this->env->getRuntime('Sonata\MediaBundle\Twig\MediaRuntime')->thumbnail(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["servicio"], "translate", [=> "es"], "method"falsefalsefalse132), "imagenCabecera", [], "any"falsefalsefalse132), "reference");
  423.                     echo "
  424.                 ";
  425.                 }
  426.                 // line 134
  427.                 echo "                <div class=\"card-body\">
  428.                     <h5 class=\"card-title\">";
  429.                 // line 135
  430.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["servicio"], "texto", [], "any"falsefalsefalse135), "html"nulltrue);
  431.                 echo "</h5>
  432.                 </div>
  433.                 </div>
  434.             <li>
  435.             
  436.         ";
  437.             }
  438.             $_parent $context['_parent'];
  439.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['servicio'], $context['_parent'], $context['loop']);
  440.             $context array_intersect_key($context$_parent) + $_parent;
  441.             // line 141
  442.             echo "        <ul>
  443.         </div>
  444.         ";
  445.         }
  446.         // line 144
  447.         echo "        
  448.         <div id=\"text-servicios\">
  449.             ";
  450.         // line 146
  451.         echo 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.'146$this->source); })()), "serviciosTexto", [], "any"falsefalsefalse146);
  452.         echo "
  453.         </div>
  454.         
  455.     
  456.    
  457.     
  458.         <div id=\"mapa\" class=\"container\">
  459.             <div id=\"map\"></div>
  460.             <div id=\"texto-mapa\">
  461.                 <p>";
  462.         // line 155
  463.         echo twig_escape_filter($this->envtwig_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.'155$this->source); })()), "direccion", [], "any"falsefalsefalse155), "html"nulltrue);
  464.         echo "</p>
  465.                 <a target=\"_blank\" href=\"https://www.google.com/maps/dir/Current+Location/";
  466.         // line 156
  467.         echo twig_escape_filter($this->envtwig_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.'156$this->source); })()), "latitud", [], "any"falsefalsefalse156), "html"nulltrue);
  468.         echo ",";
  469.         echo twig_escape_filter($this->envtwig_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.'156$this->source); })()), "longitud", [], "any"falsefalsefalse156), "html"nulltrue);
  470.         echo "\">";
  471.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("¿Cómo llegar? >"), "html"nulltrue);
  472.         echo "</a>
  473.             </div>
  474.         </div>
  475.     
  476.         <div id=\"resto\" class=\"container\">
  477.             <p id=\"ind\">";
  478.         // line 161
  479.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Indicaciones para llegar:"), "html"nulltrue);
  480.         echo "</p>
  481.             ";
  482.         // line 162
  483.         echo 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.'162$this->source); })()), "indicaciones", [], "any"falsefalsefalse162);
  484.         echo "
  485.         </div>
  486.     </div>
  487.     
  488.     ";
  489.         // line 166
  490.         $this->displayBlock('empresas'$context$blocks);
  491.         // line 169
  492.         echo "    
  493. ";
  494.         
  495.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  496.         
  497.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  498.     }
  499.     // line 166
  500.     public function block_empresas($context, array $blocks = [])
  501.     {
  502.         $macros $this->macros;
  503.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  504.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""empresas"));
  505.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  506.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""empresas"));
  507.         // line 167
  508.         echo "        ";
  509.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\DefaultController::empresas"));
  510.         echo "
  511.     ";
  512.         
  513.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  514.         
  515.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  516.     }
  517.     // line 174
  518.     public function block_javascripts_footer($context, array $blocks = [])
  519.     {
  520.         $macros $this->macros;
  521.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  522.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts_footer"));
  523.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  524.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts_footer"));
  525.         // line 175
  526.         echo "    ";
  527.         $this->displayParentBlock("javascripts_footer"$context$blocks);
  528.         echo "
  529.     
  530.     <script>
  531. //             function initMap() {
  532. //                 
  533. //                 var mapElement = document.getElementById('map');
  534. //   
  535. //                 if (mapElement) {
  536. //                     
  537. //                     var map = new google.maps.Map(mapElement, {
  538. //                         center: { lat: ";
  539.         // line 185
  540.         echo twig_escape_filter($this->envtwig_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.'185$this->source); })()), "latitud", [], "any"falsefalsefalse185), "html"nulltrue);
  541.         echo ", lng: ";
  542.         echo twig_escape_filter($this->envtwig_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.'185$this->source); })()), "longitud", [], "any"falsefalsefalse185), "html"nulltrue);
  543.         echo " },
  544. //                         zoom: 12
  545. //                     });
  546. //                 }
  547. //             }
  548.             
  549.     </script>
  550.     
  551.     ";
  552.         // line 193
  553.         $this->loadTemplate("includes/mapa_javascript.html.twig""default/ficha_oficina.html.twig"193)->display(twig_to_array(["oficinasMapa" => [=> (isset($context["oficina"]) || array_key_exists("oficina"$context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.'193$this->source); })())]]));
  554.         // line 194
  555.         echo "    
  556. ";
  557.         
  558.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  559.         
  560.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  561.     }
  562.     public function getTemplateName()
  563.     {
  564.         return "default/ficha_oficina.html.twig";
  565.     }
  566.     public function isTraitable()
  567.     {
  568.         return false;
  569.     }
  570.     public function getDebugInfo()
  571.     {
  572.         return array (  589 => 194,  587 => 193,  574 => 185,  560 => 175,  550 => 174,  537 => 167,  527 => 166,  516 => 169,  514 => 166,  507 => 162,  503 => 161,  491 => 156,  487 => 155,  475 => 146,  471 => 144,  466 => 141,  454 => 135,  451 => 134,  445 => 132,  443 => 131,  438 => 130,  436 => 129,  432 => 127,  428 => 126,  421 => 123,  419 => 122,  410 => 116,  407 => 115,  399 => 114,  395 => 112,  387 => 109,  383 => 107,  377 => 105,  375 => 104,  372 => 103,  370 => 102,  366 => 100,  360 => 98,  356 => 96,  354 => 95,  351 => 94,  349 => 93,  342 => 90,  336 => 88,  334 => 87,  330 => 86,  325 => 85,  319 => 83,  317 => 82,  313 => 81,  307 => 79,  303 => 78,  298 => 76,  294 => 75,  290 => 74,  283 => 70,  277 => 67,  273 => 66,  264 => 60,  258 => 56,  252 => 55,  249 => 54,  233 => 51,  230 => 50,  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,);
  573.     }
  574.     public function getSourceContext()
  575.     {
  576.         return new Source("{# {% extends 'default/contenido.html.twig' %} #}
  577. {% extends 'base.html.twig' %}
  578.  {% block idiomas %}
  579.  {% for k,idioma in locales %}
  580.      {% if k == app.request.locale %}    
  581.      <option selected value=\"{{ path(app.request.get('_route', 'index'), app.request.get('_route_params', [])|merge({_locale: k})) }}\" title=\"{{ idioma }}\">{{ k | upper}}</option>
  582.      {% else %}
  583.      <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>
  584.      {% endif %}
  585.  {% endfor %}
  586.  {% endblock %}
  587. {% block bodyId %}ficha-oficina{% endblock %}
  588. {% block body %}
  589.     
  590.     <div id=\"cab-fi-ofi\" class=\"container\">
  591.         <div id=\"img-ofi\">
  592.             {#{% if oficina.imagen %}
  593.                 {{ sonata_media(oficina.imagen, 'cabecera') }}
  594.             {% endif %}#}
  595.             <img src=\"/img/banner_currency_offices.png\"/>
  596.         </div>
  597.         <div id=\"horario\" class=\"row\">
  598.             <div id=\"franjas\" class=\"col-12 col-md-8\">
  599.                 <div id=\"nomH\">
  600.                     <span>{{ 'Horarios' | trans}}</span>
  601.                 </div>
  602.                 <div id=\"textH\">
  603.                     {% for franja in oficina.franjas %}
  604.                         &gt;{{ franja.nombre }}:
  605.                         {# FOR DE LAS HORAS #}
  606.                         {% for horas in franja.franjaHoras %}
  607.                             <strong> {{ horas.horaInicio |date('H:i') }}
  608.                                 a {{ horas.horaFin |date('H:i') }} </strong>
  609.                         {% endfor %}
  610.                         <br/>
  611.                     {% endfor %}
  612.                     {% set hoy = \"now\"|date(\"Y-m-d\") %}
  613.                     {% for festivo in oficina.dayoffs %}
  614.                         {% set fechaFestivo = festivo.date|date(\"Y-m-d\") %}
  615.                         
  616.                         {% set segundosEnUnDia = 86400 %}
  617.                         {% set segundosDeDiferencia = fechaFestivo|date(\"U\") - hoy|date(\"U\") %}
  618.                         {% set diasDeDiferencia = segundosDeDiferencia / segundosEnUnDia %}
  619.                         
  620.                         {% if fechaFestivo == hoy or diasDeDiferencia >= -2 and diasDeDiferencia <= 30 %}
  621.                             {% for hor in festivo.horarioReducidos %}
  622.                                 <div>
  623.                                     &gt;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>
  624.                                 </div>
  625.                             {% endfor %}
  626.                         {% endif %}
  627.                     {% endfor %}
  628.                 </div>
  629.                 
  630.             </div>
  631.             <div id=\"tel\" class=\"col-12 col-md-4\">
  632.                 <span>{{ oficina.telefono }}</span>
  633.             </div>
  634.         </div>
  635.         <div id=\"info-ofi\">
  636.             <div id=\"lin-ofi\" class=\"row\">
  637.                 <div class=\"texto col-12 col-lg-6\">
  638.                     <p id=\"title\">{{ oficina.title }}</p>
  639.                     {{ oficina.descripcion|raw }}
  640.                 </div>
  641.                 <div class=\"tabla col-12 col-lg-6\">
  642.                         <p class=\"precios\">{{ 'Precios' | trans}}</p>
  643.                         <div class=\"cont-table\">
  644.                             <table id=\"tabla-cot\">
  645.                                 <tr>
  646.                                     <th>{{ 'Divisa' | trans}}</th>
  647.                                     <th>{{ 'Compramos' | trans}}</th>
  648.                                     <th>{{ 'Vendemos' | trans}}</th>
  649.                                 </tr>
  650.                                 {% for cotizacion in cotizaciones %}
  651.                                     <tr data-oficina=\"{{ cotizacion.oficina }}\">
  652.                                         <td>
  653.                                             <a class=\"d-none d-sm-block\" href=\"{{ path('divisas', {'nombre': cotizacion.shortName.slug(app.request.locale)}) }}\"><span class=\"banderas\">
  654.                                                 {% if cotizacion.shortName.imagen %}
  655.                                                     {{ sonata_thumbnail(cotizacion.shortName.imagen, 'flag') }}
  656.                                                 {% endif %}
  657.                                             </span>{{ cotizacion.shortName.nombre }}</a>
  658.                                             <a class=\"d-block d-sm-none\" href=\"{{ path('divisas', {'nombre': cotizacion.shortName.slug(app.request.locale)}) }}\"><span class=\"banderas\">
  659.                                                 {% if cotizacion.shortName.imagen %}
  660.                                                     {{ sonata_thumbnail(cotizacion.shortName.imagen, 'flag') }}
  661.                                                 {% endif %}
  662.                                             </span>{{ cotizacion.shortName }}</a>
  663.                                         </td>
  664.                                         <td>
  665.                                             {% if cotizacion.oficina.id == 66 %}
  666.                                                 -
  667.                                             {% elseif oficina.franjas is empty %}
  668.                                                 -
  669.                                             {% else %}
  670.                                                 {{ cotizacion.precioCompra|number_format(cotizacion.shortName.numDecimales) }}
  671.                                             {% endif %}
  672.                                         </td>
  673.                                         <td>
  674.                                             {% if oficina.franjas is empty %}
  675.                                                 -
  676.                                             {% elseif cotizacion.oficina.permiteCompra == 1 %}
  677.                                                 {{ cotizacion.precioVenta|number_format(cotizacion.shortName.numDecimales) }}
  678.                                             {% else %}
  679.                                                 -
  680.                                             {% endif %}
  681.                                         </td>
  682.                                     </tr>
  683.                                 {% endfor %}
  684.                             </table>
  685.                         </div>
  686.                         {% if oficina != \"\" %}<p class=\"info-select\">{{ 'Precios para' | trans}} {{ diaMax }}</p>{% endif %}
  687.                         <div id=\"mas-cot\">
  688.                             <a href=\"/cotizaciones\">{{ 'Ver mas cotizaciones >' | trans}}</a>
  689.                         </div>
  690.                 </div>
  691.             </div>
  692.         </div>
  693.         
  694.         {% if oficina.servicios | length > 0 %}
  695.         <h2>{{ 'Servicios disponibles en esta oficina de cambio' | trans }}</h2>
  696.         <div id=\"ofi-servicios\" class=\"row\">
  697.         <ul>
  698.         {% for servicio in oficina.servicios %}
  699.             <li >
  700.                 <div class=\"card\">
  701.                 {% if servicio.imagenCabecera %}
  702.                 {{ sonata_thumbnail(servicio.imagenCabecera, 'reference') }}
  703.                 {% elseif servicio.translate('es').imagenCabecera %}
  704.                 {{ sonata_thumbnail(servicio.translate('es').imagenCabecera, 'reference') }}
  705.                 {% endif %}
  706.                 <div class=\"card-body\">
  707.                     <h5 class=\"card-title\">{{ servicio.texto }}</h5>
  708.                 </div>
  709.                 </div>
  710.             <li>
  711.             
  712.         {% endfor %}
  713.         <ul>
  714.         </div>
  715.         {% endif %}
  716.         
  717.         <div id=\"text-servicios\">
  718.             {{ oficina.serviciosTexto|raw }}
  719.         </div>
  720.         
  721.     
  722.    
  723.     
  724.         <div id=\"mapa\" class=\"container\">
  725.             <div id=\"map\"></div>
  726.             <div id=\"texto-mapa\">
  727.                 <p>{{ oficina.direccion }}</p>
  728.                 <a target=\"_blank\" href=\"https://www.google.com/maps/dir/Current+Location/{{ oficina.latitud }},{{ oficina.longitud }}\">{{ '¿Cómo llegar? >' | trans}}</a>
  729.             </div>
  730.         </div>
  731.     
  732.         <div id=\"resto\" class=\"container\">
  733.             <p id=\"ind\">{{ 'Indicaciones para llegar:' | trans}}</p>
  734.             {{ oficina.indicaciones|raw }}
  735.         </div>
  736.     </div>
  737.     
  738.     {% block empresas %}
  739.         {{ render(controller('App\\\\Controller\\\\DefaultController::empresas' )) }}
  740.     {% endblock %}
  741.     
  742. {#     {{ dump(oficinaIdioma) }} #}
  743. {% endblock %}
  744. {% block javascripts_footer %}
  745.     {{ parent() }}
  746.     
  747.     <script>
  748. //             function initMap() {
  749. //                 
  750. //                 var mapElement = document.getElementById('map');
  751. //   
  752. //                 if (mapElement) {
  753. //                     
  754. //                     var map = new google.maps.Map(mapElement, {
  755. //                         center: { lat: {{ oficina.latitud }}, lng: {{ oficina.longitud }} },
  756. //                         zoom: 12
  757. //                     });
  758. //                 }
  759. //             }
  760.             
  761.     </script>
  762.     
  763.     {% include \"includes/mapa_javascript.html.twig\" with { oficinasMapa:[oficina] } only %}
  764.     
  765. {% endblock %}
  766. ""default/ficha_oficina.html.twig""/home/alien/www/eurochange/templates/default/ficha_oficina.html.twig");
  767.     }
  768. }