var/cache/dev/twig/f5/f5b8f0fc06852171d072c1232ec23eb8b55d303533ef249cdbe6039de1902c50.php line 49

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. /* Product/list.twig */
  14. class __TwigTemplate_f7237b0665eb57e7a23c0e308a24f99446f7e70a73c954081379098979f00b63 extends \Eccube\Twig\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.             'javascript' => [$this'block_javascript'],
  24.             'main' => [$this'block_main'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 11
  30.         return "default_frame.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  37.         // line 13
  38.         $context["body_class"] = "product_page";
  39.         // line 11
  40.         $this->parent $this->loadTemplate("default_frame.twig""Product/list.twig"11);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.     }
  45.     // line 15
  46.     public function block_javascript($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  51.         // line 16
  52.         echo "    <script>
  53.         eccube.productsClassCategories = {
  54.             ";
  55.         // line 18
  56.         $context['_parent'] = $context;
  57.         $context['_seq'] = twig_ensure_traversable(($context["pagination"] ?? null));
  58.         $context['loop'] = [
  59.           'parent' => $context['_parent'],
  60.           'index0' => 0,
  61.           'index'  => 1,
  62.           'first'  => true,
  63.         ];
  64.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  65.             $length count($context['_seq']);
  66.             $context['loop']['revindex0'] = $length 1;
  67.             $context['loop']['revindex'] = $length;
  68.             $context['loop']['length'] = $length;
  69.             $context['loop']['last'] = === $length;
  70.         }
  71.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  72.             // line 19
  73.             echo "            \"";
  74.             echo twig_escape_filter($this->envtwig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse19), "js"), "html"nulltrue);
  75.             echo "\": ";
  76.             echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($context["Product"]);
  77.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse19) == false)) {
  78.                 echo ", ";
  79.             }
  80.             // line 20
  81.             echo "            ";
  82.             ++$context['loop']['index0'];
  83.             ++$context['loop']['index'];
  84.             $context['loop']['first'] = false;
  85.             if (isset($context['loop']['length'])) {
  86.                 --$context['loop']['revindex0'];
  87.                 --$context['loop']['revindex'];
  88.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  89.             }
  90.         }
  91.         $_parent $context['_parent'];
  92.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  93.         $context array_intersect_key($context$_parent) + $_parent;
  94.         // line 21
  95.         echo "        };
  96.         \$(function() {
  97.             // 表示件数を変更
  98.             \$('.disp-number').change(function() {
  99.                 var dispNumber = \$(this).val();
  100.                 \$('#disp_number').val(dispNumber);
  101.                 \$('#pageno').val(1);
  102.                 \$(\"#form1\").submit();
  103.             });
  104.             // 並び順を変更
  105.             \$('.order-by').change(function() {
  106.                 var orderBy = \$(this).val();
  107.                 \$('#orderby').val(orderBy);
  108.                 \$('#pageno').val(1);
  109.                 \$(\"#form1\").submit();
  110.             });
  111.             \$('.add-cart').on('click', function(e) {
  112.                 var \$form = \$(this).parents('li').find('form');
  113.                 // 個数フォームのチェック
  114.                 var \$quantity = \$form.parent().find('.quantity');
  115.                 if (\$quantity.val() < 1) {
  116.                     \$quantity[0].setCustomValidity('";
  117.         // line 47
  118.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html"nulltrue);
  119.         echo "');
  120.                     setTimeout(function() {
  121.                         loadingOverlay('hide');
  122.                     }, 100);
  123.                     return true;
  124.                 } else {
  125.                     \$quantity[0].setCustomValidity('');
  126.                 }
  127.                 e.preventDefault();
  128.                 \$.ajax({
  129.                     url: \$form.attr('action'),
  130.                     type: \$form.attr('method'),
  131.                     data: \$form.serialize(),
  132.                     dataType: 'json',
  133.                     beforeSend: function(xhr, settings) {
  134.                         // Buttonを無効にする
  135.                         \$('.add-cart').prop('disabled', true);
  136.                     }
  137.                 }).done(function(data) {
  138.                     // レスポンス内のメッセージをalertで表示
  139.                     \$.each(data.messages, function() {
  140.                         \$('#ec-modal-header').html(this);
  141.                     });
  142.                     \$('#ec-modal-checkbox').prop('checked', true);
  143.                     // カートブロックを更新する
  144.                     \$.ajax({
  145.                         url: '";
  146.         // line 75
  147.         echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("block_cart");
  148.         echo "',
  149.                         type: 'GET',
  150.                         dataType: 'html'
  151.                     }).done(function(html) {
  152.                         \$('.ec-headerRole__cart').html(html);
  153.                     });
  154.                 }).fail(function(data) {
  155.                     alert('";
  156.         // line 82
  157.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  158.         echo "');
  159.                 }).always(function(data) {
  160.                     // Buttonを有効にする
  161.                     \$('.add-cart').prop('disabled', false);
  162.                 });
  163.             });
  164.         });
  165.     </script>
  166. ";
  167.         
  168.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  169.     }
  170.     // line 94
  171.     public function block_main($context, array $blocks = [])
  172.     {
  173.         $macros $this->macros;
  174.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  175.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  176.         // line 95
  177.         echo "
  178. ";
  179.         // line 96
  180.         echo twig_include($this->env$context, (("Block/category" twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["search_form"] ?? null), "vars", [], "any"falsefalsefalse96), "value", [], "any"falsefalsefalse96), "category_id", [], "any"falsefalsefalse96), "id", [], "any"falsefalsefalse96)) . ".twig"), array(), truetrue);
  181.         echo "
  182.     ";
  183.         // line 98
  184.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["search_form"] ?? null), "category_id", [], "any"falsefalsefalse98), "vars", [], "any"falsefalsefalse98), "errors", [], "any"falsefalsefalse98)) > 0)) {
  185.             // line 99
  186.             echo "        <div class=\"ec-searchnavRole\">
  187.             <p class=\"errormsg text-danger\">";
  188.             // line 100
  189.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html"nulltrue);
  190.             echo "</p>
  191.         </div>
  192.     ";
  193.         } else {
  194.             // line 103
  195.             echo "        <div class=\"ec-searchnavRole\">
  196.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  197.                 ";
  198.             // line 105
  199.             $context['_parent'] = $context;
  200.             $context['_seq'] = twig_ensure_traversable(($context["search_form"] ?? null));
  201.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  202.                 // line 106
  203.                 echo "                    <input type=\"hidden\" id=\"";
  204.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse106), "id", [], "any"falsefalsefalse106), "html"nulltrue);
  205.                 echo "\"
  206.                            name=\"";
  207.                 // line 107
  208.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse107), "full_name", [], "any"falsefalsefalse107), "html"nulltrue);
  209.                 echo "\"
  210.                            ";
  211.                 // line 108
  212.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse108), "value", [], "any"falsefalsefalse108))) {
  213.                     echo "value=\"";
  214.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse108), "value", [], "any"falsefalsefalse108), "html"nulltrue);
  215.                     echo "\" ";
  216.                 }
  217.                 echo "/>
  218.                 ";
  219.             }
  220.             $_parent $context['_parent'];
  221.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  222.             $context array_intersect_key($context$_parent) + $_parent;
  223.             // line 110
  224.             echo "            </form>
  225.             <div class=\"ec-searchnavRole__topicpath\">
  226.                 <ol class=\"ec-topicpath\">
  227.                     <li class=\"ec-topicpath__item\"><a href=\"";
  228.             // line 113
  229.             echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("product_list");
  230.             echo "\">";
  231.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("全て"), "html"nulltrue);
  232.             echo "</a>
  233.                     </li>
  234.                     ";
  235.             // line 115
  236.             if ( !(null === ($context["Category"] ?? null))) {
  237.                 // line 116
  238.                 echo "                        ";
  239.                 $context['_parent'] = $context;
  240.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, ($context["Category"] ?? null), "path", [], "any"falsefalsefalse116));
  241.                 $context['loop'] = [
  242.                   'parent' => $context['_parent'],
  243.                   'index0' => 0,
  244.                   'index'  => 1,
  245.                   'first'  => true,
  246.                 ];
  247.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  248.                     $length count($context['_seq']);
  249.                     $context['loop']['revindex0'] = $length 1;
  250.                     $context['loop']['revindex'] = $length;
  251.                     $context['loop']['length'] = $length;
  252.                     $context['loop']['last'] = === $length;
  253.                 }
  254.                 foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  255.                     // line 117
  256.                     echo "                            <li class=\"ec-topicpath__divider\">|</li>
  257.                             <li class=\"ec-topicpath__item";
  258.                     // line 118
  259.                     if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse118)) {
  260.                         echo "--active";
  261.                     }
  262.                     echo "\"><a
  263.                                         href=\"";
  264.                     // line 119
  265.                     echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("product_list");
  266.                     echo "?category_id=";
  267.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsefalse119), "html"nulltrue);
  268.                     echo "\">";
  269.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Path"], "name", [], "any"falsefalsefalse119), "html"nulltrue);
  270.                     echo "</a>
  271.                             </li>
  272.                         ";
  273.                     ++$context['loop']['index0'];
  274.                     ++$context['loop']['index'];
  275.                     $context['loop']['first'] = false;
  276.                     if (isset($context['loop']['length'])) {
  277.                         --$context['loop']['revindex0'];
  278.                         --$context['loop']['revindex'];
  279.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  280.                     }
  281.                 }
  282.                 $_parent $context['_parent'];
  283.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  284.                 $context array_intersect_key($context$_parent) + $_parent;
  285.                 // line 122
  286.                 echo "                    ";
  287.             }
  288.             // line 123
  289.             echo "                    ";
  290.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["search_form"] ?? null), "vars", [], "any"falsefalsefalse123), "value", [], "any"falsefalsefalse123) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["search_form"] ?? null), "vars", [], "any"falsefalsefalse123), "value", [], "any"falsefalsefalse123), "name", [], "any"falsefalsefalse123))) {
  291.                 // line 124
  292.                 echo "                        <li class=\"ec-topicpath__divider\">|</li>
  293.                         <li class=\"ec-topicpath__item\">";
  294.                 // line 125
  295.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("「%name%」の検索結果", ["%name%" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["search_form"] ?? null), "vars", [], "any"falsefalsefalse125), "value", [], "any"falsefalsefalse125), "name", [], "any"falsefalsefalse125)]), "html"nulltrue);
  296.                 echo "</li>
  297.                     ";
  298.             }
  299.             // line 127
  300.             echo "                </ol>
  301.             </div>
  302.             <div class=\"ec-searchnavRole__infos\">
  303.                 <div class=\"ec-searchnavRole__counter\">
  304.                     ";
  305.             // line 131
  306.             if ((twig_get_attribute($this->env$this->source, ($context["pagination"] ?? null), "totalItemCount", [], "any"falsefalsefalse131) > 0)) {
  307.                 // line 132
  308.                 echo "                        ";
  309.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<span class=\"ec-font-bold\">%count%件</span><span>の商品が見つかりました</span>", ["%count%" => twig_get_attribute($this->env$this->source, ($context["pagination"] ?? null), "totalItemCount", [], "any"falsefalsefalse132)]);
  310.                 echo "
  311.                     ";
  312.             } else {
  313.                 // line 134
  314.                 echo "                        <span>";
  315.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html"nulltrue);
  316.                 echo "</span>
  317.                     ";
  318.             }
  319.             // line 136
  320.             echo "                </div>
  321.                 ";
  322.             // line 137
  323.             if ((twig_get_attribute($this->env$this->source, ($context["pagination"] ?? null), "totalItemCount", [], "any"falsefalsefalse137) > 0)) {
  324.                 // line 138
  325.                 echo "                    <div class=\"ec-searchnavRole__actions\">
  326.                         <div class=\"ec-select\">
  327.                             ";
  328.                 // line 140
  329.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["disp_number_form"] ?? null), 'widget', ["id" => """attr" => ["class" => "disp-number"]]);
  330.                 echo "
  331.                             ";
  332.                 // line 141
  333.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["order_by_form"] ?? null), 'widget', ["id" => """attr" => ["class" => "order-by"]]);
  334.                 echo "
  335.                         </div>
  336.                     </div>
  337.                 ";
  338.             }
  339.             // line 145
  340.             echo "            </div>
  341.         </div>
  342.         ";
  343.             // line 147
  344.             if ((twig_get_attribute($this->env$this->source, ($context["pagination"] ?? null), "totalItemCount", [], "any"falsefalsefalse147) > 0)) {
  345.                 // line 148
  346.                 echo "            <div class=\"ec-shelfRole\">
  347.                 <ul class=\"ec-shelfGrid\">
  348.                     ";
  349.                 // line 150
  350.                 $context['_parent'] = $context;
  351.                 $context['_seq'] = twig_ensure_traversable(($context["pagination"] ?? null));
  352.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  353.                     // line 151
  354.                     echo "                        <li class=\"ec-shelfGrid__item\">
  355.                             <a href=\"";
  356.                     // line 152
  357.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse152)]), "html"nulltrue);
  358.                     echo "\">
  359.                                 <p class=\"ec-shelfGrid__item-image\">
  360.                                     <img src=\"";
  361.                     // line 154
  362.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(twig_get_attribute($this->env$this->source$context["Product"], "main_list_image", [], "any"falsefalsefalse154)), "save_image"), "html"nulltrue);
  363.                     echo "\">
  364.                                 </p>
  365.                                 <p>";
  366.                     // line 156
  367.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse156), "html"nulltrue);
  368.                     echo "</p>
  369.                                 ";
  370.                     // line 157
  371.                     if (twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse157)) {
  372.                         // line 158
  373.                         echo "                                    <p>";
  374.                         echo nl2br(twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse158));
  375.                         echo "</p>
  376.                                 ";
  377.                     }
  378.                     // line 160
  379.                     echo "                                <p class=\"price02-default\">
  380.                                     ";
  381.                     // line 161
  382.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsefalse161)) {
  383.                         // line 162
  384.                         echo "                                        ";
  385.                         if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsefalse162) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsefalse162))) {
  386.                             // line 163
  387.                             echo "                                            ";
  388.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse163)), "html"nulltrue);
  389.                             echo "
  390.                                         ";
  391.                         } else {
  392.                             // line 165
  393.                             echo "                                            ";
  394.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse165)), "html"nulltrue);
  395.                             echo " ~ ";
  396.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsefalse165)), "html"nulltrue);
  397.                             echo "
  398.                                         ";
  399.                         }
  400.                         // line 167
  401.                         echo "                                    ";
  402.                     } else {
  403.                         // line 168
  404.                         echo "                                        ";
  405.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse168)), "html"nulltrue);
  406.                         echo "
  407.                                     ";
  408.                     }
  409.                     // line 170
  410.                     echo "                                </p>
  411.                             </a>
  412.                             ";
  413.                     // line 173
  414.                     if (twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsefalse173)) {
  415.                         // line 174
  416.                         echo "                                ";
  417.                         $context["form"] = (($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 = ($context["forms"] ?? null)) && is_array($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4) || $__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 instanceof ArrayAccess ? ($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4[twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse174)] ?? null) : null);
  418.                         // line 175
  419.                         echo "                                <form name=\"form";
  420.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse175), "html"nulltrue);
  421.                         echo "\" id=\"productForm";
  422.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse175), "html"nulltrue);
  423.                         echo "\" action=\"";
  424.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("product_add_cart", ["id" => twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse175)]), "html"nulltrue);
  425.                         echo "\" method=\"post\">
  426.                                     <div class=\"ec-productRole__actions\">
  427.                                         ";
  428.                         // line 177
  429.                         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse177)) {
  430.                             // line 178
  431.                             echo "                                            <div class=\"ec-select\">
  432.                                                 ";
  433.                             // line 179
  434.                             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"falsefalsefalse179), 'widget');
  435.                             echo "
  436.                                                 ";
  437.                             // line 180
  438.                             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"falsefalsefalse180), 'errors');
  439.                             echo "
  440.                                             </div>
  441.                                             ";
  442.                             // line 182
  443.                             if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse182)) {
  444.                                 // line 183
  445.                                 echo "                                                <div class=\"ec-select\">
  446.                                                     ";
  447.                                 // line 184
  448.                                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"falsefalsefalse184), 'widget');
  449.                                 echo "
  450.                                                     ";
  451.                                 // line 185
  452.                                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"falsefalsefalse185), 'errors');
  453.                                 echo "
  454.                                                 </div>
  455.                                             ";
  456.                             }
  457.                             // line 188
  458.                             echo "                                        ";
  459.                         }
  460.                         // line 189
  461.                         echo "                                        <div class=\"ec-numberInput\"><span>";
  462.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html"nulltrue);
  463.                         echo "</span>
  464.                                             ";
  465.                         // line 190
  466.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "quantity", [], "any"falsefalsefalse190), 'widget', ["attr" => ["class" => "quantity"]]);
  467.                         echo "
  468.                                             ";
  469.                         // line 191
  470.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "quantity", [], "any"falsefalsefalse191), 'errors');
  471.                         echo "
  472.                                         </div>
  473.                                     </div>
  474.                                     ";
  475.                         // line 194
  476.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'rest');
  477.                         echo "
  478.                                 </form>
  479.                                 <div class=\"ec-productRole__btn\">
  480.                                     <button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"";
  481.                         // line 197
  482.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse197), "html"nulltrue);
  483.                         echo "\" form=\"productForm";
  484.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse197), "html"nulltrue);
  485.                         echo "\">
  486.                                         ";
  487.                         // line 198
  488.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html"nulltrue);
  489.                         echo "
  490.                                     </button>
  491.                                 </div>
  492.                             ";
  493.                     } else {
  494.                         // line 202
  495.                         echo "                                <div class=\"ec-productRole__btn\">
  496.                                     <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  497.                                         ";
  498.                         // line 204
  499.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html"nulltrue);
  500.                         echo "
  501.                                     </button>
  502.                                 </div>
  503.                             ";
  504.                     }
  505.                     // line 208
  506.                     echo "                        </li>
  507.                     ";
  508.                 }
  509.                 $_parent $context['_parent'];
  510.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  511.                 $context array_intersect_key($context$_parent) + $_parent;
  512.                 // line 210
  513.                 echo "                </ul>
  514.             </div>
  515.             <div class=\"ec-modal\">
  516.                 <input type=\"checkbox\" id=\"ec-modal-checkbox\" class=\"checkbox\">
  517.                 <div class=\"ec-modal-overlay\">
  518.                     <label for=\"ec-modal-checkbox\" class=\"ec-modal-overlay-close\"></label>
  519.                     <div class=\"ec-modal-wrap\">
  520.                         <label for=\"ec-modal-checkbox\" class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  521.                 // line 217
  522.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  523.                 echo "\" alt=\"\"/></span></label>
  524.                         <div id=\"ec-modal-header\" class=\"text-center\">";
  525.                 // line 218
  526.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  527.                 echo "</div>
  528.                         <div class=\"ec-modal-box\">
  529.                             <div class=\"ec-role\">
  530.                                 <label for=\"ec-modal-checkbox\" class=\"ec-inlineBtn--cancel\">";
  531.                 // line 221
  532.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  533.                 echo "</label>
  534.                                 <a href=\"";
  535.                 // line 222
  536.                 echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("cart");
  537.                 echo "\" class=\"ec-inlineBtn--action\">";
  538.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  539.                 echo "</a>
  540.                             </div>
  541.                         </div>
  542.                     </div>
  543.                 </div>
  544.             </div>
  545.             <div class=\"ec-pagerRole\">
  546.                 ";
  547.                 // line 229
  548.                 $this->loadTemplate("pager.twig""Product/list.twig"229)->display(twig_array_merge($context, ["pages" => twig_get_attribute($this->env$this->source, ($context["pagination"] ?? null), "paginationData", [], "any"falsefalsefalse229)]));
  549.                 // line 230
  550.                 echo "            </div>
  551.         ";
  552.             }
  553.             // line 232
  554.             echo "    ";
  555.         }
  556.         
  557.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  558.     }
  559.     public function getTemplateName()
  560.     {
  561.         return "Product/list.twig";
  562.     }
  563.     public function isTraitable()
  564.     {
  565.         return false;
  566.     }
  567.     public function getDebugInfo()
  568.     {
  569.         return array (  577 => 232,  573 => 230,  571 => 229,  559 => 222,  555 => 221,  549 => 218,  545 => 217,  536 => 210,  529 => 208,  522 => 204,  518 => 202,  511 => 198,  505 => 197,  499 => 194,  493 => 191,  489 => 190,  484 => 189,  481 => 188,  475 => 185,  471 => 184,  468 => 183,  466 => 182,  461 => 180,  457 => 179,  454 => 178,  452 => 177,  442 => 175,  439 => 174,  437 => 173,  432 => 170,  426 => 168,  423 => 167,  415 => 165,  409 => 163,  406 => 162,  404 => 161,  401 => 160,  395 => 158,  393 => 157,  389 => 156,  384 => 154,  379 => 152,  376 => 151,  372 => 150,  368 => 148,  366 => 147,  362 => 145,  355 => 141,  351 => 140,  347 => 138,  345 => 137,  342 => 136,  336 => 134,  330 => 132,  328 => 131,  322 => 127,  317 => 125,  314 => 124,  311 => 123,  308 => 122,  287 => 119,  281 => 118,  278 => 117,  260 => 116,  258 => 115,  251 => 113,  246 => 110,  234 => 108,  230 => 107,  225 => 106,  221 => 105,  217 => 103,  211 => 100,  208 => 99,  206 => 98,  201 => 96,  198 => 95,  191 => 94,  175 => 82,  165 => 75,  134 => 47,  106 => 21,  92 => 20,  84 => 19,  67 => 18,  63 => 16,  56 => 15,  48 => 11,  46 => 13,  36 => 11,);
  570.     }
  571.     public function getSourceContext()
  572.     {
  573.         return new Source("""Product/list.twig""/home/toeitrading/animalhealth.jp/public_html/app/template/default/Product/list.twig");
  574.     }
  575. }