var/cache/dev/twig/2c/2c595e1cfeb4a977f6a8ab14db8e6111840f022fd782b82255f95b3d13285b28.php line 55

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/detail_slug.twig */
  14. class __TwigTemplate_e8575d465f224fb093c84eb18cc7238cdf8bcad3d06ac3e578120fe1aad16ddd 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.             'stylesheet' => [$this'block_stylesheet'],
  24.             'javascript' => [$this'block_javascript'],
  25.             'main' => [$this'block_main'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 11
  31.         return "default_frame.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/detail_slug.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/detail_slug.twig"));
  40.         // line 13
  41.         $context["body_class"] = "product_page";
  42.         // line 15
  43.         $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'15$this->source); })()), [=> "Form/form_div_layout.twig"], true);
  44.         // line 11
  45.         $this->parent $this->loadTemplate("default_frame.twig""Product/detail_slug.twig"11);
  46.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  49.         
  50.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  51.     }
  52.     // line 17
  53.     public function block_stylesheet($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  60.         // line 18
  61.         echo "    <style>
  62.         .slick-slider {
  63.             margin-bottom: 30px;
  64.         }
  65.         .slick-dots {
  66.             position: absolute;
  67.             bottom: -45px;
  68.             display: none!important;
  69.             width: 100%;
  70.             padding: 0;
  71.             list-style: none;
  72.             text-align: center;
  73.         }
  74.         .slick-dots li {
  75.             position: relative;
  76.             display: inline-block;
  77.             width: 20px;
  78.             height: 20px;
  79.             margin: 0 5px;
  80.             padding: 0;
  81.             cursor: pointer;
  82.         }
  83.         .slick-dots li button {
  84.             font-size: 0;
  85.             line-height: 0;
  86.             display: block;
  87.             width: 20px;
  88.             height: 20px;
  89.             padding: 5px;
  90.             cursor: pointer;
  91.             color: transparent;
  92.             border: 0;
  93.             outline: none;
  94.             background: transparent;
  95.         }
  96.         .slick-dots li button:hover,
  97.         .slick-dots li button:focus {
  98.             outline: none;
  99.         }
  100.         .slick-dots li button:hover:before,
  101.         .slick-dots li button:focus:before {
  102.             opacity: 1;
  103.         }
  104.         .slick-dots li button:before {
  105.             content: \" \";
  106.             line-height: 20px;
  107.             position: absolute;
  108.             top: 0;
  109.             left: 0;
  110.             width: 12px;
  111.             height: 12px;
  112.             text-align: center;
  113.             opacity: .25;
  114.             background-color: black;
  115.             border-radius: 50%;
  116.         }
  117.         .slick-dots li.slick-active button:before {
  118.             opacity: .75;
  119.             background-color: black;
  120.         }
  121.         .slick-dots li button.thumbnail img {
  122.             width: 0;
  123.             height: 0;
  124.         }
  125.         ";
  126.         // line 94
  127.         echo "        ";
  128.         $context['_parent'] = $context;
  129.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'94$this->source); })()), "Tags", [], "any"falsefalsefalse94));
  130.         foreach ($context['_seq'] as $context["_key"] => $context["Tag"]) {
  131.             // line 95
  132.             echo "        .ec-productRole__tag.tag_";
  133.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Tag"], "id", [], "any"falsefalsefalse95), "html"nulltrue);
  134.             echo "{
  135.             ";
  136.             // line 96
  137.             if (twig_get_attribute($this->env$this->source$context["Tag"], "text_color", [], "any"falsefalsefalse96)) {
  138.                 echo "color: ";
  139.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Tag"], "text_color", [], "any"falsefalsefalse96), "html"nulltrue);
  140.                 echo ";";
  141.             }
  142.             // line 97
  143.             echo "            ";
  144.             if (twig_get_attribute($this->env$this->source$context["Tag"], "background_color", [], "any"falsefalsefalse97)) {
  145.                 echo "background-color: ";
  146.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Tag"], "background_color", [], "any"falsefalsefalse97), "html"nulltrue);
  147.                 echo ";";
  148.             }
  149.             // line 98
  150.             echo "            ";
  151.             if (twig_get_attribute($this->env$this->source$context["Tag"], "border_color", [], "any"falsefalsefalse98)) {
  152.                 echo "border-color: ";
  153.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Tag"], "border_color", [], "any"falsefalsefalse98), "html"nulltrue);
  154.                 echo ";";
  155.             }
  156.             // line 99
  157.             echo "        }
  158.         ";
  159.         }
  160.         $_parent $context['_parent'];
  161.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Tag'], $context['_parent'], $context['loop']);
  162.         $context array_intersect_key($context$_parent) + $_parent;
  163.         // line 101
  164.         echo "
  165.         .ec-productRole .ec-productRole__btn {
  166.             width: 100%;
  167.         }
  168.     </style>
  169. ";
  170.         
  171.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  172.         
  173.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  174.     }
  175.     // line 108
  176.     public function block_javascript($context, array $blocks = [])
  177.     {
  178.         $macros $this->macros;
  179.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  180.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  181.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  182.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  183.         // line 109
  184.         echo "<script>
  185.     eccube.classCategories = ";
  186.         // line 110
  187.         echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson((isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'110$this->source); })()));
  188.         echo ";
  189.         // 規格2に選択肢を割り当てる。
  190.         function fnSetClassCategories(form, classcat_id2_selected) {
  191.             var \$form = \$(form);
  192.             var product_id = \$form.find('input[name=product_id]').val();
  193.             var \$sele1 = \$form.find('select[name=classcategory_id1]');
  194.             var \$sele2 = \$form.find('select[name=classcategory_id2]');
  195.             eccube.setClassCategories(\$form, product_id, \$sele1, \$sele2, classcat_id2_selected);
  196.         }
  197.         ";
  198.         // line 121
  199.         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse121)) {
  200.             // line 122
  201.             echo "        fnSetClassCategories(
  202.             \$('#form1'), ";
  203.             // line 123
  204.             echo json_encode(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'123$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse123), "vars", [], "any"falsefalsefalse123), "value", [], "any"falsefalsefalse123));
  205.             echo "
  206.         );
  207.         ";
  208.         } elseif (twig_get_attribute($this->env$this->source,         // line 125
  209. ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse125)) {
  210.             // line 126
  211.             echo "        eccube.checkStock(\$('#form1'), ";
  212.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'126$this->source); })()), "id", [], "any"falsefalsefalse126), "html"nulltrue);
  213.             echo ", ";
  214.             echo json_encode(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'126$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse126), "vars", [], "any"falsefalsefalse126), "value", [], "any"falsefalsefalse126));
  215.             echo ", null);
  216.         ";
  217.         }
  218.         // line 128
  219.         echo "    </script>
  220.     <script>
  221.         \$(function() {
  222.             // bfcache無効化
  223.             \$(window).bind('pageshow', function(event) {
  224.                 if (event.originalEvent.persisted) {
  225.                     location.reload(true);
  226.                 }
  227.             });
  228.             \$('.item_visual').slick({
  229.                 dots: false,
  230.                 arrows: false,
  231.                 responsive: [{
  232.                     breakpoint: 768,
  233.                     settings: {
  234.                         dots: true
  235.                     }
  236.                 }]
  237.             });
  238.             \$('.slideThumb').on('click', function() {
  239.                 var index = \$(this).attr('data-index');
  240.                 \$('.item_visual').slick('slickGoTo', index, false);
  241.             })
  242.         });
  243.     </script>
  244.     <script>
  245.         \$(function() {
  246.             \$('.add-cart').on('click', function(event) {
  247.                 ";
  248.         // line 158
  249.         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse158)) {
  250.             // line 159
  251.             echo "                // 規格1フォームの必須チェック
  252.                 if (\$('#classcategory_id1').val() == '__unselected' || \$('#classcategory_id1').val() == '') {
  253.                     \$('#classcategory_id1')[0].setCustomValidity('";
  254.             // line 161
  255.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("項目が選択されていません"), "html"nulltrue);
  256.             echo "');
  257.                     return true;
  258.                 } else {
  259.                     \$('#classcategory_id1')[0].setCustomValidity('');
  260.                 }
  261.                 ";
  262.         }
  263.         // line 167
  264.         echo "
  265.                 ";
  266.         // line 168
  267.         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse168)) {
  268.             // line 169
  269.             echo "                // 規格2フォームの必須チェック
  270.                 if (\$('#classcategory_id2').val() == '__unselected' || \$('#classcategory_id2').val() == '') {
  271.                     \$('#classcategory_id2')[0].setCustomValidity('";
  272.             // line 171
  273.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("項目が選択されていません"), "html"nulltrue);
  274.             echo "');
  275.                     return true;
  276.                 } else {
  277.                     \$('#classcategory_id2')[0].setCustomValidity('');
  278.                 }
  279.                 ";
  280.         }
  281.         // line 177
  282.         echo "                event.preventDefault();
  283.                 \$form = \$('#form1');
  284.                 \$.ajax({
  285.                     url: \$form.attr('action'),
  286.                     type: \$form.attr('method'),
  287.                     data: \$form.serialize(),
  288.                     dataType: 'json',
  289.                     beforeSend: function(xhr, settings) {
  290.                         // Buttonを無効にする
  291.                         \$('.add-cart').prop('disabled', true);
  292.                     }
  293.                 }).done(function(data) {
  294.                     // レスポンス内のメッセージをalertで表示
  295.                     \$.each(data.messages, function() {
  296.                         \$('#ec-modal-header').html(this);
  297.                     });
  298.                     \$('.ec-modal').show()
  299.                     // カートブロックを更新する
  300.                     \$.ajax({
  301.                         url: \"";
  302.         // line 198
  303.         echo $this->extensions['Customize\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  304.         echo "\",
  305.                         type: 'GET',
  306.                         dataType: 'html'
  307.                     }).done(function(html) {
  308.                         \$('.ec-headerRole__cart').html(html);
  309.                     });
  310.                 }).fail(function(data) {
  311.                     alert('";
  312.         // line 205
  313.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  314.         echo "');
  315.                 }).always(function(data) {
  316.                     // Buttonを有効にする
  317.                     \$('.add-cart').prop('disabled', false);
  318.                 });
  319.             });
  320.         });
  321.         \$('.ec-modal-wrap').on('click', function(e) {
  322.             // モーダル内の処理は外側にバブリングさせない
  323.             e.stopPropagation();
  324.         });
  325.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  326.             \$('.ec-modal').hide()
  327.         });
  328.     </script>
  329.     <script type=\"application/ld+json\">
  330.     {
  331.         \"@context\": \"https://schema.org/\",
  332.         \"@type\": \"Product\",
  333.         \"name\": \"";
  334.         // line 225
  335.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'225$this->source); })()), "name", [], "any"falsefalsefalse225), "html"nulltrue);
  336.         echo "\",
  337.         \"image\": [
  338.             ";
  339.         // line 227
  340.         $context['_parent'] = $context;
  341.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'227$this->source); })()), "ProductImage", [], "any"falsefalsefalse227));
  342.         $context['_iterated'] = false;
  343.         $context['loop'] = [
  344.           'parent' => $context['_parent'],
  345.           'index0' => 0,
  346.           'index'  => 1,
  347.           'first'  => true,
  348.         ];
  349.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  350.             $length count($context['_seq']);
  351.             $context['loop']['revindex0'] = $length 1;
  352.             $context['loop']['revindex'] = $length;
  353.             $context['loop']['length'] = $length;
  354.             $context['loop']['last'] = === $length;
  355.         }
  356.         foreach ($context['_seq'] as $context["_key"] => $context["img"]) {
  357.             // line 228
  358.             echo "                \"";
  359.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'228$this->source); })()), "request", [], "any"falsefalsefalse228), "schemeAndHttpHost", [], "any"falsefalsefalse228), "html"nulltrue);
  360.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["img"], "save_image"), "html"nulltrue);
  361.             echo "\"";
  362.             if ( !twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse228)) {
  363.                 echo ",";
  364.             }
  365.             // line 229
  366.             echo "
  367.             ";
  368.             $context['_iterated'] = true;
  369.             ++$context['loop']['index0'];
  370.             ++$context['loop']['index'];
  371.             $context['loop']['first'] = false;
  372.             if (isset($context['loop']['length'])) {
  373.                 --$context['loop']['revindex0'];
  374.                 --$context['loop']['revindex'];
  375.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  376.             }
  377.         }
  378.         if (!$context['_iterated']) {
  379.             // line 231
  380.             echo "                \"";
  381.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'231$this->source); })()), "request", [], "any"falsefalsefalse231), "schemeAndHttpHost", [], "any"falsefalsefalse231), "html"nulltrue);
  382.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(""), "save_image"), "html"nulltrue);
  383.             echo "\"
  384.             ";
  385.         }
  386.         $_parent $context['_parent'];
  387.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['img'], $context['_parent'], $context['loop']);
  388.         $context array_intersect_key($context$_parent) + $_parent;
  389.         // line 233
  390.         echo "        ],
  391.         \"description\": \"";
  392.         // line 234
  393.         echo twig_escape_filter($this->envtwig_slice($this->envtwig_replace_filter(((twig_get_attribute($this->env$this->source, ($context["Product"] ?? null), "description_list", [], "any"truetruefalse234)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["Product"] ?? null), "description_list", [], "any"falsefalsefalse234), twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'234$this->source); })()), "description_detail", [], "any"falsefalsefalse234))) : (twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'234$this->source); })()), "description_detail", [], "any"falsefalsefalse234))), ["
  394. => """ " => ""]), 0300), "html"nulltrue);
  395.         echo "\",
  396.         ";
  397.         // line 235
  398.         if (twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'235$this->source); })()), "code_min", [], "any"falsefalsefalse235)) {
  399.             // line 236
  400.             echo "        \"sku\": \"";
  401.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'236$this->source); })()), "code_min", [], "any"falsefalsefalse236), "html"nulltrue);
  402.             echo "\",
  403.         ";
  404.         }
  405.         // line 238
  406.         echo "        \"offers\": {
  407.             \"@type\": \"Offer\",
  408.             \"url\": \"";
  409.         // line 240
  410.         echo twig_escape_filter($this->env$this->extensions['Customize\Twig\Extension\RoutingExtension']->getUrl("product_detail_slug", ["slug" => twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'240$this->source); })()), "slug", [], "any"falsefalsefalse240)]), "html"nulltrue);
  411.         echo "\",
  412.             \"priceCurrency\": \"";
  413.         // line 241
  414.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["eccube_config"]) || array_key_exists("eccube_config"$context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.'241$this->source); })()), "currency", [], "any"falsefalsefalse241), "html"nulltrue);
  415.         echo "\",
  416.             \"price\": ";
  417.         // line 242
  418.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'242$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse242), "html"nulltrue);
  419.         echo ",
  420.             \"availability\": \"";
  421.         // line 243
  422.         echo ((twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'243$this->source); })()), "stock_find", [], "any"falsefalsefalse243)) ? ("InStock") : ("OutOfStock"));
  423.         echo "\"
  424.         }
  425.     }
  426.     </script>
  427. ";
  428.         
  429.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  430.         
  431.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  432.     }
  433.     // line 249
  434.     public function block_main($context, array $blocks = [])
  435.     {
  436.         $macros $this->macros;
  437.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  438.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  439.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  440.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  441.         // line 250
  442.         echo "    <div class=\"ec-productRole mb60 pb60 spMb20 dottedBd\">
  443.         <div class=\"displaySp mb10\">
  444.             ";
  445.         // line 253
  446.         echo "            ";
  447.         if ((twig_get_attribute($this->env$this->source, (isset($context["ProductDataList"]) || array_key_exists("ProductDataList"$context) ? $context["ProductDataList"] : (function () { throw new RuntimeError('Variable "ProductDataList" does not exist.'253$this->source); })()), "colorOrSize", [], "array"falsefalsefalse253) != "")) {
  448.             // line 254
  449.             echo "                ";
  450.             if ((isset($context["StandardClassificationName"]) || array_key_exists("StandardClassificationName"$context) ? $context["StandardClassificationName"] : (function () { throw new RuntimeError('Variable "StandardClassificationName" does not exist.'254$this->source); })())) {
  451.                 // line 255
  452.                 echo "                    <p class=\"mb10\">
  453.                         ";
  454.                 // line 256
  455.                 echo twig_escape_filter($this->env, (isset($context["StandardClassificationName"]) || array_key_exists("StandardClassificationName"$context) ? $context["StandardClassificationName"] : (function () { throw new RuntimeError('Variable "StandardClassificationName" does not exist.'256$this->source); })()), "html"nulltrue);
  456.                 echo "
  457.                     </p>
  458.                 ";
  459.             }
  460.             // line 259
  461.             echo "                <div>
  462.                     <ul class=\"detailColor\">
  463.                         ";
  464.             // line 261
  465.             $context['_parent'] = $context;
  466.             $context['_seq'] = twig_ensure_traversable((isset($context["ProductList"]) || array_key_exists("ProductList"$context) ? $context["ProductList"] : (function () { throw new RuntimeError('Variable "ProductList" does not exist.'261$this->source); })()));
  467.             foreach ($context['_seq'] as $context["key"] => $context["product"]) {
  468.                 // line 262
  469.                 echo "                            ";
  470.                 if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["product"], "productData", [], "any"falsefalsefalse262), "getId", [], "any"falsefalsefalse262) != twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'262$this->source); })()), "id", [], "any"falsefalsefalse262))) {
  471.                     // line 263
  472.                     echo "                                <li class=\"detailColorItem mb10\">
  473.                                     <a href=\"";
  474.                     // line 264
  475.                     echo twig_escape_filter($this->env$this->extensions['Customize\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["product"], "productData", [], "any"falsefalsefalse264), "getId", [], "any"falsefalsefalse264)]), "html"nulltrue);
  476.                     echo "\">
  477.                                         ";
  478.                     // line 265
  479.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["product"], "colorOrSize", [], "any"falsefalsefalse265), "html"nulltrue);
  480.                     echo "
  481.                                     </a>
  482.                                 </li>
  483.                             ";
  484.                 } else {
  485.                     // line 269
  486.                     echo "                                <li class=\"detailColorItem mb10\">
  487.                                     <a href=\"#\" class=\"active\">
  488.                                         ";
  489.                     // line 271
  490.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["product"], "colorOrSize", [], "any"falsefalsefalse271), "html"nulltrue);
  491.                     echo "
  492.                                     </a>
  493.                                 </li>
  494.                             ";
  495.                 }
  496.                 // line 275
  497.                 echo "                        ";
  498.             }
  499.             $_parent $context['_parent'];
  500.             unset($context['_seq'], $context['_iterated'], $context['key'], $context['product'], $context['_parent'], $context['loop']);
  501.             $context array_intersect_key($context$_parent) + $_parent;
  502.             // line 276
  503.             echo "                    </ul>
  504.                 </div>
  505.             ";
  506.         }
  507.         // line 279
  508.         echo "        </div>
  509.         <div class=\"ec-grid2\">
  510.             <div class=\"ec-grid2__cell\">
  511.                 <div class=\"ec-sliderItemRole\">
  512.                     <div class=\"item_visual\">
  513.                         ";
  514.         // line 284
  515.         $context['_parent'] = $context;
  516.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["PriorityProduct"]) || array_key_exists("PriorityProduct"$context) ? $context["PriorityProduct"] : (function () { throw new RuntimeError('Variable "PriorityProduct" does not exist.'284$this->source); })()), "ProductImage", [], "any"falsefalsefalse284));
  517.         $context['_iterated'] = false;
  518.         $context['loop'] = [
  519.           'parent' => $context['_parent'],
  520.           'index0' => 0,
  521.           'index'  => 1,
  522.           'first'  => true,
  523.         ];
  524.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  525.             $length count($context['_seq']);
  526.             $context['loop']['revindex0'] = $length 1;
  527.             $context['loop']['revindex'] = $length;
  528.             $context['loop']['length'] = $length;
  529.             $context['loop']['last'] = === $length;
  530.         }
  531.         foreach ($context['_seq'] as $context["_key"] => $context["ProductImage"]) {
  532.             // line 285
  533.             echo "                            <div class=\"slide-item\"><img src=\"";
  534.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["ProductImage"], "save_image"), "html"nulltrue);
  535.             echo "\" alt=\"";
  536.             ((twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse285)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'285$this->source); })()), "name", [], "any"falsefalsefalse285), "html"nulltrue))) : (print ("")));
  537.             echo "\"></div>
  538.                         ";
  539.             $context['_iterated'] = true;
  540.             ++$context['loop']['index0'];
  541.             ++$context['loop']['index'];
  542.             $context['loop']['first'] = false;
  543.             if (isset($context['loop']['length'])) {
  544.                 --$context['loop']['revindex0'];
  545.                 --$context['loop']['revindex'];
  546.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  547.             }
  548.         }
  549.         if (!$context['_iterated']) {
  550.             // line 287
  551.             echo "                            <div class=\"slide-item\"><img src=\"";
  552.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(""), "save_image"), "html"nulltrue);
  553.             echo "\" alt=\"";
  554.             ((twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse287)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'287$this->source); })()), "name", [], "any"falsefalsefalse287), "html"nulltrue))) : (print ("")));
  555.             echo "\" /></div>
  556.                         ";
  557.         }
  558.         $_parent $context['_parent'];
  559.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductImage'], $context['_parent'], $context['loop']);
  560.         $context array_intersect_key($context$_parent) + $_parent;
  561.         // line 289
  562.         echo "                    </div>
  563.                     <div class=\"item_nav\">
  564.                         ";
  565.         // line 291
  566.         $context['_parent'] = $context;
  567.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["PriorityProduct"]) || array_key_exists("PriorityProduct"$context) ? $context["PriorityProduct"] : (function () { throw new RuntimeError('Variable "PriorityProduct" does not exist.'291$this->source); })()), "ProductImage", [], "any"falsefalsefalse291));
  568.         $context['loop'] = [
  569.           'parent' => $context['_parent'],
  570.           'index0' => 0,
  571.           'index'  => 1,
  572.           'first'  => true,
  573.         ];
  574.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  575.             $length count($context['_seq']);
  576.             $context['loop']['revindex0'] = $length 1;
  577.             $context['loop']['revindex'] = $length;
  578.             $context['loop']['length'] = $length;
  579.             $context['loop']['last'] = === $length;
  580.         }
  581.         foreach ($context['_seq'] as $context["_key"] => $context["ProductImage"]) {
  582.             // line 292
  583.             echo "                            <div class=\"slideThumb\" data-index=\"";
  584.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse292), "html"nulltrue);
  585.             echo "\"><img src=\"";
  586.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["ProductImage"], "save_image"), "html"nulltrue);
  587.             echo "\" alt=\"\"></div>
  588.                         ";
  589.             ++$context['loop']['index0'];
  590.             ++$context['loop']['index'];
  591.             $context['loop']['first'] = false;
  592.             if (isset($context['loop']['length'])) {
  593.                 --$context['loop']['revindex0'];
  594.                 --$context['loop']['revindex'];
  595.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  596.             }
  597.         }
  598.         $_parent $context['_parent'];
  599.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductImage'], $context['_parent'], $context['loop']);
  600.         $context array_intersect_key($context$_parent) + $_parent;
  601.         // line 294
  602.         echo "                    </div>
  603.                 </div>
  604.             </div>
  605.             <div class=\"ec-grid2__cell\">
  606.                 <div class=\"ec-productRole__profile\">
  607.                     ";
  608.         // line 300
  609.         echo "                    <ul class=\"ec-productRole__tags noBb\">
  610.                         ";
  611.         // line 301
  612.         $context['_parent'] = $context;
  613.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'301$this->source); })()), "Tags", [], "any"falsefalsefalse301));
  614.         foreach ($context['_seq'] as $context["_key"] => $context["Tag"]) {
  615.             // line 302
  616.             echo "                            <li class=\"ec-productRole__tag tag_";
  617.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Tag"], "id", [], "any"falsefalsefalse302), "html"nulltrue);
  618.             echo "\">";
  619.             echo twig_escape_filter($this->env$context["Tag"], "html"nulltrue);
  620.             echo "</li>
  621.                         ";
  622.         }
  623.         $_parent $context['_parent'];
  624.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Tag'], $context['_parent'], $context['loop']);
  625.         $context array_intersect_key($context$_parent) + $_parent;
  626.         // line 304
  627.         echo "                    </ul>
  628.                     ";
  629.         // line 306
  630.         echo "                    <div class=\"ec-productRole__title\">
  631.                         <h2 class=\"ec-headingTitle\">";
  632.         // line 307
  633.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'307$this->source); })()), "name", [], "any"falsefalsefalse307), "html"nulltrue);
  634.         echo "</h2>
  635.                     </div>
  636.                     ";
  637.         // line 309
  638.         if (twig_get_attribute($this->env$this->source, (isset($context["PriorityProduct"]) || array_key_exists("PriorityProduct"$context) ? $context["PriorityProduct"] : (function () { throw new RuntimeError('Variable "PriorityProduct" does not exist.'309$this->source); })()), "description_list", [], "any"falsefalsefalse309)) {
  639.             // line 310
  640.             echo "                        <p>";
  641.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["PriorityProduct"]) || array_key_exists("PriorityProduct"$context) ? $context["PriorityProduct"] : (function () { throw new RuntimeError('Variable "PriorityProduct" does not exist.'310$this->source); })()), "description_list", [], "any"falsefalsefalse310), "html"nulltrue);
  642.             echo "</p>
  643.                     ";
  644.         }
  645.         // line 312
  646.         echo "                    <br>
  647.                     ";
  648.         // line 314
  649.         echo "                    ";
  650.         if ((twig_get_attribute($this->env$this->source, (isset($context["ProductDataList"]) || array_key_exists("ProductDataList"$context) ? $context["ProductDataList"] : (function () { throw new RuntimeError('Variable "ProductDataList" does not exist.'314$this->source); })()), "colorOrSize", [], "array"falsefalsefalse314) != "")) {
  651.             // line 315
  652.             echo "                        ";
  653.             if ((isset($context["StandardClassificationName"]) || array_key_exists("StandardClassificationName"$context) ? $context["StandardClassificationName"] : (function () { throw new RuntimeError('Variable "StandardClassificationName" does not exist.'315$this->source); })())) {
  654.                 // line 316
  655.                 echo "                            <p class=\"mb10 displayPc\">
  656.                                 ";
  657.                 // line 317
  658.                 echo twig_escape_filter($this->env, (isset($context["StandardClassificationName"]) || array_key_exists("StandardClassificationName"$context) ? $context["StandardClassificationName"] : (function () { throw new RuntimeError('Variable "StandardClassificationName" does not exist.'317$this->source); })()), "html"nulltrue);
  659.                 echo "
  660.                             </p>
  661.                         ";
  662.             }
  663.             // line 320
  664.             echo "                        <div class=\"displayPc\">
  665.                             <ul class=\"detailColor\">
  666.                                 ";
  667.             // line 322
  668.             $context['_parent'] = $context;
  669.             $context['_seq'] = twig_ensure_traversable((isset($context["ProductList"]) || array_key_exists("ProductList"$context) ? $context["ProductList"] : (function () { throw new RuntimeError('Variable "ProductList" does not exist.'322$this->source); })()));
  670.             foreach ($context['_seq'] as $context["key"] => $context["product"]) {
  671.                 // line 323
  672.                 echo "                                    ";
  673.                 if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["product"], "productData", [], "any"falsefalsefalse323), "getId", [], "any"falsefalsefalse323) != twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'323$this->source); })()), "id", [], "any"falsefalsefalse323))) {
  674.                     // line 324
  675.                     echo "                                        <li class=\"detailColorItem mb10\">
  676.                                             <a href=\"";
  677.                     // line 325
  678.                     echo twig_escape_filter($this->env$this->extensions['Customize\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["product"], "productData", [], "any"falsefalsefalse325), "getId", [], "any"falsefalsefalse325)]), "html"nulltrue);
  679.                     echo "\">
  680.                                                 ";
  681.                     // line 326
  682.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["product"], "colorOrSize", [], "any"falsefalsefalse326), "html"nulltrue);
  683.                     echo "
  684.                                             </a>
  685.                                         </li>
  686.                                     ";
  687.                 } else {
  688.                     // line 330
  689.                     echo "                                        <li class=\"detailColorItem mb10\">
  690.                                             <a href=\"#\" class=\"active\">
  691.                                                 ";
  692.                     // line 332
  693.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["product"], "colorOrSize", [], "any"falsefalsefalse332), "html"nulltrue);
  694.                     echo "
  695.                                             </a>
  696.                                         </li>
  697.                                     ";
  698.                 }
  699.                 // line 336
  700.                 echo "                                ";
  701.             }
  702.             $_parent $context['_parent'];
  703.             unset($context['_seq'], $context['_iterated'], $context['key'], $context['product'], $context['_parent'], $context['loop']);
  704.             $context array_intersect_key($context$_parent) + $_parent;
  705.             // line 337
  706.             echo "                            </ul>
  707.                         </div>
  708.                     ";
  709.         }
  710.         // line 340
  711.         echo "                    <br>
  712.                     ";
  713.         // line 342
  714.         echo "                    ";
  715.         if ((twig_get_attribute($this->env$this->source, (isset($context["ProductDataList"]) || array_key_exists("ProductDataList"$context) ? $context["ProductDataList"] : (function () { throw new RuntimeError('Variable "ProductDataList" does not exist.'342$this->source); })()), "catch", [], "array"falsefalsefalse342) != null)) {
  716.             // line 343
  717.             echo "                        <div class=\"dottedBd\" style=\"padding-bottom: 20px;\">
  718.                             <p style=\"color: red\">";
  719.             // line 344
  720.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["ProductDataList"]) || array_key_exists("ProductDataList"$context) ? $context["ProductDataList"] : (function () { throw new RuntimeError('Variable "ProductDataList" does not exist.'344$this->source); })()), "catch", [], "array"falsefalsefalse344), "html"nulltrue);
  721.             echo "</p>
  722.                         </div>
  723.                     ";
  724.         }
  725.         // line 347
  726.         echo "                    ";
  727.         // line 348
  728.         echo "                    ";
  729.         if ((((isset($context["GroupId"]) || array_key_exists("GroupId"$context) ? $context["GroupId"] : (function () { throw new RuntimeError('Variable "GroupId" does not exist.'348$this->source); })()) == 4) && twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'348$this->source); })()), "getPrice01IncTaxMin", [], "any"falsefalsefalse348))) {
  730.             // line 349
  731.             echo "                        ";
  732.             if ( !(null === twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'349$this->source); })()), "getPrice01Max", [], "any"falsefalsefalse349))) {
  733.                 // line 350
  734.                 echo "                            <span class=\"ec-productRole__priceRegularPrice\">";
  735.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.normal_price"), "html"nulltrue);
  736.                 echo ":";
  737.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'350$this->source); })()), "getPrice01IncTaxMin", [], "any"falsefalsefalse350)), "html"nulltrue);
  738.                 echo "</span>
  739.                             <span class=\"ec-productRole__priceRegularTax\">";
  740.                 // line 351
  741.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.tax_include"), "html"nulltrue);
  742.                 echo "</span>
  743.                         ";
  744.             }
  745.             // line 353
  746.             echo "                    ";
  747.         }
  748.         // line 354
  749.         echo "
  750.                     ";
  751.         // line 356
  752.         echo "                    ";
  753.         if (((isset($context["GroupId"]) || array_key_exists("GroupId"$context) ? $context["GroupId"] : (function () { throw new RuntimeError('Variable "GroupId" does not exist.'356$this->source); })()) == 3)) {
  754.             // line 357
  755.             echo "                        <p>卸価格</p>
  756.                         ";
  757.             // line 359
  758.             echo "                    ";
  759.         } elseif (((isset($context["GroupId"]) || array_key_exists("GroupId"$context) ? $context["GroupId"] : (function () { throw new RuntimeError('Variable "GroupId" does not exist.'359$this->source); })()) == 4)) {
  760.             // line 360
  761.             echo "                        <p>官公庁職員価格</p>
  762.                     ";
  763.         }
  764.         // line 362
  765.         echo "
  766.                     ";
  767.         // line 364
  768.         echo "                    <div class=\"ec-productRole__price\">
  769.                         ";
  770.         // line 365
  771.         if (twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'365$this->source); })()), "hasProductClass", [], "any"falsefalsefalse365)) {
  772.             // line 366
  773.             if ((twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'366$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse366) == twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'366$this->source); })()), "getPrice02IncTaxMax", [], "any"falsefalsefalse366))) {
  774.                 // line 367
  775.                 echo "                                <div class=\"ec-price\">
  776.                                     <span class=\"ec-price__price price02-default\">";
  777.                 // line 368
  778.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'368$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse368)), "html"nulltrue);
  779.                 echo "</span>
  780.                                     <span class=\"ec-price__tax\">";
  781.                 // line 369
  782.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html"nulltrue);
  783.                 echo "</span>
  784.                                 </div>
  785.                             ";
  786.             } else {
  787.                 // line 372
  788.                 echo "                                <div class=\"ec-price\">
  789.                                     <span class=\"ec-price__price price02-default\">";
  790.                 // line 373
  791.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'373$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse373)), "html"nulltrue);
  792.                 echo " ~ ";
  793.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'373$this->source); })()), "getPrice02IncTaxMax", [], "any"falsefalsefalse373)), "html"nulltrue);
  794.                 echo "</span>
  795.                                     <span class=\"ec-price__tax\">";
  796.                 // line 374
  797.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html"nulltrue);
  798.                 echo "</span>
  799.                                 </div>
  800.                             ";
  801.             }
  802.             // line 377
  803.             echo "                        ";
  804.         } else {
  805.             // line 378
  806.             echo "                            <div class=\"ec-price\">
  807.                                 <span class=\"ec-price__price\">";
  808.             // line 379
  809.             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'379$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse379)), "html"nulltrue);
  810.             echo "</span>
  811.                                 <span class=\"ec-price__tax\">";
  812.             // line 380
  813.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html"nulltrue);
  814.             echo "</span>
  815.                             </div>
  816.                         ";
  817.         }
  818.         // line 383
  819.         echo "
  820.                         ";
  821.         // line 385
  822.         echo "                        ";
  823.         if (((((isset($context["GroupId"]) || array_key_exists("GroupId"$context) ? $context["GroupId"] : (function () { throw new RuntimeError('Variable "GroupId" does not exist.'385$this->source); })()) == 1) || ((isset($context["GroupId"]) || array_key_exists("GroupId"$context) ? $context["GroupId"] : (function () { throw new RuntimeError('Variable "GroupId" does not exist.'385$this->source); })()) == 4)) && twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'385$this->source); })()), "getPrice01IncTaxMin", [], "any"falsefalsefalse385))) {
  824.             // line 386
  825.             echo "                            ";
  826.             if ( !(null === twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'386$this->source); })()), "getPrice01Max", [], "any"falsefalsefalse386))) {
  827.                 // line 387
  828.                 echo "                                ";
  829.                 $context["discountRate"] = ((1.0 - (twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'387$this->source); })()), "getPrice02Min", [], "any"falsefalsefalse387) / twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'387$this->source); })()), "getPrice01Min", [], "any"falsefalsefalse387))) * 100);
  830.                 // line 388
  831.                 echo "                                <div class=\"ec-color-red ec-font-size-3\">(通常価格より ";
  832.                 echo twig_escape_filter($this->envtwig_round((isset($context["discountRate"]) || array_key_exists("discountRate"$context) ? $context["discountRate"] : (function () { throw new RuntimeError('Variable "discountRate" does not exist.'388$this->source); })())), "html"nulltrue);
  833.                 echo "% 割引)</div>
  834.                             ";
  835.             }
  836.             // line 390
  837.             echo "                        ";
  838.         }
  839.         // line 391
  840.         echo "                    </div>
  841.                     ";
  842.         // line 394
  843.         echo "                    ";
  844.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'394$this->source); })()), "code_min", [], "any"falsefalsefalse394))) {
  845.             // line 395
  846.             echo "                        <div class=\"ec-productRole__code\">
  847.                             ";
  848.             // line 396
  849.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SKUコード"), "html"nulltrue);
  850.             echo ": <span class=\"product-code-default\">";
  851.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'396$this->source); })()), "code_min", [], "any"falsefalsefalse396), "html"nulltrue);
  852.             if ((twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'396$this->source); })()), "code_min", [], "any"falsefalsefalse396) != twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'396$this->source); })()), "code_max", [], "any"falsefalsefalse396))) {
  853.                 echo " ~ ";
  854.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'396$this->source); })()), "code_max", [], "any"falsefalsefalse396), "html"nulltrue);
  855.             }
  856.             echo "</span>
  857.                         </div>
  858.                     ";
  859.         }
  860.         // line 399
  861.         echo "                    ";
  862.         // line 400
  863.         echo "                    ";
  864.         if ((twig_get_attribute($this->env$this->source, (isset($context["ProductDataList"]) || array_key_exists("ProductDataList"$context) ? $context["ProductDataList"] : (function () { throw new RuntimeError('Variable "ProductDataList" does not exist.'400$this->source); })()), "jan", [], "array"falsefalsefalse400) != null)) {
  865.             // line 401
  866.             echo "                        <div class=\"ec-productRole__code\">
  867.                             ";
  868.             // line 402
  869.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("JANコード"), "html"nulltrue);
  870.             echo ": <span class=\"product-code-default\">";
  871.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["ProductDataList"]) || array_key_exists("ProductDataList"$context) ? $context["ProductDataList"] : (function () { throw new RuntimeError('Variable "ProductDataList" does not exist.'402$this->source); })()), "jan", [], "array"falsefalsefalse402), "html"nulltrue);
  872.             echo "</span>
  873.                         </div>
  874.                     ";
  875.         }
  876.         // line 405
  877.         echo "                    ";
  878.         // line 406
  879.         echo "                    ";
  880.         if ((twig_get_attribute($this->env$this->source, (isset($context["ProductDataList"]) || array_key_exists("ProductDataList"$context) ? $context["ProductDataList"] : (function () { throw new RuntimeError('Variable "ProductDataList" does not exist.'406$this->source); })()), "upc", [], "array"falsefalsefalse406) != null)) {
  881.             // line 407
  882.             echo "                        <div class=\"ec-productRole__code\">
  883.                             ";
  884.             // line 408
  885.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("UPCコード"), "html"nulltrue);
  886.             echo ": <span class=\"product-code-default\">";
  887.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["ProductDataList"]) || array_key_exists("ProductDataList"$context) ? $context["ProductDataList"] : (function () { throw new RuntimeError('Variable "ProductDataList" does not exist.'408$this->source); })()), "upc", [], "array"falsefalsefalse408), "html"nulltrue);
  888.             echo "</span>
  889.                         </div>
  890.                     ";
  891.         }
  892.         // line 411
  893.         echo "                    ";
  894.         // line 412
  895.         echo "                    ";
  896.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'412$this->source); })()), "ProductCategories", [], "any"falsefalsefalse412))) {
  897.             // line 413
  898.             echo "                        <div class=\"ec-productRole__category\">
  899.                             <div>";
  900.             // line 414
  901.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("関連カテゴリ"), "html"nulltrue);
  902.             echo "</div>
  903.                             ";
  904.             // line 415
  905.             $context['_parent'] = $context;
  906.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'415$this->source); })()), "ProductCategories", [], "any"falsefalsefalse415));
  907.             foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
  908.                 // line 416
  909.                 echo "                                <ul>
  910.                                     <li>
  911.                                         ";
  912.                 // line 418
  913.                 if (((twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse418), "path", [], "any"falsefalsefalse418)) == 2) && (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse418), "path", [], "any"falsefalsefalse418), 1, [], "array"falsefalsefalse418), "name", [], "any"falsefalsefalse418) == "在庫限り・取り扱い終了"))) {
  914.                     // line 419
  915.                     echo "                                            ";
  916.                     // line 420
  917.                     echo "                                        ";
  918.                 } else {
  919.                     // line 421
  920.                     echo "                                            ";
  921.                     $context['_parent'] = $context;
  922.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse421), "path", [], "any"falsefalsefalse421));
  923.                     $context['loop'] = [
  924.                       'parent' => $context['_parent'],
  925.                       'index0' => 0,
  926.                       'index'  => 1,
  927.                       'first'  => true,
  928.                     ];
  929.                     if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  930.                         $length count($context['_seq']);
  931.                         $context['loop']['revindex0'] = $length 1;
  932.                         $context['loop']['revindex'] = $length;
  933.                         $context['loop']['length'] = $length;
  934.                         $context['loop']['last'] = === $length;
  935.                     }
  936.                     foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
  937.                         // line 422
  938.                         echo "                                                <a href=\"";
  939.                         echo $this->extensions['Customize\Twig\Extension\RoutingExtension']->getUrl("product_list");
  940.                         echo "?category_id=";
  941.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Category"], "id", [], "any"falsefalsefalse422), "html"nulltrue);
  942.                         echo "\">";
  943.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Category"], "name", [], "any"falsefalsefalse422), "html"nulltrue);
  944.                         echo "</a>";
  945.                         if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse422) == false)) {
  946.                             // line 423
  947.                             echo "                                                <span>></span>";
  948.                         }
  949.                         ++$context['loop']['index0'];
  950.                         ++$context['loop']['index'];
  951.                         $context['loop']['first'] = false;
  952.                         if (isset($context['loop']['length'])) {
  953.                             --$context['loop']['revindex0'];
  954.                             --$context['loop']['revindex'];
  955.                             $context['loop']['last'] = === $context['loop']['revindex0'];
  956.                         }
  957.                     }
  958.                     $_parent $context['_parent'];
  959.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
  960.                     $context array_intersect_key($context$_parent) + $_parent;
  961.                     // line 425
  962.                     echo "                                        ";
  963.                 }
  964.                 // line 426
  965.                 echo "                                    </li>
  966.                                 </ul>
  967.                             ";
  968.             }
  969.             $_parent $context['_parent'];
  970.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
  971.             $context array_intersect_key($context$_parent) + $_parent;
  972.             // line 429
  973.             echo "                        </div>
  974.                     ";
  975.         }
  976.         // line 431
  977.         echo "                    <form action=\"";
  978.         echo twig_escape_filter($this->env$this->extensions['Customize\Twig\Extension\RoutingExtension']->getUrl("product_add_cart", ["id" => twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'431$this->source); })()), "id", [], "any"falsefalsefalse431)]), "html"nulltrue);
  979.         echo "\" method=\"post\" id=\"form1\" name=\"form1\">
  980.                         ";
  981.         // line 432
  982.         if (twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'432$this->source); })()), "stock_find", [], "any"falsefalsefalse432)) {
  983.             // line 433
  984.             echo "                            <div class=\"ec-productRole__actions\">
  985.                                 ";
  986.             // line 435
  987.             echo "                                <div>
  988.                                     ";
  989.             // line 436
  990.             if ( !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'436$this->source); })()), "getProductClasses", [], "any"falsefalsefalse436), 0, [], "array"falsefalsefalse436), "getStock", [], "any"falsefalsefalse436))) {
  991.                 // line 437
  992.                 echo "                                        <p>";
  993.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("在庫"), "html"nulltrue);
  994.                 echo ":";
  995.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'437$this->source); })()), "getProductClasses", [], "any"falsefalsefalse437), 0, [], "array"falsefalsefalse437), "getStock", [], "any"falsefalsefalse437), "html"nulltrue);
  996.                 echo "</p>
  997.                                     ";
  998.             } else {
  999.                 // line 439
  1000.                 echo "                                        <p>";
  1001.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("在庫"), "html"nulltrue);
  1002.                 echo ":無制限</p>
  1003.                                     ";
  1004.             }
  1005.             // line 441
  1006.             echo "                                </div>
  1007.                             </div>
  1008.                             <div class=\"ec-productRole__btn\">
  1009.                                 <button type=\"submit\" class=\"ec-blockBtn--action add-cart\">
  1010.                                     ";
  1011.             // line 445
  1012.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html"nulltrue);
  1013.             echo "
  1014.                                 </button>
  1015.                             </div>
  1016.                         ";
  1017.         } else {
  1018.             // line 449
  1019.             echo "                            <div class=\"ec-productRole__btn\">
  1020.                                 <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  1021.                                     ";
  1022.             // line 451
  1023.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html"nulltrue);
  1024.             echo "
  1025.                                 </button>
  1026.                             </div>
  1027.                         ";
  1028.         }
  1029.         // line 455
  1030.         echo "
  1031.                         ";
  1032.         // line 456
  1033.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'456$this->source); })()), 'rest');
  1034.         echo "
  1035.                     </form>
  1036.                     <div class=\"ec-modal\">
  1037.                         <div class=\"ec-modal-overlay\">
  1038.                             <div class=\"ec-modal-wrap\">
  1039.                                 <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  1040.         // line 461
  1041.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  1042.         echo "\" alt=\"\"/></span></span>
  1043.                                 <div id=\"ec-modal-header\" class=\"text-center\">";
  1044.         // line 462
  1045.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  1046.         echo "</div>
  1047.                                 <div class=\"ec-modal-box\">
  1048.                                     <div class=\"ec-role\">
  1049.                                         <span class=\"ec-inlineBtn--cancel\">";
  1050.         // line 465
  1051.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  1052.         echo "</span>
  1053.                                         <a href=\"";
  1054.         // line 466
  1055.         echo $this->extensions['Customize\Twig\Extension\RoutingExtension']->getUrl("cart");
  1056.         echo "\" class=\"ec-inlineBtn--action\">";
  1057.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  1058.         echo "</a>
  1059.                                     </div>
  1060.                                 </div>
  1061.                             </div>
  1062.                         </div>
  1063.                     </div>
  1064.                     ";
  1065.         // line 472
  1066.         if (twig_get_attribute($this->env$this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo"$context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.'472$this->source); })()), "option_favorite_product", [], "any"falsefalsefalse472)) {
  1067.             // line 473
  1068.             echo "                        <form action=\"";
  1069.             echo twig_escape_filter($this->env$this->extensions['Customize\Twig\Extension\RoutingExtension']->getUrl("product_add_favorite", ["id" => twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'473$this->source); })()), "id", [], "any"falsefalsefalse473)]), "html"nulltrue);
  1070.             echo "\" method=\"post\">
  1071.                             <div class=\"ec-productRole__btn\">
  1072.                                 ";
  1073.             // line 475
  1074.             if (((isset($context["is_favorite"]) || array_key_exists("is_favorite"$context) ? $context["is_favorite"] : (function () { throw new RuntimeError('Variable "is_favorite" does not exist.'475$this->source); })()) == false)) {
  1075.                 // line 476
  1076.                 echo "                                    <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\" style=\"margin: 0\">
  1077.                                         ";
  1078.                 // line 477
  1079.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お気に入りに追加"), "html"nulltrue);
  1080.                 echo "
  1081.                                     </button>
  1082.                                 ";
  1083.             } else {
  1084.                 // line 480
  1085.                 echo "                                    <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\"
  1086.                                             disabled=\"disabled\">";
  1087.                 // line 481
  1088.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お気に入りに追加済です"), "html"nulltrue);
  1089.                 echo "
  1090.                                     </button>
  1091.                                 ";
  1092.             }
  1093.             // line 484
  1094.             echo "                            </div>
  1095.                         </form>
  1096.                     ";
  1097.         }
  1098.         // line 487
  1099.         echo "
  1100.                     <div>
  1101.                         <p>※ 当社取扱い商品には、軍や法執行機関の実務要求に特化し、一般の民生品とは異なる用途を想定して、設計・材料変更・製造されたものが多くございます。 さらに大量供給を前提に実用品として生産されるため色の個体差やネジの硬さなどが大きく異なる場合がございます。 また予備知識や訓練が必要な商品もございます。 購入時にはご了承の上、十分ご注意頂くようお願い申し上げます。</p>
  1102.                     </div>
  1103.                 </div>
  1104.             </div>
  1105.         </div>
  1106.     </div>
  1107.     <div class=\"ec-productRole__description\">
  1108.         ";
  1109.         // line 497
  1110.         echo twig_nl2br(twig_get_attribute($this->env$this->source, (isset($context["PriorityProduct"]) || array_key_exists("PriorityProduct"$context) ? $context["PriorityProduct"] : (function () { throw new RuntimeError('Variable "PriorityProduct" does not exist.'497$this->source); })()), "description_detail", [], "any"falsefalsefalse497));
  1111.         echo "
  1112.     </div>
  1113.     ";
  1114.         // line 499
  1115.         if (twig_get_attribute($this->env$this->source, (isset($context["PriorityProduct"]) || array_key_exists("PriorityProduct"$context) ? $context["PriorityProduct"] : (function () { throw new RuntimeError('Variable "PriorityProduct" does not exist.'499$this->source); })()), "freearea", [], "any"falsefalsefalse499)) {
  1116.             // line 500
  1117.             echo "        <div class=\"ec-productRole__description\">
  1118.             ";
  1119.             // line 501
  1120.             echo twig_include($this->env$contexttwig_template_from_string($this->envtwig_nl2br(twig_get_attribute($this->env$this->source, (isset($context["PriorityProduct"]) || array_key_exists("PriorityProduct"$context) ? $context["PriorityProduct"] : (function () { throw new RuntimeError('Variable "PriorityProduct" does not exist.'501$this->source); })()), "freearea", [], "any"falsefalsefalse501))));
  1121.             echo "
  1122.         </div>
  1123.     ";
  1124.         }
  1125.         // line 504
  1126.         echo "    </div>
  1127.     </div>
  1128. ";
  1129.         
  1130.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1131.         
  1132.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1133.     }
  1134.     public function getTemplateName()
  1135.     {
  1136.         return "Product/detail_slug.twig";
  1137.     }
  1138.     public function isTraitable()
  1139.     {
  1140.         return false;
  1141.     }
  1142.     public function getDebugInfo()
  1143.     {
  1144.         return array (  1170 => 504,  1164 => 501,  1161 => 500,  1159 => 499,  1154 => 497,  1142 => 487,  1137 => 484,  1131 => 481,  1128 => 480,  1122 => 477,  1119 => 476,  1117 => 475,  1111 => 473,  1109 => 472,  1098 => 466,  1094 => 465,  1088 => 462,  1084 => 461,  1076 => 456,  1073 => 455,  1066 => 451,  1062 => 449,  1055 => 445,  1049 => 441,  1043 => 439,  1035 => 437,  1033 => 436,  1030 => 435,  1027 => 433,  1025 => 432,  1020 => 431,  1016 => 429,  1008 => 426,  1005 => 425,  990 => 423,  981 => 422,  963 => 421,  960 => 420,  958 => 419,  956 => 418,  952 => 416,  948 => 415,  944 => 414,  941 => 413,  938 => 412,  936 => 411,  928 => 408,  925 => 407,  922 => 406,  920 => 405,  912 => 402,  909 => 401,  906 => 400,  904 => 399,  892 => 396,  889 => 395,  886 => 394,  882 => 391,  879 => 390,  873 => 388,  870 => 387,  867 => 386,  864 => 385,  861 => 383,  855 => 380,  851 => 379,  848 => 378,  845 => 377,  839 => 374,  833 => 373,  830 => 372,  824 => 369,  820 => 368,  817 => 367,  815 => 366,  813 => 365,  810 => 364,  807 => 362,  803 => 360,  800 => 359,  797 => 357,  794 => 356,  791 => 354,  788 => 353,  783 => 351,  776 => 350,  773 => 349,  770 => 348,  768 => 347,  762 => 344,  759 => 343,  756 => 342,  753 => 340,  748 => 337,  742 => 336,  735 => 332,  731 => 330,  724 => 326,  720 => 325,  717 => 324,  714 => 323,  710 => 322,  706 => 320,  700 => 317,  697 => 316,  694 => 315,  691 => 314,  688 => 312,  682 => 310,  680 => 309,  675 => 307,  672 => 306,  669 => 304,  658 => 302,  654 => 301,  651 => 300,  644 => 294,  625 => 292,  608 => 291,  604 => 289,  593 => 287,  575 => 285,  557 => 284,  550 => 279,  545 => 276,  539 => 275,  532 => 271,  528 => 269,  521 => 265,  517 => 264,  514 => 263,  511 => 262,  507 => 261,  503 => 259,  497 => 256,  494 => 255,  491 => 254,  488 => 253,  484 => 250,  474 => 249,  459 => 243,  455 => 242,  451 => 241,  447 => 240,  443 => 238,  437 => 236,  435 => 235,  430 => 234,  427 => 233,  417 => 231,  403 => 229,  395 => 228,  377 => 227,  372 => 225,  349 => 205,  339 => 198,  316 => 177,  307 => 171,  303 => 169,  301 => 168,  298 => 167,  289 => 161,  285 => 159,  283 => 158,  251 => 128,  243 => 126,  241 => 125,  236 => 123,  233 => 122,  231 => 121,  217 => 110,  214 => 109,  204 => 108,  189 => 101,  182 => 99,  175 => 98,  168 => 97,  162 => 96,  157 => 95,  152 => 94,  75 => 18,  65 => 17,  54 => 11,  52 => 15,  50 => 13,  37 => 11,);
  1145.     }
  1146.     public function getSourceContext()
  1147.     {
  1148.         return new Source("{#
  1149. This file is part of EC-CUBE
  1150. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  1151. http://www.ec-cube.co.jp/
  1152. For the full copyright and license information, please view the LICENSE
  1153. file that was distributed with this source code.
  1154. #}
  1155. {% extends 'default_frame.twig' %}
  1156. {% set body_class = 'product_page' %}
  1157. {% form_theme form 'Form/form_div_layout.twig' %}
  1158. {% block stylesheet %}
  1159.     <style>
  1160.         .slick-slider {
  1161.             margin-bottom: 30px;
  1162.         }
  1163.         .slick-dots {
  1164.             position: absolute;
  1165.             bottom: -45px;
  1166.             display: none!important;
  1167.             width: 100%;
  1168.             padding: 0;
  1169.             list-style: none;
  1170.             text-align: center;
  1171.         }
  1172.         .slick-dots li {
  1173.             position: relative;
  1174.             display: inline-block;
  1175.             width: 20px;
  1176.             height: 20px;
  1177.             margin: 0 5px;
  1178.             padding: 0;
  1179.             cursor: pointer;
  1180.         }
  1181.         .slick-dots li button {
  1182.             font-size: 0;
  1183.             line-height: 0;
  1184.             display: block;
  1185.             width: 20px;
  1186.             height: 20px;
  1187.             padding: 5px;
  1188.             cursor: pointer;
  1189.             color: transparent;
  1190.             border: 0;
  1191.             outline: none;
  1192.             background: transparent;
  1193.         }
  1194.         .slick-dots li button:hover,
  1195.         .slick-dots li button:focus {
  1196.             outline: none;
  1197.         }
  1198.         .slick-dots li button:hover:before,
  1199.         .slick-dots li button:focus:before {
  1200.             opacity: 1;
  1201.         }
  1202.         .slick-dots li button:before {
  1203.             content: \" \";
  1204.             line-height: 20px;
  1205.             position: absolute;
  1206.             top: 0;
  1207.             left: 0;
  1208.             width: 12px;
  1209.             height: 12px;
  1210.             text-align: center;
  1211.             opacity: .25;
  1212.             background-color: black;
  1213.             border-radius: 50%;
  1214.         }
  1215.         .slick-dots li.slick-active button:before {
  1216.             opacity: .75;
  1217.             background-color: black;
  1218.         }
  1219.         .slick-dots li button.thumbnail img {
  1220.             width: 0;
  1221.             height: 0;
  1222.         }
  1223.         {# タグ #}
  1224.         {% for Tag in Product.Tags %}
  1225.         .ec-productRole__tag.tag_{{ Tag.id }}{
  1226.             {% if Tag.text_color %}color: {{ Tag.text_color }};{% endif %}
  1227.             {% if Tag.background_color %}background-color: {{ Tag.background_color }};{% endif %}
  1228.             {% if Tag.border_color %}border-color: {{ Tag.border_color }};{% endif %}
  1229.         }
  1230.         {% endfor %}
  1231.         .ec-productRole .ec-productRole__btn {
  1232.             width: 100%;
  1233.         }
  1234.     </style>
  1235. {% endblock %}
  1236. {% block javascript %}
  1237. <script>
  1238.     eccube.classCategories = {{ class_categories_as_json(Product)|raw }};
  1239.         // 規格2に選択肢を割り当てる。
  1240.         function fnSetClassCategories(form, classcat_id2_selected) {
  1241.             var \$form = \$(form);
  1242.             var product_id = \$form.find('input[name=product_id]').val();
  1243.             var \$sele1 = \$form.find('select[name=classcategory_id1]');
  1244.             var \$sele2 = \$form.find('select[name=classcategory_id2]');
  1245.             eccube.setClassCategories(\$form, product_id, \$sele1, \$sele2, classcat_id2_selected);
  1246.         }
  1247.         {% if form.classcategory_id2 is defined %}
  1248.         fnSetClassCategories(
  1249.             \$('#form1'), {{ form.classcategory_id2.vars.value|json_encode|raw }}
  1250.         );
  1251.         {% elseif form.classcategory_id1 is defined %}
  1252.         eccube.checkStock(\$('#form1'), {{ Product.id }}, {{ form.classcategory_id1.vars.value|json_encode|raw }}, null);
  1253.         {% endif %}
  1254.     </script>
  1255.     <script>
  1256.         \$(function() {
  1257.             // bfcache無効化
  1258.             \$(window).bind('pageshow', function(event) {
  1259.                 if (event.originalEvent.persisted) {
  1260.                     location.reload(true);
  1261.                 }
  1262.             });
  1263.             \$('.item_visual').slick({
  1264.                 dots: false,
  1265.                 arrows: false,
  1266.                 responsive: [{
  1267.                     breakpoint: 768,
  1268.                     settings: {
  1269.                         dots: true
  1270.                     }
  1271.                 }]
  1272.             });
  1273.             \$('.slideThumb').on('click', function() {
  1274.                 var index = \$(this).attr('data-index');
  1275.                 \$('.item_visual').slick('slickGoTo', index, false);
  1276.             })
  1277.         });
  1278.     </script>
  1279.     <script>
  1280.         \$(function() {
  1281.             \$('.add-cart').on('click', function(event) {
  1282.                 {% if form.classcategory_id1 is defined %}
  1283.                 // 規格1フォームの必須チェック
  1284.                 if (\$('#classcategory_id1').val() == '__unselected' || \$('#classcategory_id1').val() == '') {
  1285.                     \$('#classcategory_id1')[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
  1286.                     return true;
  1287.                 } else {
  1288.                     \$('#classcategory_id1')[0].setCustomValidity('');
  1289.                 }
  1290.                 {% endif %}
  1291.                 {% if form.classcategory_id2 is defined %}
  1292.                 // 規格2フォームの必須チェック
  1293.                 if (\$('#classcategory_id2').val() == '__unselected' || \$('#classcategory_id2').val() == '') {
  1294.                     \$('#classcategory_id2')[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
  1295.                     return true;
  1296.                 } else {
  1297.                     \$('#classcategory_id2')[0].setCustomValidity('');
  1298.                 }
  1299.                 {% endif %}
  1300.                 event.preventDefault();
  1301.                 \$form = \$('#form1');
  1302.                 \$.ajax({
  1303.                     url: \$form.attr('action'),
  1304.                     type: \$form.attr('method'),
  1305.                     data: \$form.serialize(),
  1306.                     dataType: 'json',
  1307.                     beforeSend: function(xhr, settings) {
  1308.                         // Buttonを無効にする
  1309.                         \$('.add-cart').prop('disabled', true);
  1310.                     }
  1311.                 }).done(function(data) {
  1312.                     // レスポンス内のメッセージをalertで表示
  1313.                     \$.each(data.messages, function() {
  1314.                         \$('#ec-modal-header').html(this);
  1315.                     });
  1316.                     \$('.ec-modal').show()
  1317.                     // カートブロックを更新する
  1318.                     \$.ajax({
  1319.                         url: \"{{ url('block_cart') }}\",
  1320.                         type: 'GET',
  1321.                         dataType: 'html'
  1322.                     }).done(function(html) {
  1323.                         \$('.ec-headerRole__cart').html(html);
  1324.                     });
  1325.                 }).fail(function(data) {
  1326.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  1327.                 }).always(function(data) {
  1328.                     // Buttonを有効にする
  1329.                     \$('.add-cart').prop('disabled', false);
  1330.                 });
  1331.             });
  1332.         });
  1333.         \$('.ec-modal-wrap').on('click', function(e) {
  1334.             // モーダル内の処理は外側にバブリングさせない
  1335.             e.stopPropagation();
  1336.         });
  1337.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  1338.             \$('.ec-modal').hide()
  1339.         });
  1340.     </script>
  1341.     <script type=\"application/ld+json\">
  1342.     {
  1343.         \"@context\": \"https://schema.org/\",
  1344.         \"@type\": \"Product\",
  1345.         \"name\": \"{{ Product.name }}\",
  1346.         \"image\": [
  1347.             {% for img in Product.ProductImage %}
  1348.                 \"{{ app.request.schemeAndHttpHost }}{{ asset(img, 'save_image') }}\"{% if not loop.last %},{% endif %}
  1349.             {% else %}
  1350.                 \"{{ app.request.schemeAndHttpHost }}{{ asset(''|no_image_product, 'save_image') }}\"
  1351.             {% endfor %}
  1352.         ],
  1353.         \"description\": \"{{ Product.description_list | default(Product.description_detail) | replace({'\\n': '', '\\r': ''}) | slice(0,300) }}\",
  1354.         {% if Product.code_min %}
  1355.         \"sku\": \"{{ Product.code_min }}\",
  1356.         {% endif %}
  1357.         \"offers\": {
  1358.             \"@type\": \"Offer\",
  1359.             \"url\": \"{{ url('product_detail_slug', {'slug': Product.slug}) }}\",
  1360.             \"priceCurrency\": \"{{ eccube_config.currency }}\",
  1361.             \"price\": {{ Product.getPrice02IncTaxMin }},
  1362.             \"availability\": \"{{ Product.stock_find ? \"InStock\" : \"OutOfStock\" }}\"
  1363.         }
  1364.     }
  1365.     </script>
  1366. {% endblock %}
  1367. {% block main %}
  1368.     <div class=\"ec-productRole mb60 pb60 spMb20 dottedBd\">
  1369.         <div class=\"displaySp mb10\">
  1370.             {# 色/サイズ #}
  1371.             {% if ProductDataList['colorOrSize'] != \"\" %}
  1372.                 {% if StandardClassificationName %}
  1373.                     <p class=\"mb10\">
  1374.                         {{ StandardClassificationName }}
  1375.                     </p>
  1376.                 {% endif %}
  1377.                 <div>
  1378.                     <ul class=\"detailColor\">
  1379.                         {% for key, product in ProductList %}
  1380.                             {% if product.productData.getId != Product.id  %}
  1381.                                 <li class=\"detailColorItem mb10\">
  1382.                                     <a href=\"{{ url('product_detail', {'id': product.productData.getId}) }}\">
  1383.                                         {{ product.colorOrSize }}
  1384.                                     </a>
  1385.                                 </li>
  1386.                             {% else %}
  1387.                                 <li class=\"detailColorItem mb10\">
  1388.                                     <a href=\"#\" class=\"active\">
  1389.                                         {{ product.colorOrSize }}
  1390.                                     </a>
  1391.                                 </li>
  1392.                             {% endif %}
  1393.                         {% endfor %}
  1394.                     </ul>
  1395.                 </div>
  1396.             {% endif %}
  1397.         </div>
  1398.         <div class=\"ec-grid2\">
  1399.             <div class=\"ec-grid2__cell\">
  1400.                 <div class=\"ec-sliderItemRole\">
  1401.                     <div class=\"item_visual\">
  1402.                         {% for ProductImage in PriorityProduct.ProductImage %}
  1403.                             <div class=\"slide-item\"><img src=\"{{ asset(ProductImage, 'save_image') }}\" alt=\"{{ loop.first ? Product.name : '' }}\"></div>
  1404.                         {% else %}
  1405.                             <div class=\"slide-item\"><img src=\"{{ asset(''|no_image_product, 'save_image') }}\" alt=\"{{ loop.first ? Product.name : '' }}\" /></div>
  1406.                         {% endfor %}
  1407.                     </div>
  1408.                     <div class=\"item_nav\">
  1409.                         {% for ProductImage in PriorityProduct.ProductImage %}
  1410.                             <div class=\"slideThumb\" data-index=\"{{ loop.index0 }}\"><img src=\"{{ asset(ProductImage, 'save_image') }}\" alt=\"\"></div>
  1411.                         {% endfor %}
  1412.                     </div>
  1413.                 </div>
  1414.             </div>
  1415.             <div class=\"ec-grid2__cell\">
  1416.                 <div class=\"ec-productRole__profile\">
  1417.                     {# タグ #}
  1418.                     <ul class=\"ec-productRole__tags noBb\">
  1419.                         {% for Tag in Product.Tags %}
  1420.                             <li class=\"ec-productRole__tag tag_{{ Tag.id }}\">{{ Tag }}</li>
  1421.                         {% endfor %}
  1422.                     </ul>
  1423.                     {# 商品名 #}
  1424.                     <div class=\"ec-productRole__title\">
  1425.                         <h2 class=\"ec-headingTitle\">{{ Product.name }}</h2>
  1426.                     </div>
  1427.                     {% if PriorityProduct.description_list %}
  1428.                         <p>{{ PriorityProduct.description_list }}</p>
  1429.                     {% endif %}
  1430.                     <br>
  1431.                     {# 色/サイズ #}
  1432.                     {% if ProductDataList['colorOrSize'] != \"\" %}
  1433.                         {% if StandardClassificationName %}
  1434.                             <p class=\"mb10 displayPc\">
  1435.                                 {{ StandardClassificationName }}
  1436.                             </p>
  1437.                         {% endif %}
  1438.                         <div class=\"displayPc\">
  1439.                             <ul class=\"detailColor\">
  1440.                                 {% for key, product in ProductList %}
  1441.                                     {% if product.productData.getId != Product.id  %}
  1442.                                         <li class=\"detailColorItem mb10\">
  1443.                                             <a href=\"{{ url('product_detail', {'id': product.productData.getId}) }}\">
  1444.                                                 {{ product.colorOrSize }}
  1445.                                             </a>
  1446.                                         </li>
  1447.                                     {% else %}
  1448.                                         <li class=\"detailColorItem mb10\">
  1449.                                             <a href=\"#\" class=\"active\">
  1450.                                                 {{ product.colorOrSize }}
  1451.                                             </a>
  1452.                                         </li>
  1453.                                     {% endif %}
  1454.                                 {% endfor %}
  1455.                             </ul>
  1456.                         </div>
  1457.                     {% endif %}
  1458.                     <br>
  1459.                     {# カスタムフィールド #}
  1460.                     {% if ProductDataList['catch'] != null %}
  1461.                         <div class=\"dottedBd\" style=\"padding-bottom: 20px;\">
  1462.                             <p style=\"color: red\">{{ ProductDataList['catch'] }}</p>
  1463.                         </div>
  1464.                     {% endif %}
  1465.                     {# 通常価格(会員グループが【官公庁】の場合のみ表示) #}
  1466.                     {% if (GroupId == 4) and Product.getPrice01IncTaxMin %}
  1467.                         {% if Product.getPrice01Max is not null %}
  1468.                             <span class=\"ec-productRole__priceRegularPrice\">{{ 'front.product.normal_price'|trans }}:{{ Product.getPrice01IncTaxMin|price }}</span>
  1469.                             <span class=\"ec-productRole__priceRegularTax\">{{ 'common.tax_include'|trans }}</span>
  1470.                         {% endif %}
  1471.                     {% endif %}
  1472.                     {# 会員グループが【取引先】 #}
  1473.                     {% if GroupId == 3 %}
  1474.                         <p>卸価格</p>
  1475.                         {# 会員グループが【取引先】 #}
  1476.                     {% elseif GroupId == 4 %}
  1477.                         <p>官公庁職員価格</p>
  1478.                     {% endif %}
  1479.                     {# 販売価格 #}
  1480.                     <div class=\"ec-productRole__price\">
  1481.                         {% if Product.hasProductClass -%}
  1482.                             {% if Product.getPrice02IncTaxMin == Product.getPrice02IncTaxMax %}
  1483.                                 <div class=\"ec-price\">
  1484.                                     <span class=\"ec-price__price price02-default\">{{ Product.getPrice02IncTaxMin|price }}</span>
  1485.                                     <span class=\"ec-price__tax\">{{ '税込'|trans }}</span>
  1486.                                 </div>
  1487.                             {% else %}
  1488.                                 <div class=\"ec-price\">
  1489.                                     <span class=\"ec-price__price price02-default\">{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}</span>
  1490.                                     <span class=\"ec-price__tax\">{{ '税込'|trans }}</span>
  1491.                                 </div>
  1492.                             {% endif %}
  1493.                         {% else %}
  1494.                             <div class=\"ec-price\">
  1495.                                 <span class=\"ec-price__price\">{{ Product.getPrice02IncTaxMin|price }}</span>
  1496.                                 <span class=\"ec-price__tax\">{{ '税込'|trans }}</span>
  1497.                             </div>
  1498.                         {% endif %}
  1499.                         {# 通常価格(会員グループが【一般、官公庁職員】の場合のみ表示) #}
  1500.                         {% if (GroupId == 1 or GroupId == 4) and Product.getPrice01IncTaxMin %}
  1501.                             {% if Product.getPrice01Max is not null %}
  1502.                                 {% set discountRate = (1.0 - (Product.getPrice02Min / Product.getPrice01Min)) * 100 %}
  1503.                                 <div class=\"ec-color-red ec-font-size-3\">(通常価格より {{discountRate|round}}% 割引)</div>
  1504.                             {% endif %}
  1505.                         {% endif %}
  1506.                     </div>
  1507.                     {# SKUコード(商品コード) #}
  1508.                     {% if Product.code_min is not empty %}
  1509.                         <div class=\"ec-productRole__code\">
  1510.                             {{ 'SKUコード'|trans }}: <span class=\"product-code-default\">{{ Product.code_min }}{% if Product.code_min != Product.code_max %} ~ {{ Product.code_max }}{% endif %}</span>
  1511.                         </div>
  1512.                     {% endif %}
  1513.                     {# JAN #}
  1514.                     {% if ProductDataList['jan'] != null %}
  1515.                         <div class=\"ec-productRole__code\">
  1516.                             {{ 'JANコード'|trans }}: <span class=\"product-code-default\">{{ ProductDataList['jan'] }}</span>
  1517.                         </div>
  1518.                     {% endif %}
  1519.                     {# UPC #}
  1520.                     {% if ProductDataList['upc'] != null %}
  1521.                         <div class=\"ec-productRole__code\">
  1522.                             {{ 'UPCコード'|trans }}: <span class=\"product-code-default\">{{ ProductDataList['upc'] }}</span>
  1523.                         </div>
  1524.                     {% endif %}
  1525.                     {# 関連カテゴリ #}
  1526.                     {% if Product.ProductCategories is not empty %}
  1527.                         <div class=\"ec-productRole__category\">
  1528.                             <div>{{ '関連カテゴリ'|trans }}</div>
  1529.                             {% for ProductCategory in Product.ProductCategories %}
  1530.                                 <ul>
  1531.                                     <li>
  1532.                                         {% if ProductCategory.Category.path|length == 2 and ProductCategory.Category.path[1].name == '在庫限り・取り扱い終了' %}
  1533.                                             {# カテゴリを表示しない #}
  1534.                                         {% else %}
  1535.                                             {% for Category in ProductCategory.Category.path %}
  1536.                                                 <a href=\"{{ url('product_list') }}?category_id={{ Category.id }}\">{{ Category.name }}</a> {%- if loop.last == false %}
  1537.                                                 <span>></span>{% endif -%}
  1538.                                             {% endfor %}
  1539.                                         {% endif %}
  1540.                                     </li>
  1541.                                 </ul>
  1542.                             {% endfor %}
  1543.                         </div>
  1544.                     {% endif %}
  1545.                     <form action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\" id=\"form1\" name=\"form1\">
  1546.                         {% if Product.stock_find %}
  1547.                             <div class=\"ec-productRole__actions\">
  1548.                                 {# 在庫数 #}
  1549.                                 <div>
  1550.                                     {% if Product.getProductClasses[0].getStock is not null %}
  1551.                                         <p>{{ '在庫'|trans }}:{{ Product.getProductClasses[0].getStock }}</p>
  1552.                                     {% else %}
  1553.                                         <p>{{ '在庫'|trans }}:無制限</p>
  1554.                                     {% endif %}
  1555.                                 </div>
  1556.                             </div>
  1557.                             <div class=\"ec-productRole__btn\">
  1558.                                 <button type=\"submit\" class=\"ec-blockBtn--action add-cart\">
  1559.                                     {{ 'カートに入れる'|trans }}
  1560.                                 </button>
  1561.                             </div>
  1562.                         {% else %}
  1563.                             <div class=\"ec-productRole__btn\">
  1564.                                 <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  1565.                                     {{ 'ただいま品切れ中です。'|trans }}
  1566.                                 </button>
  1567.                             </div>
  1568.                         {% endif %}
  1569.                         {{ form_rest(form) }}
  1570.                     </form>
  1571.                     <div class=\"ec-modal\">
  1572.                         <div class=\"ec-modal-overlay\">
  1573.                             <div class=\"ec-modal-wrap\">
  1574.                                 <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
  1575.                                 <div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
  1576.                                 <div class=\"ec-modal-box\">
  1577.                                     <div class=\"ec-role\">
  1578.                                         <span class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</span>
  1579.                                         <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
  1580.                                     </div>
  1581.                                 </div>
  1582.                             </div>
  1583.                         </div>
  1584.                     </div>
  1585.                     {% if BaseInfo.option_favorite_product %}
  1586.                         <form action=\"{{ url('product_add_favorite', {id:Product.id}) }}\" method=\"post\">
  1587.                             <div class=\"ec-productRole__btn\">
  1588.                                 {% if is_favorite == false %}
  1589.                                     <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\" style=\"margin: 0\">
  1590.                                         {{ 'お気に入りに追加'|trans }}
  1591.                                     </button>
  1592.                                 {% else %}
  1593.                                     <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\"
  1594.                                             disabled=\"disabled\">{{ 'お気に入りに追加済です'|trans }}
  1595.                                     </button>
  1596.                                 {% endif %}
  1597.                             </div>
  1598.                         </form>
  1599.                     {% endif %}
  1600.                     <div>
  1601.                         <p>※ 当社取扱い商品には、軍や法執行機関の実務要求に特化し、一般の民生品とは異なる用途を想定して、設計・材料変更・製造されたものが多くございます。 さらに大量供給を前提に実用品として生産されるため色の個体差やネジの硬さなどが大きく異なる場合がございます。 また予備知識や訓練が必要な商品もございます。 購入時にはご了承の上、十分ご注意頂くようお願い申し上げます。</p>
  1602.                     </div>
  1603.                 </div>
  1604.             </div>
  1605.         </div>
  1606.     </div>
  1607.     <div class=\"ec-productRole__description\">
  1608.         {{ PriorityProduct.description_detail|raw|nl2br }}
  1609.     </div>
  1610.     {% if PriorityProduct.freearea %}
  1611.         <div class=\"ec-productRole__description\">
  1612.             {{ include(template_from_string(PriorityProduct.freearea|raw|nl2br)) }}
  1613.         </div>
  1614.     {% endif %}
  1615.     </div>
  1616.     </div>
  1617. {% endblock %}""Product/detail_slug.twig""/home/xb235735/neue-zeile.com/public_html/stage.neue-zeile.com/frontlines/app/template/default/Product/detail_slug.twig");
  1618.     }
  1619. }