var/cache/dev/twig/60/60b35be0d9dc2c819e9fff25597f31f4.php line 39

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_03d45c455730eb36163646ecf6bcebbc 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_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_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_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.     }
  45.     // line 15
  46.     public function block_javascript($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_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').show()
  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.         \$('.ec-modal-wrap').on('click', function(e) {
  166.             // モーダル内の処理は外側にバブリングさせない
  167.             e.stopPropagation();
  168.         });
  169.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  170.             \$('.ec-modal').hide()
  171.         });
  172.     </script>
  173. ";
  174.         
  175.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  176.     }
  177.     // line 100
  178.     public function block_main($context, array $blocks = [])
  179.     {
  180.         $macros $this->macros;
  181.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  182.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  183.         // line 101
  184.         echo "    ";
  185.         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"falsefalsefalse101), "vars", [], "any"falsefalsefalse101), "errors", [], "any"falsefalsefalse101)) > 0)) {
  186.             // line 102
  187.             echo "        <div class=\"ec-searchnavRole\">
  188.             <p class=\"errormsg text-danger\">";
  189.             // line 103
  190.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html"nulltrue);
  191.             echo "</p>
  192.         </div>
  193.     ";
  194.         } else {
  195.             // line 106
  196.             echo "        <div class=\"ec-searchnavRole\">
  197.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  198.                 ";
  199.             // line 108
  200.             $context['_parent'] = $context;
  201.             $context['_seq'] = twig_ensure_traversable(($context["search_form"] ?? null));
  202.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  203.                 // line 109
  204.                 echo "                    <input type=\"hidden\" id=\"";
  205.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse109), "id", [], "any"falsefalsefalse109), "html"nulltrue);
  206.                 echo "\"
  207.                            name=\"";
  208.                 // line 110
  209.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse110), "full_name", [], "any"falsefalsefalse110), "html"nulltrue);
  210.                 echo "\"
  211.                            ";
  212.                 // line 111
  213.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse111), "value", [], "any"falsefalsefalse111))) {
  214.                     echo "value=\"";
  215.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse111), "value", [], "any"falsefalsefalse111), "html"nulltrue);
  216.                     echo "\" ";
  217.                 }
  218.                 echo "/>
  219.                 ";
  220.             }
  221.             $_parent $context['_parent'];
  222.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  223.             $context array_intersect_key($context$_parent) + $_parent;
  224.             // line 113
  225.             echo "            </form>
  226.             <div class=\"ec-searchnavRole__topicpath\">
  227.                 <ol class=\"ec-topicpath\">
  228.                     <li class=\"ec-topicpath__item\"><a href=\"";
  229.             // line 116
  230.             echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("product_list");
  231.             echo "\">";
  232.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("全て"), "html"nulltrue);
  233.             echo "</a>
  234.                     </li>
  235.                     ";
  236.             // line 118
  237.             if ( !(null === ($context["Category"] ?? null))) {
  238.                 // line 119
  239.                 echo "                        ";
  240.                 $context['_parent'] = $context;
  241.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, ($context["Category"] ?? null), "path", [], "any"falsefalsefalse119));
  242.                 $context['loop'] = [
  243.                   'parent' => $context['_parent'],
  244.                   'index0' => 0,
  245.                   'index'  => 1,
  246.                   'first'  => true,
  247.                 ];
  248.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  249.                     $length count($context['_seq']);
  250.                     $context['loop']['revindex0'] = $length 1;
  251.                     $context['loop']['revindex'] = $length;
  252.                     $context['loop']['length'] = $length;
  253.                     $context['loop']['last'] = === $length;
  254.                 }
  255.                 foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  256.                     // line 120
  257.                     echo "                            <li class=\"ec-topicpath__divider\">|</li>
  258.                             <li class=\"ec-topicpath__item";
  259.                     // line 121
  260.                     if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse121)) {
  261.                         echo "--active";
  262.                     }
  263.                     echo "\"><a
  264.                                         href=\"";
  265.                     // line 122
  266.                     echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("product_list");
  267.                     echo "?category_id=";
  268.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsefalse122), "html"nulltrue);
  269.                     echo "\">";
  270.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Path"], "name", [], "any"falsefalsefalse122), "html"nulltrue);
  271.                     echo "</a>
  272.                             </li>
  273.                         ";
  274.                     ++$context['loop']['index0'];
  275.                     ++$context['loop']['index'];
  276.                     $context['loop']['first'] = false;
  277.                     if (isset($context['loop']['length'])) {
  278.                         --$context['loop']['revindex0'];
  279.                         --$context['loop']['revindex'];
  280.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  281.                     }
  282.                 }
  283.                 $_parent $context['_parent'];
  284.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  285.                 $context array_intersect_key($context$_parent) + $_parent;
  286.                 // line 125
  287.                 echo "                    ";
  288.             }
  289.             // line 126
  290.             echo "                    ";
  291.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["search_form"] ?? null), "vars", [], "any"falsefalsefalse126), "value", [], "any"falsefalsefalse126) && 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"falsefalsefalse126), "value", [], "any"falsefalsefalse126), "name", [], "any"falsefalsefalse126))) {
  292.                 // line 127
  293.                 echo "                        <li class=\"ec-topicpath__divider\">|</li>
  294.                         <li class=\"ec-topicpath__item\">";
  295.                 // line 128
  296.                 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"falsefalsefalse128), "value", [], "any"falsefalsefalse128), "name", [], "any"falsefalsefalse128)]), "html"nulltrue);
  297.                 echo "</li>
  298.                     ";
  299.             }
  300.             // line 130
  301.             echo "                </ol>
  302.             </div>
  303.             <div class=\"ec-searchnavRole__infos\">
  304.                 <div class=\"ec-searchnavRole__counter\">
  305.                     ";
  306.             // line 134
  307.             if ((twig_get_attribute($this->env$this->source, ($context["pagination"] ?? null), "totalItemCount", [], "any"falsefalsefalse134) > 0)) {
  308.                 // line 135
  309.                 echo "                        ";
  310.                 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"falsefalsefalse135)]);
  311.                 echo "
  312.                     ";
  313.             } else {
  314.                 // line 137
  315.                 echo "                        <span>";
  316.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html"nulltrue);
  317.                 echo "</span>
  318.                     ";
  319.             }
  320.             // line 139
  321.             echo "                </div>
  322.                 ";
  323.             // line 140
  324.             if ((twig_get_attribute($this->env$this->source, ($context["pagination"] ?? null), "totalItemCount", [], "any"falsefalsefalse140) > 0)) {
  325.                 // line 141
  326.                 echo "                    <div class=\"ec-searchnavRole__actions\">
  327.                         <div class=\"ec-select\">
  328.                             ";
  329.                 // line 143
  330.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, ($context["search_form"] ?? null), "disp_number", [], "any"falsefalsefalse143), 'widget', ["id" => """attr" => ["class" => "disp-number"]]);
  331.                 echo "
  332.                             ";
  333.                 // line 144
  334.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, ($context["search_form"] ?? null), "orderby", [], "any"falsefalsefalse144), 'widget', ["id" => """attr" => ["class" => "order-by"]]);
  335.                 echo "
  336.                         </div>
  337.                     </div>
  338.                 ";
  339.             }
  340.             // line 148
  341.             echo "            </div>
  342.         </div>
  343.         ";
  344.             // line 150
  345.             if ((twig_get_attribute($this->env$this->source, ($context["pagination"] ?? null), "totalItemCount", [], "any"falsefalsefalse150) > 0)) {
  346.                 // line 151
  347.                 echo "            <div class=\"ec-shelfRole\">
  348.                 <ul class=\"ec-shelfGrid\">
  349.                     ";
  350.                 // line 153
  351.                 $context['_parent'] = $context;
  352.                 $context['_seq'] = twig_ensure_traversable(($context["pagination"] ?? null));
  353.                 $context['loop'] = [
  354.                   'parent' => $context['_parent'],
  355.                   'index0' => 0,
  356.                   'index'  => 1,
  357.                   'first'  => true,
  358.                 ];
  359.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  360.                     $length count($context['_seq']);
  361.                     $context['loop']['revindex0'] = $length 1;
  362.                     $context['loop']['revindex'] = $length;
  363.                     $context['loop']['length'] = $length;
  364.                     $context['loop']['last'] = === $length;
  365.                 }
  366.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  367.                     // line 154
  368.                     echo "                        <li class=\"ec-shelfGrid__item\">
  369.                             <a href=\"";
  370.                     // line 155
  371.                     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"falsefalsefalse155)]), "html"nulltrue);
  372.                     echo "\">
  373.                                 <p class=\"ec-shelfGrid__item-image\">
  374.                                     <img src=\"";
  375.                     // line 157
  376.                     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"falsefalsefalse157)), "save_image"), "html"nulltrue);
  377.                     echo "\" alt=\"";
  378.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse157), "html"nulltrue);
  379.                     echo "\" ";
  380.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse157) > 5)) {
  381.                         echo " loading=\"lazy\"";
  382.                     }
  383.                     echo ">
  384.                                 </p>
  385.                                 <p>";
  386.                     // line 159
  387.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse159), "html"nulltrue);
  388.                     echo "</p>
  389.                                 ";
  390.                     // line 160
  391.                     if (twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse160)) {
  392.                         // line 161
  393.                         echo "                                    <p>";
  394.                         echo twig_nl2br(twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse161));
  395.                         echo "</p>
  396.                                 ";
  397.                     }
  398.                     // line 163
  399.                     echo "                                <p class=\"price02-default\">
  400.                                     ";
  401.                     // line 164
  402.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsefalse164)) {
  403.                         // line 165
  404.                         echo "                                        ";
  405.                         if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsefalse165) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsefalse165))) {
  406.                             // line 166
  407.                             echo "                                            ";
  408.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse166)), "html"nulltrue);
  409.                             echo "
  410.                                         ";
  411.                         } else {
  412.                             // line 168
  413.                             echo "                                            ";
  414.                             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);
  415.                             echo " ~ ";
  416.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsefalse168)), "html"nulltrue);
  417.                             echo "
  418.                                         ";
  419.                         }
  420.                         // line 170
  421.                         echo "                                    ";
  422.                     } else {
  423.                         // line 171
  424.                         echo "                                        ";
  425.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse171)), "html"nulltrue);
  426.                         echo "
  427.                                     ";
  428.                     }
  429.                     // line 173
  430.                     echo "                                </p>
  431.                             </a>
  432.                             ";
  433.                     // line 176
  434.                     if (twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsefalse176)) {
  435.                         // line 177
  436.                         echo "                                ";
  437.                         $context["form"] = (($__internal_compile_0 = ($context["forms"] ?? null)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse177)] ?? null) : null);
  438.                         // line 178
  439.                         echo "                                <form name=\"form";
  440.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse178), "html"nulltrue);
  441.                         echo "\" id=\"productForm";
  442.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse178), "html"nulltrue);
  443.                         echo "\" action=\"";
  444.                         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"falsefalsefalse178)]), "html"nulltrue);
  445.                         echo "\" method=\"post\">
  446.                                     <div class=\"ec-productRole__actions\">
  447.                                         ";
  448.                         // line 180
  449.                         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse180)) {
  450.                             // line 181
  451.                             echo "                                            <div class=\"ec-select\">
  452.                                                 ";
  453.                             // line 182
  454.                             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"falsefalsefalse182), 'widget');
  455.                             echo "
  456.                                                 ";
  457.                             // line 183
  458.                             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"falsefalsefalse183), 'errors');
  459.                             echo "
  460.                                             </div>
  461.                                             ";
  462.                             // line 185
  463.                             if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse185)) {
  464.                                 // line 186
  465.                                 echo "                                                <div class=\"ec-select\">
  466.                                                     ";
  467.                                 // line 187
  468.                                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"falsefalsefalse187), 'widget');
  469.                                 echo "
  470.                                                     ";
  471.                                 // line 188
  472.                                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"falsefalsefalse188), 'errors');
  473.                                 echo "
  474.                                                 </div>
  475.                                             ";
  476.                             }
  477.                             // line 191
  478.                             echo "                                        ";
  479.                         }
  480.                         // line 192
  481.                         echo "                                        <div class=\"ec-numberInput\"><span>";
  482.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html"nulltrue);
  483.                         echo "</span>
  484.                                             ";
  485.                         // line 193
  486.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "quantity", [], "any"falsefalsefalse193), 'widget', ["attr" => ["class" => "quantity"]]);
  487.                         echo "
  488.                                             ";
  489.                         // line 194
  490.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "quantity", [], "any"falsefalsefalse194), 'errors');
  491.                         echo "
  492.                                         </div>
  493.                                     </div>
  494.                                     ";
  495.                         // line 197
  496.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'rest');
  497.                         echo "
  498.                                 </form>
  499.                                 <div class=\"ec-productRole__btn\">
  500.                                     <button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"";
  501.                         // line 200
  502.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse200), "html"nulltrue);
  503.                         echo "\" form=\"productForm";
  504.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse200), "html"nulltrue);
  505.                         echo "\">
  506.                                         ";
  507.                         // line 201
  508.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html"nulltrue);
  509.                         echo "
  510.                                     </button>
  511.                                 </div>
  512.                             ";
  513.                     } else {
  514.                         // line 205
  515.                         echo "                                <div class=\"ec-productRole__btn\">
  516.                                     <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  517.                                         ";
  518.                         // line 207
  519.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html"nulltrue);
  520.                         echo "
  521.                                     </button>
  522.                                 </div>
  523.                             ";
  524.                     }
  525.                     // line 211
  526.                     echo "                        </li>
  527.                     ";
  528.                     ++$context['loop']['index0'];
  529.                     ++$context['loop']['index'];
  530.                     $context['loop']['first'] = false;
  531.                     if (isset($context['loop']['length'])) {
  532.                         --$context['loop']['revindex0'];
  533.                         --$context['loop']['revindex'];
  534.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  535.                     }
  536.                 }
  537.                 $_parent $context['_parent'];
  538.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  539.                 $context array_intersect_key($context$_parent) + $_parent;
  540.                 // line 213
  541.                 echo "                </ul>
  542.             </div>
  543.             <div class=\"ec-modal\">
  544.                 <div class=\"ec-modal-overlay\">
  545.                     <div class=\"ec-modal-wrap\">
  546.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  547.                 // line 218
  548.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  549.                 echo "\" alt=\"\"/></span></span>
  550.                         <div id=\"ec-modal-header\" class=\"text-center\">";
  551.                 // line 219
  552.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  553.                 echo "</div>
  554.                         <div class=\"ec-modal-box\">
  555.                             <div class=\"ec-role\">
  556.                                 <span class=\"ec-inlineBtn--cancel\">";
  557.                 // line 222
  558.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  559.                 echo "</span>
  560.                                 <a href=\"";
  561.                 // line 223
  562.                 echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("cart");
  563.                 echo "\" class=\"ec-inlineBtn--action\">";
  564.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  565.                 echo "</a>
  566.                             </div>
  567.                         </div>
  568.                     </div>
  569.                 </div>
  570.             </div>
  571.             <div class=\"ec-pagerRole\">
  572.                 ";
  573.                 // line 230
  574.                 $this->loadTemplate("pager.twig""Product/list.twig"230)->display(twig_array_merge($context, ["pages" => twig_get_attribute($this->env$this->source, ($context["pagination"] ?? null), "paginationData", [], "any"falsefalsefalse230)]));
  575.                 // line 231
  576.                 echo "            </div>
  577.         ";
  578.             }
  579.             // line 233
  580.             echo "    ";
  581.         }
  582.         
  583.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  584.     }
  585.     public function getTemplateName()
  586.     {
  587.         return "Product/list.twig";
  588.     }
  589.     public function isTraitable()
  590.     {
  591.         return false;
  592.     }
  593.     public function getDebugInfo()
  594.     {
  595.         return array (  603 => 233,  599 => 231,  597 => 230,  585 => 223,  581 => 222,  575 => 219,  571 => 218,  564 => 213,  549 => 211,  542 => 207,  538 => 205,  531 => 201,  525 => 200,  519 => 197,  513 => 194,  509 => 193,  504 => 192,  501 => 191,  495 => 188,  491 => 187,  488 => 186,  486 => 185,  481 => 183,  477 => 182,  474 => 181,  472 => 180,  462 => 178,  459 => 177,  457 => 176,  452 => 173,  446 => 171,  443 => 170,  435 => 168,  429 => 166,  426 => 165,  424 => 164,  421 => 163,  415 => 161,  413 => 160,  409 => 159,  398 => 157,  393 => 155,  390 => 154,  373 => 153,  369 => 151,  367 => 150,  363 => 148,  356 => 144,  352 => 143,  348 => 141,  346 => 140,  343 => 139,  337 => 137,  331 => 135,  329 => 134,  323 => 130,  318 => 128,  315 => 127,  312 => 126,  309 => 125,  288 => 122,  282 => 121,  279 => 120,  261 => 119,  259 => 118,  252 => 116,  247 => 113,  235 => 111,  231 => 110,  226 => 109,  222 => 108,  218 => 106,  212 => 103,  209 => 102,  206 => 101,  199 => 100,  175 => 82,  165 => 75,  134 => 47,  106 => 21,  92 => 20,  84 => 19,  67 => 18,  63 => 16,  56 => 15,  48 => 11,  46 => 13,  36 => 11,);
  596.     }
  597.     public function getSourceContext()
  598.     {
  599.         return new Source("""Product/list.twig""/home/logistics360/www/shop/src/Eccube/Resource/template/default/Product/list.twig");
  600.     }
  601. }