var/cache/dev/twig/b1/b192f85a7a8588ef55df1c97cd0b8b10a5c78c627091f97be82936c02112e2eb.php line 141

Open in your IDE?
  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. /* index/shop.html.twig */
  14. class __TwigTemplate_3106cb873b099dd77b5b886594817e6e53bb027e9e2ae38887deab68d6c2aa34 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.             'page_name' => [$this'block_page_name'],
  24.             'title' => [$this'block_title'],
  25.             'header_title' => [$this'block_header_title'],
  26.             'stylesheet' => [$this'block_stylesheet'],
  27.             'main' => [$this'block_main'],
  28.             'js' => [$this'block_js'],
  29.         ];
  30.     }
  31.     protected function doGetParent(array $context)
  32.     {
  33.         // line 1
  34.         return "index/layout.html.twig";
  35.     }
  36.     protected function doDisplay(array $context, array $blocks = [])
  37.     {
  38.         $macros $this->macros;
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""index/shop.html.twig"));
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""index/shop.html.twig"));
  43.         $this->parent $this->loadTemplate("index/layout.html.twig""index/shop.html.twig"1);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  47.         
  48.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  49.     }
  50.     // line 3
  51.     public function block_page_name($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_name"));
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_name"));
  58.         echo "shop";
  59.         
  60.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  61.         
  62.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  63.     }
  64.     // line 5
  65.     public function block_title($context, array $blocks = [])
  66.     {
  67.         $macros $this->macros;
  68.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  69.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  70.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  71.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  72.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["shop"]) || array_key_exists("shop"$context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.'5$this->source); })()), "name", [], "any"falsefalsefalse5), "html"nulltrue);
  73.         
  74.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  75.         
  76.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  77.     }
  78.     // line 6
  79.     public function block_header_title($context, array $blocks = [])
  80.     {
  81.         $macros $this->macros;
  82.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  83.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header_title"));
  84.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  85.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header_title"));
  86.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["shop"]) || array_key_exists("shop"$context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.'6$this->source); })()), "name", [], "any"falsefalsefalse6), "html"nulltrue);
  87.         
  88.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  89.         
  90.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  91.     }
  92.     // line 8
  93.     public function block_stylesheet($context, array $blocks = [])
  94.     {
  95.         $macros $this->macros;
  96.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  97.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  98.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  99.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  100.         // line 9
  101.         echo "  <link rel=\"stylesheet\" href=\"/css/detail.css\">
  102. ";
  103.         
  104.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  105.         
  106.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  107.     }
  108.     // line 12
  109.     public function block_main($context, array $blocks = [])
  110.     {
  111.         $macros $this->macros;
  112.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  113.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  114.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  115.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  116.         // line 13
  117.         echo "  <main>
  118.     <section class=\"details_wr\">
  119.       ";
  120.         // line 15
  121.         $context["shopImage"] = "/img/no-image.jpeg";
  122.         // line 16
  123.         echo "      ";
  124.         if (twig_get_attribute($this->env$this->source, (isset($context["shop"]) || array_key_exists("shop"$context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.'16$this->source); })()), "image", [], "any"falsefalsefalse16)) {
  125.             // line 17
  126.             echo "        ";
  127.             $context["shopImage"] = twig_get_attribute($this->env$this->source, (isset($context["shop"]) || array_key_exists("shop"$context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.'17$this->source); })()), "image", [], "any"falsefalsefalse17);
  128.             // line 18
  129.             echo "      ";
  130.         }
  131.         // line 19
  132.         echo "      <img class=\"shop_img\" src=\"";
  133.         echo twig_escape_filter($this->env, (isset($context["shopImage"]) || array_key_exists("shopImage"$context) ? $context["shopImage"] : (function () { throw new RuntimeError('Variable "shopImage" does not exist.'19$this->source); })()), "html"nulltrue);
  134.         echo "\" alt=\"";
  135.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["shop"]) || array_key_exists("shop"$context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.'19$this->source); })()), "name", [], "any"falsefalsefalse19), "html"nulltrue);
  136.         echo "\">
  137.       <div class=\"shop_name_wr\">
  138.         <div>
  139.           <h1>";
  140.         // line 22
  141.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["shop"]) || array_key_exists("shop"$context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.'22$this->source); })()), "name", [], "any"falsefalsefalse22), "html"nulltrue);
  142.         echo "</h1>
  143.           <h2>";
  144.         // line 23
  145.         echo twig_escape_filter($this->envtwig_join_filter(twig_get_attribute($this->env$this->source, (isset($context["shop"]) || array_key_exists("shop"$context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.'23$this->source); })()), "categories", [], "any"falsefalsefalse23), " / "), "html"nulltrue);
  146.         echo "</h2>
  147.         </div>
  148. ";
  149.         // line 33
  150.         echo "
  151. ";
  152.         // line 35
  153.         echo "      </div>
  154.       <ul class=\"provide\">
  155.         ";
  156.         // line 37
  157.         if (twig_get_attribute($this->env$this->source, (isset($context["shop"]) || array_key_exists("shop"$context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.'37$this->source); })()), "toGo", [], "any"falsefalsefalse37)) {
  158.             echo "<li>テイクアウト</li>";
  159.         }
  160.         // line 38
  161.         echo "        ";
  162.         if (twig_get_attribute($this->env$this->source, (isset($context["shop"]) || array_key_exists("shop"$context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.'38$this->source); })()), "delivery", [], "any"falsefalsefalse38)) {
  163.             echo "<li>デリバリー</li>";
  164.         }
  165.         // line 39
  166.         echo "      </ul>
  167.       <ul class=\"time\">
  168.         <li class=\"indication\">提供時間目安 <span>";
  169.         // line 41
  170.         echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, ($context["shop"] ?? null), "estimatedMinutes", [], "any"truetruefalse41)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["shop"] ?? null), "estimatedMinutes", [], "any"falsefalsefalse41), "-")) : ("-")), "html"nulltrue);
  171.         echo "分</span></li>
  172.         <li class=\"start\">";
  173.         // line 42
  174.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["shop"]) || array_key_exists("shop"$context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.'42$this->source); })()), "hourFrom", [], "any"falsefalsefalse42), "H:i"), "html"nulltrue);
  175.         echo "〜";
  176.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["shop"]) || array_key_exists("shop"$context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.'42$this->source); })()), "hourTo", [], "any"falsefalsefalse42), "H:i"), "html"nulltrue);
  177.         echo "受付可</li>
  178.       </ul>
  179.       <p class=\"add\">〒";
  180.         // line 44
  181.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["shop"]) || array_key_exists("shop"$context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.'44$this->source); })()), "zipcode", [], "any"falsefalsefalse44), "html"nulltrue);
  182.         echo " ";
  183.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["shop"]) || array_key_exists("shop"$context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.'44$this->source); })()), "address", [], "any"falsefalsefalse44), "html"nulltrue);
  184.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["shop"]) || array_key_exists("shop"$context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.'44$this->source); })()), "coordinate", [], "any"falsefalsefalse44), "latitude", [], "any"falsefalsefalse44)) {
  185.             echo " /
  186.         <a class=\"link\" href=\"https://www.google.co.jp/maps/search/?api=1&query=";
  187.             // line 45
  188.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["shop"]) || array_key_exists("shop"$context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.'45$this->source); })()), "coordinate", [], "any"falsefalsefalse45), "latitude", [], "any"falsefalsefalse45), "html"nulltrue);
  189.             echo ",";
  190.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["shop"]) || array_key_exists("shop"$context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.'45$this->source); })()), "coordinate", [], "any"falsefalsefalse45), "longitude", [], "any"falsefalsefalse45), "html"nulltrue);
  191.             echo "\" target=\"_blank\" rel=\"noopener\">google map</a>
  192.         ";
  193.         }
  194.         // line 47
  195.         echo "      </p>
  196.       ";
  197.         // line 49
  198.         echo "        ";
  199.         // line 50
  200.         echo "      ";
  201.         // line 51
  202.         echo "    </section>
  203.     <section class=\"menu\">
  204. ";
  205.         // line 55
  206.         echo "
  207.       ";
  208.         // line 56
  209.         $context['_parent'] = $context;
  210.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["shop"]) || array_key_exists("shop"$context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.'56$this->source); })()), "menuGroups", [], "any"falsefalsefalse56));
  211.         foreach ($context['_seq'] as $context["_key"] => $context["group"]) {
  212.             // line 57
  213.             echo "      <div class=\"categories\">
  214.         <h2 class=\"title\">";
  215.             // line 58
  216.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["group"], "name", [], "any"falsefalsefalse58), "html"nulltrue);
  217.             echo "</h2>
  218.         <!--food-->
  219.         ";
  220.             // line 61
  221.             $context['_parent'] = $context;
  222.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["group"], "menus", [], "any"falsefalsefalse61));
  223.             foreach ($context['_seq'] as $context["_key"] => $context["menu"]) {
  224.                 // line 62
  225.                 echo "        <div class=\"food_wr clearfix\">
  226.           <ul class=\"text_wr\">
  227.             <li class=\"food_name\"><a href=\"";
  228.                 // line 64
  229.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop_menu_show", ["id" => twig_get_attribute($this->env$this->source$context["menu"], "id", [], "any"falsefalsefalse64)]), "html"nulltrue);
  230.                 echo "\">";
  231.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["menu"], "name", [], "any"falsefalsefalse64), "html"nulltrue);
  232.                 echo "</a></li>
  233.             <li class=\"intro\">";
  234.                 // line 65
  235.                 echo nl2br(twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["menu"], "description", [], "any"falsefalsefalse65), "html"nulltrue));
  236.                 echo "</li>
  237.             <li class=\"indication\">提供目安時間 : <span>";
  238.                 // line 66
  239.                 echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["menu"], "minutes", [], "any"truetruefalse66)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["menu"], "minutes", [], "any"falsefalsefalse66), "-")) : ("-")), "html"nulltrue);
  240.                 echo "分</span></li>
  241.             <li class=\"price\">
  242.               ";
  243.                 // line 68
  244.                 if ((twig_get_attribute($this->env$this->source$context["menu"], "discountedPrice", [], "any"falsefalsefalse68) === null)) {
  245.                     // line 69
  246.                     echo "              ";
  247.                     // line 70
  248.                     echo "              &yen; ";
  249.                     echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["menu"], "price", [], "any"falsefalsefalse70)), "html"nulltrue);
  250.                     echo "
  251.               ";
  252.                 } else {
  253.                     // line 72
  254.                     echo "              ";
  255.                     // line 73
  256.                     echo "              <span class=\"before\">&yen; ";
  257.                     echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["menu"], "price", [], "any"falsefalsefalse73)), "html"nulltrue);
  258.                     echo "</span>⇒<span class=\"after\">&yen; ";
  259.                     echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["menu"], "discountedPrice", [], "any"falsefalsefalse73)), "html"nulltrue);
  260.                     echo "</span>
  261.               ";
  262.                 }
  263.                 // line 75
  264.                 echo "            </li>
  265.           </ul>
  266.           <a href=\"";
  267.                 // line 77
  268.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop_menu_show", ["id" => twig_get_attribute($this->env$this->source$context["menu"], "id", [], "any"falsefalsefalse77)]), "html"nulltrue);
  269.                 echo "\">
  270.             <div class=\"img_wr\" style=\"background-image:url(";
  271.                 // line 78
  272.                 echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["menu"], "image", [], "any"truetruefalse78)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["menu"], "image", [], "any"falsefalsefalse78), "/img/no-image.jpeg")) : ("/img/no-image.jpeg")), "html"nulltrue);
  273.                 echo ");border-radius: 5px;\">
  274.   ";
  275.                 // line 80
  276.                 echo "            </div>
  277.           </a>
  278.         </div>
  279.         ";
  280.             }
  281.             $_parent $context['_parent'];
  282.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['menu'], $context['_parent'], $context['loop']);
  283.             $context array_intersect_key($context$_parent) + $_parent;
  284.             // line 84
  285.             echo "        <!--/food-->
  286.       </div>
  287.       ";
  288.         }
  289.         $_parent $context['_parent'];
  290.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['group'], $context['_parent'], $context['loop']);
  291.         $context array_intersect_key($context$_parent) + $_parent;
  292.         // line 87
  293.         echo "
  294.       <div class=\"categories\">
  295.         <h3></h3>
  296.         <!--food-->
  297.         ";
  298.         // line 92
  299.         $context['_parent'] = $context;
  300.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["shop"]) || array_key_exists("shop"$context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.'92$this->source); })()), "ungroupedMenus", [], "any"falsefalsefalse92));
  301.         foreach ($context['_seq'] as $context["_key"] => $context["menu"]) {
  302.             // line 93
  303.             echo "          <div class=\"food_wr clearfix\">
  304.             <ul class=\"text_wr\">
  305.               <li class=\"food_name\"><a href=\"";
  306.             // line 95
  307.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop_menu_show", ["id" => twig_get_attribute($this->env$this->source$context["menu"], "id", [], "any"falsefalsefalse95)]), "html"nulltrue);
  308.             echo "\">";
  309.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["menu"], "name", [], "any"falsefalsefalse95), "html"nulltrue);
  310.             echo "</a></li>
  311.               <li class=\"intro\">";
  312.             // line 96
  313.             echo nl2br(twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["menu"], "description", [], "any"falsefalsefalse96), "html"nulltrue));
  314.             echo "</li>
  315.               <li class=\"indication\">提供目安時間 : <span>";
  316.             // line 97
  317.             echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["menu"], "minutes", [], "any"truetruefalse97)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["menu"], "minutes", [], "any"falsefalsefalse97), "-")) : ("-")), "html"nulltrue);
  318.             echo "分</span></li>
  319.               <li class=\"price\">
  320.                 ";
  321.             // line 99
  322.             if ((twig_get_attribute($this->env$this->source$context["menu"], "discountedPrice", [], "any"falsefalsefalse99) === null)) {
  323.                 // line 101
  324.                 echo "                &yen; ";
  325.                 echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["menu"], "price", [], "any"falsefalsefalse101)), "html"nulltrue);
  326.                 echo "
  327.                 ";
  328.             } else {
  329.                 // line 104
  330.                 echo "                <span class=\"before\">&yen; ";
  331.                 echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["menu"], "price", [], "any"falsefalsefalse104)), "html"nulltrue);
  332.                 echo "</span>⇒<span class=\"after\">&yen; ";
  333.                 echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["menu"], "price", [], "any"falsefalsefalse104)), "html"nulltrue);
  334.                 echo "</span>
  335.                 ";
  336.             }
  337.             // line 106
  338.             echo "              </li>
  339.             </ul>
  340.             <a href=\"";
  341.             // line 108
  342.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop_menu_show", ["id" => twig_get_attribute($this->env$this->source$context["menu"], "id", [], "any"falsefalsefalse108)]), "html"nulltrue);
  343.             echo "\">
  344.               <div class=\"img_wr\" style=\"background-image:url(";
  345.             // line 109
  346.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["menu"], "image", [], "any"falsefalsefalse109), "html"nulltrue);
  347.             echo ");border-radius: 5px;\">
  348.   ";
  349.             // line 111
  350.             echo "              </div>
  351.             </a>
  352.           </div>
  353.         ";
  354.         }
  355.         $_parent $context['_parent'];
  356.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['menu'], $context['_parent'], $context['loop']);
  357.         $context array_intersect_key($context$_parent) + $_parent;
  358.         // line 115
  359.         echo "        <!--/food-->
  360.       </div>
  361.     </section>
  362.     <div class=\"caution\">
  363.       <h2 class=\"title\">ご注文時の注意事項</h2>
  364.       <div>
  365.         ";
  366.         // line 122
  367.         echo nl2br(twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["shop"]) || array_key_exists("shop"$context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.'122$this->source); })()), "notice", [], "any"falsefalsefalse122), "html"nulltrue));
  368.         echo "
  369.       </div>
  370.       ";
  371.         // line 124
  372.         if ((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["shop"]) || array_key_exists("shop"$context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.'124$this->source); })()), "shopPlan", [], "any"falsefalsefalse124), "slug", [], "any"falsefalsefalse124), twig_constant("App\\Entity\\ShopPlan::SLUG_PAID")))) {
  373.             // line 125
  374.             echo "      <div class=\"law\">
  375.         <a href=\"";
  376.             // line 126
  377.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop_law", ["id" => twig_get_attribute($this->env$this->source, (isset($context["shop"]) || array_key_exists("shop"$context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.'126$this->source); })()), "id", [], "any"falsefalsefalse126)]), "html"nulltrue);
  378.             echo "\">特定商取引法に基づく表記</a>
  379.       </div>
  380.       ";
  381.         }
  382.         // line 129
  383.         echo "    </div>
  384.     <div class=\"button_area\">
  385.       ";
  386.         // line 133
  387.         echo "      ";
  388.         if (twig_get_attribute($this->env$this->source, (isset($context["shop"]) || array_key_exists("shop"$context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.'133$this->source); })()), "appAcceptable", [], "any"falsefalsefalse133)) {
  389.             // line 134
  390.             echo "        ";
  391.             if ((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["shop"]) || array_key_exists("shop"$context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.'134$this->source); })()), "shopPlan", [], "any"falsefalsefalse134), "slug", [], "any"falsefalsefalse134), twig_constant("App\\Entity\\ShopPlan::SLUG_PAID")))) {
  392.                 // line 135
  393.                 echo "          ";
  394.                 $context["cart"] = $this->extensions['App\Twig\AppExtension']->getCart(twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'135$this->source); })()), "user", [], "any"falsefalsefalse135));
  395.                 // line 136
  396.                 echo "          ";
  397.                 if ((isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'136$this->source); })())) {
  398.                     // line 137
  399.                     echo "            ";
  400.                     if (twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'137$this->source); })()), "cartItems", [], "any"falsefalsefalse137))) {
  401.                         // line 138
  402.                         echo "              <a class=\"button tel  \" href=\"";
  403.                         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("cart_index");
  404.                         echo "\" >カートを見る</a>
  405. ";
  406.                         // line 140
  407.                         echo "            ";
  408.                     }
  409.                     // line 141
  410.                     echo "          ";
  411.                 }
  412.                 // line 142
  413.                 echo "        ";
  414.             } else {
  415.                 // line 143
  416.                 echo "        <a class=\"button tel tel-xs\" href=\"tel:";
  417.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["shop"]) || array_key_exists("shop"$context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.'143$this->source); })()), "tel", [], "any"falsefalsefalse143), "html"nulltrue);
  418.                 echo "\" onClick=\"gtag('event', 'tap', {'event_category': 'tel', 'event_label': 'order_";
  419.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["shop"]) || array_key_exists("shop"$context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.'143$this->source); })()), "name", [], "any"falsefalsefalse143), "html"nulltrue);
  420.                 echo ":";
  421.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["shop"]) || array_key_exists("shop"$context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.'143$this->source); })()), "tel", [], "any"falsefalsefalse143), "html"nulltrue);
  422.                 echo "', 'value': '0' });\">電話で注文する</a>
  423.         <span class=\"button tel tel-lg\">電話番号 : ";
  424.                 // line 144
  425.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["shop"]) || array_key_exists("shop"$context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.'144$this->source); })()), "tel", [], "any"falsefalsefalse144), "html"nulltrue);
  426.                 echo "</span>
  427.         ";
  428.             }
  429.             // line 146
  430.             echo "      ";
  431.         } else {
  432.             // line 147
  433.             echo "        <span class=\"button tel out-of-service\">受付時間外です</span>
  434.       ";
  435.         }
  436.         // line 149
  437.         echo "    </div>
  438.   </main>
  439. ";
  440.         
  441.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  442.         
  443.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  444.     }
  445.     // line 154
  446.     public function block_js($context, array $blocks = [])
  447.     {
  448.         $macros $this->macros;
  449.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  450.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""js"));
  451.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  452.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""js"));
  453.         // line 165
  454.         echo "
  455. ";
  456.         // line 179
  457.         echo "
  458. ";
  459.         
  460.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  461.         
  462.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  463.     }
  464.     public function getTemplateName()
  465.     {
  466.         return "index/shop.html.twig";
  467.     }
  468.     public function isTraitable()
  469.     {
  470.         return false;
  471.     }
  472.     public function getDebugInfo()
  473.     {
  474.         return array (  502 => 179,  499 => 165,  489 => 154,  476 => 149,  472 => 147,  469 => 146,  464 => 144,  455 => 143,  452 => 142,  449 => 141,  446 => 140,  441 => 138,  438 => 137,  435 => 136,  432 => 135,  429 => 134,  426 => 133,  421 => 129,  415 => 126,  412 => 125,  410 => 124,  405 => 122,  396 => 115,  387 => 111,  383 => 109,  379 => 108,  375 => 106,  367 => 104,  361 => 101,  359 => 99,  354 => 97,  350 => 96,  344 => 95,  340 => 93,  336 => 92,  329 => 87,  321 => 84,  312 => 80,  308 => 78,  304 => 77,  300 => 75,  292 => 73,  290 => 72,  284 => 70,  282 => 69,  280 => 68,  275 => 66,  271 => 65,  265 => 64,  261 => 62,  257 => 61,  251 => 58,  248 => 57,  244 => 56,  241 => 55,  236 => 51,  234 => 50,  232 => 49,  229 => 47,  222 => 45,  215 => 44,  208 => 42,  204 => 41,  200 => 39,  195 => 38,  191 => 37,  187 => 35,  184 => 33,  179 => 23,  175 => 22,  166 => 19,  163 => 18,  160 => 17,  157 => 16,  155 => 15,  151 => 13,  141 => 12,  130 => 9,  120 => 8,  101 => 6,  82 => 5,  63 => 3,  40 => 1,);
  475.     }
  476.     public function getSourceContext()
  477.     {
  478.         return new Source("{% extends 'index/layout.html.twig' %}
  479. {% block page_name %}shop{% endblock %}
  480. {% block title %}{{ shop.name }}{% endblock %}
  481. {% block header_title %}{{ shop.name }}{% endblock %}
  482. {% block stylesheet %}
  483.   <link rel=\"stylesheet\" href=\"/css/detail.css\">
  484. {% endblock %}
  485. {% block main %}
  486.   <main>
  487.     <section class=\"details_wr\">
  488.       {% set shopImage = '/img/no-image.jpeg' %}
  489.       {% if shop.image %}
  490.         {% set shopImage = shop.image %}
  491.       {% endif %}
  492.       <img class=\"shop_img\" src=\"{{ shopImage }}\" alt=\"{{ shop.name }}\">
  493.       <div class=\"shop_name_wr\">
  494.         <div>
  495.           <h1>{{ shop.name }}</h1>
  496.           <h2>{{ shop.categories|join(' / ') }}</h2>
  497.         </div>
  498. {#        <div class=\"review_wr\">#}
  499. {#          <div class=\"review_num\">#}
  500. {#            4.5#}
  501. {#          </div>#}
  502. {#          <div class=\"review_text\">#}
  503. {#            レビュー数<br>#}
  504. {#            (222)#}
  505. {#          </div>#}
  506. {#        </div>#}
  507.       </div>
  508.       <ul class=\"provide\">
  509.         {% if shop.toGo %}<li>テイクアウト</li>{% endif %}
  510.         {% if shop.delivery %}<li>デリバリー</li>{% endif %}
  511.       </ul>
  512.       <ul class=\"time\">
  513.         <li class=\"indication\">提供時間目安 <span>{{ shop.estimatedMinutes|default('-') }}分</span></li>
  514.         <li class=\"start\">{{ shop.hourFrom|date('H:i') }}〜{{ shop.hourTo|date('H:i') }}受付可</li>
  515.       </ul>
  516.       <p class=\"add\">〒{{ shop.zipcode }} {{ shop.address }}{% if shop.coordinate.latitude %} /
  517.         <a class=\"link\" href=\"https://www.google.co.jp/maps/search/?api=1&query={{ shop.coordinate.latitude }},{{ shop.coordinate.longitude }}\" target=\"_blank\" rel=\"noopener\">google map</a>
  518.         {% endif %}
  519.       </p>
  520.       {#<div class=\"map\">#}
  521.         {#<div id=\"map-container\" style=\"height: 150px;width: 100%;\"></div>#}
  522.       {#</div>#}
  523.     </section>
  524.     <section class=\"menu\">
  525. {#      <h2>メニュー</h2>#}
  526.       {% for group in shop.menuGroups %}
  527.       <div class=\"categories\">
  528.         <h2 class=\"title\">{{ group.name }}</h2>
  529.         <!--food-->
  530.         {% for menu in group.menus %}
  531.         <div class=\"food_wr clearfix\">
  532.           <ul class=\"text_wr\">
  533.             <li class=\"food_name\"><a href=\"{{ path('shop_menu_show', {id: menu.id}) }}\">{{ menu.name }}</a></li>
  534.             <li class=\"intro\">{{ menu.description|nl2br }}</li>
  535.             <li class=\"indication\">提供目安時間 : <span>{{ menu.minutes|default('-') }}分</span></li>
  536.             <li class=\"price\">
  537.               {% if menu.discountedPrice is same as (null) %}
  538.               {#                割引なし#}
  539.               &yen; {{ menu.price|number_format }}
  540.               {% else %}
  541.               {#                割引あり#}
  542.               <span class=\"before\">&yen; {{ menu.price|number_format }}</span>⇒<span class=\"after\">&yen; {{ menu.discountedPrice|number_format }}</span>
  543.               {% endif %}
  544.             </li>
  545.           </ul>
  546.           <a href=\"{{ path('shop_menu_show', {id: menu.id}) }}\">
  547.             <div class=\"img_wr\" style=\"background-image:url({{ menu.image|default('/img/no-image.jpeg') }});border-radius: 5px;\">
  548.   {#            <img src=\"{{ menu.image }}\" alt=\"{{ menu.name }}\">#}
  549.             </div>
  550.           </a>
  551.         </div>
  552.         {% endfor %}
  553.         <!--/food-->
  554.       </div>
  555.       {% endfor %}
  556.       <div class=\"categories\">
  557.         <h3></h3>
  558.         <!--food-->
  559.         {% for menu in shop.ungroupedMenus %}
  560.           <div class=\"food_wr clearfix\">
  561.             <ul class=\"text_wr\">
  562.               <li class=\"food_name\"><a href=\"{{ path('shop_menu_show', {id: menu.id}) }}\">{{ menu.name }}</a></li>
  563.               <li class=\"intro\">{{ menu.description|nl2br }}</li>
  564.               <li class=\"indication\">提供目安時間 : <span>{{ menu.minutes|default('-') }}分</span></li>
  565.               <li class=\"price\">
  566.                 {% if menu.discountedPrice is same as (null) %}
  567. {#                割引なし#}
  568.                 &yen; {{ menu.price|number_format }}
  569.                 {% else %}
  570. {#                割引あり#}
  571.                 <span class=\"before\">&yen; {{ menu.price|number_format }}</span>⇒<span class=\"after\">&yen; {{ menu.price|number_format }}</span>
  572.                 {% endif %}
  573.               </li>
  574.             </ul>
  575.             <a href=\"{{ path('shop_menu_show', {id: menu.id}) }}\">
  576.               <div class=\"img_wr\" style=\"background-image:url({{ menu.image }});border-radius: 5px;\">
  577.   {#              <img src=\"{{ menu.image }}\" alt=\"{{ menu.name }}\">#}
  578.               </div>
  579.             </a>
  580.           </div>
  581.         {% endfor %}
  582.         <!--/food-->
  583.       </div>
  584.     </section>
  585.     <div class=\"caution\">
  586.       <h2 class=\"title\">ご注文時の注意事項</h2>
  587.       <div>
  588.         {{ shop.notice|nl2br }}
  589.       </div>
  590.       {% if shop.shopPlan.slug == constant('App\\\\Entity\\\\ShopPlan::SLUG_PAID') %}
  591.       <div class=\"law\">
  592.         <a href=\"{{ path('shop_law', {id: shop.id}) }}\">特定商取引法に基づく表記</a>
  593.       </div>
  594.       {% endif %}
  595.     </div>
  596.     <div class=\"button_area\">
  597.       {#      <a href=\"#\" class=\"button\">カートを見る</a>#}
  598.       {% if shop.appAcceptable %}
  599.         {% if shop.shopPlan.slug == constant('App\\\\Entity\\\\ShopPlan::SLUG_PAID') %}
  600.           {% set cart = get_cart(app.user) %}
  601.           {% if cart %}
  602.             {% if cart.cartItems | length %}
  603.               <a class=\"button tel  \" href=\"{{ path('cart_index') }}\" >カートを見る</a>
  604. {#              <span class=\"button tel tel-lg\">カートを見る</span>#}
  605.             {% endif %}
  606.           {% endif %}
  607.         {% else %}
  608.         <a class=\"button tel tel-xs\" href=\"tel:{{ shop.tel }}\" onClick=\"gtag('event', 'tap', {'event_category': 'tel', 'event_label': 'order_{{ shop.name }}:{{ shop.tel }}', 'value': '0' });\">電話で注文する</a>
  609.         <span class=\"button tel tel-lg\">電話番号 : {{ shop.tel }}</span>
  610.         {% endif %}
  611.       {% else %}
  612.         <span class=\"button tel out-of-service\">受付時間外です</span>
  613.       {% endif %}
  614.     </div>
  615.   </main>
  616. {% endblock %}
  617. {% block js %}
  618. {#  <script async defer src=\"https://maps.googleapis.com/maps/api/js?language=ja&region=JP&key=AIzaSyDxtlmq6i3t7yKHPlFdgvRLZh2dN4XnEok&callback=initMap\"></script>#}
  619. {#  <script>#}
  620. {#    function initMap() {#}
  621. {#      \$(function () {#}
  622. {#        var position = {lat: {{ shop.coordinate.latitude }}, lng: {{ shop.coordinate.longitude }} } ;#}
  623. {#        var map = new google.maps.Map(\$('#map-container').get(0), {#}
  624. {#          center: position,#}
  625. {#          zoom: 14,#}
  626. {#          disableDefaultUI: true#}
  627. {#        });#}
  628. {#        var marker = new google.maps.Marker({#}
  629. {#          position: position,#}
  630. {#          map: map,#}
  631. {#          draggable: false,#}
  632. {#          icon: {#}
  633. {#            url: '/img/map-marker.png',#}
  634. {#            scaledSize: new google.maps.Size(40, 40),#}
  635. {#            size: new google.maps.Size(80, 80),#}
  636. {#            origin: new google.maps.Point(0, 0),#}
  637. {#            anchor: new google.maps.Point(20, 38)#}
  638. {#          }#}
  639. {#        });#}
  640. {#      });#}
  641. {#    }#}
  642. {#  </script>#}
  643. {% endblock %}
  644. ""index/shop.html.twig""/home/webapp/www/test.uchideri.com/templates/index/shop.html.twig");
  645.     }
  646. }