<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* index/shop.html.twig */
class __TwigTemplate_3106cb873b099dd77b5b886594817e6e53bb027e9e2ae38887deab68d6c2aa34 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'page_name' => [$this, 'block_page_name'],
'title' => [$this, 'block_title'],
'header_title' => [$this, 'block_header_title'],
'stylesheet' => [$this, 'block_stylesheet'],
'main' => [$this, 'block_main'],
'js' => [$this, 'block_js'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "index/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "index/shop.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "index/shop.html.twig"));
$this->parent = $this->loadTemplate("index/layout.html.twig", "index/shop.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_page_name($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_name"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_name"));
echo "shop";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo twig_escape_filter($this->env, 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.', 5, $this->source); })()), "name", [], "any", false, false, false, 5), "html", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 6
public function block_header_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_title"));
echo twig_escape_filter($this->env, 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.', 6, $this->source); })()), "name", [], "any", false, false, false, 6), "html", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 8
public function block_stylesheet($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 9
echo " <link rel=\"stylesheet\" href=\"/css/detail.css\">
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 12
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 13
echo " <main>
<section class=\"details_wr\">
";
// line 15
$context["shopImage"] = "/img/no-image.jpeg";
// line 16
echo " ";
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", false, false, false, 16)) {
// line 17
echo " ";
$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", false, false, false, 17);
// line 18
echo " ";
}
// line 19
echo " <img class=\"shop_img\" src=\"";
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", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, 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.', 19, $this->source); })()), "name", [], "any", false, false, false, 19), "html", null, true);
echo "\">
<div class=\"shop_name_wr\">
<div>
<h1>";
// line 22
echo twig_escape_filter($this->env, 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.', 22, $this->source); })()), "name", [], "any", false, false, false, 22), "html", null, true);
echo "</h1>
<h2>";
// line 23
echo twig_escape_filter($this->env, twig_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", false, false, false, 23), " / "), "html", null, true);
echo "</h2>
</div>
";
// line 33
echo "
";
// line 35
echo " </div>
<ul class=\"provide\">
";
// line 37
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", false, false, false, 37)) {
echo "<li>テイクアウト</li>";
}
// line 38
echo " ";
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", false, false, false, 38)) {
echo "<li>デリバリー</li>";
}
// line 39
echo " </ul>
<ul class=\"time\">
<li class=\"indication\">提供時間目安 <span>";
// line 41
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["shop"] ?? null), "estimatedMinutes", [], "any", true, true, false, 41)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["shop"] ?? null), "estimatedMinutes", [], "any", false, false, false, 41), "-")) : ("-")), "html", null, true);
echo "分</span></li>
<li class=\"start\">";
// line 42
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, 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.', 42, $this->source); })()), "hourFrom", [], "any", false, false, false, 42), "H:i"), "html", null, true);
echo "〜";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, 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.', 42, $this->source); })()), "hourTo", [], "any", false, false, false, 42), "H:i"), "html", null, true);
echo "受付可</li>
</ul>
<p class=\"add\">〒";
// line 44
echo twig_escape_filter($this->env, 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.', 44, $this->source); })()), "zipcode", [], "any", false, false, false, 44), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, 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.', 44, $this->source); })()), "address", [], "any", false, false, false, 44), "html", null, true);
if (twig_get_attribute($this->env, $this->source, 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.', 44, $this->source); })()), "coordinate", [], "any", false, false, false, 44), "latitude", [], "any", false, false, false, 44)) {
echo " /
<a class=\"link\" href=\"https://www.google.co.jp/maps/search/?api=1&query=";
// line 45
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 45, $this->source); })()), "coordinate", [], "any", false, false, false, 45), "latitude", [], "any", false, false, false, 45), "html", null, true);
echo ",";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 45, $this->source); })()), "coordinate", [], "any", false, false, false, 45), "longitude", [], "any", false, false, false, 45), "html", null, true);
echo "\" target=\"_blank\" rel=\"noopener\">google map</a>
";
}
// line 47
echo " </p>
";
// line 49
echo " ";
// line 50
echo " ";
// line 51
echo " </section>
<section class=\"menu\">
";
// line 55
echo "
";
// line 56
$context['_parent'] = $context;
$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", false, false, false, 56));
foreach ($context['_seq'] as $context["_key"] => $context["group"]) {
// line 57
echo " <div class=\"categories\">
<h2 class=\"title\">";
// line 58
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["group"], "name", [], "any", false, false, false, 58), "html", null, true);
echo "</h2>
<!--food-->
";
// line 61
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["group"], "menus", [], "any", false, false, false, 61));
foreach ($context['_seq'] as $context["_key"] => $context["menu"]) {
// line 62
echo " <div class=\"food_wr clearfix\">
<ul class=\"text_wr\">
<li class=\"food_name\"><a href=\"";
// line 64
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", false, false, false, 64)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["menu"], "name", [], "any", false, false, false, 64), "html", null, true);
echo "</a></li>
<li class=\"intro\">";
// line 65
echo nl2br(twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["menu"], "description", [], "any", false, false, false, 65), "html", null, true));
echo "</li>
<li class=\"indication\">提供目安時間 : <span>";
// line 66
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["menu"], "minutes", [], "any", true, true, false, 66)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["menu"], "minutes", [], "any", false, false, false, 66), "-")) : ("-")), "html", null, true);
echo "分</span></li>
<li class=\"price\">
";
// line 68
if ((twig_get_attribute($this->env, $this->source, $context["menu"], "discountedPrice", [], "any", false, false, false, 68) === null)) {
// line 69
echo " ";
// line 70
echo " ¥ ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["menu"], "price", [], "any", false, false, false, 70)), "html", null, true);
echo "
";
} else {
// line 72
echo " ";
// line 73
echo " <span class=\"before\">¥ ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["menu"], "price", [], "any", false, false, false, 73)), "html", null, true);
echo "</span>⇒<span class=\"after\">¥ ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["menu"], "discountedPrice", [], "any", false, false, false, 73)), "html", null, true);
echo "</span>
";
}
// line 75
echo " </li>
</ul>
<a href=\"";
// line 77
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", false, false, false, 77)]), "html", null, true);
echo "\">
<div class=\"img_wr\" style=\"background-image:url(";
// line 78
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["menu"], "image", [], "any", true, true, false, 78)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["menu"], "image", [], "any", false, false, false, 78), "/img/no-image.jpeg")) : ("/img/no-image.jpeg")), "html", null, true);
echo ");border-radius: 5px;\">
";
// line 80
echo " </div>
</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['menu'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 84
echo " <!--/food-->
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['group'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 87
echo "
<div class=\"categories\">
<h3></h3>
<!--food-->
";
// line 92
$context['_parent'] = $context;
$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", false, false, false, 92));
foreach ($context['_seq'] as $context["_key"] => $context["menu"]) {
// line 93
echo " <div class=\"food_wr clearfix\">
<ul class=\"text_wr\">
<li class=\"food_name\"><a href=\"";
// line 95
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", false, false, false, 95)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["menu"], "name", [], "any", false, false, false, 95), "html", null, true);
echo "</a></li>
<li class=\"intro\">";
// line 96
echo nl2br(twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["menu"], "description", [], "any", false, false, false, 96), "html", null, true));
echo "</li>
<li class=\"indication\">提供目安時間 : <span>";
// line 97
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["menu"], "minutes", [], "any", true, true, false, 97)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["menu"], "minutes", [], "any", false, false, false, 97), "-")) : ("-")), "html", null, true);
echo "分</span></li>
<li class=\"price\">
";
// line 99
if ((twig_get_attribute($this->env, $this->source, $context["menu"], "discountedPrice", [], "any", false, false, false, 99) === null)) {
// line 101
echo " ¥ ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["menu"], "price", [], "any", false, false, false, 101)), "html", null, true);
echo "
";
} else {
// line 104
echo " <span class=\"before\">¥ ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["menu"], "price", [], "any", false, false, false, 104)), "html", null, true);
echo "</span>⇒<span class=\"after\">¥ ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["menu"], "price", [], "any", false, false, false, 104)), "html", null, true);
echo "</span>
";
}
// line 106
echo " </li>
</ul>
<a href=\"";
// line 108
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", false, false, false, 108)]), "html", null, true);
echo "\">
<div class=\"img_wr\" style=\"background-image:url(";
// line 109
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["menu"], "image", [], "any", false, false, false, 109), "html", null, true);
echo ");border-radius: 5px;\">
";
// line 111
echo " </div>
</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['menu'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 115
echo " <!--/food-->
</div>
</section>
<div class=\"caution\">
<h2 class=\"title\">ご注文時の注意事項</h2>
<div>
";
// line 122
echo nl2br(twig_escape_filter($this->env, 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.', 122, $this->source); })()), "notice", [], "any", false, false, false, 122), "html", null, true));
echo "
</div>
";
// line 124
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, 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.', 124, $this->source); })()), "shopPlan", [], "any", false, false, false, 124), "slug", [], "any", false, false, false, 124), twig_constant("App\\Entity\\ShopPlan::SLUG_PAID")))) {
// line 125
echo " <div class=\"law\">
<a href=\"";
// line 126
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", false, false, false, 126)]), "html", null, true);
echo "\">特定商取引法に基づく表記</a>
</div>
";
}
// line 129
echo " </div>
<div class=\"button_area\">
";
// line 133
echo " ";
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", false, false, false, 133)) {
// line 134
echo " ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, 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.', 134, $this->source); })()), "shopPlan", [], "any", false, false, false, 134), "slug", [], "any", false, false, false, 134), twig_constant("App\\Entity\\ShopPlan::SLUG_PAID")))) {
// line 135
echo " ";
$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", false, false, false, 135));
// line 136
echo " ";
if ((isset($context["cart"]) || array_key_exists("cart", $context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.', 136, $this->source); })())) {
// line 137
echo " ";
if (twig_length_filter($this->env, twig_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", false, false, false, 137))) {
// line 138
echo " <a class=\"button tel \" href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("cart_index");
echo "\" >カートを見る</a>
";
// line 140
echo " ";
}
// line 141
echo " ";
}
// line 142
echo " ";
} else {
// line 143
echo " <a class=\"button tel tel-xs\" href=\"tel:";
echo twig_escape_filter($this->env, 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.', 143, $this->source); })()), "tel", [], "any", false, false, false, 143), "html", null, true);
echo "\" onClick=\"gtag('event', 'tap', {'event_category': 'tel', 'event_label': 'order_";
echo twig_escape_filter($this->env, 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.', 143, $this->source); })()), "name", [], "any", false, false, false, 143), "html", null, true);
echo ":";
echo twig_escape_filter($this->env, 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.', 143, $this->source); })()), "tel", [], "any", false, false, false, 143), "html", null, true);
echo "', 'value': '0' });\">電話で注文する</a>
<span class=\"button tel tel-lg\">電話番号 : ";
// line 144
echo twig_escape_filter($this->env, 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.', 144, $this->source); })()), "tel", [], "any", false, false, false, 144), "html", null, true);
echo "</span>
";
}
// line 146
echo " ";
} else {
// line 147
echo " <span class=\"button tel out-of-service\">受付時間外です</span>
";
}
// line 149
echo " </div>
</main>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 154
public function block_js($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "js"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "js"));
// line 165
echo "
";
// line 179
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "index/shop.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'index/layout.html.twig' %}
{% block page_name %}shop{% endblock %}
{% block title %}{{ shop.name }}{% endblock %}
{% block header_title %}{{ shop.name }}{% endblock %}
{% block stylesheet %}
<link rel=\"stylesheet\" href=\"/css/detail.css\">
{% endblock %}
{% block main %}
<main>
<section class=\"details_wr\">
{% set shopImage = '/img/no-image.jpeg' %}
{% if shop.image %}
{% set shopImage = shop.image %}
{% endif %}
<img class=\"shop_img\" src=\"{{ shopImage }}\" alt=\"{{ shop.name }}\">
<div class=\"shop_name_wr\">
<div>
<h1>{{ shop.name }}</h1>
<h2>{{ shop.categories|join(' / ') }}</h2>
</div>
{# <div class=\"review_wr\">#}
{# <div class=\"review_num\">#}
{# 4.5#}
{# </div>#}
{# <div class=\"review_text\">#}
{# レビュー数<br>#}
{# (222)#}
{# </div>#}
{# </div>#}
</div>
<ul class=\"provide\">
{% if shop.toGo %}<li>テイクアウト</li>{% endif %}
{% if shop.delivery %}<li>デリバリー</li>{% endif %}
</ul>
<ul class=\"time\">
<li class=\"indication\">提供時間目安 <span>{{ shop.estimatedMinutes|default('-') }}分</span></li>
<li class=\"start\">{{ shop.hourFrom|date('H:i') }}〜{{ shop.hourTo|date('H:i') }}受付可</li>
</ul>
<p class=\"add\">〒{{ shop.zipcode }} {{ shop.address }}{% if shop.coordinate.latitude %} /
<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>
{% endif %}
</p>
{#<div class=\"map\">#}
{#<div id=\"map-container\" style=\"height: 150px;width: 100%;\"></div>#}
{#</div>#}
</section>
<section class=\"menu\">
{# <h2>メニュー</h2>#}
{% for group in shop.menuGroups %}
<div class=\"categories\">
<h2 class=\"title\">{{ group.name }}</h2>
<!--food-->
{% for menu in group.menus %}
<div class=\"food_wr clearfix\">
<ul class=\"text_wr\">
<li class=\"food_name\"><a href=\"{{ path('shop_menu_show', {id: menu.id}) }}\">{{ menu.name }}</a></li>
<li class=\"intro\">{{ menu.description|nl2br }}</li>
<li class=\"indication\">提供目安時間 : <span>{{ menu.minutes|default('-') }}分</span></li>
<li class=\"price\">
{% if menu.discountedPrice is same as (null) %}
{# 割引なし#}
¥ {{ menu.price|number_format }}
{% else %}
{# 割引あり#}
<span class=\"before\">¥ {{ menu.price|number_format }}</span>⇒<span class=\"after\">¥ {{ menu.discountedPrice|number_format }}</span>
{% endif %}
</li>
</ul>
<a href=\"{{ path('shop_menu_show', {id: menu.id}) }}\">
<div class=\"img_wr\" style=\"background-image:url({{ menu.image|default('/img/no-image.jpeg') }});border-radius: 5px;\">
{# <img src=\"{{ menu.image }}\" alt=\"{{ menu.name }}\">#}
</div>
</a>
</div>
{% endfor %}
<!--/food-->
</div>
{% endfor %}
<div class=\"categories\">
<h3></h3>
<!--food-->
{% for menu in shop.ungroupedMenus %}
<div class=\"food_wr clearfix\">
<ul class=\"text_wr\">
<li class=\"food_name\"><a href=\"{{ path('shop_menu_show', {id: menu.id}) }}\">{{ menu.name }}</a></li>
<li class=\"intro\">{{ menu.description|nl2br }}</li>
<li class=\"indication\">提供目安時間 : <span>{{ menu.minutes|default('-') }}分</span></li>
<li class=\"price\">
{% if menu.discountedPrice is same as (null) %}
{# 割引なし#}
¥ {{ menu.price|number_format }}
{% else %}
{# 割引あり#}
<span class=\"before\">¥ {{ menu.price|number_format }}</span>⇒<span class=\"after\">¥ {{ menu.price|number_format }}</span>
{% endif %}
</li>
</ul>
<a href=\"{{ path('shop_menu_show', {id: menu.id}) }}\">
<div class=\"img_wr\" style=\"background-image:url({{ menu.image }});border-radius: 5px;\">
{# <img src=\"{{ menu.image }}\" alt=\"{{ menu.name }}\">#}
</div>
</a>
</div>
{% endfor %}
<!--/food-->
</div>
</section>
<div class=\"caution\">
<h2 class=\"title\">ご注文時の注意事項</h2>
<div>
{{ shop.notice|nl2br }}
</div>
{% if shop.shopPlan.slug == constant('App\\\\Entity\\\\ShopPlan::SLUG_PAID') %}
<div class=\"law\">
<a href=\"{{ path('shop_law', {id: shop.id}) }}\">特定商取引法に基づく表記</a>
</div>
{% endif %}
</div>
<div class=\"button_area\">
{# <a href=\"#\" class=\"button\">カートを見る</a>#}
{% if shop.appAcceptable %}
{% if shop.shopPlan.slug == constant('App\\\\Entity\\\\ShopPlan::SLUG_PAID') %}
{% set cart = get_cart(app.user) %}
{% if cart %}
{% if cart.cartItems | length %}
<a class=\"button tel \" href=\"{{ path('cart_index') }}\" >カートを見る</a>
{# <span class=\"button tel tel-lg\">カートを見る</span>#}
{% endif %}
{% endif %}
{% else %}
<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>
<span class=\"button tel tel-lg\">電話番号 : {{ shop.tel }}</span>
{% endif %}
{% else %}
<span class=\"button tel out-of-service\">受付時間外です</span>
{% endif %}
</div>
</main>
{% endblock %}
{% block js %}
{# <script async defer src=\"https://maps.googleapis.com/maps/api/js?language=ja®ion=JP&key=AIzaSyDxtlmq6i3t7yKHPlFdgvRLZh2dN4XnEok&callback=initMap\"></script>#}
{# <script>#}
{# function initMap() {#}
{# \$(function () {#}
{# var position = {lat: {{ shop.coordinate.latitude }}, lng: {{ shop.coordinate.longitude }} } ;#}
{# var map = new google.maps.Map(\$('#map-container').get(0), {#}
{# center: position,#}
{# zoom: 14,#}
{# disableDefaultUI: true#}
{# });#}
{# var marker = new google.maps.Marker({#}
{# position: position,#}
{# map: map,#}
{# draggable: false,#}
{# icon: {#}
{# url: '/img/map-marker.png',#}
{# scaledSize: new google.maps.Size(40, 40),#}
{# size: new google.maps.Size(80, 80),#}
{# origin: new google.maps.Point(0, 0),#}
{# anchor: new google.maps.Point(20, 38)#}
{# }#}
{# });#}
{# });#}
{# }#}
{# </script>#}
{% endblock %}
", "index/shop.html.twig", "/home/webapp/www/test.uchideri.com/templates/index/shop.html.twig");
}
}