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