var/cache/dev/twig/d1/d1ecd89c40dfff040460dae1e7c08be95dba313696943e8a502edec2ceebfb31.php line 1666

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.twig */
  14. class __TwigTemplate_96c563db9ada41512149594432039e6f0c776089bff10d591b9a54f63d158ce5 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.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.twig"));
  40.         // line 13
  41.         $context["body_class"] = "product_page";
  42.         // line 11
  43.         $this->parent $this->loadTemplate("default_frame.twig""Product/detail.twig"11);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  47.         
  48.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  49.     }
  50.     // line 15
  51.     public function block_stylesheet($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  58.         // line 16
  59.         echo "    <style>
  60.         .slick-slider {
  61.             margin-bottom: 10px;
  62. \t\t\tmargin-top: -20px;
  63.         }
  64.         .slick-dots {
  65.             position: absolute;
  66.             bottom: -45px;
  67.             display: block;
  68.             width: 100%;
  69.             padding: 0;
  70.             list-style: none;
  71.             text-align: center;
  72.         }
  73.         .slick-dots li {
  74.             position: relative;
  75.             display: inline-block;
  76.             width: 20px;
  77.             height: 20px;
  78.             margin: 0 5px;
  79.             padding: 0;
  80.             cursor: pointer;
  81.         }
  82.         .slick-dots li button {
  83.             font-size: 0;
  84.             line-height: 0;
  85.             display: block;
  86.             width: 20px;
  87.             height: 20px;
  88.             padding: 5px;
  89.             cursor: pointer;
  90.             color: transparent;
  91.             border: 0;
  92.             outline: none;
  93.             background: transparent;
  94.         }
  95.         .slick-dots li button:hover,
  96.         .slick-dots li button:focus {
  97.             outline: none;
  98.         }
  99.         .slick-dots li button:hover:before,
  100.         .slick-dots li button:focus:before {
  101.             opacity: 1;
  102.         }
  103.         .slick-dots li button:before {
  104.             content: \" \";
  105.             line-height: 20px;
  106.             position: absolute;
  107.             top: 0;
  108.             left: 0;
  109.             width: 12px;
  110.             height: 12px;
  111.             text-align: center;
  112.             opacity: .25;
  113.             background-color: black;
  114.             border-radius: 50%;
  115.         }
  116.         .slick-dots li.slick-active button:before {
  117.             opacity: .75;
  118.             background-color: black;
  119.         }
  120.         .slick-dots li button.thumbnail img {
  121.             width: 0;
  122.             height: 0;
  123.         }
  124.     </style>
  125.     <link rel=\"stylesheet\" href=\"/html/user_data/js/style.css\">
  126.     <link rel=\"stylesheet\" href=\"/html/plugins/icheck-bootstrap/icheck-bootstrap.min.css\">
  127. ";
  128.         
  129.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  130.         
  131.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  132.     }
  133.     // line 98
  134.     public function block_javascript($context, array $blocks = [])
  135.     {
  136.         $macros $this->macros;
  137.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  138.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  139.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  140.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  141.         // line 99
  142.         echo "
  143.     <script>
  144.         eccube.classCategories = ";
  145.         // line 101
  146.         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.'101$this->source); })()));
  147.         echo ";
  148.         // 規格2に選択肢を割り当てる。
  149.         function fnSetClassCategories(form, classcat_id2_selected) {
  150.             var \$form = \$(form);
  151.             var product_id = \$form.find('input[name=product_id]').val();
  152.             var \$sele1 = \$form.find('select[name=classcategory_id1]');
  153.             var \$sele2 = \$form.find('select[name=classcategory_id2]');
  154.             eccube.setClassCategories(\$form, product_id, \$sele1, \$sele2, classcat_id2_selected);
  155.         }
  156.         ";
  157.         // line 112
  158.         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse112)) {
  159.             // line 113
  160.             echo "        fnSetClassCategories(
  161.             \$('#form1'), ";
  162.             // line 114
  163.             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.'114$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse114), "vars", [], "any"falsefalsefalse114), "value", [], "any"falsefalsefalse114));
  164.             echo "
  165.         );
  166.         ";
  167.         } elseif (twig_get_attribute($this->env$this->source,         // line 116
  168. ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse116)) {
  169.             // line 117
  170.             echo "        eccube.checkStock(\$('#form1'), ";
  171.             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.'117$this->source); })()), "id", [], "any"falsefalsefalse117), "html"nulltrue);
  172.             echo ", ";
  173.             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.'117$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse117), "vars", [], "any"falsefalsefalse117), "value", [], "any"falsefalsefalse117));
  174.             echo ", null);
  175.         ";
  176.         }
  177.         // line 119
  178.         echo "    </script>
  179.     <script>
  180.         \$(function() {
  181.             // bfcache無効化
  182.             \$(window).bind('pageshow', function(event) {
  183.                 if (event.originalEvent.persisted) {
  184.                     location.reload(true);
  185.                 }
  186.             });
  187.             // Core Web Vital の Cumulative Layout Shift(CLS)対策のため
  188.             // img タグに width, height が付与されている.
  189.             // 630px 未満の画面サイズでは縦横比が壊れるための対策
  190.             // see https://github.com/EC-CUBE/ec-cube/pull/5023
  191.             \$('.ec-grid2__cell').hide();
  192.             var removeSize = function () {
  193.                 \$('.slide-item').height('');
  194.                 \$('.slide-item img')
  195.                     .removeAttr('width')
  196.                     .removeAttr('height')
  197.                     .removeAttr('style');
  198.             };
  199.             var slickInitial = function(slick) {
  200.                 \$('.ec-grid2__cell').fadeIn(1500);
  201.                 var baseHeight = \$(slick.target).height();
  202.                 var baseWidth = \$(slick.target).width();
  203.                 var rate = baseWidth / baseHeight;
  204. \t\t\t\tif(baseHeight * rate < 400){
  205. \t                \$('.slide-item').height(baseHeight * rate); // 余白を削除する
  206. \t\t\t\t}else{
  207. \t                \$('.slide-item').height(400); // 余白を削除する
  208. \t\t\t\t}
  209.                 // transform を使用することでCLSの影響を受けないようにする
  210.                 \$('.slide-item img')
  211.                     .css(
  212.                         {
  213.                             'transform-origin': 'top left',
  214.                             'transform': 'scaleY(' + rate + ')',
  215.                             'transition': 'transform .1s'
  216.                         }
  217.                     );
  218.                 // 正しいサイズに近くなったら属性を解除する
  219.                 setTimeout(removeSize, 500);
  220.             };
  221.             \$('.item_visual').on('init', slickInitial);
  222.             // リサイズ時は CLS の影響を受けないため属性を解除する
  223.             \$(window).resize(removeSize);
  224.             \$('.item_visual').slick({
  225.                 dots: false,
  226.                 arrows: true,
  227.                 responsive: [{
  228.                     breakpoint: 768,
  229.                     settings: {
  230.                         dots: true,
  231.                 \t\tarrows: false
  232.                     }
  233.                 }]
  234.             });
  235.             \$('.slideThumb').on('click', function() {
  236.                 var index = \$(this).attr('data-index');
  237.                 \$('.item_visual').slick('slickGoTo', index, false);
  238.             })
  239.         });
  240.     </script>
  241.     <script>
  242.         \$(function() {
  243.             \$('.add-cart').on('click', function(event) {
  244.                 ";
  245.         // line 189
  246.         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse189)) {
  247.             // line 190
  248.             echo "                // 規格1フォームの必須チェック
  249.                 if (\$('#classcategory_id1').val() == '__unselected' || \$('#classcategory_id1').val() == '') {
  250.                     \$('#classcategory_id1')[0].setCustomValidity('";
  251.             // line 192
  252.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("項目が選択されていません"), "html"nulltrue);
  253.             echo "');
  254.                     return true;
  255.                 } else {
  256.                     \$('#classcategory_id1')[0].setCustomValidity('');
  257.                 }
  258.                 ";
  259.         }
  260.         // line 198
  261.         echo "
  262.                 ";
  263.         // line 199
  264.         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse199)) {
  265.             // line 200
  266.             echo "                // 規格2フォームの必須チェック
  267.                 if (\$('#classcategory_id2').val() == '__unselected' || \$('#classcategory_id2').val() == '') {
  268.                     \$('#classcategory_id2')[0].setCustomValidity('";
  269.             // line 202
  270.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("項目が選択されていません"), "html"nulltrue);
  271.             echo "');
  272.                     return true;
  273.                 } else {
  274.                     \$('#classcategory_id2')[0].setCustomValidity('');
  275.                 }
  276.                 ";
  277.         }
  278.         // line 208
  279.         echo "
  280.                 // 個数フォームのチェック
  281.                 if (\$('#quantity').val() < 1) {
  282.                     \$('#quantity')[0].setCustomValidity('";
  283.         // line 211
  284.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html"nulltrue);
  285.         echo "');
  286.                     return true;
  287.                 } else {
  288.                     \$('#quantity')[0].setCustomValidity('');
  289.                 }
  290.                 event.preventDefault();
  291.                 \$form = \$('#form1');
  292.                 \$.ajax({
  293.                     url: \$form.attr('action'),
  294.                     type: \$form.attr('method'),
  295.                     data: \$form.serialize(),
  296.                     dataType: 'json',
  297.                     beforeSend: function(xhr, settings) {
  298.                         // Buttonを無効にする
  299.                         \$('.add-cart').prop('disabled', true);
  300.                     }
  301.                 }).done(function(data) {
  302.                     // レスポンス内のメッセージをalertで表示
  303.                     \$.each(data.messages, function() {
  304.                         \$('#ec-modal-header').text(this);
  305.                     });
  306.                     \$('.ec-modal').show()
  307.                     // カートブロックを更新する
  308.                     \$.ajax({
  309.                         url: \"";
  310.         // line 238
  311.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  312.         echo "\",
  313.                         type: 'GET',
  314.                         dataType: 'html'
  315.                     }).done(function(html) {
  316.                         \$('.ec-headerRole__cart').html(html);
  317.                     });
  318.                 }).fail(function(data) {
  319.                     alert('";
  320.         // line 245
  321.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  322.         echo "');
  323.                 }).always(function(data) {
  324.                     // Buttonを有効にする
  325.                     \$('.add-cart').prop('disabled', false);
  326.                 });
  327.             });
  328.         });
  329.         \$('.ec-modal-wrap').on('click', function(e) {
  330.             // モーダル内の処理は外側にバブリングさせない
  331.             e.stopPropagation();
  332.         });
  333.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  334.             \$('.ec-modal').hide()
  335.         });
  336. \t\tvar pw = \"";
  337.         // line 262
  338.         if ((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'262$this->source); })())) {
  339.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'262$this->source); })()), "pw", [], "any"falsefalsefalse262), "html"nulltrue);
  340.         }
  341.         echo "\";
  342. \t\tvar pd = \"";
  343.         // line 263
  344.         if ((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'263$this->source); })())) {
  345.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'263$this->source); })()), "pd", [], "any"falsefalsefalse263), "html"nulltrue);
  346.         }
  347.         echo "\";
  348. \t\tvar ph = \"";
  349.         // line 264
  350.         if ((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'264$this->source); })())) {
  351.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'264$this->source); })()), "ph", [], "any"falsefalsefalse264), "html"nulltrue);
  352.         }
  353.         echo "\";
  354. \t\tvar pm = \"";
  355.         // line 265
  356.         if ((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'265$this->source); })())) {
  357.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'265$this->source); })()), "pm", [], "any"falsefalsefalse265), "html"nulltrue);
  358.         }
  359.         echo "\";
  360. \t\tvar pc = \"";
  361.         // line 266
  362.         if ((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'266$this->source); })())) {
  363.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'266$this->source); })()), "pc", [], "any"falsefalsefalse266), "html"nulltrue);
  364.         }
  365.         echo "\";
  366. \t\tvar op0 = \"";
  367.         // line 267
  368.         if ((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'267$this->source); })())) {
  369.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'267$this->source); })()), "op", [], "any"falsefalsefalse267), 0, [], "array"falsefalsefalse267), "html"nulltrue);
  370.         }
  371.         echo "\";
  372. \t\tvar op1 = \"";
  373.         // line 268
  374.         if ((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'268$this->source); })())) {
  375.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'268$this->source); })()), "op", [], "any"falsefalsefalse268), 1, [], "array"falsefalsefalse268), "html"nulltrue);
  376.         }
  377.         echo "\";
  378. \t\tvar op2 = \"";
  379.         // line 269
  380.         if ((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'269$this->source); })())) {
  381.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'269$this->source); })()), "op", [], "any"falsefalsefalse269), 2, [], "array"falsefalsefalse269), "html"nulltrue);
  382.         }
  383.         echo "\";
  384. \t\tvar op3 = \"";
  385.         // line 270
  386.         if ((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'270$this->source); })())) {
  387.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'270$this->source); })()), "op", [], "any"falsefalsefalse270), 3, [], "array"falsefalsefalse270), "html"nulltrue);
  388.         }
  389.         echo "\";
  390. \t\tvar op4 = \"";
  391.         // line 271
  392.         if ((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'271$this->source); })())) {
  393.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'271$this->source); })()), "op", [], "any"falsefalsefalse271), 4, [], "array"falsefalsefalse271), "html"nulltrue);
  394.         }
  395.         echo "\";
  396. \t\tvar op5 = \"";
  397.         // line 272
  398.         if ((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'272$this->source); })())) {
  399.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'272$this->source); })()), "op", [], "any"falsefalsefalse272), 5, [], "array"falsefalsefalse272), "html"nulltrue);
  400.         }
  401.         echo "\";
  402. \t\tvar op6 = \"";
  403.         // line 273
  404.         if ((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'273$this->source); })())) {
  405.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'273$this->source); })()), "op", [], "any"falsefalsefalse273), 6, [], "array"falsefalsefalse273), "html"nulltrue);
  406.         }
  407.         echo "\";
  408. \t\tvar op7 = \"";
  409.         // line 274
  410.         if ((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'274$this->source); })())) {
  411.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'274$this->source); })()), "op", [], "any"falsefalsefalse274), 7, [], "array"falsefalsefalse274), "html"nulltrue);
  412.         }
  413.         echo "\";
  414. \t\tvar op8 = \"";
  415.         // line 275
  416.         if ((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'275$this->source); })())) {
  417.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'275$this->source); })()), "op", [], "any"falsefalsefalse275), 8, [], "array"falsefalsefalse275), "html"nulltrue);
  418.         }
  419.         echo "\";
  420. \t\tvar op9 = \"";
  421.         // line 276
  422.         if ((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'276$this->source); })())) {
  423.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'276$this->source); })()), "op", [], "any"falsefalsefalse276), 9, [], "array"falsefalsefalse276), "html"nulltrue);
  424.         }
  425.         echo "\";
  426. \t\tvar op10 = \"";
  427.         // line 277
  428.         if ((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'277$this->source); })())) {
  429.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'277$this->source); })()), "op", [], "any"falsefalsefalse277), 10, [], "array"falsefalsefalse277), "html"nulltrue);
  430.         }
  431.         echo "\";
  432. \t\tconst formatter = new Intl.NumberFormat('ja-JP');
  433. \t\tfunction cartbutton(option){
  434. \t\t\tif(option == '商品購入のみ' || option == '商品取り付け工事も希望する'){
  435. \t\t\t\tif(option == '商品購入のみ'){
  436. \t\t\t\t\t\$('#cart_btn').show();
  437. \t\t\t\t}else{
  438. \t\t\t\t\t\$('#cart_btn').hide();
  439. \t\t\t\t}
  440. \t\t\t}
  441. \t\t}
  442. \t\tfunction mitsumori_simulation(type , value_id){
  443. \t\t\tvar pp = ";
  444.         // line 291
  445.         echo (isset($context["pp"]) || array_key_exists("pp"$context) ? $context["pp"] : (function () { throw new RuntimeError('Variable "pp" does not exist.'291$this->source); })());
  446.         echo ";
  447. \t\t\tif(type == \"pw\"){
  448. \t\t\t\tpw = \$('#'+value_id).val();
  449. \t\t\t}
  450. \t\t\tif(type == \"pd\"){
  451. \t\t\t\tpd = \$('#'+value_id).val();
  452. \t\t\t}
  453. \t\t\tif(type == \"ph\"){
  454. \t\t\t\tph = \$('#'+value_id).val();
  455. \t\t\t}
  456. \t\t\tif(type == \"pm\"){
  457. \t\t\t\tpm = \$('#'+value_id).val();
  458. \t\t\t}
  459. \t\t\tif(type == \"pc\"){
  460. \t\t\t\tpc = \$('#'+value_id).val();
  461. \t\t\t}
  462. \t\t\tif(type == \"op0\"){ op0 = \$('#'+value_id).val(); }
  463. \t\t\tif(type == \"op1\"){ op1 = \$('#'+value_id).val(); }
  464. \t\t\tif(type == \"op2\"){ op2 = \$('#'+value_id).val(); }
  465. \t\t\tif(type == \"op3\"){ op3 = \$('#'+value_id).val(); }
  466. \t\t\tif(type == \"op4\"){ op4 = \$('#'+value_id).val(); }
  467. \t\t\tif(type == \"op5\"){ op5 = \$('#'+value_id).val(); }
  468. \t\t\tif(type == \"op6\"){ op6 = \$('#'+value_id).val(); }
  469. \t\t\tif(type == \"op7\"){ op7 = \$('#'+value_id).val(); }
  470. \t\t\tif(type == \"op8\"){ op8 = \$('#'+value_id).val(); }
  471. \t\t\tif(type == \"op9\"){ op9 = \$('#'+value_id).val(); }
  472. \t\t\tif(type == \"op10\"){ op10 = \$('#'+value_id).val(); }
  473. \t\t\tif(pm == \"\"){
  474. \t\t\t\t\$('#mitsumori_message').text(\"素材を選択してください\");
  475. \t\t\t}
  476. \t\t\tif(ph == \"\"){
  477. \t\t\t\t\$('#mitsumori_message').text(\"高さを選択してください\");
  478. \t\t\t}
  479. \t\t\tif(pd == \"\"){
  480. \t\t\t\t\$('#mitsumori_message').text(\"奥行きを選択してください\");
  481. \t\t\t}
  482. \t\t\tif(pw == \"\"){
  483. \t\t\t\t\$('#mitsumori_message').text(\"幅を選択してください\");
  484. \t\t\t}
  485. \t\t\tif(pc == \"\"){
  486. \t\t\t\t\$('#mitsumori_message').text(\"カラーを選択してください\");
  487. \t\t\t\t\$('#mitsumori_btn').hide();
  488. \t\t\t\t\$('#mitsumori_goukei').text(\"---円\");
  489. \t\t\t\t\$('#mitsumori_off').text(\"---円\");
  490. \t\t\t\t\$('#mitsumori_price').text(\"---円\");
  491. \t\t\t\t\$('#maker_price').text(\"---円\");
  492. \t\t\t\t\$('#mitsumori_ct').text(\"---円\");
  493. \t\t\t\t\$('#mitsumori_option').text(\"---円\");
  494. \t\t\t}
  495. \t\t\tif(pw != \"\" && pd != \"\" && ph != \"\" && pm != \"\" && pc != \"\"){
  496. \t\t\t\t\$('#mitsumori_btn').show();
  497. \t\t\t\t
  498. \t\t\t\tpp.forEach((el) => {
  499. \t\t\t\t  if((pw == el.w || pw == \"指定なし\") && (pd == el.d || pd == \"指定なし\") && (ph == el.h || ph == \"指定なし\") && (pm == el.m || pm == \"指定なし\") && (pc == el.c || pc == \"指定なし\")){
  500. \t\t\t\t\tif(op0 == \"商品購入のみ\" || op1 == \"商品購入のみ\" || op2 == \"商品購入のみ\" || op3 == \"商品購入のみ\" || op4 == \"商品購入のみ\" 
  501. \t\t\t\t\t\t|| op5 == \"商品購入のみ\" || op6 == \"商品購入のみ\" || op7 == \"商品購入のみ\" || op8 == \"商品購入のみ\" || op9 == \"商品購入のみ\"){
  502. \t\t\t\t\t  \t\$('#mitsumori_message').text(formatter.format(parseInt(el.price)) + \"円\");
  503. \t\t\t\t\t  \t\$('#mitsumori_goukei').text(formatter.format(parseInt(el.price)) + \"円\");
  504. \t\t\t\t\t  \t\$('#mitsumori_off').text(formatter.format(parseInt(el.price) - parseInt(el.maker_price)) + \"円\");
  505. \t\t\t\t\t  \t\$('#mitsumori_price').text(formatter.format(parseInt(el.price)) + \"円\");
  506. \t\t\t\t\t  \t\$('#maker_price').text(formatter.format(parseInt(el.maker_price)) + \"円\");
  507. \t\t\t\t\t  \t\$('#mitsumori_ct').text(\"0円\");
  508. \t\t\t\t\t  \t\$('#mitsumori_option').text(\"0円\");
  509. \t\t\t\t\t  \t\$('#mitsumori_kei').text(formatter.format(parseInt(el.price)) + \"円\");
  510. \t\t\t\t\t  \t\$('#mitsumori_price_01').text(formatter.format(parseInt(el.price)) + \"円\");
  511. \t\t\t\t\t  \t\$('#mitsumori_price_02').text(formatter.format(parseInt(el.price)) + \"円\");
  512. \t\t\t\t\t  \t\$('#mitsumori_ct_01').text(\"0円\");
  513. \t\t\t\t\t  \t\$('#mitsumori_ct_02').text(\"0円\");
  514. \t\t\t\t\t  \t\$('#mitsumori_goukei_02').text(formatter.format(parseInt(el.price)) + \"円\");
  515. \t\t\t\t\t\t
  516. \t\t\t\t\t\tmitsumori_goukei = (parseInt(el.price));
  517. \t\t\t\t\t\tshoukei = mitsumori_goukei / 1.1;
  518. \t\t\t\t\t\ttax = parseInt(mitsumori_goukei - shoukei);
  519. \t\t\t\t\t  \t\$('#mitsumori_shoukei').text(formatter.format(parseInt(shoukei)) + \"円\");
  520. \t\t\t\t\t  \t\$('#mitsumori_tax').text(formatter.format(parseInt(tax)) + \"円\");
  521. \t\t\t\t\t}else{
  522. \t\t\t\t\t  \t\$('#mitsumori_message').text(formatter.format(parseInt(el.price) + parseInt(el.ct)) + \"円\");
  523. \t\t\t\t\t  \t\$('#mitsumori_goukei').text(formatter.format(parseInt(el.price) + parseInt(el.ct)) + \"円\");
  524. \t\t\t\t\t  \t\$('#mitsumori_off').text(formatter.format(parseInt(el.price) - parseInt(el.maker_price)) + \"円\");
  525. \t\t\t\t\t  \t\$('#mitsumori_price').text(formatter.format(parseInt(el.price)) + \"円\");
  526. \t\t\t\t\t  \t\$('#maker_price').text(formatter.format(parseInt(el.maker_price)) + \"円\");
  527. \t\t\t\t\t  \t\$('#mitsumori_ct').text(formatter.format(parseInt(el.ct)) + \"円\");
  528. \t\t\t\t\t  \t\$('#mitsumori_option').text(\"0円\");
  529. \t\t\t\t\t  \t\$('#mitsumori_kei').text(formatter.format(parseInt(el.price) + parseInt(el.ct)) + \"円\");
  530. \t\t\t\t\t  \t\$('#mitsumori_price_01').text(formatter.format(parseInt(el.price)) + \"円\");
  531. \t\t\t\t\t  \t\$('#mitsumori_price_02').text(formatter.format(parseInt(el.price)) + \"円\");
  532. \t\t\t\t\t  \t\$('#mitsumori_ct_01').text(formatter.format(parseInt(el.ct)) + \"円\");
  533. \t\t\t\t\t  \t\$('#mitsumori_ct_02').text(formatter.format(parseInt(el.ct)) + \"円\");
  534. \t\t\t\t\t  \t\$('#mitsumori_goukei_02').text(formatter.format(parseInt(el.price) + parseInt(el.ct)) + \"円\");
  535. \t\t\t\t\t\tmitsumori_goukei = (parseInt(el.price) + parseInt(el.ct));
  536. \t\t\t\t\t\tshoukei = mitsumori_goukei / 1.1;
  537. \t\t\t\t\t\ttax = parseInt(mitsumori_goukei - shoukei);
  538. \t\t\t\t\t  \t\$('#mitsumori_shoukei').text(formatter.format(parseInt(shoukei)) + \"円\");
  539. \t\t\t\t\t  \t\$('#mitsumori_tax').text(formatter.format(parseInt(tax)) + \"円\");
  540. \t\t\t\t\t}
  541. \t\t\t\t  }
  542. \t\t\t\t});\t
  543. \t\t\t\tvar mitsumori_json = { \"mitsumori_goukei\": \$('#mitsumori_goukei').text(),
  544. \t\t\t\t\t\t\t\t\t\t\"mitsumori_goukei_02\": \$('#mitsumori_goukei_02').text(),
  545. \t\t\t\t\t\t\t\t\t\t\"mitsumori_price\": \$('#mitsumori_price').text(),
  546. \t\t\t\t\t\t\t\t\t\t\"maker_price\": \$('#maker_price').text(),
  547. \t\t\t\t\t\t\t\t\t\t\"mitsumori_off\": \$('#mitsumori_off').text(),
  548. \t\t\t\t\t\t\t\t\t\t\"mitsumori_ct\": \$('#mitsumori_ct').text(),
  549. \t\t\t\t\t\t\t\t\t\t\"mitsumori_option\": \$('#mitsumori_option').text(),
  550. \t\t\t\t\t\t\t\t\t\t\"product_id\": ";
  551.         // line 406
  552.         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.'406$this->source); })()), "id", [], "any"falsefalsefalse406), "html"nulltrue);
  553.         echo ",
  554. \t\t\t\t\t\t\t\t\t\t\"pw\": pw,
  555. \t\t\t\t\t\t\t\t\t\t\"pd\": pd,
  556. \t\t\t\t\t\t\t\t\t\t\"ph\": ph,
  557. \t\t\t\t\t\t\t\t\t\t\"pm\": pm,
  558. \t\t\t\t\t\t\t\t\t\t\"pc\": pc,
  559. \t\t\t\t\t\t\t\t\t\t\"op\": [op0,op1,op2,op3,op4,op5,op6,op7,op8,op9,op10] };
  560. \t\t\t\t\$('#mitsumori_json').val(JSON.stringify(mitsumori_json));
  561. \t\t\t\t
  562. \t\t\t}
  563. \t\t\t
  564. \t\t}
  565.         ";
  566.         // line 421
  567.         if (((isset($context["color"]) || array_key_exists("color"$context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.'421$this->source); })()) && (twig_length_filter($this->env, (isset($context["color"]) || array_key_exists("color"$context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.'421$this->source); })())) == 1))) {
  568.             // line 422
  569.             echo "            pc = \"指定なし\";
  570. \t\t\t";
  571.             // line 423
  572.             $context['_parent'] = $context;
  573.             $context['_seq'] = twig_ensure_traversable((isset($context["color"]) || array_key_exists("color"$context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.'423$this->source); })()));
  574.             foreach ($context['_seq'] as $context["_key"] => $context["cc"]) {
  575.                 if (($context["cc"] && twig_get_attribute($this->env$this->source$context["cc"], "name", [], "array"falsefalsefalse423))) {
  576.                     echo " pc = \"";
  577.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cc"], "name", [], "array"falsefalsefalse423), "html"nulltrue);
  578.                     echo "\"; ";
  579.                 }
  580.             }
  581.             $_parent $context['_parent'];
  582.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cc'], $context['_parent'], $context['loop']);
  583.             $context array_intersect_key($context$_parent) + $_parent;
  584.             // line 424
  585.             echo "\t\t";
  586.         }
  587.         // line 425
  588.         echo "
  589.         ";
  590.         // line 426
  591.         if (((isset($context["p_w"]) || array_key_exists("p_w"$context) ? $context["p_w"] : (function () { throw new RuntimeError('Variable "p_w" does not exist.'426$this->source); })()) && ((twig_length_filter($this->env, (isset($context["p_w"]) || array_key_exists("p_w"$context) ? $context["p_w"] : (function () { throw new RuntimeError('Variable "p_w" does not exist.'426$this->source); })())) == 1) || (twig_join_filter((isset($context["p_w"]) || array_key_exists("p_w"$context) ? $context["p_w"] : (function () { throw new RuntimeError('Variable "p_w" does not exist.'426$this->source); })())) == "")))) {
  592.             // line 427
  593.             echo "            pw = \"指定なし\";
  594. \t\t\t";
  595.             // line 428
  596.             $context['_parent'] = $context;
  597.             $context['_seq'] = twig_ensure_traversable((isset($context["p_w"]) || array_key_exists("p_w"$context) ? $context["p_w"] : (function () { throw new RuntimeError('Variable "p_w" does not exist.'428$this->source); })()));
  598.             foreach ($context['_seq'] as $context["_key"] => $context["pw"]) {
  599.                 if ($context["pw"]) {
  600.                     echo " pw = \"";
  601.                     echo twig_escape_filter($this->env$context["pw"], "html"nulltrue);
  602.                     echo "\"; ";
  603.                 }
  604.             }
  605.             $_parent $context['_parent'];
  606.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pw'], $context['_parent'], $context['loop']);
  607.             $context array_intersect_key($context$_parent) + $_parent;
  608.             // line 429
  609.             echo "\t\t";
  610.         }
  611.         // line 430
  612.         echo "
  613.         ";
  614.         // line 431
  615.         if (((isset($context["p_d"]) || array_key_exists("p_d"$context) ? $context["p_d"] : (function () { throw new RuntimeError('Variable "p_d" does not exist.'431$this->source); })()) && ((twig_length_filter($this->env, (isset($context["p_d"]) || array_key_exists("p_d"$context) ? $context["p_d"] : (function () { throw new RuntimeError('Variable "p_d" does not exist.'431$this->source); })())) == 1) || (twig_join_filter((isset($context["p_d"]) || array_key_exists("p_d"$context) ? $context["p_d"] : (function () { throw new RuntimeError('Variable "p_d" does not exist.'431$this->source); })())) == "")))) {
  616.             // line 432
  617.             echo "            pd = \"指定なし\";
  618. \t\t\t";
  619.             // line 433
  620.             $context['_parent'] = $context;
  621.             $context['_seq'] = twig_ensure_traversable((isset($context["p_d"]) || array_key_exists("p_d"$context) ? $context["p_d"] : (function () { throw new RuntimeError('Variable "p_d" does not exist.'433$this->source); })()));
  622.             foreach ($context['_seq'] as $context["_key"] => $context["pd"]) {
  623.                 if ($context["pd"]) {
  624.                     echo " pd = \"";
  625.                     echo twig_escape_filter($this->env$context["pd"], "html"nulltrue);
  626.                     echo "\"; ";
  627.                 }
  628.             }
  629.             $_parent $context['_parent'];
  630.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pd'], $context['_parent'], $context['loop']);
  631.             $context array_intersect_key($context$_parent) + $_parent;
  632.             // line 434
  633.             echo "\t\t";
  634.         }
  635.         // line 435
  636.         echo "
  637.         ";
  638.         // line 436
  639.         if (((isset($context["p_h"]) || array_key_exists("p_h"$context) ? $context["p_h"] : (function () { throw new RuntimeError('Variable "p_h" does not exist.'436$this->source); })()) && ((twig_length_filter($this->env, (isset($context["p_h"]) || array_key_exists("p_h"$context) ? $context["p_h"] : (function () { throw new RuntimeError('Variable "p_h" does not exist.'436$this->source); })())) == 1) || (twig_join_filter((isset($context["p_h"]) || array_key_exists("p_h"$context) ? $context["p_h"] : (function () { throw new RuntimeError('Variable "p_h" does not exist.'436$this->source); })())) == "")))) {
  640.             // line 437
  641.             echo "            ph = \"指定なし\";
  642. \t\t\t";
  643.             // line 438
  644.             $context['_parent'] = $context;
  645.             $context['_seq'] = twig_ensure_traversable((isset($context["p_h"]) || array_key_exists("p_h"$context) ? $context["p_h"] : (function () { throw new RuntimeError('Variable "p_h" does not exist.'438$this->source); })()));
  646.             foreach ($context['_seq'] as $context["_key"] => $context["ph"]) {
  647.                 if ($context["ph"]) {
  648.                     echo " ph = \"";
  649.                     echo twig_escape_filter($this->env$context["ph"], "html"nulltrue);
  650.                     echo "\"; ";
  651.                 }
  652.             }
  653.             $_parent $context['_parent'];
  654.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ph'], $context['_parent'], $context['loop']);
  655.             $context array_intersect_key($context$_parent) + $_parent;
  656.             // line 439
  657.             echo "\t\t";
  658.         }
  659.         // line 440
  660.         echo "
  661.         ";
  662.         // line 441
  663.         if (((isset($context["p_m"]) || array_key_exists("p_m"$context) ? $context["p_m"] : (function () { throw new RuntimeError('Variable "p_m" does not exist.'441$this->source); })()) && ((twig_length_filter($this->env, (isset($context["p_m"]) || array_key_exists("p_m"$context) ? $context["p_m"] : (function () { throw new RuntimeError('Variable "p_m" does not exist.'441$this->source); })())) == 1) || (twig_join_filter((isset($context["p_m"]) || array_key_exists("p_m"$context) ? $context["p_m"] : (function () { throw new RuntimeError('Variable "p_m" does not exist.'441$this->source); })())) == "")))) {
  664.             // line 442
  665.             echo "            pm = \"指定なし\";
  666. \t\t\t";
  667.             // line 443
  668.             $context['_parent'] = $context;
  669.             $context['_seq'] = twig_ensure_traversable((isset($context["p_m"]) || array_key_exists("p_m"$context) ? $context["p_m"] : (function () { throw new RuntimeError('Variable "p_m" does not exist.'443$this->source); })()));
  670.             foreach ($context['_seq'] as $context["_key"] => $context["pm"]) {
  671.                 if ($context["pm"]) {
  672.                     echo " pm = \"";
  673.                     echo twig_escape_filter($this->env$context["pm"], "html"nulltrue);
  674.                     echo "\"; ";
  675.                 }
  676.             }
  677.             $_parent $context['_parent'];
  678.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pm'], $context['_parent'], $context['loop']);
  679.             $context array_intersect_key($context$_parent) + $_parent;
  680.             // line 444
  681.             echo "\t\t";
  682.         }
  683.         // line 445
  684.         echo "
  685. \t\tmitsumori_simulation(\"\",\"\");
  686. \t\tfunction contact_form(product_id){
  687. \t\t\t\$('#form1').attr('action', '";
  688.         // line 448
  689.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("contact", ["product" => 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.'448$this->source); })()), "id", [], "any"falsefalsefalse448)]), "html"nulltrue);
  690.         echo "');
  691. \t\t\t\$('#form1').submit();
  692. \t\t}
  693. \t\tfunction maisu(mai){
  694. \t\t\t\$('#maisu').val(parseInt(\$('#maisu').val()) + mai);
  695. \t\t\tif(parseInt(\$('#maisu').val()) < 3){ \$('#maisu').val(3); }
  696. \t\t\tif(parseInt(\$('#maisu').val()) > 20){ \$('#maisu').val(20); }
  697. \t\t\t\$('#quantity').val(\$('#maisu').val());
  698. \t\t}
  699. \t\tfunction madoset(mai){
  700. \t\t\t\$('#set').val(parseInt(\$('#set').val()) + mai);
  701. \t\t\tif(parseInt(\$('#set').val()) < 1){ \$('#set').val(1); }
  702. \t\t\tif(parseInt(\$('#set').val()) > 20){ \$('#set').val(20); }
  703. \t\t\t\$('#quantity').val(\$('#set').val());
  704. \t\t}
  705. \t\tfunction heibei(bei){
  706. \t\t\t\$('#heibei').val(parseInt(\$('#heibei').val()) + dai);
  707. \t\t\tif(parseInt(\$('#heibei').val()) < 1){ \$('#heibei').val(1); }
  708. \t\t\tif(parseInt(\$('#heibei').val()) > 100){ \$('#heibei').val(100); }
  709. \t\t\t\$('#quantity').val(\$('#heibei').val());
  710. \t\t}
  711. \t\tfunction daisu(dai){
  712. \t\t\t\$('#daisu').val(parseInt(\$('#daisu').val()) + dai);
  713. \t\t\tif(parseInt(\$('#daisu').val()) < 1){ \$('#daisu').val(1); }
  714. \t\t\tif(parseInt(\$('#daisu').val()) > 10){ \$('#daisu').val(10); }
  715. \t\t\t\$('#quantity').val(\$('#daisu').val());
  716. \t\t}
  717.     </script>
  718.     <script type=\"application/ld+json\">
  719.     {
  720.         \"@context\": \"https://schema.org/\",
  721.         \"@type\": \"Product\",
  722.         \"name\": \"";
  723.         // line 485
  724.         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.'485$this->source); })()), "name", [], "any"falsefalsefalse485), "html"nulltrue);
  725.         echo "\",
  726.         \"image\": [
  727.             ";
  728.         // line 487
  729.         $context['_parent'] = $context;
  730.         $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.'487$this->source); })()), "ProductImage", [], "any"falsefalsefalse487));
  731.         $context['_iterated'] = false;
  732.         $context['loop'] = [
  733.           'parent' => $context['_parent'],
  734.           'index0' => 0,
  735.           'index'  => 1,
  736.           'first'  => true,
  737.         ];
  738.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  739.             $length count($context['_seq']);
  740.             $context['loop']['revindex0'] = $length 1;
  741.             $context['loop']['revindex'] = $length;
  742.             $context['loop']['length'] = $length;
  743.             $context['loop']['last'] = === $length;
  744.         }
  745.         foreach ($context['_seq'] as $context["_key"] => $context["img"]) {
  746.             // line 488
  747.             echo "                \"";
  748.             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.'488$this->source); })()), "request", [], "any"falsefalsefalse488), "schemeAndHttpHost", [], "any"falsefalsefalse488), "html"nulltrue);
  749.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["img"], "save_image"), "html"nulltrue);
  750.             echo "\"";
  751.             if ( !twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse488)) {
  752.                 echo ",";
  753.             }
  754.             // line 489
  755.             echo "
  756.             ";
  757.             $context['_iterated'] = true;
  758.             ++$context['loop']['index0'];
  759.             ++$context['loop']['index'];
  760.             $context['loop']['first'] = false;
  761.             if (isset($context['loop']['length'])) {
  762.                 --$context['loop']['revindex0'];
  763.                 --$context['loop']['revindex'];
  764.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  765.             }
  766.         }
  767.         if (!$context['_iterated']) {
  768.             // line 491
  769.             echo "                \"";
  770.             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.'491$this->source); })()), "request", [], "any"falsefalsefalse491), "schemeAndHttpHost", [], "any"falsefalsefalse491), "html"nulltrue);
  771.             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);
  772.             echo "\"
  773.             ";
  774.         }
  775.         $_parent $context['_parent'];
  776.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['img'], $context['_parent'], $context['loop']);
  777.         $context array_intersect_key($context$_parent) + $_parent;
  778.         // line 493
  779.         echo "        ],
  780.         \"description\": \"";
  781.         // line 494
  782.         echo twig_escape_filter($this->envtwig_slice($this->envtwig_replace_filter(((twig_get_attribute($this->env$this->source, ($context["Product"] ?? null), "description_list", [], "any"truetruefalse494)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["Product"] ?? null), "description_list", [], "any"falsefalsefalse494), 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.'494$this->source); })()), "description_detail", [], "any"falsefalsefalse494))) : (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.'494$this->source); })()), "description_detail", [], "any"falsefalsefalse494))), ["
  783. => """ " => ""]), 0300), "html"nulltrue);
  784.         echo "\",
  785.         ";
  786.         // line 495
  787.         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.'495$this->source); })()), "code_min", [], "any"falsefalsefalse495)) {
  788.             // line 496
  789.             echo "        \"sku\": \"";
  790.             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.'496$this->source); })()), "code_min", [], "any"falsefalsefalse496), "html"nulltrue);
  791.             echo "\",
  792.         ";
  793.         }
  794.         // line 498
  795.         echo "        \"offers\": {
  796.             \"@type\": \"Offer\",
  797.             \"url\": \"";
  798.         // line 500
  799.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["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.'500$this->source); })()), "id", [], "any"falsefalsefalse500)]), "html"nulltrue);
  800.         echo "\",
  801.             \"priceCurrency\": \"";
  802.         // line 501
  803.         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.'501$this->source); })()), "currency", [], "any"falsefalsefalse501), "html"nulltrue);
  804.         echo "\",
  805.             \"price\": ";
  806.         // line 502
  807.         ((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.'502$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse502)) ? (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.'502$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse502), "html"nulltrue))) : (print (0)));
  808.         echo ",
  809.             \"availability\": \"";
  810.         // line 503
  811.         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.'503$this->source); })()), "stock_find", [], "any"falsefalsefalse503)) ? ("InStock") : ("OutOfStock"));
  812.         echo "\"
  813.         }
  814.     }
  815.     </script>
  816. ";
  817.         
  818.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  819.         
  820.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  821.     }
  822.     // line 510
  823.     public function block_main($context, array $blocks = [])
  824.     {
  825.         $macros $this->macros;
  826.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  827.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  828.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  829.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  830.         // line 511
  831.         echo "    <div class=\"ec-productRole\" style=\"margin-top:20px;\">
  832.         <div class=\"ec-grid2\">
  833.             <div class=\"ec-grid2__cell\">
  834.                 <div class=\"ec-sliderItemRole\">
  835. \t                ";
  836.         // line 516
  837.         echo "\t                <div class=\"ec-productRole__title\">
  838. \t                    <h2 class=\"ec-headingTitle\">";
  839.         // line 517
  840.         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.'517$this->source); })()), "name", [], "any"falsefalsefalse517), "html"nulltrue);
  841.         echo "</h2>
  842. \t                </div>
  843.                     ";
  844.         // line 519
  845.         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.'519$this->source); })()), "option_favorite_product", [], "any"falsefalsefalse519)) {
  846.             // line 520
  847.             echo "                     <div style=\"position:relative;top: 20px;left: 10px;z-index:100;\">
  848. \t\t\t\t\t\t";
  849.             // line 521
  850.             if (((isset($context["is_favorite"]) || array_key_exists("is_favorite"$context) ? $context["is_favorite"] : (function () { throw new RuntimeError('Variable "is_favorite" does not exist.'521$this->source); })()) == false)) {
  851.                 // line 522
  852.                 echo "                        <form action=\"";
  853.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\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.'522$this->source); })()), "id", [], "any"falsefalsefalse522)]), "html"nulltrue);
  854.                 echo "\" method=\"post\">
  855.                            <button type=\"submit\" id=\"favorite\" class=\"favorite\">&#9825;</button>
  856.                         </form>
  857.                         ";
  858.             } else {
  859.                 // line 526
  860.                 echo "                        <form action=\"";
  861.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\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.'526$this->source); })()), "id", [], "any"falsefalsefalse526)]), "html"nulltrue);
  862.                 echo "\" method=\"post\">
  863.                            <button type=\"submit\" id=\"favorite\" class=\"favorite\" style=\"color:red;\">&#9829;</button>
  864.                         </form>
  865.                         ";
  866.             }
  867.             // line 530
  868.             echo "                     </div>
  869.                     ";
  870.         }
  871.         // line 532
  872.         echo "                    <div class=\"item_visual\">
  873.                         ";
  874.         // line 533
  875.         $context['_parent'] = $context;
  876.         $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.'533$this->source); })()), "ProductImage", [], "any"falsefalsefalse533));
  877.         $context['_iterated'] = false;
  878.         $context['loop'] = [
  879.           'parent' => $context['_parent'],
  880.           'index0' => 0,
  881.           'index'  => 1,
  882.           'first'  => true,
  883.         ];
  884.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  885.             $length count($context['_seq']);
  886.             $context['loop']['revindex0'] = $length 1;
  887.             $context['loop']['revindex'] = $length;
  888.             $context['loop']['length'] = $length;
  889.             $context['loop']['last'] = === $length;
  890.         }
  891.         foreach ($context['_seq'] as $context["_key"] => $context["ProductImage"]) {
  892.             // line 534
  893.             echo "                            <div class=\"slide-item\"><img src=\"";
  894.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["ProductImage"], "save_image"), "html"nulltrue);
  895.             echo "\" alt=\"";
  896.             ((twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse534)) ? (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.'534$this->source); })()), "name", [], "any"falsefalsefalse534), "html"nulltrue))) : (print ("")));
  897.             echo "\" width=\"550\" height=\"550\" style=\"max-height: 400px;\"";
  898.             if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse534) > 1)) {
  899.                 echo " loading=\"lazy\"";
  900.             }
  901.             echo "></div>
  902.                         ";
  903.             $context['_iterated'] = true;
  904.             ++$context['loop']['index0'];
  905.             ++$context['loop']['index'];
  906.             $context['loop']['first'] = false;
  907.             if (isset($context['loop']['length'])) {
  908.                 --$context['loop']['revindex0'];
  909.                 --$context['loop']['revindex'];
  910.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  911.             }
  912.         }
  913.         if (!$context['_iterated']) {
  914.             // line 536
  915.             echo "                            <div class=\"slide-item\"><img src=\"";
  916.             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);
  917.             echo "\" alt=\"";
  918.             ((twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse536)) ? (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.'536$this->source); })()), "name", [], "any"falsefalsefalse536), "html"nulltrue))) : (print ("")));
  919.             echo "\" width=\"550\" height=\"550\" style=\"max-height: 400px;\"></div>
  920.                         ";
  921.         }
  922.         $_parent $context['_parent'];
  923.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductImage'], $context['_parent'], $context['loop']);
  924.         $context array_intersect_key($context$_parent) + $_parent;
  925.         // line 538
  926.         echo "                    </div>
  927.                     <div class=\"item_nav\">
  928.                         ";
  929.         // line 540
  930.         $context['_parent'] = $context;
  931.         $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.'540$this->source); })()), "ProductImage", [], "any"falsefalsefalse540));
  932.         $context['loop'] = [
  933.           'parent' => $context['_parent'],
  934.           'index0' => 0,
  935.           'index'  => 1,
  936.           'first'  => true,
  937.         ];
  938.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  939.             $length count($context['_seq']);
  940.             $context['loop']['revindex0'] = $length 1;
  941.             $context['loop']['revindex'] = $length;
  942.             $context['loop']['length'] = $length;
  943.             $context['loop']['last'] = === $length;
  944.         }
  945.         foreach ($context['_seq'] as $context["_key"] => $context["ProductImage"]) {
  946.             // line 541
  947.             echo "                            <div class=\"slideThumb\" data-index=\"";
  948.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse541), "html"nulltrue);
  949.             echo "\"><img src=\"";
  950.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["ProductImage"], "save_image"), "html"nulltrue);
  951.             echo "\" alt=\"\" width=\"80\" height=\"80\" loading=\"lazy\"></div>
  952.                         ";
  953.             ++$context['loop']['index0'];
  954.             ++$context['loop']['index'];
  955.             $context['loop']['first'] = false;
  956.             if (isset($context['loop']['length'])) {
  957.                 --$context['loop']['revindex0'];
  958.                 --$context['loop']['revindex'];
  959.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  960.             }
  961.         }
  962.         $_parent $context['_parent'];
  963.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductImage'], $context['_parent'], $context['loop']);
  964.         $context array_intersect_key($context$_parent) + $_parent;
  965.         // line 543
  966.         echo "                    </div>
  967.                 </div>
  968.             </div>
  969.             <div class=\"ec-grid2__cell2\">
  970.                 <div class=\"ec-productRole__profile\" >
  971.                     ";
  972.         // line 552
  973.         echo "                    ";
  974.         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.'552$this->source); })()), "ProductCategories", [], "any"falsefalsefalse552))) {
  975.             // line 553
  976.             echo "                        <div class=\"ec-productRole__category\" style=\"padding:10px 0;\">
  977.                             ";
  978.             // line 554
  979.             $context['_parent'] = $context;
  980.             $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.'554$this->source); })()), "ProductCategories", [], "any"falsefalsefalse554));
  981.             foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
  982.                 // line 555
  983.                 echo "                                <ul>
  984.                                     <li>
  985.                                         ";
  986.                 // line 557
  987.                 $context['_parent'] = $context;
  988.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse557), "path", [], "any"falsefalsefalse557));
  989.                 $context['loop'] = [
  990.                   'parent' => $context['_parent'],
  991.                   'index0' => 0,
  992.                   'index'  => 1,
  993.                   'first'  => true,
  994.                 ];
  995.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  996.                     $length count($context['_seq']);
  997.                     $context['loop']['revindex0'] = $length 1;
  998.                     $context['loop']['revindex'] = $length;
  999.                     $context['loop']['length'] = $length;
  1000.                     $context['loop']['last'] = === $length;
  1001.                 }
  1002.                 foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
  1003.                     // line 558
  1004.                     echo "                                            <a href=\"";
  1005.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  1006.                     echo "?category_id=";
  1007.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Category"], "id", [], "any"falsefalsefalse558), "html"nulltrue);
  1008.                     echo "\">";
  1009.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Category"], "name", [], "any"falsefalsefalse558), "html"nulltrue);
  1010.                     echo "</a>";
  1011.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse558) == false)) {
  1012.                         // line 559
  1013.                         echo "                                            <span>></span>";
  1014.                     }
  1015.                     ++$context['loop']['index0'];
  1016.                     ++$context['loop']['index'];
  1017.                     $context['loop']['first'] = false;
  1018.                     if (isset($context['loop']['length'])) {
  1019.                         --$context['loop']['revindex0'];
  1020.                         --$context['loop']['revindex'];
  1021.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  1022.                     }
  1023.                 }
  1024.                 $_parent $context['_parent'];
  1025.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
  1026.                 $context array_intersect_key($context$_parent) + $_parent;
  1027.                 // line 561
  1028.                 echo "                                    </li>
  1029.                                 </ul>
  1030.                             ";
  1031.             }
  1032.             $_parent $context['_parent'];
  1033.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
  1034.             $context array_intersect_key($context$_parent) + $_parent;
  1035.             // line 564
  1036.             echo "                        </div>
  1037.                     ";
  1038.         }
  1039.         // line 566
  1040.         echo "                    ";
  1041.         // line 567
  1042.         echo "                    <div class=\"ec-productRole__price\">
  1043. \t\t\t\t\t\t<span style=\"color:black;font-size:15px;\">工事費込み価格</span>
  1044.                         ";
  1045.         // line 569
  1046.         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.'569$this->source); })()), "hasProductClass", [], "any"falsefalsefalse569)) {
  1047.             // line 570
  1048.             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.'570$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse570) == 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.'570$this->source); })()), "getPrice02IncTaxMax", [], "any"falsefalsefalse570))) {
  1049.                 // line 571
  1050.                 echo "                                <div class=\"ec-price\">
  1051.                                     <span class=\"ec-price__price price02-default\">";
  1052.                 // line 572
  1053.                 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.'572$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse572)), "html"nulltrue);
  1054.                 echo "</span>
  1055.                                     <span class=\"ec-price__tax\">(";
  1056.                 // line 573
  1057.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html"nulltrue);
  1058.                 echo ")~</span>
  1059.                                 </div>
  1060.                             ";
  1061.             } else {
  1062.                 // line 576
  1063.                 echo "                                <div class=\"ec-price\">
  1064.                                     <span class=\"ec-price__price price02-default\">";
  1065.                 // line 577
  1066.                 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.'577$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse577)), "html"nulltrue);
  1067.                 echo " ~ ";
  1068.                 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.'577$this->source); })()), "getPrice02IncTaxMax", [], "any"falsefalsefalse577)), "html"nulltrue);
  1069.                 echo "</span>
  1070.                                     <span class=\"ec-price__tax\">(";
  1071.                 // line 578
  1072.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html"nulltrue);
  1073.                 echo ")</span>
  1074.                                 </div>
  1075.                             ";
  1076.             }
  1077.             // line 581
  1078.             echo "                        ";
  1079.         } else {
  1080.             // line 582
  1081.             echo "                            <div class=\"ec-price\">
  1082.                                 <span class=\"ec-price__price\">";
  1083.             // line 583
  1084.             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.'583$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse583)), "html"nulltrue);
  1085.             echo "</span>
  1086.                                     <span class=\"ec-price__tax\">(";
  1087.             // line 584
  1088.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html"nulltrue);
  1089.             echo ")~</span>
  1090.                             </div>
  1091.                         ";
  1092.         }
  1093.         // line 587
  1094.         echo "                    </div>
  1095.                     ";
  1096.         // line 589
  1097.         echo "                    <ul class=\"ec-productRole__tags\">
  1098.                         ";
  1099.         // line 590
  1100.         $context['_parent'] = $context;
  1101.         $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.'590$this->source); })()), "Tags", [], "any"falsefalsefalse590));
  1102.         foreach ($context['_seq'] as $context["_key"] => $context["Tag"]) {
  1103.             // line 591
  1104.             echo "                            <li class=\"ec-productRole__tag tag_";
  1105.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Tag"], "id", [], "any"falsefalsefalse591), "html"nulltrue);
  1106.             echo "\">";
  1107.             echo twig_escape_filter($this->env$context["Tag"], "html"nulltrue);
  1108.             echo "</li>
  1109.                         ";
  1110.         }
  1111.         $_parent $context['_parent'];
  1112.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Tag'], $context['_parent'], $context['loop']);
  1113.         $context array_intersect_key($context$_parent) + $_parent;
  1114.         // line 593
  1115.         echo "                    </ul>
  1116.                     ";
  1117.         // line 595
  1118.         echo "                    ";
  1119.         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.'595$this->source); })()), "code_min", [], "any"falsefalsefalse595))) {
  1120.             // line 596
  1121.             echo "                        <div class=\"ec-productRole__code\">
  1122.                             ";
  1123.             // line 597
  1124.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("商品コード"), "html"nulltrue);
  1125.             echo ": <span class=\"product-code-default\">";
  1126.             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.'597$this->source); })()), "code_min", [], "any"falsefalsefalse597), "html"nulltrue);
  1127.             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.'597$this->source); })()), "code_min", [], "any"falsefalsefalse597) != 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.'597$this->source); })()), "code_max", [], "any"falsefalsefalse597))) {
  1128.                 echo " ~ ";
  1129.                 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.'597$this->source); })()), "code_max", [], "any"falsefalsefalse597), "html"nulltrue);
  1130.             }
  1131.             echo "</span>
  1132.                         </div>
  1133.                     ";
  1134.         }
  1135.         // line 600
  1136.         echo "
  1137.                     <div class=\"ec-productRole__description\">
  1138. \t\t\t\t        <div class=\"ec-rectHeading\">
  1139. \t\t\t\t            <h4>製品情報</h4>
  1140. \t\t\t\t        </div>
  1141. \t\t\t\t\t\t";
  1142.         // line 605
  1143.         echo twig_nl2br(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.'605$this->source); })()), "sales_infomation", [], "any"falsefalsefalse605));
  1144.         echo "
  1145.                     </div>
  1146. \t\t\t\t\t<div class=\"card card-danger\" style=\"clear:both;margin:1px;\">
  1147. \t\t\t\t\t  <div class=\"card-header\">
  1148. \t\t\t\t\t    <h3 class=\"card-title\">見積シミュレーション</h3>
  1149. \t\t\t\t\t  </div>
  1150. \t\t\t\t\t  <div class=\"card-body p-2\">
  1151. \t\t\t\t\t    <div class=\"row\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\"><label class=\"col-12 col-form-label\">この商品のタイプを選択してください。</label></div>
  1152. \t\t\t\t\t\t";
  1153.         // line 616
  1154.         $context["type1"] = $this->extensions['Plugin\ProductField\Twig\Extension\EccubeExtension']->getProduct_field(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.'616$this->source); })()), "id", [], "any"falsefalsefalse616), "related_name1");
  1155.         // line 617
  1156.         echo "                        ";
  1157.         if ((((isset($context["type1"]) || array_key_exists("type1"$context) ? $context["type1"] : (function () { throw new RuntimeError('Variable "type1" does not exist.'617$this->source); })()) && (isset($context["related_product1"]) || array_key_exists("related_product1"$context) ? $context["related_product1"] : (function () { throw new RuntimeError('Variable "related_product1" does not exist.'617$this->source); })())) && twig_length_filter($this->env, (isset($context["related_product1"]) || array_key_exists("related_product1"$context) ? $context["related_product1"] : (function () { throw new RuntimeError('Variable "related_product1" does not exist.'617$this->source); })())))) {
  1158.             // line 618
  1159.             echo "\t\t\t\t\t    <div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  1160. \t\t\t\t\t\t  <label class=\"col-4 col-form-label mt-2\">";
  1161.             // line 619
  1162.             echo twig_escape_filter($this->env, (isset($context["type1"]) || array_key_exists("type1"$context) ? $context["type1"] : (function () { throw new RuntimeError('Variable "type1" does not exist.'619$this->source); })()), "html"nulltrue);
  1163.             echo "</label>
  1164. \t\t\t\t\t\t  <div class=\"col-8 mt-2\">
  1165. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  1166. \t\t\t\t\t\t      ";
  1167.             // line 622
  1168.             $context['_parent'] = $context;
  1169.             $context['_seq'] = twig_ensure_traversable((isset($context["related_product1"]) || array_key_exists("related_product1"$context) ? $context["related_product1"] : (function () { throw new RuntimeError('Variable "related_product1" does not exist.'622$this->source); })()));
  1170.             foreach ($context['_seq'] as $context["rp_id"] => $context["rp_name"]) {
  1171.                 // line 623
  1172.                 echo "\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  1173. \t\t\t\t\t\t        <input type=\"radio\" name=\"rp1\" id=\"rp1_";
  1174.                 // line 624
  1175.                 echo twig_escape_filter($this->env$context["rp_id"], "html"nulltrue);
  1176.                 echo "\" value=\"";
  1177.                 echo twig_escape_filter($this->env$context["rp_name"], "html"nulltrue);
  1178.                 echo "\" ";
  1179.                 if (((isset($context["base_select1"]) || array_key_exists("base_select1"$context) ? $context["base_select1"] : (function () { throw new RuntimeError('Variable "base_select1" does not exist.'624$this->source); })()) == $context["rp_name"])) {
  1180.                     echo "checked";
  1181.                 }
  1182.                 echo " onclick=\"location.href='/products/detail/";
  1183.                 echo twig_escape_filter($this->env$context["rp_id"], "html"nulltrue);
  1184.                 echo "';\"><label for=\"rp1_";
  1185.                 echo twig_escape_filter($this->env$context["rp_id"], "html"nulltrue);
  1186.                 echo "\">";
  1187.                 echo twig_escape_filter($this->env$context["rp_name"], "html"nulltrue);
  1188.                 echo "</label>
  1189. \t\t\t\t\t\t      </div>
  1190. \t\t\t\t\t\t\t  ";
  1191.             }
  1192.             $_parent $context['_parent'];
  1193.             unset($context['_seq'], $context['_iterated'], $context['rp_id'], $context['rp_name'], $context['_parent'], $context['loop']);
  1194.             $context array_intersect_key($context$_parent) + $_parent;
  1195.             // line 627
  1196.             echo "\t\t\t\t\t\t    </div>
  1197. \t\t\t\t\t\t  </div>
  1198. \t\t\t\t\t    </div>
  1199.                         ";
  1200.         }
  1201.         // line 631
  1202.         echo "
  1203. \t\t\t\t\t\t";
  1204.         // line 632
  1205.         $context["type2"] = $this->extensions['Plugin\ProductField\Twig\Extension\EccubeExtension']->getProduct_field(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.'632$this->source); })()), "id", [], "any"falsefalsefalse632), "related_name2");
  1206.         // line 633
  1207.         echo "                        ";
  1208.         if ((((isset($context["type2"]) || array_key_exists("type2"$context) ? $context["type2"] : (function () { throw new RuntimeError('Variable "type2" does not exist.'633$this->source); })()) && (isset($context["related_product2"]) || array_key_exists("related_product2"$context) ? $context["related_product2"] : (function () { throw new RuntimeError('Variable "related_product2" does not exist.'633$this->source); })())) && twig_length_filter($this->env, (isset($context["related_product2"]) || array_key_exists("related_product2"$context) ? $context["related_product2"] : (function () { throw new RuntimeError('Variable "related_product2" does not exist.'633$this->source); })())))) {
  1209.             // line 634
  1210.             echo "\t\t\t\t\t    <div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  1211. \t\t\t\t\t\t  <label class=\"col-4 col-form-label mt-2\">";
  1212.             // line 635
  1213.             echo twig_escape_filter($this->env, (isset($context["type2"]) || array_key_exists("type2"$context) ? $context["type2"] : (function () { throw new RuntimeError('Variable "type2" does not exist.'635$this->source); })()), "html"nulltrue);
  1214.             echo "</label>
  1215. \t\t\t\t\t\t  <div class=\"col-8 mt-2\">
  1216. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  1217. \t\t\t\t\t\t      ";
  1218.             // line 638
  1219.             $context['_parent'] = $context;
  1220.             $context['_seq'] = twig_ensure_traversable((isset($context["related_product2"]) || array_key_exists("related_product2"$context) ? $context["related_product2"] : (function () { throw new RuntimeError('Variable "related_product2" does not exist.'638$this->source); })()));
  1221.             foreach ($context['_seq'] as $context["rp_id"] => $context["rp_name"]) {
  1222.                 // line 639
  1223.                 echo "\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  1224. \t\t\t\t\t\t        <input type=\"radio\" name=\"rp2\" id=\"rp2_";
  1225.                 // line 640
  1226.                 echo twig_escape_filter($this->env$context["rp_id"], "html"nulltrue);
  1227.                 echo "\" value=\"";
  1228.                 echo twig_escape_filter($this->env$context["rp_name"], "html"nulltrue);
  1229.                 echo "\" ";
  1230.                 if (((isset($context["base_select2"]) || array_key_exists("base_select2"$context) ? $context["base_select2"] : (function () { throw new RuntimeError('Variable "base_select2" does not exist.'640$this->source); })()) == $context["rp_name"])) {
  1231.                     echo "checked";
  1232.                 }
  1233.                 echo " onclick=\"location.href='/products/detail/";
  1234.                 echo twig_escape_filter($this->env$context["rp_id"], "html"nulltrue);
  1235.                 echo "';\"><label for=\"rp2_";
  1236.                 echo twig_escape_filter($this->env$context["rp_id"], "html"nulltrue);
  1237.                 echo "\">";
  1238.                 echo twig_escape_filter($this->env$context["rp_name"], "html"nulltrue);
  1239.                 echo "</label>
  1240. \t\t\t\t\t\t      </div>
  1241. \t\t\t\t\t\t\t  ";
  1242.             }
  1243.             $_parent $context['_parent'];
  1244.             unset($context['_seq'], $context['_iterated'], $context['rp_id'], $context['rp_name'], $context['_parent'], $context['loop']);
  1245.             $context array_intersect_key($context$_parent) + $_parent;
  1246.             // line 643
  1247.             echo "\t\t\t\t\t\t    </div>
  1248. \t\t\t\t\t\t  </div>
  1249. \t\t\t\t\t    </div>
  1250.                         ";
  1251.         }
  1252.         // line 647
  1253.         echo "
  1254. \t\t\t\t\t\t";
  1255.         // line 648
  1256.         $context["type3"] = $this->extensions['Plugin\ProductField\Twig\Extension\EccubeExtension']->getProduct_field(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.'648$this->source); })()), "id", [], "any"falsefalsefalse648), "related_name3");
  1257.         // line 649
  1258.         echo "                        ";
  1259.         if ((((isset($context["type3"]) || array_key_exists("type3"$context) ? $context["type3"] : (function () { throw new RuntimeError('Variable "type3" does not exist.'649$this->source); })()) && (isset($context["related_product3"]) || array_key_exists("related_product3"$context) ? $context["related_product3"] : (function () { throw new RuntimeError('Variable "related_product3" does not exist.'649$this->source); })())) && twig_length_filter($this->env, (isset($context["related_product3"]) || array_key_exists("related_product3"$context) ? $context["related_product3"] : (function () { throw new RuntimeError('Variable "related_product3" does not exist.'649$this->source); })())))) {
  1260.             // line 650
  1261.             echo "\t\t\t\t\t    <div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  1262. \t\t\t\t\t\t  <label class=\"col-4 col-form-label mt-2\">";
  1263.             // line 651
  1264.             echo twig_escape_filter($this->env, (isset($context["type3"]) || array_key_exists("type3"$context) ? $context["type3"] : (function () { throw new RuntimeError('Variable "type3" does not exist.'651$this->source); })()), "html"nulltrue);
  1265.             echo "</label>
  1266. \t\t\t\t\t\t  <div class=\"col-8 mt-2\">
  1267. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  1268. \t\t\t\t\t\t      ";
  1269.             // line 654
  1270.             $context['_parent'] = $context;
  1271.             $context['_seq'] = twig_ensure_traversable((isset($context["related_product3"]) || array_key_exists("related_product3"$context) ? $context["related_product3"] : (function () { throw new RuntimeError('Variable "related_product3" does not exist.'654$this->source); })()));
  1272.             foreach ($context['_seq'] as $context["rp_id"] => $context["rp_name"]) {
  1273.                 // line 655
  1274.                 echo "\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  1275. \t\t\t\t\t\t        <input type=\"radio\" name=\"rp3\" id=\"rp3_";
  1276.                 // line 656
  1277.                 echo twig_escape_filter($this->env$context["rp_id"], "html"nulltrue);
  1278.                 echo "\" value=\"";
  1279.                 echo twig_escape_filter($this->env$context["rp_name"], "html"nulltrue);
  1280.                 echo "\" ";
  1281.                 if (((isset($context["base_select3"]) || array_key_exists("base_select3"$context) ? $context["base_select3"] : (function () { throw new RuntimeError('Variable "base_select3" does not exist.'656$this->source); })()) == $context["rp_name"])) {
  1282.                     echo "checked";
  1283.                 }
  1284.                 echo " onclick=\"location.href='/products/detail/";
  1285.                 echo twig_escape_filter($this->env$context["rp_id"], "html"nulltrue);
  1286.                 echo "';\"><label for=\"rp3_";
  1287.                 echo twig_escape_filter($this->env$context["rp_id"], "html"nulltrue);
  1288.                 echo "\">";
  1289.                 echo twig_escape_filter($this->env$context["rp_name"], "html"nulltrue);
  1290.                 echo "</label>
  1291. \t\t\t\t\t\t      </div>
  1292. \t\t\t\t\t\t\t  ";
  1293.             }
  1294.             $_parent $context['_parent'];
  1295.             unset($context['_seq'], $context['_iterated'], $context['rp_id'], $context['rp_name'], $context['_parent'], $context['loop']);
  1296.             $context array_intersect_key($context$_parent) + $_parent;
  1297.             // line 659
  1298.             echo "\t\t\t\t\t\t    </div>
  1299. \t\t\t\t\t\t  </div>
  1300. \t\t\t\t\t    </div>
  1301.                         ";
  1302.         }
  1303.         // line 663
  1304.         echo "
  1305. \t\t\t\t\t    <div class=\"row\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\"><label class=\"col-12 col-form-label\">この商品のオプションを選択してください。</label></div>
  1306.                         ";
  1307.         // line 668
  1308.         if (((isset($context["color"]) || array_key_exists("color"$context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.'668$this->source); })()) && twig_length_filter($this->env, (isset($context["color"]) || array_key_exists("color"$context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.'668$this->source); })())))) {
  1309.             // line 669
  1310.             echo "\t\t\t\t\t    <div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  1311. \t\t\t\t\t\t  <label class=\"col-4 col-form-label mt-2\">カラー</label>
  1312. \t\t\t\t\t\t  <div class=\"col-8 mt-2\">
  1313. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  1314. \t\t\t\t\t\t    ";
  1315.             // line 673
  1316.             $context["idx"] = 0;
  1317.             // line 674
  1318.             echo "\t\t\t\t\t\t    ";
  1319.             $context['_parent'] = $context;
  1320.             $context['_seq'] = twig_ensure_traversable((isset($context["color"]) || array_key_exists("color"$context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.'674$this->source); })()));
  1321.             foreach ($context['_seq'] as $context["_key"] => $context["cc"]) {
  1322.                 // line 675
  1323.                 echo "\t\t\t\t\t\t      ";
  1324.                 if (($context["cc"] && twig_get_attribute($this->env$this->source$context["cc"], "name", [], "array"falsefalsefalse675))) {
  1325.                     // line 676
  1326.                     echo "\t\t\t\t\t\t      ";
  1327.                     $context["idx"] = ((isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'676$this->source); })()) + 1);
  1328.                     // line 677
  1329.                     echo "\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  1330. \t\t\t\t\t\t        <input type=\"radio\" name=\"color\" id=\"cc_";
  1331.                     // line 678
  1332.                     echo twig_escape_filter($this->env, (isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'678$this->source); })()), "html"nulltrue);
  1333.                     echo "\" value=\"";
  1334.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cc"], "name", [], "array"falsefalsefalse678), "html"nulltrue);
  1335.                     echo "\" ";
  1336.                     if ((((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'678$this->source); })()) && (twig_get_attribute($this->env$this->source, (isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'678$this->source); })()), "pc", [], "any"falsefalsefalse678) == twig_get_attribute($this->env$this->source$context["cc"], "name", [], "array"falsefalsefalse678))) || (twig_length_filter($this->env, (isset($context["color"]) || array_key_exists("color"$context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.'678$this->source); })())) == 1))) {
  1337.                         echo "checked";
  1338.                     }
  1339.                     echo " onclick=\"mitsumori_simulation('pc','cc_";
  1340.                     echo twig_escape_filter($this->env, (isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'678$this->source); })()), "html"nulltrue);
  1341.                     echo "');\"><label for=\"cc_";
  1342.                     echo twig_escape_filter($this->env, (isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'678$this->source); })()), "html"nulltrue);
  1343.                     echo "\">";
  1344.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cc"], "name", [], "array"falsefalsefalse678), "html"nulltrue);
  1345.                     echo "</label>
  1346. \t\t\t\t\t\t      </div>
  1347. \t\t\t\t\t\t      ";
  1348.                 }
  1349.                 // line 681
  1350.                 echo "\t\t\t\t\t\t\t";
  1351.             }
  1352.             $_parent $context['_parent'];
  1353.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cc'], $context['_parent'], $context['loop']);
  1354.             $context array_intersect_key($context$_parent) + $_parent;
  1355.             // line 682
  1356.             echo "\t\t\t\t\t\t    </div>
  1357. \t\t\t\t\t\t  </div>
  1358. \t\t\t\t\t    </div>
  1359.                         ";
  1360.         }
  1361.         // line 686
  1362.         echo "                        ";
  1363.         if ((((isset($context["p_w"]) || array_key_exists("p_w"$context) ? $context["p_w"] : (function () { throw new RuntimeError('Variable "p_w" does not exist.'686$this->source); })()) && twig_length_filter($this->env, (isset($context["p_w"]) || array_key_exists("p_w"$context) ? $context["p_w"] : (function () { throw new RuntimeError('Variable "p_w" does not exist.'686$this->source); })()))) && (twig_join_filter((isset($context["p_w"]) || array_key_exists("p_w"$context) ? $context["p_w"] : (function () { throw new RuntimeError('Variable "p_w" does not exist.'686$this->source); })())) != ""))) {
  1364.             // line 687
  1365.             echo "\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  1366. \t\t\t\t\t\t  <label class=\"col-4 col-form-label\">幅</label>
  1367. \t\t\t\t\t\t  <div class=\"col-8\">
  1368. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  1369. \t\t\t\t\t\t    ";
  1370.             // line 691
  1371.             $context["idx"] = 0;
  1372.             // line 692
  1373.             echo "\t\t\t\t\t\t    ";
  1374.             $context['_parent'] = $context;
  1375.             $context['_seq'] = twig_ensure_traversable((isset($context["p_w"]) || array_key_exists("p_w"$context) ? $context["p_w"] : (function () { throw new RuntimeError('Variable "p_w" does not exist.'692$this->source); })()));
  1376.             foreach ($context['_seq'] as $context["_key"] => $context["pw"]) {
  1377.                 // line 693
  1378.                 echo "\t\t\t\t\t\t      ";
  1379.                 if ($context["pw"]) {
  1380.                     // line 694
  1381.                     echo "\t\t\t\t\t\t      ";
  1382.                     $context["idx"] = ((isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'694$this->source); })()) + 1);
  1383.                     // line 695
  1384.                     echo "\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  1385. \t\t\t\t\t\t        <input type=\"radio\" name=\"pw\" id=\"pw_";
  1386.                     // line 696
  1387.                     echo twig_escape_filter($this->env, (isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'696$this->source); })()), "html"nulltrue);
  1388.                     echo "\" value=\"";
  1389.                     echo twig_escape_filter($this->env$context["pw"], "html"nulltrue);
  1390.                     echo "\" ";
  1391.                     if ((((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'696$this->source); })()) && (twig_get_attribute($this->env$this->source, (isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'696$this->source); })()), "pw", [], "any"falsefalsefalse696) == $context["pw"])) || (twig_length_filter($this->env, (isset($context["p_w"]) || array_key_exists("p_w"$context) ? $context["p_w"] : (function () { throw new RuntimeError('Variable "p_w" does not exist.'696$this->source); })())) == 1))) {
  1392.                         echo "checked";
  1393.                     }
  1394.                     echo " onclick=\"mitsumori_simulation('pw','pw_";
  1395.                     echo twig_escape_filter($this->env, (isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'696$this->source); })()), "html"nulltrue);
  1396.                     echo "');\"><label for=\"pw_";
  1397.                     echo twig_escape_filter($this->env, (isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'696$this->source); })()), "html"nulltrue);
  1398.                     echo "\">";
  1399.                     echo twig_escape_filter($this->env$context["pw"], "html"nulltrue);
  1400.                     echo "</label>
  1401. \t\t\t\t\t\t      </div>
  1402. \t\t\t\t\t\t      ";
  1403.                 }
  1404.                 // line 699
  1405.                 echo "\t\t\t\t\t\t\t";
  1406.             }
  1407.             $_parent $context['_parent'];
  1408.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pw'], $context['_parent'], $context['loop']);
  1409.             $context array_intersect_key($context$_parent) + $_parent;
  1410.             // line 700
  1411.             echo "\t\t\t\t\t\t    </div>
  1412. \t\t\t\t\t\t  </div>
  1413. \t\t\t\t\t\t</div>
  1414.                         ";
  1415.         }
  1416.         // line 704
  1417.         echo "                        ";
  1418.         if ((((isset($context["p_d"]) || array_key_exists("p_d"$context) ? $context["p_d"] : (function () { throw new RuntimeError('Variable "p_d" does not exist.'704$this->source); })()) && twig_length_filter($this->env, (isset($context["p_d"]) || array_key_exists("p_d"$context) ? $context["p_d"] : (function () { throw new RuntimeError('Variable "p_d" does not exist.'704$this->source); })()))) && (twig_join_filter((isset($context["p_d"]) || array_key_exists("p_d"$context) ? $context["p_d"] : (function () { throw new RuntimeError('Variable "p_d" does not exist.'704$this->source); })())) != ""))) {
  1419.             // line 705
  1420.             echo "\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  1421. \t\t\t\t\t\t  <label class=\"col-4 col-form-label\">奥行き</label>
  1422. \t\t\t\t\t\t  <div class=\"col-8\">
  1423. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  1424. \t\t\t\t\t\t    ";
  1425.             // line 709
  1426.             $context["idx"] = 0;
  1427.             // line 710
  1428.             echo "\t\t\t\t\t\t    ";
  1429.             $context['_parent'] = $context;
  1430.             $context['_seq'] = twig_ensure_traversable((isset($context["p_d"]) || array_key_exists("p_d"$context) ? $context["p_d"] : (function () { throw new RuntimeError('Variable "p_d" does not exist.'710$this->source); })()));
  1431.             foreach ($context['_seq'] as $context["_key"] => $context["pd"]) {
  1432.                 // line 711
  1433.                 echo "\t\t\t\t\t\t      ";
  1434.                 if ($context["pd"]) {
  1435.                     // line 712
  1436.                     echo "\t\t\t\t\t\t      ";
  1437.                     $context["idx"] = ((isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'712$this->source); })()) + 1);
  1438.                     // line 713
  1439.                     echo "\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  1440. \t\t\t\t\t\t        <input type=\"radio\" name=\"pd\" id=\"pd_";
  1441.                     // line 714
  1442.                     echo twig_escape_filter($this->env, (isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'714$this->source); })()), "html"nulltrue);
  1443.                     echo "\" value=\"";
  1444.                     echo twig_escape_filter($this->env$context["pd"], "html"nulltrue);
  1445.                     echo "\" ";
  1446.                     if ((((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'714$this->source); })()) && (twig_get_attribute($this->env$this->source, (isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'714$this->source); })()), "pd", [], "any"falsefalsefalse714) == $context["pd"])) || (twig_length_filter($this->env, (isset($context["p_d"]) || array_key_exists("p_d"$context) ? $context["p_d"] : (function () { throw new RuntimeError('Variable "p_d" does not exist.'714$this->source); })())) == 1))) {
  1447.                         echo "checked";
  1448.                     }
  1449.                     echo " onclick=\"mitsumori_simulation('pd','pd_";
  1450.                     echo twig_escape_filter($this->env, (isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'714$this->source); })()), "html"nulltrue);
  1451.                     echo "');\"><label for=\"pd_";
  1452.                     echo twig_escape_filter($this->env, (isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'714$this->source); })()), "html"nulltrue);
  1453.                     echo "\">";
  1454.                     echo twig_escape_filter($this->env$context["pd"], "html"nulltrue);
  1455.                     echo "</label>
  1456. \t\t\t\t\t\t      </div>
  1457. \t\t\t\t\t\t      ";
  1458.                 }
  1459.                 // line 717
  1460.                 echo "\t\t\t\t\t\t\t";
  1461.             }
  1462.             $_parent $context['_parent'];
  1463.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pd'], $context['_parent'], $context['loop']);
  1464.             $context array_intersect_key($context$_parent) + $_parent;
  1465.             // line 718
  1466.             echo "\t\t\t\t\t\t    </div>
  1467. \t\t\t\t\t\t  </div>
  1468. \t\t\t\t\t\t</div>
  1469.                         ";
  1470.         }
  1471.         // line 722
  1472.         echo "                        ";
  1473.         if ((((isset($context["p_h"]) || array_key_exists("p_h"$context) ? $context["p_h"] : (function () { throw new RuntimeError('Variable "p_h" does not exist.'722$this->source); })()) && twig_length_filter($this->env, (isset($context["p_h"]) || array_key_exists("p_h"$context) ? $context["p_h"] : (function () { throw new RuntimeError('Variable "p_h" does not exist.'722$this->source); })()))) && (twig_join_filter((isset($context["p_h"]) || array_key_exists("p_h"$context) ? $context["p_h"] : (function () { throw new RuntimeError('Variable "p_h" does not exist.'722$this->source); })())) != ""))) {
  1474.             // line 723
  1475.             echo "\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  1476. \t\t\t\t\t\t  <label class=\"col-4 col-form-label\">高さ</label>
  1477. \t\t\t\t\t\t  <div class=\"col-8\">
  1478. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  1479. \t\t\t\t\t\t    ";
  1480.             // line 727
  1481.             $context["idx"] = 0;
  1482.             // line 728
  1483.             echo "\t\t\t\t\t\t    ";
  1484.             $context['_parent'] = $context;
  1485.             $context['_seq'] = twig_ensure_traversable((isset($context["p_h"]) || array_key_exists("p_h"$context) ? $context["p_h"] : (function () { throw new RuntimeError('Variable "p_h" does not exist.'728$this->source); })()));
  1486.             foreach ($context['_seq'] as $context["_key"] => $context["ph"]) {
  1487.                 // line 729
  1488.                 echo "\t\t\t\t\t\t      ";
  1489.                 if ($context["ph"]) {
  1490.                     // line 730
  1491.                     echo "\t\t\t\t\t\t      ";
  1492.                     $context["idx"] = ((isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'730$this->source); })()) + 1);
  1493.                     // line 731
  1494.                     echo "\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  1495. \t\t\t\t\t\t        <input type=\"radio\" name=\"ph\" id=\"ph_";
  1496.                     // line 732
  1497.                     echo twig_escape_filter($this->env, (isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'732$this->source); })()), "html"nulltrue);
  1498.                     echo "\" value=\"";
  1499.                     echo twig_escape_filter($this->env$context["ph"], "html"nulltrue);
  1500.                     echo "\" ";
  1501.                     if ((((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'732$this->source); })()) && (twig_get_attribute($this->env$this->source, (isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'732$this->source); })()), "ph", [], "any"falsefalsefalse732) == $context["ph"])) || (twig_length_filter($this->env, (isset($context["p_h"]) || array_key_exists("p_h"$context) ? $context["p_h"] : (function () { throw new RuntimeError('Variable "p_h" does not exist.'732$this->source); })())) == 1))) {
  1502.                         echo "checked";
  1503.                     }
  1504.                     echo " onclick=\"mitsumori_simulation('ph','ph_";
  1505.                     echo twig_escape_filter($this->env, (isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'732$this->source); })()), "html"nulltrue);
  1506.                     echo "');\"><label for=\"ph_";
  1507.                     echo twig_escape_filter($this->env, (isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'732$this->source); })()), "html"nulltrue);
  1508.                     echo "\">";
  1509.                     echo twig_escape_filter($this->env$context["ph"], "html"nulltrue);
  1510.                     echo "</label>
  1511. \t\t\t\t\t\t      </div>
  1512. \t\t\t\t\t\t      ";
  1513.                 }
  1514.                 // line 735
  1515.                 echo "\t\t\t\t\t\t\t";
  1516.             }
  1517.             $_parent $context['_parent'];
  1518.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ph'], $context['_parent'], $context['loop']);
  1519.             $context array_intersect_key($context$_parent) + $_parent;
  1520.             // line 736
  1521.             echo "\t\t\t\t\t\t    </div>
  1522. \t\t\t\t\t\t  </div>
  1523. \t\t\t\t\t\t</div>
  1524.                         ";
  1525.         }
  1526.         // line 740
  1527.         echo "                        ";
  1528.         if ((((isset($context["p_m"]) || array_key_exists("p_m"$context) ? $context["p_m"] : (function () { throw new RuntimeError('Variable "p_m" does not exist.'740$this->source); })()) && twig_length_filter($this->env, (isset($context["p_m"]) || array_key_exists("p_m"$context) ? $context["p_m"] : (function () { throw new RuntimeError('Variable "p_m" does not exist.'740$this->source); })()))) && (twig_join_filter((isset($context["p_m"]) || array_key_exists("p_m"$context) ? $context["p_m"] : (function () { throw new RuntimeError('Variable "p_m" does not exist.'740$this->source); })())) != ""))) {
  1529.             // line 741
  1530.             echo "\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  1531. \t\t\t\t\t\t  <label class=\"col-4 col-form-label\">素材</label>
  1532. \t\t\t\t\t\t  <div class=\"col-8\">
  1533. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  1534. \t\t\t\t\t\t    ";
  1535.             // line 745
  1536.             $context["idx"] = 0;
  1537.             // line 746
  1538.             echo "\t\t\t\t\t\t    ";
  1539.             $context['_parent'] = $context;
  1540.             $context['_seq'] = twig_ensure_traversable((isset($context["p_m"]) || array_key_exists("p_m"$context) ? $context["p_m"] : (function () { throw new RuntimeError('Variable "p_m" does not exist.'746$this->source); })()));
  1541.             foreach ($context['_seq'] as $context["_key"] => $context["pm"]) {
  1542.                 // line 747
  1543.                 echo "\t\t\t\t\t\t      ";
  1544.                 if ($context["pm"]) {
  1545.                     // line 748
  1546.                     echo "\t\t\t\t\t\t      ";
  1547.                     $context["idx"] = ((isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'748$this->source); })()) + 1);
  1548.                     // line 749
  1549.                     echo "\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  1550. \t\t\t\t\t\t        <input type=\"radio\" name=\"pm\" id=\"pm_";
  1551.                     // line 750
  1552.                     echo twig_escape_filter($this->env, (isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'750$this->source); })()), "html"nulltrue);
  1553.                     echo "\" value=\"";
  1554.                     echo twig_escape_filter($this->env$context["pm"], "html"nulltrue);
  1555.                     echo "\" ";
  1556.                     if ((((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'750$this->source); })()) && (twig_get_attribute($this->env$this->source, (isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'750$this->source); })()), "pm", [], "any"falsefalsefalse750) == $context["pm"])) || (twig_length_filter($this->env, (isset($context["p_m"]) || array_key_exists("p_m"$context) ? $context["p_m"] : (function () { throw new RuntimeError('Variable "p_m" does not exist.'750$this->source); })())) == 1))) {
  1557.                         echo "checked";
  1558.                     }
  1559.                     echo " onclick=\"mitsumori_simulation('pm','pm_";
  1560.                     echo twig_escape_filter($this->env, (isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'750$this->source); })()), "html"nulltrue);
  1561.                     echo "');\"><label for=\"pm_";
  1562.                     echo twig_escape_filter($this->env, (isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'750$this->source); })()), "html"nulltrue);
  1563.                     echo "\">";
  1564.                     echo twig_escape_filter($this->env$context["pm"], "html"nulltrue);
  1565.                     echo "</label>
  1566. \t\t\t\t\t\t      </div>
  1567. \t\t\t\t\t\t      ";
  1568.                 }
  1569.                 // line 753
  1570.                 echo "\t\t\t\t\t\t\t";
  1571.             }
  1572.             $_parent $context['_parent'];
  1573.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pm'], $context['_parent'], $context['loop']);
  1574.             $context array_intersect_key($context$_parent) + $_parent;
  1575.             // line 754
  1576.             echo "\t\t\t\t\t\t    </div>
  1577. \t\t\t\t\t\t  </div>
  1578. \t\t\t\t\t\t</div>
  1579.                         ";
  1580.         }
  1581.         // line 758
  1582.         echo "
  1583. \t\t\t\t\t\t<!-- 1: 施工見積(通常)-->
  1584. \t\t\t\t\t\t";
  1585.         // line 760
  1586.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'760$this->source); })()), "SaleType", [], "any"falsefalsefalse760), "id", [], "any"falsefalsefalse760) == 1)) {
  1587.             // line 761
  1588.             echo "
  1589. \t\t\t\t\t\t";
  1590.         }
  1591.         // line 764
  1592.         echo "
  1593.                         <!-- 2: 施工見積(補助金・窓)-->
  1594. \t\t\t\t\t\t";
  1595.         // line 766
  1596.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'766$this->source); })()), "SaleType", [], "any"falsefalsefalse766), "id", [], "any"falsefalsefalse766) == 2)) {
  1597.             // line 767
  1598.             echo "\t\t\t\t\t\t\t<!-- 幅・高さの数値指定 -->
  1599. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  1600. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">窓枠</label>
  1601. \t\t\t\t\t\t\t  <div class=\"col-4\">
  1602. \t\t\t\t\t\t\t    <div class=\"input-group\">
  1603. \t\t\t\t\t\t\t       <span class=\"input-group-text\">高さ</span><input type=\"text\" name=\"takasa\" id=\"takasa\" class=\"form-control\" value=\"1\" onchange=\"mitsumori_simulation('takasa','takasa');\" /><span class=\"input-group-text\">cm</span>
  1604. \t\t\t\t\t\t\t    </div>
  1605. \t\t\t\t\t\t\t  </div>
  1606. \t\t\t\t\t\t\t  <div class=\"col-4\">
  1607. \t\t\t\t\t\t\t    <div class=\"input-group mb-3\">
  1608. \t\t\t\t\t\t\t       <span class=\"input-group-text\">横幅</span><input type=\"text\" name=\"yokohaba\" id=\"yokohaba\" class=\"form-control\" value=\"1\" onchange=\"mitsumori_simulation('yokohaba','yokohaba');\" /><span class=\"input-group-text\">cm</span>
  1609. \t\t\t\t\t\t\t    </div>
  1610. \t\t\t\t\t\t\t  </div>
  1611. \t\t\t\t\t\t\t</div>
  1612. \t\t\t\t\t\t\t<!-- 枚数(入力)の指定 -->
  1613. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  1614. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">セット数</label>
  1615. \t\t\t\t\t\t\t  <div class=\"col-4 mb-3\">
  1616. \t\t\t\t\t\t\t    <div class=\"input-group\">
  1617. \t\t\t\t\t\t\t       <input type=\"text\" name=\"set\" id=\"set\" class=\"form-control\" value=\"1\" onchange=\"mitsumori_simulation('set','set');\" /><span class=\"input-group-text\">セット</span>
  1618. \t\t\t\t\t\t\t    </div>
  1619. \t\t\t\t\t\t\t  </div>
  1620. \t\t\t\t\t\t\t  <div class=\"col-4\">
  1621. \t\t\t\t\t\t\t    <button type=\"button\" id=\"op_btn_1\" class=\"btn btn-info\" onclick=\"madoset(+1);\">+</button>
  1622. \t\t\t\t\t\t\t    <button type=\"button\" id=\"op_btn_2\" class=\"btn btn-danger\" onclick=\"madoset(-1);\">ー</button>
  1623. \t\t\t\t\t\t\t  </div>
  1624. \t\t\t\t\t\t\t
  1625. \t\t\t\t\t\t";
  1626.         }
  1627.         // line 797
  1628.         echo "
  1629. \t\t\t\t\t\t<!-- 3: 施工見積(物置・ゴミステーション)-->
  1630. \t\t\t\t\t\t";
  1631.         // line 799
  1632.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'799$this->source); })()), "SaleType", [], "any"falsefalsefalse799), "id", [], "any"falsefalsefalse799) == 3)) {
  1633.             // line 800
  1634.             echo "\t\t\t\t\t\t\t<!-- 幅・奥行き・高さ -->
  1635. \t\t\t\t\t\t\t<!-- 台数の指定 -->
  1636. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  1637. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">台数</label>
  1638. \t\t\t\t\t\t\t  <div class=\"col-4\">
  1639. \t\t\t\t\t\t\t    <div class=\"input-group mb-3\">
  1640. \t\t\t\t\t\t\t       <input type=\"text\" name=\"daisu\" id=\"daisu\" class=\"form-control\" value=\"1\" onchange=\"mitsumori_simulation('daisu','daisu');\" /><span class=\"input-group-text\">台</span>
  1641. \t\t\t\t\t\t\t    </div>
  1642. \t\t\t\t\t\t\t  </div>
  1643. \t\t\t\t\t\t\t  <div class=\"col-4\">
  1644. \t\t\t\t\t\t\t    <button type=\"button\" id=\"op_btn_1\" class=\"btn btn-info\" onclick=\"daisu(+1);\">+</button>
  1645. \t\t\t\t\t\t\t    <button type=\"button\" id=\"op_btn_2\" class=\"btn btn-danger\" onclick=\"daisu(-1);\">ー</button>
  1646. \t\t\t\t\t\t\t  </div>
  1647. \t\t\t\t\t\t\t</div>
  1648. \t\t\t\t\t\t";
  1649.         }
  1650.         // line 817
  1651.         echo "
  1652. \t\t\t\t\t\t<!-- 4: 施工見積(フェンス・組み立て式)-->
  1653. \t\t\t\t\t\t";
  1654.         // line 819
  1655.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'819$this->source); })()), "SaleType", [], "any"falsefalsefalse819), "id", [], "any"falsefalsefalse819) == 4)) {
  1656.             // line 820
  1657.             echo "\t\t\t\t\t\t\t<!-- 枚数(入力)の指定 -->
  1658. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  1659. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">枚数</label>
  1660. \t\t\t\t\t\t\t  <div class=\"col-4 mb-3\">
  1661. \t\t\t\t\t\t\t    <div class=\"input-group\">
  1662. \t\t\t\t\t\t\t       <input type=\"text\" name=\"maisu\" id=\"maisu\" class=\"form-control\" value=\"3\" onchange=\"mitsumori_simulation('daisu','daisu');\" /><span class=\"input-group-text\">枚</span>
  1663. \t\t\t\t\t\t\t    </div>
  1664. \t\t\t\t\t\t\t  </div>
  1665. \t\t\t\t\t\t\t  <div class=\"col-4\">
  1666. \t\t\t\t\t\t\t    <button type=\"button\" id=\"op_btn_1\" class=\"btn btn-info\" onclick=\"maisu(+1);\">+</button>
  1667. \t\t\t\t\t\t\t    <button type=\"button\" id=\"op_btn_2\" class=\"btn btn-danger\" onclick=\"maisu(-1);\">ー</button>
  1668. \t\t\t\t\t\t\t  </div>
  1669. \t\t\t\t\t\t\t</div>
  1670. \t\t\t\t\t\t";
  1671.         }
  1672.         // line 835
  1673.         echo "
  1674. \t\t\t\t\t\t<!-- 5: 施工見積(ウッドデッキ・タイルデッキ)-->
  1675. \t\t\t\t\t\t";
  1676.         // line 837
  1677.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'837$this->source); })()), "SaleType", [], "any"falsefalsefalse837), "id", [], "any"falsefalsefalse837) == 5)) {
  1678.             // line 838
  1679.             echo "
  1680. \t\t\t\t\t\t";
  1681.         }
  1682.         // line 841
  1683.         echo "\t\t\t\t\t\t<!-- 6: 施工見積(芝生・枚数・数量買い)-->
  1684. \t\t\t\t\t\t";
  1685.         // line 842
  1686.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'842$this->source); })()), "SaleType", [], "any"falsefalsefalse842), "id", [], "any"falsefalsefalse842) == 6)) {
  1687.             // line 843
  1688.             echo "\t\t\t\t\t\t\t<!-- 平米(入力)の指定 -->
  1689. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  1690. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">枚数</label>
  1691. \t\t\t\t\t\t\t  <div class=\"col-4\">
  1692. \t\t\t\t\t\t\t    <div class=\"input-group\">
  1693. \t\t\t\t\t\t\t       <input type=\"text\" name=\"heibei\" id=\"heibei\" class=\"form-control\" value=\"1\" onchange=\"mitsumori_simulation('heibei','heibei');\" /><span class=\"input-group-text\">平米</span>
  1694. \t\t\t\t\t\t\t    </div>
  1695. \t\t\t\t\t\t\t  </div>
  1696. \t\t\t\t\t\t\t  <div class=\"col-4\">
  1697. \t\t\t\t\t\t\t    <button type=\"button\" id=\"op_btn_1\" class=\"btn btn-info\" onclick=\"heibei(+1);\">+</button>
  1698. \t\t\t\t\t\t\t    <button type=\"button\" id=\"op_btn_2\" class=\"btn btn-danger\" onclick=\"heibei(-1);\">ー</button>
  1699. \t\t\t\t\t\t\t  </div>
  1700. \t\t\t\t\t\t\t</div>
  1701. \t\t\t\t\t\t";
  1702.         }
  1703.         // line 859
  1704.         echo "
  1705. \t\t\t\t\t\t<!-- 9: 商品のみ購入 -->
  1706. \t\t\t\t\t    <div class=\"row\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\"><label class=\"col-12 col-form-label\">取り付け工事のご希望に関してお答えください。</label></div>
  1707. \t\t\t\t\t\t";
  1708.         // line 866
  1709.         $context['_parent'] = $context;
  1710.         $context['_seq'] = twig_ensure_traversable(range(010));
  1711.         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  1712.             // line 867
  1713.             echo "\t\t\t\t\t\t\t";
  1714.             if (((isset($context["op"]) || array_key_exists("op"$context) ? $context["op"] : (function () { throw new RuntimeError('Variable "op" does not exist.'867$this->source); })()) && (twig_length_filter($this->env, (isset($context["op"]) || array_key_exists("op"$context) ? $context["op"] : (function () { throw new RuntimeError('Variable "op" does not exist.'867$this->source); })())) >= ($context["i"] + 1)))) {
  1715.                 // line 868
  1716.                 echo "\t\t\t\t\t\t\t";
  1717.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["op"]) || array_key_exists("op"$context) ? $context["op"] : (function () { throw new RuntimeError('Variable "op" does not exist.'868$this->source); })()), $context["i"], [], "array"falsefalsefalse868), "name", [], "array"falsefalsefalse868)) {
  1718.                     // line 869
  1719.                     echo "\t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  1720. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">";
  1721.                     // line 870
  1722.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["op"]) || array_key_exists("op"$context) ? $context["op"] : (function () { throw new RuntimeError('Variable "op" does not exist.'870$this->source); })()), $context["i"], [], "array"falsefalsefalse870), "name", [], "array"falsefalsefalse870), "html"nulltrue);
  1723.                     echo "</label>
  1724. \t\t\t\t\t\t\t  <div class=\"col-8\">
  1725. \t\t\t\t\t            ";
  1726.                     // line 872
  1727.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["op"]) || array_key_exists("op"$context) ? $context["op"] : (function () { throw new RuntimeError('Variable "op" does not exist.'872$this->source); })()), $context["i"], [], "array"falsefalsefalse872), "comment", [], "array"falsefalsefalse872), "html"nulltrue);
  1728.                     echo "
  1729. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  1730. \t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  1731. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"op";
  1732.                     // line 875
  1733.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1734.                     echo "\" id=\"op";
  1735.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1736.                     echo "_1\" value=\"";
  1737.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["op"]) || array_key_exists("op"$context) ? $context["op"] : (function () { throw new RuntimeError('Variable "op" does not exist.'875$this->source); })()), $context["i"], [], "array"falsefalsefalse875), "on", [], "array"falsefalsefalse875), "html"nulltrue);
  1738.                     echo "\" ";
  1739.                     if (((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'875$this->source); })()) && (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'875$this->source); })()), "op", [], "any"falsefalsefalse875), $context["i"], [], "array"falsefalsefalse875) == twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["op"]) || array_key_exists("op"$context) ? $context["op"] : (function () { throw new RuntimeError('Variable "op" does not exist.'875$this->source); })()), $context["i"], [], "array"falsefalsefalse875), "on", [], "array"falsefalsefalse875)))) {
  1740.                         echo "checked";
  1741.                     }
  1742.                     echo " onclick=\"mitsumori_simulation('op";
  1743.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1744.                     echo "','op";
  1745.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1746.                     echo "_1');cartbutton('";
  1747.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["op"]) || array_key_exists("op"$context) ? $context["op"] : (function () { throw new RuntimeError('Variable "op" does not exist.'875$this->source); })()), $context["i"], [], "array"falsefalsefalse875), "on", [], "array"falsefalsefalse875), "html"nulltrue);
  1748.                     echo "');\"><label for=\"op";
  1749.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1750.                     echo "_1\">";
  1751.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["op"]) || array_key_exists("op"$context) ? $context["op"] : (function () { throw new RuntimeError('Variable "op" does not exist.'875$this->source); })()), $context["i"], [], "array"falsefalsefalse875), "on", [], "array"falsefalsefalse875), "html"nulltrue);
  1752.                     echo "</label>
  1753. \t\t\t\t\t\t\t      </div>
  1754. \t\t\t\t\t\t\t    </div>
  1755. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  1756. \t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  1757. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"op";
  1758.                     // line 880
  1759.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1760.                     echo "\" id=\"op";
  1761.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1762.                     echo "_2\" value=\"";
  1763.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["op"]) || array_key_exists("op"$context) ? $context["op"] : (function () { throw new RuntimeError('Variable "op" does not exist.'880$this->source); })()), $context["i"], [], "array"falsefalsefalse880), "off", [], "array"falsefalsefalse880), "html"nulltrue);
  1764.                     echo "\" ";
  1765.                     if (((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'880$this->source); })()) && (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'880$this->source); })()), "op", [], "any"falsefalsefalse880), $context["i"], [], "array"falsefalsefalse880) == twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["op"]) || array_key_exists("op"$context) ? $context["op"] : (function () { throw new RuntimeError('Variable "op" does not exist.'880$this->source); })()), $context["i"], [], "array"falsefalsefalse880), "off", [], "array"falsefalsefalse880)))) {
  1766.                         echo "checked";
  1767.                     }
  1768.                     echo " onclick=\"mitsumori_simulation('op";
  1769.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1770.                     echo "','op";
  1771.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1772.                     echo "_2');cartbutton('";
  1773.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["op"]) || array_key_exists("op"$context) ? $context["op"] : (function () { throw new RuntimeError('Variable "op" does not exist.'880$this->source); })()), $context["i"], [], "array"falsefalsefalse880), "off", [], "array"falsefalsefalse880), "html"nulltrue);
  1774.                     echo "');\"><label for=\"op";
  1775.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1776.                     echo "_2\">";
  1777.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["op"]) || array_key_exists("op"$context) ? $context["op"] : (function () { throw new RuntimeError('Variable "op" does not exist.'880$this->source); })()), $context["i"], [], "array"falsefalsefalse880), "off", [], "array"falsefalsefalse880), "html"nulltrue);
  1778.                     echo "</label>
  1779. \t\t\t\t\t\t\t      </div>
  1780. \t\t\t\t\t\t\t    </div>
  1781. \t\t\t\t\t\t\t  </div>
  1782. \t\t\t\t\t\t\t</div>
  1783. \t\t\t\t\t\t\t";
  1784.                 }
  1785.                 // line 886
  1786.                 echo "\t\t\t\t\t\t\t";
  1787.             }
  1788.             // line 887
  1789.             echo "\t\t\t\t\t\t";
  1790.         }
  1791.         $_parent $context['_parent'];
  1792.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  1793.         $context array_intersect_key($context$_parent) + $_parent;
  1794.         // line 888
  1795.         echo "
  1796. \t\t\t\t\t  </div>
  1797. \t\t\t\t\t  <!-- /.card-body -->
  1798. \t\t\t\t\t</div>
  1799.                     <form action=\"";
  1800.         // line 894
  1801.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\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.'894$this->source); })()), "id", [], "any"falsefalsefalse894)]), "html"nulltrue);
  1802.         echo "\" method=\"post\" id=\"form1\" name=\"form1\">
  1803.                         ";
  1804.         // line 895
  1805.         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.'895$this->source); })()), "stock_find", [], "any"falsefalsefalse895)) {
  1806.             // line 896
  1807.             echo "                            <div class=\"ec-productRole__actions\">
  1808.                                 ";
  1809.             // line 897
  1810.             if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse897)) {
  1811.                 // line 898
  1812.                 echo "                                    <div class=\"ec-select\">
  1813.                                         ";
  1814.                 // line 899
  1815.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_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.'899$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse899), 'row');
  1816.                 echo "
  1817.                                         ";
  1818.                 // line 900
  1819.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_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.'900$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse900), 'errors');
  1820.                 echo "
  1821.                                     </div>
  1822.                                     ";
  1823.                 // line 902
  1824.                 if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse902)) {
  1825.                     // line 903
  1826.                     echo "                                        <div class=\"ec-select\">
  1827.                                             ";
  1828.                     // line 904
  1829.                     echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_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.'904$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse904), 'row');
  1830.                     echo "
  1831.                                             ";
  1832.                     // line 905
  1833.                     echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_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.'905$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse905), 'errors');
  1834.                     echo "
  1835.                                         </div>
  1836.                                     ";
  1837.                 }
  1838.                 // line 908
  1839.                 echo "                                ";
  1840.             }
  1841.             // line 909
  1842.             echo "                                <div class=\"ec-numberInput\">
  1843.                                     ";
  1844.             // line 910
  1845.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_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.'910$this->source); })()), "quantity", [], "any"falsefalsefalse910), 'widget', ["type" => "hidden"]);
  1846.             echo "
  1847.                                     ";
  1848.             // line 911
  1849.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_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.'911$this->source); })()), "quantity", [], "any"falsefalsefalse911), 'errors');
  1850.             echo "
  1851.                                 </div>
  1852.                             </div>
  1853. \t\t\t\t\t\t\t";
  1854.             // line 915
  1855.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'915$this->source); })()), "SaleType", [], "any"falsefalsefalse915), "id", [], "any"falsefalsefalse915) != 9)) {
  1856.                 // line 916
  1857.                 echo "                            <div class=\"ec-productRole__btn mt-3\">
  1858.                                 <button type=\"submit\" id=\"cart_btn\" class=\"ec-blockBtn--action add-cart\" style=\"display:none;\">カートに入れる</button>
  1859.                             </div>
  1860. \t\t\t\t\t\t\t";
  1861.             } else {
  1862.                 // line 920
  1863.                 echo "                            <div class=\"ec-productRole__btn mt-3\">
  1864.                                 <button type=\"submit\" id=\"cart_btn\" class=\"ec-blockBtn--action add-cart\">
  1865.                                     ";
  1866.                 // line 922
  1867.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html"nulltrue);
  1868.                 echo "
  1869.                                 </button>
  1870.                             </div>
  1871. \t\t\t\t\t\t\t";
  1872.             }
  1873.             // line 926
  1874.             echo "                        ";
  1875.         } else {
  1876.             // line 927
  1877.             echo "                            <div class=\"ec-productRole__btn\">
  1878.                                 <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  1879.                                     ";
  1880.             // line 929
  1881.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html"nulltrue);
  1882.             echo "
  1883.                                 </button>
  1884.                             </div>
  1885.                         ";
  1886.         }
  1887.         // line 933
  1888.         echo "                        <div class=\"ec-productRole__btn\">
  1889.                             <button type=\"button\" class=\"ec-blockBtn--cancel\" onclick=\"contact_form(";
  1890.         // line 934
  1891.         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.'934$this->source); })()), "id", [], "any"falsefalsefalse934), "html"nulltrue);
  1892.         echo ");\">無料現地調査へ進む</button>
  1893.                         </div>
  1894.                         ";
  1895.         // line 936
  1896.         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.'936$this->source); })()), 'rest');
  1897.         echo "
  1898.                     </form>
  1899.                     <div class=\"ec-modal\">
  1900.                         <div class=\"ec-modal-overlay\">
  1901.                             <div class=\"ec-modal-wrap\">
  1902.                                 <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  1903.         // line 941
  1904.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  1905.         echo "\" alt=\"\"/></span></span>
  1906.                                 <div id=\"ec-modal-header\" class=\"text-center\">";
  1907.         // line 942
  1908.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  1909.         echo "</div>
  1910.                                 <div class=\"ec-modal-box\">
  1911.                                     <div class=\"ec-role\">
  1912.                                         <span class=\"ec-inlineBtn--cancel\">";
  1913.         // line 945
  1914.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  1915.         echo "</span>
  1916.                                         <a href=\"";
  1917.         // line 946
  1918.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  1919.         echo "\" class=\"ec-inlineBtn--action\">";
  1920.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  1921.         echo "</a>
  1922.                                     </div>
  1923.                                 </div>
  1924.                             </div>
  1925.                         </div>
  1926.                     </div>
  1927.                     <div class=\"ec-productRole__description\">";
  1928.         // line 952
  1929.         echo twig_nl2br(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.'952$this->source); })()), "description_detail", [], "any"falsefalsefalse952));
  1930.         echo "
  1931.                     </div>
  1932.                 </div>
  1933. \t\t\t\t<div class=\"card col-12 collapsed-card sticky-top float-right\">
  1934. \t\t\t\t\t<div class=\"card-header\">
  1935. \t\t\t\t\t  <h3 class=\"card-title\">現在のお見積り額</h3>
  1936. \t\t\t\t\t  <div class=\"card-tools\">
  1937. \t\t\t\t\t    <span class=\"float-left\" id=\"mitsumori_message\">395000円</span>
  1938. \t\t\t\t\t    <button type=\"button\" class=\"btn btn-tool\" data-card-widget=\"collapse\">
  1939. \t\t\t\t\t      <i class=\"fas fa-plus\"></i>
  1940. \t\t\t\t\t    </button>
  1941. \t\t\t\t\t  </div>
  1942. \t\t\t\t\t</div>
  1943. \t\t\t\t\t<div class=\"card-body p-0\">
  1944. \t\t\t\t\t  <ul class=\"nav nav-pills flex-column\">
  1945. \t\t\t\t\t    <li class=\"nav-item active\">
  1946. \t\t\t\t\t      <a class=\"nav-link\">
  1947. \t\t\t\t\t        <i class=\"far fa-file-alt\"></i> 合計(工事費・税込)
  1948. \t\t\t\t\t        <span class=\"float-right\" id=\"mitsumori_goukei\">395,000円</span>
  1949. \t\t\t\t\t      </a>
  1950. \t\t\t\t\t    </li>
  1951. \t\t\t\t\t    <li class=\"nav-item active\">
  1952. \t\t\t\t\t      <a class=\"nav-link\">
  1953. \t\t\t\t\t        <i class=\"far fa-file-alt\"></i> 商品価格
  1954. \t\t\t\t\t        <span class=\"float-right\" id=\"mitsumori_price\">307,008円</span>
  1955. \t\t\t\t\t      </a>
  1956. \t\t\t\t\t    </li>
  1957. \t\t\t\t\t    <li class=\"nav-item\">
  1958. \t\t\t\t\t      <a class=\"nav-link\">
  1959. \t\t\t\t\t        &nbsp;&nbsp;<i class=\"far fa-file-alt\"></i> カタログ価格
  1960. \t\t\t\t\t        <span class=\"float-right\" id=\"maker_price\">479,700円</span>
  1961. \t\t\t\t\t      </a>
  1962. \t\t\t\t\t    </li>
  1963. \t\t\t\t\t    <li class=\"nav-item\">
  1964. \t\t\t\t\t      <a class=\"nav-link\">
  1965. \t\t\t\t\t        &nbsp;&nbsp;<i class=\"far fa-file-alt\"></i> お値引き
  1966. \t\t\t\t\t        <span class=\"float-right\" id=\"mitsumori_off\">-172,692円</span>
  1967. \t\t\t\t\t      </a>
  1968. \t\t\t\t\t    </li>
  1969. \t\t\t\t\t    <li class=\"nav-item\">
  1970. \t\t\t\t\t      <a class=\"nav-link\">
  1971. \t\t\t\t\t        <i class=\"far fa-file-alt\"></i> 基本工事費
  1972. \t\t\t\t\t        <span class=\"float-right\" id=\"mitsumori_ct\">53,250円</span>
  1973. \t\t\t\t\t      </a>
  1974. \t\t\t\t\t    </li>
  1975. \t\t\t\t\t    <li class=\"nav-item\">
  1976. \t\t\t\t\t      <a class=\"nav-link\">
  1977. \t\t\t\t\t        <i class=\"far fa-file-alt\"></i> 施工オプション
  1978. \t\t\t\t\t        <span class=\"float-right\"id=\"mitsumori_option\">6,297円</span>
  1979. \t\t\t\t\t      </a>
  1980. \t\t\t\t\t    </li>
  1981. \t\t\t\t\t  </ul>
  1982. \t\t\t\t\t</div>
  1983. \t\t\t\t\t<div class=\"card-footer\">
  1984. \t\t                <button type=\"button\" id=\"mitsumori_btn\" class=\"btn btn-info\" data-toggle=\"modal\" data-target=\"#modal-mitsumori\">
  1985. \t\t                  見積書表示
  1986. \t\t                </button>
  1987. \t\t\t\t\t\t<button id=\"contact\" class=\"btn btn-info\" onclick=\"contact_form(";
  1988.         // line 1009
  1989.         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.'1009$this->source); })()), "id", [], "any"falsefalsefalse1009), "html"nulltrue);
  1990.         echo ");\">無料現地調査へ進む</button>
  1991. \t\t\t\t\t</div>
  1992. \t\t\t\t</div>
  1993.             </div>
  1994.         </div>
  1995.     </div>
  1996.   <div class=\"modal\" id=\"modal-mitsumori\">
  1997.     <div class=\"modal-dialog modal-mitsumori\" style=\"max-width:1000px\">
  1998.       <div class=\"modal-content\">
  1999.         <div class=\"modal-header\">
  2000.           <h4 class=\"modal-title\">お見積書</h4>
  2001.           <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  2002.             <span aria-hidden=\"true\">&times;</span>
  2003.           </button>
  2004.         </div>
  2005.         <div class=\"modal-body\">
  2006. \t\t\t<div class=\"invoice p-3 mb-5\" style=\"max-width:1000px; margin:auto;\">
  2007. \t\t\t  <!-- title row -->
  2008. \t\t\t  <div class=\"row\">
  2009. \t\t\t    <div class=\"col-12\">
  2010. \t\t\t      <h2>概算お見積書 
  2011. \t\t\t        <small class=\"float-right\" style=\"font-size:14px;\">発行日: 2025/03/14</small>
  2012. \t\t\t      </h2>
  2013. \t\t\t    </div>
  2014. \t\t\t    <!-- /.col -->
  2015. \t\t\t  </div>
  2016. \t\t\t  <!-- info row -->
  2017. \t\t\t  <div class=\"row invoice-info\">
  2018. \t\t\t    <div class=\"col-sm-8 invoice-col\">
  2019. \t\t\t      <h3>お客様</h3>
  2020. \t\t\t      <span>下記の通り、お見積もり申し上げます。</span>
  2021. \t\t\t      <br />
  2022. \t\t\t      <br / >
  2023. \t\t\t      <br />
  2024. \t\t\t      <h2>お見積金額: <span id=\"mitsumori_kei\">399,080円</span></h2>
  2025. \t\t\t      <span>
  2026. \t\t\t        <br/>
  2027. \t\t\t        <br/>
  2028. \t\t\t        <br/>
  2029. \t\t\t        <br/>
  2030. \t\t\t      </span>
  2031. \t\t\t    </div>
  2032. \t\t\t    <div class=\"col-sm-4 invoice-col\">
  2033. \t\t\t      <p>
  2034. \t\t\t        <img alt=\"\" src=\"/html/user_data/js/images/logo.png\" style=\"width: 260px; max-width: 100%; max-height: 10mm;\">
  2035. \t\t\t      </p>
  2036. \t\t\t      <p>有限会社プラス</p>
  2037. \t\t\t      <p>〒400-0334</p>
  2038. \t\t\t      <p>山梨県南アルプス市藤田1450番地2</p>
  2039. \t\t\t      <p>TEL: 055-284-6480</p>
  2040. \t\t\t      <img alt=\"\" src=\"/html/user_data/js/images/seal.svg\" style=\"z-index: 2; position: absolute; width: 21mm; left: 58mm; top: 36mm;\">
  2041. \t\t\t    </div>
  2042. \t\t\t    <!-- /.col -->
  2043. \t\t\t    <!-- /.col -->
  2044. \t\t\t  </div>
  2045. \t\t\t  <!-- /.row -->
  2046. \t\t\t  <!-- Table row -->
  2047. \t\t\t  <div class=\"row\">
  2048. \t\t\t    <div class=\"col-12 table-responsive\">
  2049. \t\t\t      <table class=\"table table-striped\">
  2050. \t\t\t        <thead>
  2051. \t\t\t          <tr>
  2052. \t\t\t            <th>項目</th>
  2053. \t\t\t            <th>数量</th>
  2054. \t\t\t            <th>単位</th>
  2055. \t\t\t            <th>単価</th>
  2056. \t\t\t            <th>小計</th>
  2057. \t\t\t          </tr>
  2058. \t\t\t        </thead>
  2059. \t\t\t        <tbody>
  2060. \t\t\t          <tr>
  2061. \t\t\t            <td>プレーンルーフ 600タイプ 1台用 単体セット</td>
  2062. \t\t\t            <td>1</td>
  2063. \t\t\t            <td>式</td>
  2064. \t\t\t            <td id=\"mitsumori_price_01\">352,800</td>
  2065. \t\t\t            <td id=\"mitsumori_price_02\">352,800</td>
  2066. \t\t\t          </tr>
  2067. \t\t\t          <tr>
  2068. \t\t\t            <td>基本工事費</td>
  2069. \t\t\t            <td>1</td>
  2070. \t\t\t            <td>式</td>
  2071. \t\t\t            <td id=\"mitsumori_ct_01\">10,000</td>
  2072. \t\t\t            <td id=\"mitsumori_ct_02\">10,000</td>
  2073. \t\t\t          </tr>
  2074. \t\t\t          <tr>
  2075. \t\t\t            <td>残土・ガラ処理</td>
  2076. \t\t\t            <td>1</td>
  2077. \t\t\t            <td>式</td>
  2078. \t\t\t            <td>0円</td>
  2079. \t\t\t            <td></td>
  2080. \t\t\t          </tr>
  2081. \t\t\t          <tr>
  2082. \t\t\t            <td> </td>
  2083. \t\t\t            <td></td>
  2084. \t\t\t            <td></td>
  2085. \t\t\t            <td></td>
  2086. \t\t\t            <td></td>
  2087. \t\t\t          </tr>
  2088. \t\t\t        </tbody>
  2089. \t\t\t      </table>
  2090. \t\t\t    </div>
  2091. \t\t\t    <!-- /.col -->
  2092. \t\t\t  </div>
  2093. \t\t\t  <!-- /.row -->
  2094. \t\t\t  <div class=\"row\">
  2095. \t\t\t    <!-- accepted payments column -->
  2096. \t\t\t    <div class=\"col-6\">
  2097. \t\t\t      <p class=\"lead\">お支払い方法</p>
  2098. \t\t\t      <p class=\"text-muted well well-sm shadow-none\" style=\"margin-top: 10px;\">銀行振込、クレジットカード決済、PAYPAY決済
  2099. \t\t\t        <br>銀行振込:山梨中央銀行 白根支店 普通口座 391402
  2100. \t\t\t        <br>※商品代金と工事代金の総額が金100万円(税込)を超える場合、着手金として代金の半額をご契約後お支払いいただきます。 
  2101. \t\t\t      </p>
  2102. \t\t\t    </div>
  2103. \t\t\t    <!-- /.col -->
  2104. \t\t\t    <div class=\"col-6\">
  2105. \t\t\t      <div class=\"table-responsive\">
  2106. \t\t\t        <table class=\"table\">
  2107. \t\t\t          <tbody>
  2108. \t\t\t            <tr>
  2109. \t\t\t              <th style=\"width:50%\">小計:</th>
  2110. \t\t\t              <td id=\"mitsumori_shoukei\">362,800</td>
  2111. \t\t\t            </tr>
  2112. \t\t\t            <tr>
  2113. \t\t\t              <th>消費税 (10%)</th>
  2114. \t\t\t              <td id=\"mitsumori_tax\">36,280</td>
  2115. \t\t\t            </tr>
  2116. \t\t\t            <tr>
  2117. \t\t\t              <th>合計:</th>
  2118. \t\t\t              <td id=\"mitsumori_goukei_02\">399,080</td>
  2119. \t\t\t            </tr>
  2120. \t\t\t          </tbody>
  2121. \t\t\t        </table>
  2122. \t\t\t      </div>
  2123. \t\t\t    </div>
  2124. \t\t\t    <!-- /.col -->
  2125. \t\t\t  </div>
  2126. \t\t\t  <!-- /.row -->
  2127. \t\t\t</div>
  2128.         </div>
  2129.         <div class=\"modal-footer justify-content-between\">
  2130. \t\t\t      <button type=\"button\" class=\"btn btn-primary float-right\" style=\"margin-right: 5px;\">
  2131. \t\t\t        <i class=\"fas fa-download\"></i>PDF出力
  2132. \t\t\t      </button>
  2133.           <button type=\"button\" class=\"btn btn-info\" onclick=\"contact_form(";
  2134.         // line 1156
  2135.         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.'1156$this->source); })()), "id", [], "any"falsefalsefalse1156), "html"nulltrue);
  2136.         echo ");\">無料現地調査へ進む</button>
  2137.         </div>
  2138.       </div>
  2139.       <!-- /.modal-content -->
  2140.     </div>
  2141.     <!-- /.modal-dialog -->
  2142.   </div>
  2143.   <!-- /.modal -->
  2144. ";
  2145.         
  2146.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  2147.         
  2148.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  2149.     }
  2150.     public function getTemplateName()
  2151.     {
  2152.         return "Product/detail.twig";
  2153.     }
  2154.     public function isTraitable()
  2155.     {
  2156.         return false;
  2157.     }
  2158.     public function getDebugInfo()
  2159.     {
  2160.         return array (  2234 => 1156,  2084 => 1009,  2024 => 952,  2013 => 946,  2009 => 945,  2003 => 942,  1999 => 941,  1991 => 936,  1986 => 934,  1983 => 933,  1976 => 929,  1972 => 927,  1969 => 926,  1962 => 922,  1958 => 920,  1952 => 916,  1950 => 915,  1943 => 911,  1939 => 910,  1936 => 909,  1933 => 908,  1927 => 905,  1923 => 904,  1920 => 903,  1918 => 902,  1913 => 900,  1909 => 899,  1906 => 898,  1904 => 897,  1901 => 896,  1899 => 895,  1895 => 894,  1887 => 888,  1881 => 887,  1878 => 886,  1851 => 880,  1825 => 875,  1819 => 872,  1814 => 870,  1811 => 869,  1808 => 868,  1805 => 867,  1801 => 866,  1792 => 859,  1774 => 843,  1772 => 842,  1769 => 841,  1764 => 838,  1762 => 837,  1758 => 835,  1741 => 820,  1739 => 819,  1735 => 817,  1716 => 800,  1714 => 799,  1710 => 797,  1678 => 767,  1676 => 766,  1672 => 764,  1667 => 761,  1665 => 760,  1661 => 758,  1655 => 754,  1649 => 753,  1631 => 750,  1628 => 749,  1625 => 748,  1622 => 747,  1617 => 746,  1615 => 745,  1609 => 741,  1606 => 740,  1600 => 736,  1594 => 735,  1576 => 732,  1573 => 731,  1570 => 730,  1567 => 729,  1562 => 728,  1560 => 727,  1554 => 723,  1551 => 722,  1545 => 718,  1539 => 717,  1521 => 714,  1518 => 713,  1515 => 712,  1512 => 711,  1507 => 710,  1505 => 709,  1499 => 705,  1496 => 704,  1490 => 700,  1484 => 699,  1466 => 696,  1463 => 695,  1460 => 694,  1457 => 693,  1452 => 692,  1450 => 691,  1444 => 687,  1441 => 686,  1435 => 682,  1429 => 681,  1411 => 678,  1408 => 677,  1405 => 676,  1402 => 675,  1397 => 674,  1395 => 673,  1389 => 669,  1387 => 668,  1380 => 663,  1374 => 659,  1353 => 656,  1350 => 655,  1346 => 654,  1340 => 651,  1337 => 650,  1334 => 649,  1332 => 648,  1329 => 647,  1323 => 643,  1302 => 640,  1299 => 639,  1295 => 638,  1289 => 635,  1286 => 634,  1283 => 633,  1281 => 632,  1278 => 631,  1272 => 627,  1251 => 624,  1248 => 623,  1244 => 622,  1238 => 619,  1235 => 618,  1232 => 617,  1230 => 616,  1216 => 605,  1209 => 600,  1197 => 597,  1194 => 596,  1191 => 595,  1188 => 593,  1177 => 591,  1173 => 590,  1170 => 589,  1167 => 587,  1161 => 584,  1157 => 583,  1154 => 582,  1151 => 581,  1145 => 578,  1139 => 577,  1136 => 576,  1130 => 573,  1126 => 572,  1123 => 571,  1121 => 570,  1119 => 569,  1115 => 567,  1113 => 566,  1109 => 564,  1101 => 561,  1086 => 559,  1077 => 558,  1060 => 557,  1056 => 555,  1052 => 554,  1049 => 553,  1046 => 552,  1036 => 543,  1017 => 541,  1000 => 540,  996 => 538,  985 => 536,  963 => 534,  945 => 533,  942 => 532,  938 => 530,  930 => 526,  922 => 522,  920 => 521,  917 => 520,  915 => 519,  910 => 517,  907 => 516,  901 => 511,  891 => 510,  875 => 503,  871 => 502,  867 => 501,  863 => 500,  859 => 498,  853 => 496,  851 => 495,  846 => 494,  843 => 493,  833 => 491,  819 => 489,  811 => 488,  793 => 487,  788 => 485,  748 => 448,  743 => 445,  740 => 444,  727 => 443,  724 => 442,  722 => 441,  719 => 440,  716 => 439,  703 => 438,  700 => 437,  698 => 436,  695 => 435,  692 => 434,  679 => 433,  676 => 432,  674 => 431,  671 => 430,  668 => 429,  655 => 428,  652 => 427,  650 => 426,  647 => 425,  644 => 424,  631 => 423,  628 => 422,  626 => 421,  608 => 406,  490 => 291,  471 => 277,  465 => 276,  459 => 275,  453 => 274,  447 => 273,  441 => 272,  435 => 271,  429 => 270,  423 => 269,  417 => 268,  411 => 267,  405 => 266,  399 => 265,  393 => 264,  387 => 263,  381 => 262,  361 => 245,  351 => 238,  321 => 211,  316 => 208,  307 => 202,  303 => 200,  301 => 199,  298 => 198,  289 => 192,  285 => 190,  283 => 189,  211 => 119,  203 => 117,  201 => 116,  196 => 114,  193 => 113,  191 => 112,  177 => 101,  173 => 99,  163 => 98,  73 => 16,  63 => 15,  52 => 11,  50 => 13,  37 => 11,);
  2161.     }
  2162.     public function getSourceContext()
  2163.     {
  2164.         return new Source("{#
  2165. This file is part of EC-CUBE
  2166. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  2167. http://www.ec-cube.co.jp/
  2168. For the full copyright and license information, please view the LICENSE
  2169. file that was distributed with this source code.
  2170. #}
  2171. {% extends 'default_frame.twig' %}
  2172. {% set body_class = 'product_page' %}
  2173. {% block stylesheet %}
  2174.     <style>
  2175.         .slick-slider {
  2176.             margin-bottom: 10px;
  2177. \t\t\tmargin-top: -20px;
  2178.         }
  2179.         .slick-dots {
  2180.             position: absolute;
  2181.             bottom: -45px;
  2182.             display: block;
  2183.             width: 100%;
  2184.             padding: 0;
  2185.             list-style: none;
  2186.             text-align: center;
  2187.         }
  2188.         .slick-dots li {
  2189.             position: relative;
  2190.             display: inline-block;
  2191.             width: 20px;
  2192.             height: 20px;
  2193.             margin: 0 5px;
  2194.             padding: 0;
  2195.             cursor: pointer;
  2196.         }
  2197.         .slick-dots li button {
  2198.             font-size: 0;
  2199.             line-height: 0;
  2200.             display: block;
  2201.             width: 20px;
  2202.             height: 20px;
  2203.             padding: 5px;
  2204.             cursor: pointer;
  2205.             color: transparent;
  2206.             border: 0;
  2207.             outline: none;
  2208.             background: transparent;
  2209.         }
  2210.         .slick-dots li button:hover,
  2211.         .slick-dots li button:focus {
  2212.             outline: none;
  2213.         }
  2214.         .slick-dots li button:hover:before,
  2215.         .slick-dots li button:focus:before {
  2216.             opacity: 1;
  2217.         }
  2218.         .slick-dots li button:before {
  2219.             content: \" \";
  2220.             line-height: 20px;
  2221.             position: absolute;
  2222.             top: 0;
  2223.             left: 0;
  2224.             width: 12px;
  2225.             height: 12px;
  2226.             text-align: center;
  2227.             opacity: .25;
  2228.             background-color: black;
  2229.             border-radius: 50%;
  2230.         }
  2231.         .slick-dots li.slick-active button:before {
  2232.             opacity: .75;
  2233.             background-color: black;
  2234.         }
  2235.         .slick-dots li button.thumbnail img {
  2236.             width: 0;
  2237.             height: 0;
  2238.         }
  2239.     </style>
  2240.     <link rel=\"stylesheet\" href=\"/html/user_data/js/style.css\">
  2241.     <link rel=\"stylesheet\" href=\"/html/plugins/icheck-bootstrap/icheck-bootstrap.min.css\">
  2242. {% endblock %}
  2243. {% block javascript %}
  2244.     <script>
  2245.         eccube.classCategories = {{ class_categories_as_json(Product)|raw }};
  2246.         // 規格2に選択肢を割り当てる。
  2247.         function fnSetClassCategories(form, classcat_id2_selected) {
  2248.             var \$form = \$(form);
  2249.             var product_id = \$form.find('input[name=product_id]').val();
  2250.             var \$sele1 = \$form.find('select[name=classcategory_id1]');
  2251.             var \$sele2 = \$form.find('select[name=classcategory_id2]');
  2252.             eccube.setClassCategories(\$form, product_id, \$sele1, \$sele2, classcat_id2_selected);
  2253.         }
  2254.         {% if form.classcategory_id2 is defined %}
  2255.         fnSetClassCategories(
  2256.             \$('#form1'), {{ form.classcategory_id2.vars.value|json_encode|raw }}
  2257.         );
  2258.         {% elseif form.classcategory_id1 is defined %}
  2259.         eccube.checkStock(\$('#form1'), {{ Product.id }}, {{ form.classcategory_id1.vars.value|json_encode|raw }}, null);
  2260.         {% endif %}
  2261.     </script>
  2262.     <script>
  2263.         \$(function() {
  2264.             // bfcache無効化
  2265.             \$(window).bind('pageshow', function(event) {
  2266.                 if (event.originalEvent.persisted) {
  2267.                     location.reload(true);
  2268.                 }
  2269.             });
  2270.             // Core Web Vital の Cumulative Layout Shift(CLS)対策のため
  2271.             // img タグに width, height が付与されている.
  2272.             // 630px 未満の画面サイズでは縦横比が壊れるための対策
  2273.             // see https://github.com/EC-CUBE/ec-cube/pull/5023
  2274.             \$('.ec-grid2__cell').hide();
  2275.             var removeSize = function () {
  2276.                 \$('.slide-item').height('');
  2277.                 \$('.slide-item img')
  2278.                     .removeAttr('width')
  2279.                     .removeAttr('height')
  2280.                     .removeAttr('style');
  2281.             };
  2282.             var slickInitial = function(slick) {
  2283.                 \$('.ec-grid2__cell').fadeIn(1500);
  2284.                 var baseHeight = \$(slick.target).height();
  2285.                 var baseWidth = \$(slick.target).width();
  2286.                 var rate = baseWidth / baseHeight;
  2287. \t\t\t\tif(baseHeight * rate < 400){
  2288. \t                \$('.slide-item').height(baseHeight * rate); // 余白を削除する
  2289. \t\t\t\t}else{
  2290. \t                \$('.slide-item').height(400); // 余白を削除する
  2291. \t\t\t\t}
  2292.                 // transform を使用することでCLSの影響を受けないようにする
  2293.                 \$('.slide-item img')
  2294.                     .css(
  2295.                         {
  2296.                             'transform-origin': 'top left',
  2297.                             'transform': 'scaleY(' + rate + ')',
  2298.                             'transition': 'transform .1s'
  2299.                         }
  2300.                     );
  2301.                 // 正しいサイズに近くなったら属性を解除する
  2302.                 setTimeout(removeSize, 500);
  2303.             };
  2304.             \$('.item_visual').on('init', slickInitial);
  2305.             // リサイズ時は CLS の影響を受けないため属性を解除する
  2306.             \$(window).resize(removeSize);
  2307.             \$('.item_visual').slick({
  2308.                 dots: false,
  2309.                 arrows: true,
  2310.                 responsive: [{
  2311.                     breakpoint: 768,
  2312.                     settings: {
  2313.                         dots: true,
  2314.                 \t\tarrows: false
  2315.                     }
  2316.                 }]
  2317.             });
  2318.             \$('.slideThumb').on('click', function() {
  2319.                 var index = \$(this).attr('data-index');
  2320.                 \$('.item_visual').slick('slickGoTo', index, false);
  2321.             })
  2322.         });
  2323.     </script>
  2324.     <script>
  2325.         \$(function() {
  2326.             \$('.add-cart').on('click', function(event) {
  2327.                 {% if form.classcategory_id1 is defined %}
  2328.                 // 規格1フォームの必須チェック
  2329.                 if (\$('#classcategory_id1').val() == '__unselected' || \$('#classcategory_id1').val() == '') {
  2330.                     \$('#classcategory_id1')[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
  2331.                     return true;
  2332.                 } else {
  2333.                     \$('#classcategory_id1')[0].setCustomValidity('');
  2334.                 }
  2335.                 {% endif %}
  2336.                 {% if form.classcategory_id2 is defined %}
  2337.                 // 規格2フォームの必須チェック
  2338.                 if (\$('#classcategory_id2').val() == '__unselected' || \$('#classcategory_id2').val() == '') {
  2339.                     \$('#classcategory_id2')[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
  2340.                     return true;
  2341.                 } else {
  2342.                     \$('#classcategory_id2')[0].setCustomValidity('');
  2343.                 }
  2344.                 {% endif %}
  2345.                 // 個数フォームのチェック
  2346.                 if (\$('#quantity').val() < 1) {
  2347.                     \$('#quantity')[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  2348.                     return true;
  2349.                 } else {
  2350.                     \$('#quantity')[0].setCustomValidity('');
  2351.                 }
  2352.                 event.preventDefault();
  2353.                 \$form = \$('#form1');
  2354.                 \$.ajax({
  2355.                     url: \$form.attr('action'),
  2356.                     type: \$form.attr('method'),
  2357.                     data: \$form.serialize(),
  2358.                     dataType: 'json',
  2359.                     beforeSend: function(xhr, settings) {
  2360.                         // Buttonを無効にする
  2361.                         \$('.add-cart').prop('disabled', true);
  2362.                     }
  2363.                 }).done(function(data) {
  2364.                     // レスポンス内のメッセージをalertで表示
  2365.                     \$.each(data.messages, function() {
  2366.                         \$('#ec-modal-header').text(this);
  2367.                     });
  2368.                     \$('.ec-modal').show()
  2369.                     // カートブロックを更新する
  2370.                     \$.ajax({
  2371.                         url: \"{{ url('block_cart') }}\",
  2372.                         type: 'GET',
  2373.                         dataType: 'html'
  2374.                     }).done(function(html) {
  2375.                         \$('.ec-headerRole__cart').html(html);
  2376.                     });
  2377.                 }).fail(function(data) {
  2378.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  2379.                 }).always(function(data) {
  2380.                     // Buttonを有効にする
  2381.                     \$('.add-cart').prop('disabled', false);
  2382.                 });
  2383.             });
  2384.         });
  2385.         \$('.ec-modal-wrap').on('click', function(e) {
  2386.             // モーダル内の処理は外側にバブリングさせない
  2387.             e.stopPropagation();
  2388.         });
  2389.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  2390.             \$('.ec-modal').hide()
  2391.         });
  2392. \t\tvar pw = \"{% if mitsumori_json %}{{ mitsumori_json.pw }}{% endif %}\";
  2393. \t\tvar pd = \"{% if mitsumori_json %}{{ mitsumori_json.pd }}{% endif %}\";
  2394. \t\tvar ph = \"{% if mitsumori_json %}{{ mitsumori_json.ph }}{% endif %}\";
  2395. \t\tvar pm = \"{% if mitsumori_json %}{{ mitsumori_json.pm }}{% endif %}\";
  2396. \t\tvar pc = \"{% if mitsumori_json %}{{ mitsumori_json.pc }}{% endif %}\";
  2397. \t\tvar op0 = \"{% if mitsumori_json %}{{ mitsumori_json.op[0] }}{% endif %}\";
  2398. \t\tvar op1 = \"{% if mitsumori_json %}{{ mitsumori_json.op[1] }}{% endif %}\";
  2399. \t\tvar op2 = \"{% if mitsumori_json %}{{ mitsumori_json.op[2] }}{% endif %}\";
  2400. \t\tvar op3 = \"{% if mitsumori_json %}{{ mitsumori_json.op[3] }}{% endif %}\";
  2401. \t\tvar op4 = \"{% if mitsumori_json %}{{ mitsumori_json.op[4] }}{% endif %}\";
  2402. \t\tvar op5 = \"{% if mitsumori_json %}{{ mitsumori_json.op[5] }}{% endif %}\";
  2403. \t\tvar op6 = \"{% if mitsumori_json %}{{ mitsumori_json.op[6] }}{% endif %}\";
  2404. \t\tvar op7 = \"{% if mitsumori_json %}{{ mitsumori_json.op[7] }}{% endif %}\";
  2405. \t\tvar op8 = \"{% if mitsumori_json %}{{ mitsumori_json.op[8] }}{% endif %}\";
  2406. \t\tvar op9 = \"{% if mitsumori_json %}{{ mitsumori_json.op[9] }}{% endif %}\";
  2407. \t\tvar op10 = \"{% if mitsumori_json %}{{ mitsumori_json.op[10] }}{% endif %}\";
  2408. \t\tconst formatter = new Intl.NumberFormat('ja-JP');
  2409. \t\tfunction cartbutton(option){
  2410. \t\t\tif(option == '商品購入のみ' || option == '商品取り付け工事も希望する'){
  2411. \t\t\t\tif(option == '商品購入のみ'){
  2412. \t\t\t\t\t\$('#cart_btn').show();
  2413. \t\t\t\t}else{
  2414. \t\t\t\t\t\$('#cart_btn').hide();
  2415. \t\t\t\t}
  2416. \t\t\t}
  2417. \t\t}
  2418. \t\tfunction mitsumori_simulation(type , value_id){
  2419. \t\t\tvar pp = {{ pp|raw }};
  2420. \t\t\tif(type == \"pw\"){
  2421. \t\t\t\tpw = \$('#'+value_id).val();
  2422. \t\t\t}
  2423. \t\t\tif(type == \"pd\"){
  2424. \t\t\t\tpd = \$('#'+value_id).val();
  2425. \t\t\t}
  2426. \t\t\tif(type == \"ph\"){
  2427. \t\t\t\tph = \$('#'+value_id).val();
  2428. \t\t\t}
  2429. \t\t\tif(type == \"pm\"){
  2430. \t\t\t\tpm = \$('#'+value_id).val();
  2431. \t\t\t}
  2432. \t\t\tif(type == \"pc\"){
  2433. \t\t\t\tpc = \$('#'+value_id).val();
  2434. \t\t\t}
  2435. \t\t\tif(type == \"op0\"){ op0 = \$('#'+value_id).val(); }
  2436. \t\t\tif(type == \"op1\"){ op1 = \$('#'+value_id).val(); }
  2437. \t\t\tif(type == \"op2\"){ op2 = \$('#'+value_id).val(); }
  2438. \t\t\tif(type == \"op3\"){ op3 = \$('#'+value_id).val(); }
  2439. \t\t\tif(type == \"op4\"){ op4 = \$('#'+value_id).val(); }
  2440. \t\t\tif(type == \"op5\"){ op5 = \$('#'+value_id).val(); }
  2441. \t\t\tif(type == \"op6\"){ op6 = \$('#'+value_id).val(); }
  2442. \t\t\tif(type == \"op7\"){ op7 = \$('#'+value_id).val(); }
  2443. \t\t\tif(type == \"op8\"){ op8 = \$('#'+value_id).val(); }
  2444. \t\t\tif(type == \"op9\"){ op9 = \$('#'+value_id).val(); }
  2445. \t\t\tif(type == \"op10\"){ op10 = \$('#'+value_id).val(); }
  2446. \t\t\tif(pm == \"\"){
  2447. \t\t\t\t\$('#mitsumori_message').text(\"素材を選択してください\");
  2448. \t\t\t}
  2449. \t\t\tif(ph == \"\"){
  2450. \t\t\t\t\$('#mitsumori_message').text(\"高さを選択してください\");
  2451. \t\t\t}
  2452. \t\t\tif(pd == \"\"){
  2453. \t\t\t\t\$('#mitsumori_message').text(\"奥行きを選択してください\");
  2454. \t\t\t}
  2455. \t\t\tif(pw == \"\"){
  2456. \t\t\t\t\$('#mitsumori_message').text(\"幅を選択してください\");
  2457. \t\t\t}
  2458. \t\t\tif(pc == \"\"){
  2459. \t\t\t\t\$('#mitsumori_message').text(\"カラーを選択してください\");
  2460. \t\t\t\t\$('#mitsumori_btn').hide();
  2461. \t\t\t\t\$('#mitsumori_goukei').text(\"---円\");
  2462. \t\t\t\t\$('#mitsumori_off').text(\"---円\");
  2463. \t\t\t\t\$('#mitsumori_price').text(\"---円\");
  2464. \t\t\t\t\$('#maker_price').text(\"---円\");
  2465. \t\t\t\t\$('#mitsumori_ct').text(\"---円\");
  2466. \t\t\t\t\$('#mitsumori_option').text(\"---円\");
  2467. \t\t\t}
  2468. \t\t\tif(pw != \"\" && pd != \"\" && ph != \"\" && pm != \"\" && pc != \"\"){
  2469. \t\t\t\t\$('#mitsumori_btn').show();
  2470. \t\t\t\t
  2471. \t\t\t\tpp.forEach((el) => {
  2472. \t\t\t\t  if((pw == el.w || pw == \"指定なし\") && (pd == el.d || pd == \"指定なし\") && (ph == el.h || ph == \"指定なし\") && (pm == el.m || pm == \"指定なし\") && (pc == el.c || pc == \"指定なし\")){
  2473. \t\t\t\t\tif(op0 == \"商品購入のみ\" || op1 == \"商品購入のみ\" || op2 == \"商品購入のみ\" || op3 == \"商品購入のみ\" || op4 == \"商品購入のみ\" 
  2474. \t\t\t\t\t\t|| op5 == \"商品購入のみ\" || op6 == \"商品購入のみ\" || op7 == \"商品購入のみ\" || op8 == \"商品購入のみ\" || op9 == \"商品購入のみ\"){
  2475. \t\t\t\t\t  \t\$('#mitsumori_message').text(formatter.format(parseInt(el.price)) + \"円\");
  2476. \t\t\t\t\t  \t\$('#mitsumori_goukei').text(formatter.format(parseInt(el.price)) + \"円\");
  2477. \t\t\t\t\t  \t\$('#mitsumori_off').text(formatter.format(parseInt(el.price) - parseInt(el.maker_price)) + \"円\");
  2478. \t\t\t\t\t  \t\$('#mitsumori_price').text(formatter.format(parseInt(el.price)) + \"円\");
  2479. \t\t\t\t\t  \t\$('#maker_price').text(formatter.format(parseInt(el.maker_price)) + \"円\");
  2480. \t\t\t\t\t  \t\$('#mitsumori_ct').text(\"0円\");
  2481. \t\t\t\t\t  \t\$('#mitsumori_option').text(\"0円\");
  2482. \t\t\t\t\t  \t\$('#mitsumori_kei').text(formatter.format(parseInt(el.price)) + \"円\");
  2483. \t\t\t\t\t  \t\$('#mitsumori_price_01').text(formatter.format(parseInt(el.price)) + \"円\");
  2484. \t\t\t\t\t  \t\$('#mitsumori_price_02').text(formatter.format(parseInt(el.price)) + \"円\");
  2485. \t\t\t\t\t  \t\$('#mitsumori_ct_01').text(\"0円\");
  2486. \t\t\t\t\t  \t\$('#mitsumori_ct_02').text(\"0円\");
  2487. \t\t\t\t\t  \t\$('#mitsumori_goukei_02').text(formatter.format(parseInt(el.price)) + \"円\");
  2488. \t\t\t\t\t\t
  2489. \t\t\t\t\t\tmitsumori_goukei = (parseInt(el.price));
  2490. \t\t\t\t\t\tshoukei = mitsumori_goukei / 1.1;
  2491. \t\t\t\t\t\ttax = parseInt(mitsumori_goukei - shoukei);
  2492. \t\t\t\t\t  \t\$('#mitsumori_shoukei').text(formatter.format(parseInt(shoukei)) + \"円\");
  2493. \t\t\t\t\t  \t\$('#mitsumori_tax').text(formatter.format(parseInt(tax)) + \"円\");
  2494. \t\t\t\t\t}else{
  2495. \t\t\t\t\t  \t\$('#mitsumori_message').text(formatter.format(parseInt(el.price) + parseInt(el.ct)) + \"円\");
  2496. \t\t\t\t\t  \t\$('#mitsumori_goukei').text(formatter.format(parseInt(el.price) + parseInt(el.ct)) + \"円\");
  2497. \t\t\t\t\t  \t\$('#mitsumori_off').text(formatter.format(parseInt(el.price) - parseInt(el.maker_price)) + \"円\");
  2498. \t\t\t\t\t  \t\$('#mitsumori_price').text(formatter.format(parseInt(el.price)) + \"円\");
  2499. \t\t\t\t\t  \t\$('#maker_price').text(formatter.format(parseInt(el.maker_price)) + \"円\");
  2500. \t\t\t\t\t  \t\$('#mitsumori_ct').text(formatter.format(parseInt(el.ct)) + \"円\");
  2501. \t\t\t\t\t  \t\$('#mitsumori_option').text(\"0円\");
  2502. \t\t\t\t\t  \t\$('#mitsumori_kei').text(formatter.format(parseInt(el.price) + parseInt(el.ct)) + \"円\");
  2503. \t\t\t\t\t  \t\$('#mitsumori_price_01').text(formatter.format(parseInt(el.price)) + \"円\");
  2504. \t\t\t\t\t  \t\$('#mitsumori_price_02').text(formatter.format(parseInt(el.price)) + \"円\");
  2505. \t\t\t\t\t  \t\$('#mitsumori_ct_01').text(formatter.format(parseInt(el.ct)) + \"円\");
  2506. \t\t\t\t\t  \t\$('#mitsumori_ct_02').text(formatter.format(parseInt(el.ct)) + \"円\");
  2507. \t\t\t\t\t  \t\$('#mitsumori_goukei_02').text(formatter.format(parseInt(el.price) + parseInt(el.ct)) + \"円\");
  2508. \t\t\t\t\t\tmitsumori_goukei = (parseInt(el.price) + parseInt(el.ct));
  2509. \t\t\t\t\t\tshoukei = mitsumori_goukei / 1.1;
  2510. \t\t\t\t\t\ttax = parseInt(mitsumori_goukei - shoukei);
  2511. \t\t\t\t\t  \t\$('#mitsumori_shoukei').text(formatter.format(parseInt(shoukei)) + \"円\");
  2512. \t\t\t\t\t  \t\$('#mitsumori_tax').text(formatter.format(parseInt(tax)) + \"円\");
  2513. \t\t\t\t\t}
  2514. \t\t\t\t  }
  2515. \t\t\t\t});\t
  2516. \t\t\t\tvar mitsumori_json = { \"mitsumori_goukei\": \$('#mitsumori_goukei').text(),
  2517. \t\t\t\t\t\t\t\t\t\t\"mitsumori_goukei_02\": \$('#mitsumori_goukei_02').text(),
  2518. \t\t\t\t\t\t\t\t\t\t\"mitsumori_price\": \$('#mitsumori_price').text(),
  2519. \t\t\t\t\t\t\t\t\t\t\"maker_price\": \$('#maker_price').text(),
  2520. \t\t\t\t\t\t\t\t\t\t\"mitsumori_off\": \$('#mitsumori_off').text(),
  2521. \t\t\t\t\t\t\t\t\t\t\"mitsumori_ct\": \$('#mitsumori_ct').text(),
  2522. \t\t\t\t\t\t\t\t\t\t\"mitsumori_option\": \$('#mitsumori_option').text(),
  2523. \t\t\t\t\t\t\t\t\t\t\"product_id\": {{ Product.id }},
  2524. \t\t\t\t\t\t\t\t\t\t\"pw\": pw,
  2525. \t\t\t\t\t\t\t\t\t\t\"pd\": pd,
  2526. \t\t\t\t\t\t\t\t\t\t\"ph\": ph,
  2527. \t\t\t\t\t\t\t\t\t\t\"pm\": pm,
  2528. \t\t\t\t\t\t\t\t\t\t\"pc\": pc,
  2529. \t\t\t\t\t\t\t\t\t\t\"op\": [op0,op1,op2,op3,op4,op5,op6,op7,op8,op9,op10] };
  2530. \t\t\t\t\$('#mitsumori_json').val(JSON.stringify(mitsumori_json));
  2531. \t\t\t\t
  2532. \t\t\t}
  2533. \t\t\t
  2534. \t\t}
  2535.         {% if color and color|length == 1 %}
  2536.             pc = \"指定なし\";
  2537. \t\t\t{% for cc in color %}{% if cc and cc['name'] %} pc = \"{{ cc['name'] }}\"; {% endif %}{% endfor %}
  2538. \t\t{% endif %}
  2539.         {% if p_w and (p_w|length == 1 or p_w|join == \"\") %}
  2540.             pw = \"指定なし\";
  2541. \t\t\t{% for pw in p_w %}{% if pw %} pw = \"{{ pw }}\"; {% endif %}{% endfor %}
  2542. \t\t{% endif %}
  2543.         {% if p_d and (p_d|length == 1 or p_d|join == \"\") %}
  2544.             pd = \"指定なし\";
  2545. \t\t\t{% for pd in p_d %}{% if pd %} pd = \"{{ pd }}\"; {% endif %}{% endfor %}
  2546. \t\t{% endif %}
  2547.         {% if p_h and (p_h|length == 1 or p_h|join == \"\") %}
  2548.             ph = \"指定なし\";
  2549. \t\t\t{% for ph in p_h %}{% if ph %} ph = \"{{ ph }}\"; {% endif %}{% endfor %}
  2550. \t\t{% endif %}
  2551.         {% if p_m and (p_m|length == 1 or p_m|join == \"\") %}
  2552.             pm = \"指定なし\";
  2553. \t\t\t{% for pm in p_m %}{% if pm %} pm = \"{{ pm }}\"; {% endif %}{% endfor %}
  2554. \t\t{% endif %}
  2555. \t\tmitsumori_simulation(\"\",\"\");
  2556. \t\tfunction contact_form(product_id){
  2557. \t\t\t\$('#form1').attr('action', '{{ url('contact', {product:Product.id}) }}');
  2558. \t\t\t\$('#form1').submit();
  2559. \t\t}
  2560. \t\tfunction maisu(mai){
  2561. \t\t\t\$('#maisu').val(parseInt(\$('#maisu').val()) + mai);
  2562. \t\t\tif(parseInt(\$('#maisu').val()) < 3){ \$('#maisu').val(3); }
  2563. \t\t\tif(parseInt(\$('#maisu').val()) > 20){ \$('#maisu').val(20); }
  2564. \t\t\t\$('#quantity').val(\$('#maisu').val());
  2565. \t\t}
  2566. \t\tfunction madoset(mai){
  2567. \t\t\t\$('#set').val(parseInt(\$('#set').val()) + mai);
  2568. \t\t\tif(parseInt(\$('#set').val()) < 1){ \$('#set').val(1); }
  2569. \t\t\tif(parseInt(\$('#set').val()) > 20){ \$('#set').val(20); }
  2570. \t\t\t\$('#quantity').val(\$('#set').val());
  2571. \t\t}
  2572. \t\tfunction heibei(bei){
  2573. \t\t\t\$('#heibei').val(parseInt(\$('#heibei').val()) + dai);
  2574. \t\t\tif(parseInt(\$('#heibei').val()) < 1){ \$('#heibei').val(1); }
  2575. \t\t\tif(parseInt(\$('#heibei').val()) > 100){ \$('#heibei').val(100); }
  2576. \t\t\t\$('#quantity').val(\$('#heibei').val());
  2577. \t\t}
  2578. \t\tfunction daisu(dai){
  2579. \t\t\t\$('#daisu').val(parseInt(\$('#daisu').val()) + dai);
  2580. \t\t\tif(parseInt(\$('#daisu').val()) < 1){ \$('#daisu').val(1); }
  2581. \t\t\tif(parseInt(\$('#daisu').val()) > 10){ \$('#daisu').val(10); }
  2582. \t\t\t\$('#quantity').val(\$('#daisu').val());
  2583. \t\t}
  2584.     </script>
  2585.     <script type=\"application/ld+json\">
  2586.     {
  2587.         \"@context\": \"https://schema.org/\",
  2588.         \"@type\": \"Product\",
  2589.         \"name\": \"{{ Product.name }}\",
  2590.         \"image\": [
  2591.             {% for img in Product.ProductImage %}
  2592.                 \"{{ app.request.schemeAndHttpHost }}{{ asset(img, 'save_image') }}\"{% if not loop.last %},{% endif %}
  2593.             {% else %}
  2594.                 \"{{ app.request.schemeAndHttpHost }}{{ asset(''|no_image_product, 'save_image') }}\"
  2595.             {% endfor %}
  2596.         ],
  2597.         \"description\": \"{{ Product.description_list | default(Product.description_detail) | replace({'\\n': '', '\\r': ''}) | slice(0,300) }}\",
  2598.         {% if Product.code_min %}
  2599.         \"sku\": \"{{ Product.code_min }}\",
  2600.         {% endif %}
  2601.         \"offers\": {
  2602.             \"@type\": \"Offer\",
  2603.             \"url\": \"{{ url('product_detail', {'id': Product.id}) }}\",
  2604.             \"priceCurrency\": \"{{ eccube_config.currency }}\",
  2605.             \"price\": {{ Product.getPrice02IncTaxMin ? Product.getPrice02IncTaxMin : 0}},
  2606.             \"availability\": \"{{ Product.stock_find ? \"InStock\" : \"OutOfStock\" }}\"
  2607.         }
  2608.     }
  2609.     </script>
  2610. {% endblock %}
  2611. {% block main %}
  2612.     <div class=\"ec-productRole\" style=\"margin-top:20px;\">
  2613.         <div class=\"ec-grid2\">
  2614.             <div class=\"ec-grid2__cell\">
  2615.                 <div class=\"ec-sliderItemRole\">
  2616. \t                {# 商品名 #}
  2617. \t                <div class=\"ec-productRole__title\">
  2618. \t                    <h2 class=\"ec-headingTitle\">{{ Product.name }}</h2>
  2619. \t                </div>
  2620.                     {% if BaseInfo.option_favorite_product %}
  2621.                      <div style=\"position:relative;top: 20px;left: 10px;z-index:100;\">
  2622. \t\t\t\t\t\t{% if is_favorite == false %}
  2623.                         <form action=\"{{ url('product_add_favorite', {id:Product.id}) }}\" method=\"post\">
  2624.                            <button type=\"submit\" id=\"favorite\" class=\"favorite\">&#9825;</button>
  2625.                         </form>
  2626.                         {% else %}
  2627.                         <form action=\"{{ url('product_add_favorite', {id:Product.id}) }}\" method=\"post\">
  2628.                            <button type=\"submit\" id=\"favorite\" class=\"favorite\" style=\"color:red;\">&#9829;</button>
  2629.                         </form>
  2630.                         {% endif %}
  2631.                      </div>
  2632.                     {% endif %}
  2633.                     <div class=\"item_visual\">
  2634.                         {% for ProductImage in Product.ProductImage %}
  2635.                             <div class=\"slide-item\"><img src=\"{{ asset(ProductImage, 'save_image') }}\" alt=\"{{ loop.first ? Product.name : '' }}\" width=\"550\" height=\"550\" style=\"max-height: 400px;\"{% if loop.index > 1 %} loading=\"lazy\"{% endif %}></div>
  2636.                         {% else %}
  2637.                             <div class=\"slide-item\"><img src=\"{{ asset(''|no_image_product, 'save_image') }}\" alt=\"{{ loop.first ? Product.name : '' }}\" width=\"550\" height=\"550\" style=\"max-height: 400px;\"></div>
  2638.                         {% endfor %}
  2639.                     </div>
  2640.                     <div class=\"item_nav\">
  2641.                         {% for ProductImage in Product.ProductImage %}
  2642.                             <div class=\"slideThumb\" data-index=\"{{ loop.index0 }}\"><img src=\"{{ asset(ProductImage, 'save_image') }}\" alt=\"\" width=\"80\" height=\"80\" loading=\"lazy\"></div>
  2643.                         {% endfor %}
  2644.                     </div>
  2645.                 </div>
  2646.             </div>
  2647.             <div class=\"ec-grid2__cell2\">
  2648.                 <div class=\"ec-productRole__profile\" >
  2649.                     {# 関連カテゴリ #}
  2650.                     {% if Product.ProductCategories is not empty %}
  2651.                         <div class=\"ec-productRole__category\" style=\"padding:10px 0;\">
  2652.                             {% for ProductCategory in Product.ProductCategories %}
  2653.                                 <ul>
  2654.                                     <li>
  2655.                                         {% for Category in ProductCategory.Category.path %}
  2656.                                             <a href=\"{{ url('product_list') }}?category_id={{ Category.id }}\">{{ Category.name }}</a> {%- if loop.last == false %}
  2657.                                             <span>></span>{% endif -%}
  2658.                                         {% endfor %}
  2659.                                     </li>
  2660.                                 </ul>
  2661.                             {% endfor %}
  2662.                         </div>
  2663.                     {% endif %}
  2664.                     {# 販売価格 #}
  2665.                     <div class=\"ec-productRole__price\">
  2666. \t\t\t\t\t\t<span style=\"color:black;font-size:15px;\">工事費込み価格</span>
  2667.                         {% if Product.hasProductClass -%}
  2668.                             {% if Product.getPrice02IncTaxMin == Product.getPrice02IncTaxMax %}
  2669.                                 <div class=\"ec-price\">
  2670.                                     <span class=\"ec-price__price price02-default\">{{ Product.getPrice02IncTaxMin|price }}</span>
  2671.                                     <span class=\"ec-price__tax\">({{ '税込'|trans }})~</span>
  2672.                                 </div>
  2673.                             {% else %}
  2674.                                 <div class=\"ec-price\">
  2675.                                     <span class=\"ec-price__price price02-default\">{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}</span>
  2676.                                     <span class=\"ec-price__tax\">({{ '税込'|trans }})</span>
  2677.                                 </div>
  2678.                             {% endif %}
  2679.                         {% else %}
  2680.                             <div class=\"ec-price\">
  2681.                                 <span class=\"ec-price__price\">{{ Product.getPrice02IncTaxMin|price }}</span>
  2682.                                     <span class=\"ec-price__tax\">({{ '税込'|trans }})~</span>
  2683.                             </div>
  2684.                         {% endif %}
  2685.                     </div>
  2686.                     {# タグ #}
  2687.                     <ul class=\"ec-productRole__tags\">
  2688.                         {% for Tag in Product.Tags %}
  2689.                             <li class=\"ec-productRole__tag tag_{{ Tag.id }}\">{{ Tag }}</li>
  2690.                         {% endfor %}
  2691.                     </ul>
  2692.                     {# 商品コード #}
  2693.                     {% if Product.code_min is not empty %}
  2694.                         <div class=\"ec-productRole__code\">
  2695.                             {{ '商品コード'|trans }}: <span class=\"product-code-default\">{{ Product.code_min }}{% if Product.code_min != Product.code_max %} ~ {{ Product.code_max }}{% endif %}</span>
  2696.                         </div>
  2697.                     {% endif %}
  2698.                     <div class=\"ec-productRole__description\">
  2699. \t\t\t\t        <div class=\"ec-rectHeading\">
  2700. \t\t\t\t            <h4>製品情報</h4>
  2701. \t\t\t\t        </div>
  2702. \t\t\t\t\t\t{{ Product.sales_infomation|raw|nl2br }}
  2703.                     </div>
  2704. \t\t\t\t\t<div class=\"card card-danger\" style=\"clear:both;margin:1px;\">
  2705. \t\t\t\t\t  <div class=\"card-header\">
  2706. \t\t\t\t\t    <h3 class=\"card-title\">見積シミュレーション</h3>
  2707. \t\t\t\t\t  </div>
  2708. \t\t\t\t\t  <div class=\"card-body p-2\">
  2709. \t\t\t\t\t    <div class=\"row\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\"><label class=\"col-12 col-form-label\">この商品のタイプを選択してください。</label></div>
  2710. \t\t\t\t\t\t{% set type1 = getProduct_field(Product.id,\"related_name1\") %}
  2711.                         {% if type1 and related_product1 and related_product1|length %}
  2712. \t\t\t\t\t    <div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  2713. \t\t\t\t\t\t  <label class=\"col-4 col-form-label mt-2\">{{ type1 }}</label>
  2714. \t\t\t\t\t\t  <div class=\"col-8 mt-2\">
  2715. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  2716. \t\t\t\t\t\t      {% for rp_id, rp_name in related_product1 %}
  2717. \t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2718. \t\t\t\t\t\t        <input type=\"radio\" name=\"rp1\" id=\"rp1_{{ rp_id }}\" value=\"{{ rp_name }}\" {% if base_select1 == rp_name %}checked{% endif %} onclick=\"location.href='/products/detail/{{ rp_id }}';\"><label for=\"rp1_{{ rp_id }}\">{{ rp_name }}</label>
  2719. \t\t\t\t\t\t      </div>
  2720. \t\t\t\t\t\t\t  {% endfor %}
  2721. \t\t\t\t\t\t    </div>
  2722. \t\t\t\t\t\t  </div>
  2723. \t\t\t\t\t    </div>
  2724.                         {% endif %}
  2725. \t\t\t\t\t\t{% set type2 = getProduct_field(Product.id,\"related_name2\") %}
  2726.                         {% if type2 and related_product2 and related_product2|length %}
  2727. \t\t\t\t\t    <div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  2728. \t\t\t\t\t\t  <label class=\"col-4 col-form-label mt-2\">{{ type2 }}</label>
  2729. \t\t\t\t\t\t  <div class=\"col-8 mt-2\">
  2730. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  2731. \t\t\t\t\t\t      {% for rp_id, rp_name in related_product2 %}
  2732. \t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2733. \t\t\t\t\t\t        <input type=\"radio\" name=\"rp2\" id=\"rp2_{{ rp_id }}\" value=\"{{ rp_name }}\" {% if base_select2 == rp_name %}checked{% endif %} onclick=\"location.href='/products/detail/{{ rp_id }}';\"><label for=\"rp2_{{ rp_id }}\">{{ rp_name }}</label>
  2734. \t\t\t\t\t\t      </div>
  2735. \t\t\t\t\t\t\t  {% endfor %}
  2736. \t\t\t\t\t\t    </div>
  2737. \t\t\t\t\t\t  </div>
  2738. \t\t\t\t\t    </div>
  2739.                         {% endif %}
  2740. \t\t\t\t\t\t{% set type3 = getProduct_field(Product.id,\"related_name3\") %}
  2741.                         {% if type3 and related_product3 and related_product3|length %}
  2742. \t\t\t\t\t    <div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  2743. \t\t\t\t\t\t  <label class=\"col-4 col-form-label mt-2\">{{ type3 }}</label>
  2744. \t\t\t\t\t\t  <div class=\"col-8 mt-2\">
  2745. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  2746. \t\t\t\t\t\t      {% for rp_id, rp_name in related_product3 %}
  2747. \t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2748. \t\t\t\t\t\t        <input type=\"radio\" name=\"rp3\" id=\"rp3_{{ rp_id }}\" value=\"{{ rp_name }}\" {% if base_select3 == rp_name %}checked{% endif %} onclick=\"location.href='/products/detail/{{ rp_id }}';\"><label for=\"rp3_{{ rp_id }}\">{{ rp_name }}</label>
  2749. \t\t\t\t\t\t      </div>
  2750. \t\t\t\t\t\t\t  {% endfor %}
  2751. \t\t\t\t\t\t    </div>
  2752. \t\t\t\t\t\t  </div>
  2753. \t\t\t\t\t    </div>
  2754.                         {% endif %}
  2755. \t\t\t\t\t    <div class=\"row\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\"><label class=\"col-12 col-form-label\">この商品のオプションを選択してください。</label></div>
  2756.                         {% if color and color|length %}
  2757. \t\t\t\t\t    <div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  2758. \t\t\t\t\t\t  <label class=\"col-4 col-form-label mt-2\">カラー</label>
  2759. \t\t\t\t\t\t  <div class=\"col-8 mt-2\">
  2760. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  2761. \t\t\t\t\t\t    {% set idx = 0 %}
  2762. \t\t\t\t\t\t    {% for cc in color %}
  2763. \t\t\t\t\t\t      {% if cc and cc['name'] %}
  2764. \t\t\t\t\t\t      {% set idx = idx + 1 %}
  2765. \t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2766. \t\t\t\t\t\t        <input type=\"radio\" name=\"color\" id=\"cc_{{ idx }}\" value=\"{{ cc['name'] }}\" {% if mitsumori_json and mitsumori_json.pc == cc['name'] or color|length == 1 %}checked{% endif %} onclick=\"mitsumori_simulation('pc','cc_{{ idx }}');\"><label for=\"cc_{{ idx }}\">{{ cc['name'] }}</label>
  2767. \t\t\t\t\t\t      </div>
  2768. \t\t\t\t\t\t      {% endif %}
  2769. \t\t\t\t\t\t\t{% endfor %}
  2770. \t\t\t\t\t\t    </div>
  2771. \t\t\t\t\t\t  </div>
  2772. \t\t\t\t\t    </div>
  2773.                         {% endif %}
  2774.                         {% if p_w and p_w|length and p_w|join != \"\" %}
  2775. \t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  2776. \t\t\t\t\t\t  <label class=\"col-4 col-form-label\">幅</label>
  2777. \t\t\t\t\t\t  <div class=\"col-8\">
  2778. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  2779. \t\t\t\t\t\t    {% set idx = 0 %}
  2780. \t\t\t\t\t\t    {% for pw in p_w %}
  2781. \t\t\t\t\t\t      {% if pw %}
  2782. \t\t\t\t\t\t      {% set idx = idx + 1 %}
  2783. \t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2784. \t\t\t\t\t\t        <input type=\"radio\" name=\"pw\" id=\"pw_{{ idx }}\" value=\"{{ pw }}\" {% if mitsumori_json and mitsumori_json.pw == pw or p_w|length == 1 %}checked{% endif %} onclick=\"mitsumori_simulation('pw','pw_{{ idx }}');\"><label for=\"pw_{{ idx }}\">{{ pw }}</label>
  2785. \t\t\t\t\t\t      </div>
  2786. \t\t\t\t\t\t      {% endif %}
  2787. \t\t\t\t\t\t\t{% endfor %}
  2788. \t\t\t\t\t\t    </div>
  2789. \t\t\t\t\t\t  </div>
  2790. \t\t\t\t\t\t</div>
  2791.                         {% endif %}
  2792.                         {% if p_d and p_d|length and p_d|join != \"\" %}
  2793. \t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  2794. \t\t\t\t\t\t  <label class=\"col-4 col-form-label\">奥行き</label>
  2795. \t\t\t\t\t\t  <div class=\"col-8\">
  2796. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  2797. \t\t\t\t\t\t    {% set idx = 0 %}
  2798. \t\t\t\t\t\t    {% for pd in p_d %}
  2799. \t\t\t\t\t\t      {% if pd %}
  2800. \t\t\t\t\t\t      {% set idx = idx + 1 %}
  2801. \t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2802. \t\t\t\t\t\t        <input type=\"radio\" name=\"pd\" id=\"pd_{{ idx }}\" value=\"{{ pd }}\" {% if (mitsumori_json and mitsumori_json.pd == pd) or p_d|length == 1 %}checked{% endif %} onclick=\"mitsumori_simulation('pd','pd_{{ idx }}');\"><label for=\"pd_{{ idx }}\">{{ pd }}</label>
  2803. \t\t\t\t\t\t      </div>
  2804. \t\t\t\t\t\t      {% endif %}
  2805. \t\t\t\t\t\t\t{% endfor %}
  2806. \t\t\t\t\t\t    </div>
  2807. \t\t\t\t\t\t  </div>
  2808. \t\t\t\t\t\t</div>
  2809.                         {% endif %}
  2810.                         {% if p_h and p_h|length and p_h|join != \"\" %}
  2811. \t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  2812. \t\t\t\t\t\t  <label class=\"col-4 col-form-label\">高さ</label>
  2813. \t\t\t\t\t\t  <div class=\"col-8\">
  2814. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  2815. \t\t\t\t\t\t    {% set idx = 0 %}
  2816. \t\t\t\t\t\t    {% for ph in p_h %}
  2817. \t\t\t\t\t\t      {% if ph %}
  2818. \t\t\t\t\t\t      {% set idx = idx + 1 %}
  2819. \t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2820. \t\t\t\t\t\t        <input type=\"radio\" name=\"ph\" id=\"ph_{{ idx }}\" value=\"{{ ph }}\" {% if (mitsumori_json and mitsumori_json.ph == ph) or p_h|length == 1%}checked{% endif %} onclick=\"mitsumori_simulation('ph','ph_{{ idx }}');\"><label for=\"ph_{{ idx }}\">{{ ph }}</label>
  2821. \t\t\t\t\t\t      </div>
  2822. \t\t\t\t\t\t      {% endif %}
  2823. \t\t\t\t\t\t\t{% endfor %}
  2824. \t\t\t\t\t\t    </div>
  2825. \t\t\t\t\t\t  </div>
  2826. \t\t\t\t\t\t</div>
  2827.                         {% endif %}
  2828.                         {% if p_m and p_m|length and p_m|join != \"\" %}
  2829. \t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  2830. \t\t\t\t\t\t  <label class=\"col-4 col-form-label\">素材</label>
  2831. \t\t\t\t\t\t  <div class=\"col-8\">
  2832. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  2833. \t\t\t\t\t\t    {% set idx = 0 %}
  2834. \t\t\t\t\t\t    {% for pm in p_m %}
  2835. \t\t\t\t\t\t      {% if pm %}
  2836. \t\t\t\t\t\t      {% set idx = idx + 1 %}
  2837. \t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2838. \t\t\t\t\t\t        <input type=\"radio\" name=\"pm\" id=\"pm_{{ idx }}\" value=\"{{ pm }}\" {% if mitsumori_json and mitsumori_json.pm == pm or p_m|length == 1 %}checked{% endif %} onclick=\"mitsumori_simulation('pm','pm_{{ idx }}');\"><label for=\"pm_{{ idx }}\">{{ pm }}</label>
  2839. \t\t\t\t\t\t      </div>
  2840. \t\t\t\t\t\t      {% endif %}
  2841. \t\t\t\t\t\t\t{% endfor %}
  2842. \t\t\t\t\t\t    </div>
  2843. \t\t\t\t\t\t  </div>
  2844. \t\t\t\t\t\t</div>
  2845.                         {% endif %}
  2846. \t\t\t\t\t\t<!-- 1: 施工見積(通常)-->
  2847. \t\t\t\t\t\t{% if ProductClass.SaleType.id == 1 %}
  2848. \t\t\t\t\t\t{% endif %}
  2849.                         <!-- 2: 施工見積(補助金・窓)-->
  2850. \t\t\t\t\t\t{% if ProductClass.SaleType.id == 2 %}
  2851. \t\t\t\t\t\t\t<!-- 幅・高さの数値指定 -->
  2852. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  2853. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">窓枠</label>
  2854. \t\t\t\t\t\t\t  <div class=\"col-4\">
  2855. \t\t\t\t\t\t\t    <div class=\"input-group\">
  2856. \t\t\t\t\t\t\t       <span class=\"input-group-text\">高さ</span><input type=\"text\" name=\"takasa\" id=\"takasa\" class=\"form-control\" value=\"1\" onchange=\"mitsumori_simulation('takasa','takasa');\" /><span class=\"input-group-text\">cm</span>
  2857. \t\t\t\t\t\t\t    </div>
  2858. \t\t\t\t\t\t\t  </div>
  2859. \t\t\t\t\t\t\t  <div class=\"col-4\">
  2860. \t\t\t\t\t\t\t    <div class=\"input-group mb-3\">
  2861. \t\t\t\t\t\t\t       <span class=\"input-group-text\">横幅</span><input type=\"text\" name=\"yokohaba\" id=\"yokohaba\" class=\"form-control\" value=\"1\" onchange=\"mitsumori_simulation('yokohaba','yokohaba');\" /><span class=\"input-group-text\">cm</span>
  2862. \t\t\t\t\t\t\t    </div>
  2863. \t\t\t\t\t\t\t  </div>
  2864. \t\t\t\t\t\t\t</div>
  2865. \t\t\t\t\t\t\t<!-- 枚数(入力)の指定 -->
  2866. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  2867. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">セット数</label>
  2868. \t\t\t\t\t\t\t  <div class=\"col-4 mb-3\">
  2869. \t\t\t\t\t\t\t    <div class=\"input-group\">
  2870. \t\t\t\t\t\t\t       <input type=\"text\" name=\"set\" id=\"set\" class=\"form-control\" value=\"1\" onchange=\"mitsumori_simulation('set','set');\" /><span class=\"input-group-text\">セット</span>
  2871. \t\t\t\t\t\t\t    </div>
  2872. \t\t\t\t\t\t\t  </div>
  2873. \t\t\t\t\t\t\t  <div class=\"col-4\">
  2874. \t\t\t\t\t\t\t    <button type=\"button\" id=\"op_btn_1\" class=\"btn btn-info\" onclick=\"madoset(+1);\">+</button>
  2875. \t\t\t\t\t\t\t    <button type=\"button\" id=\"op_btn_2\" class=\"btn btn-danger\" onclick=\"madoset(-1);\">ー</button>
  2876. \t\t\t\t\t\t\t  </div>
  2877. \t\t\t\t\t\t\t
  2878. \t\t\t\t\t\t{% endif %}
  2879. \t\t\t\t\t\t<!-- 3: 施工見積(物置・ゴミステーション)-->
  2880. \t\t\t\t\t\t{% if ProductClass.SaleType.id == 3 %}
  2881. \t\t\t\t\t\t\t<!-- 幅・奥行き・高さ -->
  2882. \t\t\t\t\t\t\t<!-- 台数の指定 -->
  2883. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  2884. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">台数</label>
  2885. \t\t\t\t\t\t\t  <div class=\"col-4\">
  2886. \t\t\t\t\t\t\t    <div class=\"input-group mb-3\">
  2887. \t\t\t\t\t\t\t       <input type=\"text\" name=\"daisu\" id=\"daisu\" class=\"form-control\" value=\"1\" onchange=\"mitsumori_simulation('daisu','daisu');\" /><span class=\"input-group-text\">台</span>
  2888. \t\t\t\t\t\t\t    </div>
  2889. \t\t\t\t\t\t\t  </div>
  2890. \t\t\t\t\t\t\t  <div class=\"col-4\">
  2891. \t\t\t\t\t\t\t    <button type=\"button\" id=\"op_btn_1\" class=\"btn btn-info\" onclick=\"daisu(+1);\">+</button>
  2892. \t\t\t\t\t\t\t    <button type=\"button\" id=\"op_btn_2\" class=\"btn btn-danger\" onclick=\"daisu(-1);\">ー</button>
  2893. \t\t\t\t\t\t\t  </div>
  2894. \t\t\t\t\t\t\t</div>
  2895. \t\t\t\t\t\t{% endif %}
  2896. \t\t\t\t\t\t<!-- 4: 施工見積(フェンス・組み立て式)-->
  2897. \t\t\t\t\t\t{% if ProductClass.SaleType.id == 4 %}
  2898. \t\t\t\t\t\t\t<!-- 枚数(入力)の指定 -->
  2899. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  2900. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">枚数</label>
  2901. \t\t\t\t\t\t\t  <div class=\"col-4 mb-3\">
  2902. \t\t\t\t\t\t\t    <div class=\"input-group\">
  2903. \t\t\t\t\t\t\t       <input type=\"text\" name=\"maisu\" id=\"maisu\" class=\"form-control\" value=\"3\" onchange=\"mitsumori_simulation('daisu','daisu');\" /><span class=\"input-group-text\">枚</span>
  2904. \t\t\t\t\t\t\t    </div>
  2905. \t\t\t\t\t\t\t  </div>
  2906. \t\t\t\t\t\t\t  <div class=\"col-4\">
  2907. \t\t\t\t\t\t\t    <button type=\"button\" id=\"op_btn_1\" class=\"btn btn-info\" onclick=\"maisu(+1);\">+</button>
  2908. \t\t\t\t\t\t\t    <button type=\"button\" id=\"op_btn_2\" class=\"btn btn-danger\" onclick=\"maisu(-1);\">ー</button>
  2909. \t\t\t\t\t\t\t  </div>
  2910. \t\t\t\t\t\t\t</div>
  2911. \t\t\t\t\t\t{% endif %}
  2912. \t\t\t\t\t\t<!-- 5: 施工見積(ウッドデッキ・タイルデッキ)-->
  2913. \t\t\t\t\t\t{% if ProductClass.SaleType.id == 5 %}
  2914. \t\t\t\t\t\t{% endif %}
  2915. \t\t\t\t\t\t<!-- 6: 施工見積(芝生・枚数・数量買い)-->
  2916. \t\t\t\t\t\t{% if ProductClass.SaleType.id == 6 %}
  2917. \t\t\t\t\t\t\t<!-- 平米(入力)の指定 -->
  2918. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  2919. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">枚数</label>
  2920. \t\t\t\t\t\t\t  <div class=\"col-4\">
  2921. \t\t\t\t\t\t\t    <div class=\"input-group\">
  2922. \t\t\t\t\t\t\t       <input type=\"text\" name=\"heibei\" id=\"heibei\" class=\"form-control\" value=\"1\" onchange=\"mitsumori_simulation('heibei','heibei');\" /><span class=\"input-group-text\">平米</span>
  2923. \t\t\t\t\t\t\t    </div>
  2924. \t\t\t\t\t\t\t  </div>
  2925. \t\t\t\t\t\t\t  <div class=\"col-4\">
  2926. \t\t\t\t\t\t\t    <button type=\"button\" id=\"op_btn_1\" class=\"btn btn-info\" onclick=\"heibei(+1);\">+</button>
  2927. \t\t\t\t\t\t\t    <button type=\"button\" id=\"op_btn_2\" class=\"btn btn-danger\" onclick=\"heibei(-1);\">ー</button>
  2928. \t\t\t\t\t\t\t  </div>
  2929. \t\t\t\t\t\t\t</div>
  2930. \t\t\t\t\t\t{% endif %}
  2931. \t\t\t\t\t\t<!-- 9: 商品のみ購入 -->
  2932. \t\t\t\t\t    <div class=\"row\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\"><label class=\"col-12 col-form-label\">取り付け工事のご希望に関してお答えください。</label></div>
  2933. \t\t\t\t\t\t{% for i in 0..10 %}
  2934. \t\t\t\t\t\t\t{% if op and op|length >= i+1 %}
  2935. \t\t\t\t\t\t\t{% if op[i]['name'] %}
  2936. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  2937. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">{{ op[i]['name'] }}</label>
  2938. \t\t\t\t\t\t\t  <div class=\"col-8\">
  2939. \t\t\t\t\t            {{ op[i]['comment'] }}
  2940. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  2941. \t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2942. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"op{{ i }}\" id=\"op{{ i }}_1\" value=\"{{ op[i]['on'] }}\" {% if mitsumori_json and mitsumori_json.op[i] == op[i]['on'] %}checked{% endif %} onclick=\"mitsumori_simulation('op{{ i }}','op{{ i }}_1');cartbutton('{{ op[i]['on'] }}');\"><label for=\"op{{ i }}_1\">{{ op[i]['on'] }}</label>
  2943. \t\t\t\t\t\t\t      </div>
  2944. \t\t\t\t\t\t\t    </div>
  2945. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  2946. \t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2947. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"op{{ i }}\" id=\"op{{ i }}_2\" value=\"{{ op[i]['off'] }}\" {% if mitsumori_json and mitsumori_json.op[i] == op[i]['off'] %}checked{% endif %} onclick=\"mitsumori_simulation('op{{ i }}','op{{ i }}_2');cartbutton('{{ op[i]['off'] }}');\"><label for=\"op{{ i }}_2\">{{ op[i]['off'] }}</label>
  2948. \t\t\t\t\t\t\t      </div>
  2949. \t\t\t\t\t\t\t    </div>
  2950. \t\t\t\t\t\t\t  </div>
  2951. \t\t\t\t\t\t\t</div>
  2952. \t\t\t\t\t\t\t{% endif %}
  2953. \t\t\t\t\t\t\t{% endif %}
  2954. \t\t\t\t\t\t{% endfor %}
  2955. \t\t\t\t\t  </div>
  2956. \t\t\t\t\t  <!-- /.card-body -->
  2957. \t\t\t\t\t</div>
  2958.                     <form action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\" id=\"form1\" name=\"form1\">
  2959.                         {% if Product.stock_find %}
  2960.                             <div class=\"ec-productRole__actions\">
  2961.                                 {% if form.classcategory_id1 is defined %}
  2962.                                     <div class=\"ec-select\">
  2963.                                         {{ form_row(form.classcategory_id1) }}
  2964.                                         {{ form_errors(form.classcategory_id1) }}
  2965.                                     </div>
  2966.                                     {% if form.classcategory_id2 is defined %}
  2967.                                         <div class=\"ec-select\">
  2968.                                             {{ form_row(form.classcategory_id2) }}
  2969.                                             {{ form_errors(form.classcategory_id2) }}
  2970.                                         </div>
  2971.                                     {% endif %}
  2972.                                 {% endif %}
  2973.                                 <div class=\"ec-numberInput\">
  2974.                                     {{ form_widget(form.quantity, { type: 'hidden' }) }}
  2975.                                     {{ form_errors(form.quantity) }}
  2976.                                 </div>
  2977.                             </div>
  2978. \t\t\t\t\t\t\t{% if ProductClass.SaleType.id != 9 %}
  2979.                             <div class=\"ec-productRole__btn mt-3\">
  2980.                                 <button type=\"submit\" id=\"cart_btn\" class=\"ec-blockBtn--action add-cart\" style=\"display:none;\">カートに入れる</button>
  2981.                             </div>
  2982. \t\t\t\t\t\t\t{% else %}
  2983.                             <div class=\"ec-productRole__btn mt-3\">
  2984.                                 <button type=\"submit\" id=\"cart_btn\" class=\"ec-blockBtn--action add-cart\">
  2985.                                     {{ 'カートに入れる'|trans }}
  2986.                                 </button>
  2987.                             </div>
  2988. \t\t\t\t\t\t\t{% endif %}
  2989.                         {% else %}
  2990.                             <div class=\"ec-productRole__btn\">
  2991.                                 <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  2992.                                     {{ 'ただいま品切れ中です。'|trans }}
  2993.                                 </button>
  2994.                             </div>
  2995.                         {% endif %}
  2996.                         <div class=\"ec-productRole__btn\">
  2997.                             <button type=\"button\" class=\"ec-blockBtn--cancel\" onclick=\"contact_form({{ Product.id }});\">無料現地調査へ進む</button>
  2998.                         </div>
  2999.                         {{ form_rest(form) }}
  3000.                     </form>
  3001.                     <div class=\"ec-modal\">
  3002.                         <div class=\"ec-modal-overlay\">
  3003.                             <div class=\"ec-modal-wrap\">
  3004.                                 <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
  3005.                                 <div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
  3006.                                 <div class=\"ec-modal-box\">
  3007.                                     <div class=\"ec-role\">
  3008.                                         <span class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</span>
  3009.                                         <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
  3010.                                     </div>
  3011.                                 </div>
  3012.                             </div>
  3013.                         </div>
  3014.                     </div>
  3015.                     <div class=\"ec-productRole__description\">{{ Product.description_detail|raw|nl2br }}
  3016.                     </div>
  3017.                 </div>
  3018. \t\t\t\t<div class=\"card col-12 collapsed-card sticky-top float-right\">
  3019. \t\t\t\t\t<div class=\"card-header\">
  3020. \t\t\t\t\t  <h3 class=\"card-title\">現在のお見積り額</h3>
  3021. \t\t\t\t\t  <div class=\"card-tools\">
  3022. \t\t\t\t\t    <span class=\"float-left\" id=\"mitsumori_message\">395000円</span>
  3023. \t\t\t\t\t    <button type=\"button\" class=\"btn btn-tool\" data-card-widget=\"collapse\">
  3024. \t\t\t\t\t      <i class=\"fas fa-plus\"></i>
  3025. \t\t\t\t\t    </button>
  3026. \t\t\t\t\t  </div>
  3027. \t\t\t\t\t</div>
  3028. \t\t\t\t\t<div class=\"card-body p-0\">
  3029. \t\t\t\t\t  <ul class=\"nav nav-pills flex-column\">
  3030. \t\t\t\t\t    <li class=\"nav-item active\">
  3031. \t\t\t\t\t      <a class=\"nav-link\">
  3032. \t\t\t\t\t        <i class=\"far fa-file-alt\"></i> 合計(工事費・税込)
  3033. \t\t\t\t\t        <span class=\"float-right\" id=\"mitsumori_goukei\">395,000円</span>
  3034. \t\t\t\t\t      </a>
  3035. \t\t\t\t\t    </li>
  3036. \t\t\t\t\t    <li class=\"nav-item active\">
  3037. \t\t\t\t\t      <a class=\"nav-link\">
  3038. \t\t\t\t\t        <i class=\"far fa-file-alt\"></i> 商品価格
  3039. \t\t\t\t\t        <span class=\"float-right\" id=\"mitsumori_price\">307,008円</span>
  3040. \t\t\t\t\t      </a>
  3041. \t\t\t\t\t    </li>
  3042. \t\t\t\t\t    <li class=\"nav-item\">
  3043. \t\t\t\t\t      <a class=\"nav-link\">
  3044. \t\t\t\t\t        &nbsp;&nbsp;<i class=\"far fa-file-alt\"></i> カタログ価格
  3045. \t\t\t\t\t        <span class=\"float-right\" id=\"maker_price\">479,700円</span>
  3046. \t\t\t\t\t      </a>
  3047. \t\t\t\t\t    </li>
  3048. \t\t\t\t\t    <li class=\"nav-item\">
  3049. \t\t\t\t\t      <a class=\"nav-link\">
  3050. \t\t\t\t\t        &nbsp;&nbsp;<i class=\"far fa-file-alt\"></i> お値引き
  3051. \t\t\t\t\t        <span class=\"float-right\" id=\"mitsumori_off\">-172,692円</span>
  3052. \t\t\t\t\t      </a>
  3053. \t\t\t\t\t    </li>
  3054. \t\t\t\t\t    <li class=\"nav-item\">
  3055. \t\t\t\t\t      <a class=\"nav-link\">
  3056. \t\t\t\t\t        <i class=\"far fa-file-alt\"></i> 基本工事費
  3057. \t\t\t\t\t        <span class=\"float-right\" id=\"mitsumori_ct\">53,250円</span>
  3058. \t\t\t\t\t      </a>
  3059. \t\t\t\t\t    </li>
  3060. \t\t\t\t\t    <li class=\"nav-item\">
  3061. \t\t\t\t\t      <a class=\"nav-link\">
  3062. \t\t\t\t\t        <i class=\"far fa-file-alt\"></i> 施工オプション
  3063. \t\t\t\t\t        <span class=\"float-right\"id=\"mitsumori_option\">6,297円</span>
  3064. \t\t\t\t\t      </a>
  3065. \t\t\t\t\t    </li>
  3066. \t\t\t\t\t  </ul>
  3067. \t\t\t\t\t</div>
  3068. \t\t\t\t\t<div class=\"card-footer\">
  3069. \t\t                <button type=\"button\" id=\"mitsumori_btn\" class=\"btn btn-info\" data-toggle=\"modal\" data-target=\"#modal-mitsumori\">
  3070. \t\t                  見積書表示
  3071. \t\t                </button>
  3072. \t\t\t\t\t\t<button id=\"contact\" class=\"btn btn-info\" onclick=\"contact_form({{ Product.id }});\">無料現地調査へ進む</button>
  3073. \t\t\t\t\t</div>
  3074. \t\t\t\t</div>
  3075.             </div>
  3076.         </div>
  3077.     </div>
  3078.   <div class=\"modal\" id=\"modal-mitsumori\">
  3079.     <div class=\"modal-dialog modal-mitsumori\" style=\"max-width:1000px\">
  3080.       <div class=\"modal-content\">
  3081.         <div class=\"modal-header\">
  3082.           <h4 class=\"modal-title\">お見積書</h4>
  3083.           <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  3084.             <span aria-hidden=\"true\">&times;</span>
  3085.           </button>
  3086.         </div>
  3087.         <div class=\"modal-body\">
  3088. \t\t\t<div class=\"invoice p-3 mb-5\" style=\"max-width:1000px; margin:auto;\">
  3089. \t\t\t  <!-- title row -->
  3090. \t\t\t  <div class=\"row\">
  3091. \t\t\t    <div class=\"col-12\">
  3092. \t\t\t      <h2>概算お見積書 
  3093. \t\t\t        <small class=\"float-right\" style=\"font-size:14px;\">発行日: 2025/03/14</small>
  3094. \t\t\t      </h2>
  3095. \t\t\t    </div>
  3096. \t\t\t    <!-- /.col -->
  3097. \t\t\t  </div>
  3098. \t\t\t  <!-- info row -->
  3099. \t\t\t  <div class=\"row invoice-info\">
  3100. \t\t\t    <div class=\"col-sm-8 invoice-col\">
  3101. \t\t\t      <h3>お客様</h3>
  3102. \t\t\t      <span>下記の通り、お見積もり申し上げます。</span>
  3103. \t\t\t      <br />
  3104. \t\t\t      <br / >
  3105. \t\t\t      <br />
  3106. \t\t\t      <h2>お見積金額: <span id=\"mitsumori_kei\">399,080円</span></h2>
  3107. \t\t\t      <span>
  3108. \t\t\t        <br/>
  3109. \t\t\t        <br/>
  3110. \t\t\t        <br/>
  3111. \t\t\t        <br/>
  3112. \t\t\t      </span>
  3113. \t\t\t    </div>
  3114. \t\t\t    <div class=\"col-sm-4 invoice-col\">
  3115. \t\t\t      <p>
  3116. \t\t\t        <img alt=\"\" src=\"/html/user_data/js/images/logo.png\" style=\"width: 260px; max-width: 100%; max-height: 10mm;\">
  3117. \t\t\t      </p>
  3118. \t\t\t      <p>有限会社プラス</p>
  3119. \t\t\t      <p>〒400-0334</p>
  3120. \t\t\t      <p>山梨県南アルプス市藤田1450番地2</p>
  3121. \t\t\t      <p>TEL: 055-284-6480</p>
  3122. \t\t\t      <img alt=\"\" src=\"/html/user_data/js/images/seal.svg\" style=\"z-index: 2; position: absolute; width: 21mm; left: 58mm; top: 36mm;\">
  3123. \t\t\t    </div>
  3124. \t\t\t    <!-- /.col -->
  3125. \t\t\t    <!-- /.col -->
  3126. \t\t\t  </div>
  3127. \t\t\t  <!-- /.row -->
  3128. \t\t\t  <!-- Table row -->
  3129. \t\t\t  <div class=\"row\">
  3130. \t\t\t    <div class=\"col-12 table-responsive\">
  3131. \t\t\t      <table class=\"table table-striped\">
  3132. \t\t\t        <thead>
  3133. \t\t\t          <tr>
  3134. \t\t\t            <th>項目</th>
  3135. \t\t\t            <th>数量</th>
  3136. \t\t\t            <th>単位</th>
  3137. \t\t\t            <th>単価</th>
  3138. \t\t\t            <th>小計</th>
  3139. \t\t\t          </tr>
  3140. \t\t\t        </thead>
  3141. \t\t\t        <tbody>
  3142. \t\t\t          <tr>
  3143. \t\t\t            <td>プレーンルーフ 600タイプ 1台用 単体セット</td>
  3144. \t\t\t            <td>1</td>
  3145. \t\t\t            <td>式</td>
  3146. \t\t\t            <td id=\"mitsumori_price_01\">352,800</td>
  3147. \t\t\t            <td id=\"mitsumori_price_02\">352,800</td>
  3148. \t\t\t          </tr>
  3149. \t\t\t          <tr>
  3150. \t\t\t            <td>基本工事費</td>
  3151. \t\t\t            <td>1</td>
  3152. \t\t\t            <td>式</td>
  3153. \t\t\t            <td id=\"mitsumori_ct_01\">10,000</td>
  3154. \t\t\t            <td id=\"mitsumori_ct_02\">10,000</td>
  3155. \t\t\t          </tr>
  3156. \t\t\t          <tr>
  3157. \t\t\t            <td>残土・ガラ処理</td>
  3158. \t\t\t            <td>1</td>
  3159. \t\t\t            <td>式</td>
  3160. \t\t\t            <td>0円</td>
  3161. \t\t\t            <td></td>
  3162. \t\t\t          </tr>
  3163. \t\t\t          <tr>
  3164. \t\t\t            <td> </td>
  3165. \t\t\t            <td></td>
  3166. \t\t\t            <td></td>
  3167. \t\t\t            <td></td>
  3168. \t\t\t            <td></td>
  3169. \t\t\t          </tr>
  3170. \t\t\t        </tbody>
  3171. \t\t\t      </table>
  3172. \t\t\t    </div>
  3173. \t\t\t    <!-- /.col -->
  3174. \t\t\t  </div>
  3175. \t\t\t  <!-- /.row -->
  3176. \t\t\t  <div class=\"row\">
  3177. \t\t\t    <!-- accepted payments column -->
  3178. \t\t\t    <div class=\"col-6\">
  3179. \t\t\t      <p class=\"lead\">お支払い方法</p>
  3180. \t\t\t      <p class=\"text-muted well well-sm shadow-none\" style=\"margin-top: 10px;\">銀行振込、クレジットカード決済、PAYPAY決済
  3181. \t\t\t        <br>銀行振込:山梨中央銀行 白根支店 普通口座 391402
  3182. \t\t\t        <br>※商品代金と工事代金の総額が金100万円(税込)を超える場合、着手金として代金の半額をご契約後お支払いいただきます。 
  3183. \t\t\t      </p>
  3184. \t\t\t    </div>
  3185. \t\t\t    <!-- /.col -->
  3186. \t\t\t    <div class=\"col-6\">
  3187. \t\t\t      <div class=\"table-responsive\">
  3188. \t\t\t        <table class=\"table\">
  3189. \t\t\t          <tbody>
  3190. \t\t\t            <tr>
  3191. \t\t\t              <th style=\"width:50%\">小計:</th>
  3192. \t\t\t              <td id=\"mitsumori_shoukei\">362,800</td>
  3193. \t\t\t            </tr>
  3194. \t\t\t            <tr>
  3195. \t\t\t              <th>消費税 (10%)</th>
  3196. \t\t\t              <td id=\"mitsumori_tax\">36,280</td>
  3197. \t\t\t            </tr>
  3198. \t\t\t            <tr>
  3199. \t\t\t              <th>合計:</th>
  3200. \t\t\t              <td id=\"mitsumori_goukei_02\">399,080</td>
  3201. \t\t\t            </tr>
  3202. \t\t\t          </tbody>
  3203. \t\t\t        </table>
  3204. \t\t\t      </div>
  3205. \t\t\t    </div>
  3206. \t\t\t    <!-- /.col -->
  3207. \t\t\t  </div>
  3208. \t\t\t  <!-- /.row -->
  3209. \t\t\t</div>
  3210.         </div>
  3211.         <div class=\"modal-footer justify-content-between\">
  3212. \t\t\t      <button type=\"button\" class=\"btn btn-primary float-right\" style=\"margin-right: 5px;\">
  3213. \t\t\t        <i class=\"fas fa-download\"></i>PDF出力
  3214. \t\t\t      </button>
  3215.           <button type=\"button\" class=\"btn btn-info\" onclick=\"contact_form({{ Product.id }});\">無料現地調査へ進む</button>
  3216.         </div>
  3217.       </div>
  3218.       <!-- /.modal-content -->
  3219.     </div>
  3220.     <!-- /.modal-dialog -->
  3221.   </div>
  3222.   <!-- /.modal -->
  3223. {% endblock %}
  3224. ""Product/detail.twig""/home/xs538259/exterior-plus.jp/public_html/app/template/default/Product/detail.twig");
  3225.     }
  3226. }