var/cache/dev/twig/20/2053f3de90cb575afafcff9687a9b7dd.php line 35

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. /* Item/NewCartArea/cart_matrix.twig */
  14. class __TwigTemplate_b386441d8f9b8bbe64c96decb1d77a9b 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Item/NewCartArea/cart_matrix.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Item/NewCartArea/cart_matrix.twig"));
  35.         // line 1
  36.         echo "<style>
  37.     .gray {
  38.         background: #dddddd;
  39.     }
  40.  </style>   
  41. ";
  42.         // line 6
  43.         $context["formId"] = ("form-" $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["loop"]) || array_key_exists("loop"$context) ? $context["loop"] : (function () { throw new RuntimeError('Variable "loop" does not exist.'6$this->source); })()), "index0", [], "any"falsefalsetrue6), 6$this->source));
  44.         // line 7
  45.         $context["anchor"] = ("goods-" $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'7$this->source); })()), "goods", [], "any"falsefalsetrue7), "goodsId", [], "any"falsefalsetrue7), 7$this->source));
  46.         // line 8
  47.         if ((isset($context["parent"]) || array_key_exists("parent"$context) ? $context["parent"] : (function () { throw new RuntimeError('Variable "parent" does not exist.'8$this->source); })())) {
  48.             // line 9
  49.             echo "<input type=\"hidden\" name=\"returnUrl\" value=\"";
  50.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("item/detail", ["id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["parent"]) || array_key_exists("parent"$context) ? $context["parent"] : (function () { throw new RuntimeError('Variable "parent" does not exist.'9$this->source); })()), "goods", [], "any"falsefalsetrue9), "itemId", [], "any"falsefalsetrue9)]), "html"nulltrue);
  51.             echo "#";
  52.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["anchor"]) || array_key_exists("anchor"$context) ? $context["anchor"] : (function () { throw new RuntimeError('Variable "anchor" does not exist.'9$this->source); })()), 9$this->source), "html"nulltrue);
  53.             echo "\">
  54. ";
  55.         }
  56.         // line 11
  57.         echo "<div class=\"anchor-wrapper\">
  58.     <a class=\"anchor\" id=\"";
  59.         // line 13
  60.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["anchor"]) || array_key_exists("anchor"$context) ? $context["anchor"] : (function () { throw new RuntimeError('Variable "anchor" does not exist.'13$this->source); })()), 13$this->source), "html"nulltrue);
  61.         echo "\"></a>
  62.     <div class=\"new-cart-area\">
  63.         ";
  64.         // line 17
  65.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["NewUI"]) || array_key_exists("NewUI"$context) ? $context["NewUI"] : (function () { throw new RuntimeError('Variable "NewUI" does not exist.'17$this->source); })()), "ColorSelector", [], "any"falsefalsetrue17), "Enabled", [], "any"falsefalsetrue17)) {
  66.             // line 18
  67.             echo "        <div class=\"col1\">
  68.             <div class=\"current-sku-info\">
  69.                 <div class=\"current-color\">
  70.                     <div class=\"image-holder\">
  71.                         <img class=\"current-color-img\" src=\"\">
  72.                     </div>
  73.                     <div class=\"tile-name\"></div>
  74.                     <div class=\"title\">選択中のカラー</div>
  75.                 </div>
  76.                 <div class=\"goods-label-list\">
  77.                     ";
  78.             // line 28
  79.             echo $this->extensions['Customize\Twig\Extension\CustomExtension']->renderGoodsLabelList($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'28$this->source); })()), "goods", [], "any"falsefalsetrue28), 28$this->source));
  80.             echo "
  81.                 </div>
  82.             </div>
  83.         </div>
  84.         ";
  85.         }
  86.         // line 33
  87.         echo "
  88.         <div class=\"col2\">
  89.             <div class=\"select-sku-panel\">
  90.                 ";
  91.         // line 38
  92.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["NewUI"]) || array_key_exists("NewUI"$context) ? $context["NewUI"] : (function () { throw new RuntimeError('Variable "NewUI" does not exist.'38$this->source); })()), "ColorSelector", [], "any"falsefalsetrue38), "Enabled", [], "any"falsefalsetrue38)) {
  93.             // line 39
  94.             echo "                <div class=\"select-color-panel\">
  95.                     ";
  96.             // line 40
  97.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["NewUI"]) || array_key_exists("NewUI"$context) ? $context["NewUI"] : (function () { throw new RuntimeError('Variable "NewUI" does not exist.'40$this->source); })()), "ColorSelector", [], "any"falsefalsetrue40), "ShowCaption", [], "any"falsefalsetrue40)) {
  98.                 // line 41
  99.                 echo "                    <div class=\"title required\">カラーを選択</div>
  100.                     ";
  101.             }
  102.             // line 43
  103.             echo "                    <div class=\"horizontal-menu color-selector\">
  104.                         ";
  105.             // line 44
  106.             $context['_parent'] = $context;
  107.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'44$this->source); })()), "colorList", [], "any"falsefalsetrue44));
  108.             foreach ($context['_seq'] as $context["index"] => $context["color"]) {
  109.                 // line 45
  110.                 echo "
  111.                             ";
  112.                 // line 46
  113.                 if ( !twig_get_attribute($this->env$this->source$context["color"], "isHidden", [], "any"falsefalsetrue46)) {
  114.                     // line 47
  115.                     echo "                            <div class=\"menu-item\">
  116.                                 <div class=\"color-tile";
  117.                     // line 48
  118.                     if ((($context["index"] == "main") || 0)) {
  119.                         echo " selected";
  120.                     }
  121.                     echo "\" data-gcl-id=\"";
  122.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["color"], "gclId", [], "any"falsefalsetrue48), 48$this->source), "html"nulltrue);
  123.                     echo "\">
  124.                                     <div class=\"image-holder";
  125.                     // line 49
  126.                     if (twig_get_attribute($this->env$this->source$context["color"], "isSokujitsuHassou", [], "any"falsefalsetrue49)) {
  127.                         echo " sokujitsu-hassou";
  128.                     }
  129.                     echo "\">
  130.                                         ";
  131.                     // line 50
  132.                     if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["color"], "itemSashikomiImage", [], "any"falsefalsetrue50))) {
  133.                         // line 51
  134.                         echo "                                        <img src=\"https://img0.land-mark.biz/ut_img/";
  135.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["color"], "itemSashikomiImage", [], "any"falsefalsetrue51), "path", [], "any"falsefalsetrue51), 51$this->source), "html"nulltrue);
  136.                         echo "\">
  137.                                         ";
  138.                     } elseif ( !twig_test_empty(twig_get_attribute($this->env$this->source,                     // line 52
  139. (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'52$this->source); })()), "itemHiraokiImage", [], "any"falsefalsetrue52))) {
  140.                         // line 53
  141.                         echo "                                        <img src=\"";
  142.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'53$this->source); })()), "itemHiraokiImage", [], "any"falsefalsetrue53), "path", [], "any"falsefalsetrue53), 53$this->source), "html"nulltrue);
  143.                         echo "\">
  144.                                         ";
  145.                     }
  146.                     // line 55
  147.                     echo "                                    </div>
  148.                                     <div class=\"tile-name\">";
  149.                     // line 56
  150.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["color"], "colorName", [], "any"falsefalsetrue56), 56$this->source), "html"nulltrue);
  151.                     echo "(";
  152.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["color"], "janShiireColor", [], "any"falsefalsetrue56), 56$this->source), "html"nulltrue);
  153.                     echo ")</div>
  154.                                 </div>
  155.                             </div>
  156.                             ";
  157.                 }
  158.                 // line 60
  159.                 echo "
  160.                         ";
  161.             }
  162.             $_parent $context['_parent'];
  163.             unset($context['_seq'], $context['_iterated'], $context['index'], $context['color'], $context['_parent'], $context['loop']);
  164.             $context array_intersect_key($context$_parent) + $_parent;
  165.             // line 62
  166.             echo "                    </div>
  167.                 </div>
  168.                 ";
  169.         }
  170.         // line 65
  171.         echo "
  172.                 ";
  173.         // line 66
  174.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["NewUI"]) || array_key_exists("NewUI"$context) ? $context["NewUI"] : (function () { throw new RuntimeError('Variable "NewUI" does not exist.'66$this->source); })()), "SizeSelector", [], "any"falsefalsetrue66), "Enabled", [], "any"falsefalsetrue66)) {
  175.             // line 67
  176.             echo "                <div class=\"select-size-panel\">
  177.                     ";
  178.             // line 68
  179.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["NewUI"]) || array_key_exists("NewUI"$context) ? $context["NewUI"] : (function () { throw new RuntimeError('Variable "NewUI" does not exist.'68$this->source); })()), "SizeSelector", [], "any"falsefalsetrue68), "ShowCaption", [], "any"falsefalsetrue68)) {
  180.                 // line 69
  181.                 echo "                    <div class=\"title required\">サイズ・数量を選択</div>
  182.                     ";
  183.             }
  184.             // line 71
  185.             echo "                    ";
  186.             $context['_parent'] = $context;
  187.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'71$this->source); })()), "goods", [], "any"falsefalsetrue71), "goodsColorList", [], "any"falsefalsetrue71));
  188.             foreach ($context['_seq'] as $context["j"] => $context["color"]) {
  189.                 // line 72
  190.                 echo "                    <div class=\"size-selector";
  191.                 if (($context["j"] == 0)) {
  192.                     echo " active";
  193.                 }
  194.                 echo "\" data-gcl-id=\"";
  195.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["color"], "gclId", [], "any"falsefalsetrue72), 72$this->source), "html"nulltrue);
  196.                 echo "\">
  197.                         <table>
  198.                             <colgroup>
  199.                                 <col class=\"size\" />
  200.                                 <col class=\"price\" />
  201.                                 <col class=\"quantity\" />
  202.                                 <col class=\"stock\" />
  203.                             </colgroup>
  204.                             <thead>
  205.                                 <tr class=\"head\">
  206.                                     <th>サイズ</th>
  207.                                     <th>販売価格(税込)</th>
  208.                                     <th>数量</th>
  209.                                     <th>在庫状況</th>
  210.                                 </tr>
  211.                             </thead>
  212.                             <tbody>
  213.                             ";
  214.                 // line 89
  215.                 if (twig_test_empty((isset($context["visibleSizes"]) || array_key_exists("visibleSizes"$context) ? $context["visibleSizes"] : (function () { throw new RuntimeError('Variable "visibleSizes" does not exist.'89$this->source); })()))) {
  216.                     echo 
  217.                                 ";
  218.                     // line 90
  219.                     $context["visibleSizes"] = twig_array_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'90$this->source); })()), "sizeList", [], "any"falsefalsetrue90), 90$this->source), function ($__size__) use ($context$macros) { $context["size"] = $__size__; return  !twig_get_attribute($this->env$this->source, (isset($context["size"]) || array_key_exists("size"$context) ? $context["size"] : (function () { throw new RuntimeError('Variable "size" does not exist.'90$this->source); })()), "hidden", [], "any"falsefalsetrue90); });
  220.                     // line 91
  221.                     echo "                            ";
  222.                 }
  223.                 // line 92
  224.                 echo "                            ";
  225.                 $context["indexLoop"] = 0;
  226.                 // line 93
  227.                 echo "                            ";
  228.                 $context['_parent'] = $context;
  229.                 $context['_seq'] = twig_ensure_traversable((isset($context["visibleSizes"]) || array_key_exists("visibleSizes"$context) ? $context["visibleSizes"] : (function () { throw new RuntimeError('Variable "visibleSizes" does not exist.'93$this->source); })()));
  230.                 foreach ($context['_seq'] as $context["_key"] => $context["size"]) {
  231.                     // line 94
  232.                     echo "                                ";
  233.                     if (twig_test_empty((isset($context["skuMap"]) || array_key_exists("skuMap"$context) ? $context["skuMap"] : (function () { throw new RuntimeError('Variable "skuMap" does not exist.'94$this->source); })()))) {
  234.                         // line 95
  235.                         echo "                                    ";
  236.                         $context["sku"] = twig_get_attribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'95$this->source); })()), "getSkuByIdentifiers", [=> twig_get_attribute($this->env$this->source$context["color"], "gclId", [], "any"falsefalsetrue95), => twig_get_attribute($this->env$this->source$context["size"], "gpId", [], "any"falsefalsetrue95), => (isset($context["indexLoop"]) || array_key_exists("indexLoop"$context) ? $context["indexLoop"] : (function () { throw new RuntimeError('Variable "indexLoop" does not exist.'95$this->source); })())], "method"falsefalsetrue95);
  237.                         // line 96
  238.                         echo "                                ";
  239.                     } else {
  240.                         // line 97
  241.                         echo "                                    ";
  242.                         $context["sku"] = (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["skuMap"] ?? null), twig_get_attribute($this->env$this->source$context["color"], "gclId", [], "any"falsefalsetrue97), [], "array"falsetruetrue97), twig_get_attribute($this->env$this->source$context["size"], "gpId", [], "any"falsefalsetrue97), [], "array"truetruetrue97) &&  !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["skuMap"] ?? null), twig_get_attribute($this->env$this->source$context["color"], "gclId", [], "any"falsefalsetrue97), [], "array"falsetruetrue97), twig_get_attribute($this->env$this->source$context["size"], "gpId", [], "any"falsefalsetrue97), [], "array"falsefalsetrue97)))) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["skuMap"] ?? null), twig_get_attribute($this->env$this->source$context["color"], "gclId", [], "any"falsefalsetrue97), [], "array"falsetruetrue97), twig_get_attribute($this->env$this->source$context["size"], "gpId", [], "any"falsefalsetrue97), [], "array"falsefalsetrue97)) : (null));
  243.                         // line 98
  244.                         echo "                                ";
  245.                     }
  246.                     // line 99
  247.                     echo "                                ";
  248.                     $context["indexLoop"] = ((isset($context["indexLoop"]) || array_key_exists("indexLoop"$context) ? $context["indexLoop"] : (function () { throw new RuntimeError('Variable "indexLoop" does not exist.'99$this->source); })()) + 1);
  249.                     // line 100
  250.                     echo "                                ";
  251.                     if ( !twig_test_empty((isset($context["sku"]) || array_key_exists("sku"$context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.'100$this->source); })()))) {
  252.                         // line 101
  253.                         echo "                                <tr>
  254.                                     <td class=\"size\">
  255.                                         <span class=\"size_name";
  256.                         // line 103
  257.                         if (twig_get_attribute($this->env$this->source, (isset($context["sku"]) || array_key_exists("sku"$context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.'103$this->source); })()), "isSokujitsuHassouAvailable", [], "any"falsefalsetrue103)) {
  258.                             echo " sokujitsu";
  259.                         }
  260.                         echo "\">";
  261.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["size"], "sizeName", [], "any"falsefalsetrue103), 103$this->source), "html"nulltrue);
  262.                         echo "</span>
  263.                                     </td>
  264.                                     <td class=\"price\"><span class=\"price\">";
  265.                         // line 105
  266.                         echo twig_escape_filter($this->env$this->extensions['Customize\Twig\Extension\ServiceExtension']->GetLmPrice($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["size"], "price", [], "any"falsefalsetrue105), 105$this->source)), "html"nulltrue);
  267.                         echo "(税込)</span></td>
  268.                                     ";
  269.                         // line 106
  270.                         $context["gray"] = twig_get_attribute($this->env$this->source, (isset($context["sku"]) || array_key_exists("sku"$context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.'106$this->source); })()), "noDisp", [], "any"falsefalsetrue106);
  271.                         // line 107
  272.                         echo "                                    <td class=\"quantity\">
  273.                                         ";
  274.                         // line 108
  275.                         if ($this->extensions['Customize\Twig\Extension\ServiceExtension']->isMobile()) {
  276.                             // line 109
  277.                             echo "                                        <select name=\"product_matrix[";
  278.                             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["sku"]) || array_key_exists("sku"$context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.'109$this->source); })()), "janId", [], "any"falsefalsetrue109), 109$this->source), "html"nulltrue);
  279.                             echo "]\" class=\"kazu";
  280.                             if ((twig_get_attribute($this->env$this->source, (isset($context["sku"]) || array_key_exists("sku"$context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.'109$this->source); })()), "backOrder", [], "any"falsefalsetrue109) == twig_constant("\\Lm\\Entity\\Sku::BACK_ORDER_RESERVATION"))) {
  281.                                 echo " reservation";
  282.                             }
  283.                             echo "\"";
  284.                             if ((((twig_get_attribute($this->env$this->source, (isset($context["sku"]) || array_key_exists("sku"$context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.'109$this->source); })()), "backOrder", [], "any"falsefalsetrue109) != twig_constant("\\Lm\\Entity\\Sku::BACK_ORDER_RESERVATION")) && (twig_get_attribute($this->env$this->source, (isset($context["sku"]) || array_key_exists("sku"$context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.'109$this->source); })()), "stockAvailability", [], "any"falsefalsetrue109) == twig_constant("\\Lm\\Entity\\Sku::STOCK_AVL_OUT_OF_STOCK"))) || (isset($context["gray"]) || array_key_exists("gray"$context) ? $context["gray"] : (function () { throw new RuntimeError('Variable "gray" does not exist.'109$this->source); })()))) {
  285.                                 echo " disabled";
  286.                             }
  287.                             echo ">
  288.                                             ";
  289.                             // line 110
  290.                             $context['_parent'] = $context;
  291.                             $context['_seq'] = twig_ensure_traversable(range(0100));
  292.                             foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  293.                                 // line 111
  294.                                 echo "                                            <option value=\"";
  295.                                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["i"], 111$this->source), "html"nulltrue);
  296.                                 echo "\">";
  297.                                 if (($context["i"] == 0)) {
  298.                                     echo "数量";
  299.                                 } else {
  300.                                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["i"], 111$this->source), "html"nulltrue);
  301.                                 }
  302.                                 echo "</option>
  303.                                             ";
  304.                             }
  305.                             $_parent $context['_parent'];
  306.                             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  307.                             $context array_intersect_key($context$_parent) + $_parent;
  308.                             // line 113
  309.                             echo "                                        </select>
  310.                                         ";
  311.                         } else {
  312.                             // line 115
  313.                             echo "                                        <input type=\"text\" name=\"product_matrix[";
  314.                             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["sku"]) || array_key_exists("sku"$context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.'115$this->source); })()), "janId", [], "any"falsefalsetrue115), 115$this->source), "html"nulltrue);
  315.                             echo "]\" class=\"kazu";
  316.                             if ((twig_get_attribute($this->env$this->source, (isset($context["sku"]) || array_key_exists("sku"$context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.'115$this->source); })()), "backOrder", [], "any"falsefalsetrue115) == twig_constant("\\Lm\\Entity\\Sku::BACK_ORDER_RESERVATION"))) {
  317.                                 echo " reservation";
  318.                             }
  319.                             echo "\"";
  320.                             if (((twig_get_attribute($this->env$this->source, (isset($context["sku"]) || array_key_exists("sku"$context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.'115$this->source); })()), "backOrder", [], "any"falsefalsetrue115) != twig_constant("\\Lm\\Entity\\Sku::BACK_ORDER_RESERVATION")) && (twig_get_attribute($this->env$this->source, (isset($context["sku"]) || array_key_exists("sku"$context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.'115$this->source); })()), "stockAvailability", [], "any"falsefalsetrue115) == twig_constant("\\Lm\\Entity\\Sku::STOCK_AVL_OUT_OF_STOCK")))) {
  321.                                 echo " disabled";
  322.                             }
  323.                             echo " min=\"0\" value=\"0\">
  324.                                         <div class=\"btn-up-down\">";
  325.                             // line 117
  326.                             echo "<span class=\"btn-up\">▲</span>";
  327.                             // line 118
  328.                             echo "<span class=\"btn-down\">▼</span>";
  329.                             // line 119
  330.                             echo "</div>
  331.                                         ";
  332.                         }
  333.                         // line 121
  334.                         echo "                                    </td>
  335.                                     <td class=\"stock";
  336.                         // line 122
  337.                         if ((array_key_exists("gray"$context) && (isset($context["gray"]) || array_key_exists("gray"$context) ? $context["gray"] : (function () { throw new RuntimeError('Variable "gray" does not exist.'122$this->source); })()))) {
  338.                             echo " gray";
  339.                         }
  340.                         echo "\">
  341.                                         <span class=\"zaiko\">
  342.                                         ";
  343.                         // line 124
  344.                         if ((twig_get_attribute($this->env$this->source, (isset($context["sku"]) || array_key_exists("sku"$context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.'124$this->source); })()), "backOrder", [], "any"falsefalsetrue124) > twig_constant("\\Lm\\Entity\\Sku::BACK_ORDER_UNAVAILABLE"))) {
  345.                             // line 125
  346.                             echo "                                        ";
  347.                         } elseif ((twig_get_attribute($this->env$this->source, (isset($context["sku"]) || array_key_exists("sku"$context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.'125$this->source); })()), "stockAvailability", [], "any"falsefalsetrue125) != twig_constant("\\Lm\\Entity\\Sku::STOCK_AVL_OUT_OF_STOCK"))) {
  348.                             // line 126
  349.                             echo "                                            ";
  350.                             if ( !(isset($context["gray"]) || array_key_exists("gray"$context) ? $context["gray"] : (function () { throw new RuntimeError('Variable "gray" does not exist.'126$this->source); })())) {
  351.                                 // line 127
  352.                                 echo "                                                <span class=\"zaiko_number";
  353.                                 if ((twig_get_attribute($this->env$this->source, (isset($context["sku"]) || array_key_exists("sku"$context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.'127$this->source); })()), "stockAvailability", [], "any"falsefalsetrue127) == twig_constant("\\Lm\\Entity\\Sku::STOCK_AVL_LOW_STOCK"))) {
  354.                                     echo " low-stock";
  355.                                 }
  356.                                 echo "\">";
  357.                                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["sku"]) || array_key_exists("sku"$context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.'127$this->source); })()), "stockTotal", [], "any"falsefalsetrue127), 127$this->source), "html"nulltrue);
  358.                                 echo "</span>
  359.                                             ";
  360.                             }
  361.                             // line 129
  362.                             echo "                                        ";
  363.                         } else {
  364.                             // line 130
  365.                             echo "                                            ";
  366.                             if ( !(isset($context["gray"]) || array_key_exists("gray"$context) ? $context["gray"] : (function () { throw new RuntimeError('Variable "gray" does not exist.'130$this->source); })())) {
  367.                                 // line 131
  368.                                 echo "                                                在庫切れ
  369.                                             ";
  370.                             }
  371.                             // line 133
  372.                             echo "                                        ";
  373.                         }
  374.                         // line 134
  375.                         echo "                                        ";
  376.                         if ((twig_get_attribute($this->env$this->source, (isset($context["sku"]) || array_key_exists("sku"$context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.'134$this->source); })()), "sokujitsuHassouAvailable", [], "any"falsefalsetrue134) &&  !(isset($context["gray"]) || array_key_exists("gray"$context) ? $context["gray"] : (function () { throw new RuntimeError('Variable "gray" does not exist.'134$this->source); })()))) {
  377.                             // line 135
  378.                             echo "                                            ";
  379.                             // line 136
  380.                             echo "                                            <span class=\"zaiko_number sokujitsu\">";
  381.                             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["sku"]) || array_key_exists("sku"$context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.'136$this->source); })()), "stockSokujitsu", [], "any"falsefalsetrue136), 136$this->source), "html"nulltrue);
  382.                             echo "</span>
  383.                                         ";
  384.                         }
  385.                         // line 138
  386.                         echo "                                        ";
  387.                         if ((twig_get_attribute($this->env$this->source, (isset($context["sku"]) || array_key_exists("sku"$context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.'138$this->source); })()), "backOrder", [], "any"falsefalsetrue138) > twig_constant("\\Lm\\Entity\\Sku::BACK_ORDER_UNAVAILABLE"))) {
  388.                             // line 139
  389.                             echo "                                            <div class=\"nyuka-yotei\">
  390.                                                 入荷予定日<br>
  391.                                                 ";
  392.                             // line 141
  393.                             echo twig_escape_filter($this->env$this->extensions['Customize\Twig\Extension\ServiceExtension']->formatStockArrivalDate(((twig_get_attribute($this->env$this->source, (isset($context["sku"]) || array_key_exists("sku"$context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.'141$this->source); })()), "bichikuNyukaDate", [], "any"falsefalsetrue141)) ? (twig_get_attribute($this->env$this->source, (isset($context["sku"]) || array_key_exists("sku"$context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.'141$this->source); })()), "bichikuNyukaDate", [], "any"falsefalsetrue141)) : (twig_get_attribute($this->env$this->source, (isset($context["sku"]) || array_key_exists("sku"$context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.'141$this->source); })()), "nyukaDate", [], "any"falsefalsetrue141)))), "html"nulltrue);
  394.                             echo "
  395.                                             </div>
  396.                                         ";
  397.                         } else {
  398.                             // line 144
  399.                             echo "                                        ";
  400.                         }
  401.                         // line 145
  402.                         echo "                                        </span>
  403.                                     </td>
  404.                                 </tr>
  405.                                 ";
  406.                     }
  407.                     // line 149
  408.                     echo "                            ";
  409.                 }
  410.                 $_parent $context['_parent'];
  411.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['size'], $context['_parent'], $context['loop']);
  412.                 $context array_intersect_key($context$_parent) + $_parent;
  413.                 // line 150
  414.                 echo "                            </tbody>
  415.                         </table>
  416.                     </div>
  417.                     ";
  418.             }
  419.             $_parent $context['_parent'];
  420.             unset($context['_seq'], $context['_iterated'], $context['j'], $context['color'], $context['_parent'], $context['loop']);
  421.             $context array_intersect_key($context$_parent) + $_parent;
  422.             // line 154
  423.             echo "                </div>
  424.                 ";
  425.         }
  426.         // line 156
  427.         echo "
  428.             </div>
  429.             ";
  430.         // line 159
  431.         if ((isset($context["parent"]) || array_key_exists("parent"$context) ? $context["parent"] : (function () { throw new RuntimeError('Variable "parent" does not exist.'159$this->source); })())) {
  432.             // line 160
  433.             echo "            <div>
  434.                 <button type=\"button\" class=\"btn-v2 forward btn_next_item\" alt=\"※クリックすると画面が下に移動します\">次のセット商品を選ぶ</button>
  435.             </div>
  436.             ";
  437.         }
  438.         // line 166
  439.         echo "
  440.         </div>
  441.     </div>
  442. </div>";
  443.         
  444.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  445.         
  446.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  447.     }
  448.     public function getTemplateName()
  449.     {
  450.         return "Item/NewCartArea/cart_matrix.twig";
  451.     }
  452.     public function isTraitable()
  453.     {
  454.         return false;
  455.     }
  456.     public function getDebugInfo()
  457.     {
  458.         return array (  456 => 166,  448 => 160,  446 => 159,  441 => 156,  437 => 154,  428 => 150,  422 => 149,  416 => 145,  413 => 144,  407 => 141,  403 => 139,  400 => 138,  394 => 136,  392 => 135,  389 => 134,  386 => 133,  382 => 131,  379 => 130,  376 => 129,  366 => 127,  363 => 126,  360 => 125,  358 => 124,  351 => 122,  348 => 121,  344 => 119,  342 => 118,  340 => 117,  327 => 115,  323 => 113,  308 => 111,  304 => 110,  291 => 109,  289 => 108,  286 => 107,  284 => 106,  280 => 105,  271 => 103,  267 => 101,  264 => 100,  261 => 99,  258 => 98,  255 => 97,  252 => 96,  249 => 95,  246 => 94,  241 => 93,  238 => 92,  235 => 91,  233 => 90,  229 => 89,  204 => 72,  199 => 71,  195 => 69,  193 => 68,  190 => 67,  188 => 66,  185 => 65,  180 => 62,  173 => 60,  164 => 56,  161 => 55,  155 => 53,  153 => 52,  148 => 51,  146 => 50,  140 => 49,  132 => 48,  129 => 47,  127 => 46,  124 => 45,  120 => 44,  117 => 43,  113 => 41,  111 => 40,  108 => 39,  106 => 38,  99 => 33,  91 => 28,  79 => 18,  77 => 17,  70 => 13,  66 => 11,  58 => 9,  56 => 8,  54 => 7,  52 => 6,  45 => 1,);
  459.     }
  460.     public function getSourceContext()
  461.     {
  462.         return new Source("<style>
  463.     .gray {
  464.         background: #dddddd;
  465.     }
  466.  </style>   
  467. {% set formId = \"form-#{loop.index0}\" %}
  468. {% set anchor = \"goods-#{item.goods.goodsId}\" %}
  469. {% if parent %}
  470. <input type=\"hidden\" name=\"returnUrl\" value=\"{{ url('item/detail', { 'id': parent.goods.itemId }) }}#{{ anchor }}\">
  471. {% endif %}
  472. <div class=\"anchor-wrapper\">
  473.     <a class=\"anchor\" id=\"{{ anchor }}\"></a>
  474.     <div class=\"new-cart-area\">
  475.         {% if NewUI.ColorSelector.Enabled %}
  476.         <div class=\"col1\">
  477.             <div class=\"current-sku-info\">
  478.                 <div class=\"current-color\">
  479.                     <div class=\"image-holder\">
  480.                         <img class=\"current-color-img\" src=\"\">
  481.                     </div>
  482.                     <div class=\"tile-name\"></div>
  483.                     <div class=\"title\">選択中のカラー</div>
  484.                 </div>
  485.                 <div class=\"goods-label-list\">
  486.                     {{ showGoodsLabelList(item.goods) | raw }}
  487.                 </div>
  488.             </div>
  489.         </div>
  490.         {% endif %}
  491.         <div class=\"col2\">
  492.             <div class=\"select-sku-panel\">
  493.                 {% if NewUI.ColorSelector.Enabled %}
  494.                 <div class=\"select-color-panel\">
  495.                     {% if NewUI.ColorSelector.ShowCaption %}
  496.                     <div class=\"title required\">カラーを選択</div>
  497.                     {% endif %}
  498.                     <div class=\"horizontal-menu color-selector\">
  499.                         {% for index, color in item.colorList %}
  500.                             {% if not color.isHidden %}
  501.                             <div class=\"menu-item\">
  502.                                 <div class=\"color-tile{% if index == \"main\" or 0 %} selected{% endif %}\" data-gcl-id=\"{{ color.gclId }}\">
  503.                                     <div class=\"image-holder{% if color.isSokujitsuHassou %} sokujitsu-hassou{% endif %}\">
  504.                                         {% if color.itemSashikomiImage is not empty %}
  505.                                         <img src=\"https://img0.land-mark.biz/ut_img/{{ color.itemSashikomiImage.path }}\">
  506.                                         {% elseif item.itemHiraokiImage is not empty %}
  507.                                         <img src=\"{{ item.itemHiraokiImage.path }}\">
  508.                                         {% endif %}
  509.                                     </div>
  510.                                     <div class=\"tile-name\">{{ color.colorName }}({{ color.janShiireColor }})</div>
  511.                                 </div>
  512.                             </div>
  513.                             {% endif %}
  514.                         {% endfor %}
  515.                     </div>
  516.                 </div>
  517.                 {% endif %}
  518.                 {% if NewUI.SizeSelector.Enabled %}
  519.                 <div class=\"select-size-panel\">
  520.                     {% if NewUI.SizeSelector.ShowCaption %}
  521.                     <div class=\"title required\">サイズ・数量を選択</div>
  522.                     {% endif %}
  523.                     {% for j, color in item.goods.goodsColorList %}
  524.                     <div class=\"size-selector{% if j == 0 %} active{% endif %}\" data-gcl-id=\"{{ color.gclId }}\">
  525.                         <table>
  526.                             <colgroup>
  527.                                 <col class=\"size\" />
  528.                                 <col class=\"price\" />
  529.                                 <col class=\"quantity\" />
  530.                                 <col class=\"stock\" />
  531.                             </colgroup>
  532.                             <thead>
  533.                                 <tr class=\"head\">
  534.                                     <th>サイズ</th>
  535.                                     <th>販売価格(税込)</th>
  536.                                     <th>数量</th>
  537.                                     <th>在庫状況</th>
  538.                                 </tr>
  539.                             </thead>
  540.                             <tbody>
  541.                             {% if visibleSizes is empty %} 
  542.                                 {% set visibleSizes = item.sizeList|filter(size => not size.hidden) %}
  543.                             {% endif %}
  544.                             {% set indexLoop = 0 %}
  545.                             {% for size in visibleSizes %}
  546.                                 {% if skuMap is empty %}
  547.                                     {% set sku = item.getSkuByIdentifiers(color.gclId, size.gpId , indexLoop) %}
  548.                                 {% else %}
  549.                                     {% set sku = skuMap[color.gclId][size.gpId] ?? null %}
  550.                                 {% endif %}
  551.                                 {% set indexLoop = indexLoop + 1 %}
  552.                                 {% if sku is not empty %}
  553.                                 <tr>
  554.                                     <td class=\"size\">
  555.                                         <span class=\"size_name{% if sku.isSokujitsuHassouAvailable %} sokujitsu{% endif %}\">{{ size.sizeName }}</span>
  556.                                     </td>
  557.                                     <td class=\"price\"><span class=\"price\">{{ size.price|LmPrice }}(税込)</span></td>
  558.                                     {% set gray = sku.noDisp %}
  559.                                     <td class=\"quantity\">
  560.                                         {% if isMobile() %}
  561.                                         <select name=\"product_matrix[{{ sku.janId }}]\" class=\"kazu{% if sku.backOrder == constant('\\\\Lm\\\\Entity\\\\Sku::BACK_ORDER_RESERVATION') %} reservation{% endif %}\"{% if (sku.backOrder != constant('\\\\Lm\\\\Entity\\\\Sku::BACK_ORDER_RESERVATION') and sku.stockAvailability == constant('\\\\Lm\\\\Entity\\\\Sku::STOCK_AVL_OUT_OF_STOCK')) or gray %} disabled{% endif %}>
  562.                                             {% for i in range(0, 100) %}
  563.                                             <option value=\"{{ i }}\">{% if i == 0 %}数量{% else %}{{ i }}{% endif %}</option>
  564.                                             {% endfor %}
  565.                                         </select>
  566.                                         {% else %}
  567.                                         <input type=\"text\" name=\"product_matrix[{{ sku.janId }}]\" class=\"kazu{% if sku.backOrder == constant('\\\\Lm\\\\Entity\\\\Sku::BACK_ORDER_RESERVATION') %} reservation{% endif %}\"{% if (sku.backOrder != constant('\\\\Lm\\\\Entity\\\\Sku::BACK_ORDER_RESERVATION') and sku.stockAvailability == constant('\\\\Lm\\\\Entity\\\\Sku::STOCK_AVL_OUT_OF_STOCK')) %} disabled{% endif %} min=\"0\" value=\"0\">
  568.                                         <div class=\"btn-up-down\">{#
  569.                                             #}<span class=\"btn-up\">▲</span>{#
  570.                                             #}<span class=\"btn-down\">▼</span>{#
  571.                                         #}</div>
  572.                                         {% endif %}
  573.                                     </td>
  574.                                     <td class=\"stock{% if gray is defined and gray %} gray{% endif %}\">
  575.                                         <span class=\"zaiko\">
  576.                                         {% if sku.backOrder > constant('\\\\Lm\\\\Entity\\\\Sku::BACK_ORDER_UNAVAILABLE') %}
  577.                                         {% elseif sku.stockAvailability != constant('\\\\Lm\\\\Entity\\\\Sku::STOCK_AVL_OUT_OF_STOCK') %}
  578.                                             {% if not gray %}
  579.                                                 <span class=\"zaiko_number{% if sku.stockAvailability == constant('\\\\Lm\\\\Entity\\\\Sku::STOCK_AVL_LOW_STOCK') %} low-stock{% endif %}\">{{ sku.stockTotal }}</span>
  580.                                             {% endif %}
  581.                                         {% else %}
  582.                                             {% if not gray %}
  583.                                                 在庫切れ
  584.                                             {% endif %}
  585.                                         {% endif %}
  586.                                         {% if sku.sokujitsuHassouAvailable and not gray %}
  587.                                             {# dump({ \"sku.stockBichiku\": sku.stockBichiku, \"sku.isBichikuReady\": sku.isBichikuReady }) #}
  588.                                             <span class=\"zaiko_number sokujitsu\">{{ sku.stockSokujitsu }}</span>
  589.                                         {% endif %}
  590.                                         {% if sku.backOrder > constant('\\\\Lm\\\\Entity\\\\Sku::BACK_ORDER_UNAVAILABLE') %}
  591.                                             <div class=\"nyuka-yotei\">
  592.                                                 入荷予定日<br>
  593.                                                 {{ formatStockArrivalDate(sku.bichikuNyukaDate ?: sku.nyukaDate) }}
  594.                                             </div>
  595.                                         {% else %}
  596.                                         {% endif %}
  597.                                         </span>
  598.                                     </td>
  599.                                 </tr>
  600.                                 {% endif %}
  601.                             {% endfor %}
  602.                             </tbody>
  603.                         </table>
  604.                     </div>
  605.                     {% endfor %}
  606.                 </div>
  607.                 {% endif %}
  608.             </div>
  609.             {% if parent %}
  610.             <div>
  611.                 <button type=\"button\" class=\"btn-v2 forward btn_next_item\" alt=\"※クリックすると画面が下に移動します\">次のセット商品を選ぶ</button>
  612.             </div>
  613.             {% endif %}
  614.         </div>
  615.     </div>
  616. </div>""Item/NewCartArea/cart_matrix.twig""/var/www/html/app/template/default/Item/NewCartArea/cart_matrix.twig");
  617.     }
  618.     
  619.     public function checkSecurity()
  620.     {
  621.         static $tags = array("set" => 6"if" => 8"for" => 44);
  622.         static $filters = array("escape" => 9"raw" => 28"filter" => 90"LmPrice" => 105);
  623.         static $functions = array("url" => 9"showGoodsLabelList" => 28"isMobile" => 108"constant" => 109"range" => 110"formatStockArrivalDate" => 141);
  624.         try {
  625.             $this->sandbox->checkSecurity(
  626.                 ['set''if''for'],
  627.                 ['escape''raw''filter''LmPrice'],
  628.                 ['url''showGoodsLabelList''isMobile''constant''range''formatStockArrivalDate']
  629.             );
  630.         } catch (SecurityError $e) {
  631.             $e->setSourceContext($this->source);
  632.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  633.                 $e->setTemplateLine($tags[$e->getTagName()]);
  634.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  635.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  636.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  637.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  638.             }
  639.             throw $e;
  640.         }
  641.     }
  642. }