var/cache/dev/twig/ce/ce33f1a336b501ccf515e493a104daa7fd455b12fbf3de30504bd569466a894b.php line 1503

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_da5ad31feda8695d41b76c2e300641cf69fccce492d7fb053b687f2a0b3adb3c 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.                 // タイプ2: カート送信直前に set_count を quantity に同期
  281.                 if(\$('#set_count').length){
  282.                     var _sc = parseInt(\$('#set_count').val()) || 1;
  283.                     \$('#quantity').val(_sc);
  284.                     \$('input[name=\"quantity\"]').val(_sc);
  285.                 }
  286.                 // 個数フォームのチェック
  287.                 if (\$('#quantity').val() < 1) {
  288.                     \$('#quantity')[0].setCustomValidity('";
  289.         // line 218
  290.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html"nulltrue);
  291.         echo "');
  292.                     return true;
  293.                 } else {
  294.                     \$('#quantity')[0].setCustomValidity('');
  295.                 }
  296.                 event.preventDefault();
  297.                 \$form = \$('#form1');
  298.                 \$.ajax({
  299.                     url: \$form.attr('action'),
  300.                     type: \$form.attr('method'),
  301.                     data: \$form.serialize(),
  302.                     dataType: 'json',
  303.                     beforeSend: function(xhr, settings) {
  304.                         // Buttonを無効にする
  305.                         \$('.add-cart').prop('disabled', true);
  306.                     }
  307.                 }).done(function(data) {
  308.                     // レスポンス内のメッセージをalertで表示
  309.                     \$.each(data.messages, function() {
  310.                         \$('#ec-modal-header').text(this);
  311.                     });
  312.                     \$('.ec-modal').show()
  313.                     // カートブロックを更新する
  314.                     \$.ajax({
  315.                         url: \"";
  316.         // line 245
  317.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  318.         echo "\",
  319.                         type: 'GET',
  320.                         dataType: 'html'
  321.                     }).done(function(html) {
  322.                         \$('.ec-headerRole__cart').html(html);
  323.                     });
  324.                 }).fail(function(data) {
  325.                     alert('";
  326.         // line 252
  327.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("施工検討リストへの追加に失敗しました。"), "html"nulltrue);
  328.         echo "');
  329.                 }).always(function(data) {
  330.                     // Buttonを有効にする
  331.                     \$('.add-cart').prop('disabled', false);
  332.                 });
  333.             });
  334.         });
  335.         \$('.ec-modal-wrap').on('click', function(e) {
  336.             // モーダル内の処理は外側にバブリングさせない
  337.             e.stopPropagation();
  338.         });
  339.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  340.             \$('.ec-modal').hide()
  341.         });
  342. \t\tvar pw = \"";
  343.         // line 269
  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.'269$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.'269$this->source); })()), "pw", [], "any"falsefalsefalse269), "html"nulltrue);
  346.         }
  347.         echo "\";
  348. \t\tvar pd = \"";
  349.         // line 270
  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.'270$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.'270$this->source); })()), "pd", [], "any"falsefalsefalse270), "html"nulltrue);
  352.         }
  353.         echo "\";
  354. \t\tvar ph = \"";
  355.         // line 271
  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.'271$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.'271$this->source); })()), "ph", [], "any"falsefalsefalse271), "html"nulltrue);
  358.         }
  359.         echo "\";
  360. \t\tvar pm = \"";
  361.         // line 272
  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.'272$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.'272$this->source); })()), "pm", [], "any"falsefalsefalse272), "html"nulltrue);
  364.         }
  365.         echo "\";
  366. \t\tvar pc = \"";
  367.         // line 273
  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.'273$this->source); })())) {
  369.             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.'273$this->source); })()), "pc", [], "any"falsefalsefalse273), "html"nulltrue);
  370.         }
  371.         echo "\";
  372. \t\tvar op0 = \"";
  373.         // line 274
  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.'274$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.'274$this->source); })()), "op", [], "any"falsefalsefalse274), 0, [], "array"falsefalsefalse274), "html"nulltrue);
  376.         }
  377.         echo "\";
  378. \t\tvar op1 = \"";
  379.         // line 275
  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.'275$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.'275$this->source); })()), "op", [], "any"falsefalsefalse275), 1, [], "array"falsefalsefalse275), "html"nulltrue);
  382.         }
  383.         echo "\";
  384. \t\tvar op2 = \"";
  385.         // line 276
  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.'276$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.'276$this->source); })()), "op", [], "any"falsefalsefalse276), 2, [], "array"falsefalsefalse276), "html"nulltrue);
  388.         }
  389.         echo "\";
  390. \t\tvar op3 = \"";
  391.         // line 277
  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.'277$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.'277$this->source); })()), "op", [], "any"falsefalsefalse277), 3, [], "array"falsefalsefalse277), "html"nulltrue);
  394.         }
  395.         echo "\";
  396. \t\tvar op4 = \"";
  397.         // line 278
  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.'278$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.'278$this->source); })()), "op", [], "any"falsefalsefalse278), 4, [], "array"falsefalsefalse278), "html"nulltrue);
  400.         }
  401.         echo "\";
  402. \t\tvar op5 = \"";
  403.         // line 279
  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.'279$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.'279$this->source); })()), "op", [], "any"falsefalsefalse279), 5, [], "array"falsefalsefalse279), "html"nulltrue);
  406.         }
  407.         echo "\";
  408. \t\tvar op6 = \"";
  409.         // line 280
  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.'280$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.'280$this->source); })()), "op", [], "any"falsefalsefalse280), 6, [], "array"falsefalsefalse280), "html"nulltrue);
  412.         }
  413.         echo "\";
  414. \t\tvar op7 = \"";
  415.         // line 281
  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.'281$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.'281$this->source); })()), "op", [], "any"falsefalsefalse281), 7, [], "array"falsefalsefalse281), "html"nulltrue);
  418.         }
  419.         echo "\";
  420. \t\tvar op8 = \"";
  421.         // line 282
  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.'282$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.'282$this->source); })()), "op", [], "any"falsefalsefalse282), 8, [], "array"falsefalsefalse282), "html"nulltrue);
  424.         }
  425.         echo "\";
  426. \t\tvar op9 = \"";
  427.         // line 283
  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.'283$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.'283$this->source); })()), "op", [], "any"falsefalsefalse283), 9, [], "array"falsefalsefalse283), "html"nulltrue);
  430.         }
  431.         echo "\";
  432. \t\tvar op10 = \"";
  433.         // line 284
  434.         if ((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'284$this->source); })())) {
  435.             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.'284$this->source); })()), "op", [], "any"falsefalsefalse284), 10, [], "array"falsefalsefalse284), "html"nulltrue);
  436.         }
  437.         echo "\";
  438. \t\tconst formatter = new Intl.NumberFormat('ja-JP');
  439. \t\tfunction mitsumori_simulation(type , value_id){
  440. \t\t\tvar pp = ";
  441.         // line 289
  442.         echo (isset($context["pp"]) || array_key_exists("pp"$context) ? $context["pp"] : (function () { throw new RuntimeError('Variable "pp" does not exist.'289$this->source); })());
  443.         echo ";
  444. \t\t\tif(type == \"pw\"){
  445. \t\t\t\tpw = \$('#'+value_id).val();
  446. \t\t\t}
  447. \t\t\tif(type == \"pd\"){
  448. \t\t\t\tpd = \$('#'+value_id).val();
  449. \t\t\t}
  450. \t\t\tif(type == \"ph\"){
  451. \t\t\t\tph = \$('#'+value_id).val();
  452. \t\t\t}
  453. \t\t\tif(type == \"pm\"){
  454. \t\t\t\tpm = \$('#'+value_id).val();
  455. \t\t\t}
  456. \t\t\tif(type == \"pc\"){
  457. \t\t\t\tpc = \$('#'+value_id).val();
  458. \t\t\t}
  459. \t\t\tif(type == \"op0\"){ op0 = \$('#'+value_id).val(); }
  460. \t\t\tif(type == \"op1\"){ op1 = \$('#'+value_id).val(); }
  461. \t\t\tif(type == \"op2\"){ op2 = \$('#'+value_id).val(); }
  462. \t\t\tif(type == \"op3\"){ op3 = \$('#'+value_id).val(); }
  463. \t\t\tif(type == \"op4\"){ op4 = \$('#'+value_id).val(); }
  464. \t\t\tif(type == \"op5\"){ op5 = \$('#'+value_id).val(); }
  465. \t\t\tif(type == \"op6\"){ op6 = \$('#'+value_id).val(); }
  466. \t\t\tif(type == \"op7\"){ op7 = \$('#'+value_id).val(); }
  467. \t\t\tif(type == \"op8\"){ op8 = \$('#'+value_id).val(); }
  468. \t\t\tif(type == \"op9\"){ op9 = \$('#'+value_id).val(); }
  469. \t\t\tif(type == \"op10\"){ op10 = \$('#'+value_id).val(); }
  470. \t\t\tif(pm == \"\"){
  471. \t\t\t\t\$('#mitsumori_message').text(\"素材を選択してください\");
  472. \t\t\t}
  473. \t\t\tif(ph == \"\"){
  474. \t\t\t\t\$('#mitsumori_message').text(\"高さを選択してください\");
  475. \t\t\t}
  476. \t\t\tif(pd == \"\"){
  477. \t\t\t\t\$('#mitsumori_message').text(\"奥行きを選択してください\");
  478. \t\t\t}
  479. \t\t\tif(pw == \"\"){
  480. \t\t\t\t\$('#mitsumori_message').text(\"幅を選択してください\");
  481. \t\t\t}
  482. \t\t\tif(pc == \"\"){
  483. \t\t\t\t\$('#mitsumori_message').text(\"カラーを選択してください\");
  484. \t\t\t\t\$('#mitsumori_btn').hide();
  485. \t\t\t\t\$('#mitsumori_goukei').text(\"---円\");
  486. \t\t\t\t\$('#mitsumori_off').text(\"---円\");
  487. \t\t\t\t\$('#mitsumori_price').text(\"---円\");
  488. \t\t\t\t\$('#maker_price').text(\"---円\");
  489. \t\t\t\t\$('#mitsumori_ct').text(\"---円\");
  490. \t\t\t\t\$('#mitsumori_option').text(\"---円\");
  491. \t\t\t}
  492. \t\t\tif(pw != \"\" && pd != \"\" && ph != \"\" && pm != \"\" && pc != \"\"){
  493. \t\t\t\t\$('#mitsumori_btn').show();
  494. \t\t\t\t
  495. \t\t\t\tpp.forEach((el) => {
  496. \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 == \"指定なし\")){
  497. \t\t\t\t\tif(op0 == \"商品購入のみ\" || op1 == \"商品購入のみ\" || op2 == \"商品購入のみ\" || op3 == \"商品購入のみ\" || op4 == \"商品購入のみ\" 
  498. \t\t\t\t\t\t|| op5 == \"商品購入のみ\" || op6 == \"商品購入のみ\" || op7 == \"商品購入のみ\" || op8 == \"商品購入のみ\" || op9 == \"商品購入のみ\"){
  499. \t\t\t\t\t  \t\$('#mitsumori_message').text(formatter.format(parseInt(el.price)) + \"円\");
  500. \t\t\t\t\t  \t\$('#mitsumori_goukei').text(formatter.format(parseInt(el.price)) + \"円\");
  501. \t\t\t\t\t  \t\$('#mitsumori_off').text(formatter.format(parseInt(el.price) - parseInt(el.maker_price)) + \"円\");
  502. \t\t\t\t\t  \t\$('#mitsumori_price').text(formatter.format(parseInt(el.price)) + \"円\");
  503. \t\t\t\t\t  \t\$('#maker_price').text(formatter.format(parseInt(el.maker_price)) + \"円\");
  504. \t\t\t\t\t  \t\$('#mitsumori_ct').text(\"0円\");
  505. \t\t\t\t\t  \t\$('#mitsumori_option').text(\"0円\");
  506. \t\t\t\t\t  \t\$('#mitsumori_kei').text(formatter.format(parseInt(el.price)) + \"円\");
  507. \t\t\t\t\t  \t\$('#mitsumori_price_01').text(formatter.format(parseInt(el.price)) + \"円\");
  508. \t\t\t\t\t  \t\$('#mitsumori_price_02').text(formatter.format(parseInt(el.price)) + \"円\");
  509. \t\t\t\t\t  \t\$('#mitsumori_ct_01').text(\"0円\");
  510. \t\t\t\t\t  \t\$('#mitsumori_ct_02').text(\"0円\");
  511. \t\t\t\t\t  \t\$('#mitsumori_goukei_02').text(formatter.format(parseInt(el.price)) + \"円\");
  512. \t\t\t\t\t\t
  513. \t\t\t\t\t\tmitsumori_goukei = (parseInt(el.price));
  514. \t\t\t\t\t\tshoukei = mitsumori_goukei / 1.1;
  515. \t\t\t\t\t\ttax = parseInt(mitsumori_goukei - shoukei);
  516. \t\t\t\t\t  \t\$('#mitsumori_shoukei').text(formatter.format(parseInt(shoukei)) + \"円\");
  517. \t\t\t\t\t  \t\$('#mitsumori_tax').text(formatter.format(parseInt(tax)) + \"円\");
  518. \t\t\t\t\t}else{
  519. \t\t\t\t\t  \t\$('#mitsumori_message').text(formatter.format(parseInt(el.price) + parseInt(el.ct)) + \"円\");
  520. \t\t\t\t\t  \t\$('#mitsumori_goukei').text(formatter.format(parseInt(el.price) + parseInt(el.ct)) + \"円\");
  521. \t\t\t\t\t  \t\$('#mitsumori_off').text(formatter.format(parseInt(el.price) - parseInt(el.maker_price)) + \"円\");
  522. \t\t\t\t\t  \t\$('#mitsumori_price').text(formatter.format(parseInt(el.price)) + \"円\");
  523. \t\t\t\t\t  \t\$('#maker_price').text(formatter.format(parseInt(el.maker_price)) + \"円\");
  524. \t\t\t\t\t  \t\$('#mitsumori_ct').text(formatter.format(parseInt(el.ct)) + \"円\");
  525. \t\t\t\t\t  \t\$('#mitsumori_option').text(\"0円\");
  526. \t\t\t\t\t  \t\$('#mitsumori_kei').text(formatter.format(parseInt(el.price) + parseInt(el.ct)) + \"円\");
  527. \t\t\t\t\t  \t\$('#mitsumori_price_01').text(formatter.format(parseInt(el.price)) + \"円\");
  528. \t\t\t\t\t  \t\$('#mitsumori_price_02').text(formatter.format(parseInt(el.price)) + \"円\");
  529. \t\t\t\t\t  \t\$('#mitsumori_ct_01').text(formatter.format(parseInt(el.ct)) + \"円\");
  530. \t\t\t\t\t  \t\$('#mitsumori_ct_02').text(formatter.format(parseInt(el.ct)) + \"円\");
  531. \t\t\t\t\t  \t\$('#mitsumori_goukei_02').text(formatter.format(parseInt(el.price) + parseInt(el.ct)) + \"円\");
  532. \t\t\t\t\t\tmitsumori_goukei = (parseInt(el.price) + parseInt(el.ct));
  533. \t\t\t\t\t\tshoukei = mitsumori_goukei / 1.1;
  534. \t\t\t\t\t\ttax = parseInt(mitsumori_goukei - shoukei);
  535. \t\t\t\t\t  \t\$('#mitsumori_shoukei').text(formatter.format(parseInt(shoukei)) + \"円\");
  536. \t\t\t\t\t  \t\$('#mitsumori_tax').text(formatter.format(parseInt(tax)) + \"円\");
  537. \t\t\t\t\t}
  538. \t\t\t\t  }
  539. \t\t\t\t});\t
  540. \t\t\t\t// タイプ5: ステップ・フェンス・面積の現在値を取得
  541. \t\t\t\tif(\$('input[name=deck_step]:checked').length){ deck_step = \$('input[name=deck_step]:checked').val(); }
  542. \t\t\t\tif(\$('input[name=deck_fence]:checked').length){ deck_fence = \$('input[name=deck_fence]:checked').val(); }
  543. \t\t\t\t// タイプ2: 窓サイズ・窓タイプ・ガラスタイプ・セット数
  544. \t\t\t\tvar mado_w_val     = \$('#mado_w').val()     || '';
  545. \t\t\t\tvar mado_h_val     = \$('#mado_h').val()     || '';
  546. \t\t\t\tvar mado_type_val  = \$('input[name=mado_type]:checked').val()  || '';
  547. \t\t\t\tvar glass_type_val = \$('input[name=glass_type]:checked').val() || '';
  548. \t\t\t\tvar set_count_val  = parseInt(\$('#set_count').val()) || 1;
  549. \t\t\t\t// タイプ3: 台数
  550. \t\t\t\tvar daisu_val = parseInt(\$('#daisu').val()) || 1;
  551. \t\t\t\t// タイプ4・6: 枚数
  552. \t\t\t\tvar maisu_val = parseInt(\$('#maisu').val()) || 1;
  553. \t\t\t\t// タイプ5: 面積
  554. \t\t\t\tvar area_val = \$('#area').val() || '';
  555. \t\t\t\t// sale_type
  556. \t\t\t\tvar sale_type_id = ";
  557.         // line 418
  558.         echo twig_escape_filter($this->envtwig_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.'418$this->source); })()), "SaleType", [], "any"falsefalsefalse418), "id", [], "any"falsefalsefalse418), "html"nulltrue);
  559.         echo ";
  560. \t\t\t\tvar mitsumori_json = { \"mitsumori_goukei\": \$('#mitsumori_goukei').text(),
  561. \t\t\t\t\t\t\t\t\t\t\"mitsumori_goukei_02\": \$('#mitsumori_goukei_02').text(),
  562. \t\t\t\t\t\t\t\t\t\t\"mitsumori_price\": \$('#mitsumori_price').text(),
  563. \t\t\t\t\t\t\t\t\t\t\"maker_price\": \$('#maker_price').text(),
  564. \t\t\t\t\t\t\t\t\t\t\"mitsumori_off\": \$('#mitsumori_off').text(),
  565. \t\t\t\t\t\t\t\t\t\t\"mitsumori_ct\": \$('#mitsumori_ct').text(),
  566. \t\t\t\t\t\t\t\t\t\t\"mitsumori_option\": \$('#mitsumori_option').text(),
  567. \t\t\t\t\t\t\t\t\t\t\"product_id\": ";
  568.         // line 427
  569.         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.'427$this->source); })()), "id", [], "any"falsefalsefalse427), "html"nulltrue);
  570.         echo ",
  571. \t\t\t\t\t\t\t\t\t\t\"sale_type\": sale_type_id,
  572. \t\t\t\t\t\t\t\t\t\t\"pw\": pw,
  573. \t\t\t\t\t\t\t\t\t\t\"pd\": pd,
  574. \t\t\t\t\t\t\t\t\t\t\"ph\": ph,
  575. \t\t\t\t\t\t\t\t\t\t\"pm\": pm,
  576. \t\t\t\t\t\t\t\t\t\t\"pc\": pc,
  577. \t\t\t\t\t\t\t\t\t\t\"op\": [op0,op1,op2,op3,op4,op5,op6,op7,op8,op9,op10],
  578. \t\t\t\t\t\t\t\t\t\t\"mado_w\":     mado_w_val,
  579. \t\t\t\t\t\t\t\t\t\t\"mado_h\":     mado_h_val,
  580. \t\t\t\t\t\t\t\t\t\t\"mado_type\":  mado_type_val,
  581. \t\t\t\t\t\t\t\t\t\t\"glass_type\": glass_type_val,
  582. \t\t\t\t\t\t\t\t\t\t\"set_count\":  set_count_val,
  583. \t\t\t\t\t\t\t\t\t\t\"daisu\":      daisu_val,
  584. \t\t\t\t\t\t\t\t\t\t\"maisu\":      maisu_val,
  585. \t\t\t\t\t\t\t\t\t\t\"area\":       area_val,
  586. \t\t\t\t\t\t\t\t\t\t\"deck_step\":  deck_step,
  587. \t\t\t\t\t\t\t\t\t\t\"deck_fence\": deck_fence };
  588. \t\t\t\t\$('#mitsumori_json').val(JSON.stringify(mitsumori_json));
  589. \t\t\t\t
  590. \t\t\t}
  591. \t\t\t
  592. \t\t}
  593.         ";
  594.         // line 453
  595.         if (((isset($context["color"]) || array_key_exists("color"$context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.'453$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.'453$this->source); })())) == 1))) {
  596.             // line 454
  597.             echo "            pc = \"指定なし\";
  598. \t\t\t";
  599.             // line 455
  600.             $context['_parent'] = $context;
  601.             $context['_seq'] = twig_ensure_traversable((isset($context["color"]) || array_key_exists("color"$context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.'455$this->source); })()));
  602.             foreach ($context['_seq'] as $context["_key"] => $context["cc"]) {
  603.                 if (($context["cc"] && twig_get_attribute($this->env$this->source$context["cc"], "name", [], "array"falsefalsefalse455))) {
  604.                     echo " pc = \"";
  605.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cc"], "name", [], "array"falsefalsefalse455), "html"nulltrue);
  606.                     echo "\"; ";
  607.                 }
  608.             }
  609.             $_parent $context['_parent'];
  610.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cc'], $context['_parent'], $context['loop']);
  611.             $context array_intersect_key($context$_parent) + $_parent;
  612.             // line 456
  613.             echo "\t\t";
  614.         }
  615.         // line 457
  616.         echo "
  617.         ";
  618.         // line 458
  619.         if (((isset($context["p_w"]) || array_key_exists("p_w"$context) ? $context["p_w"] : (function () { throw new RuntimeError('Variable "p_w" does not exist.'458$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.'458$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.'458$this->source); })())) == "")))) {
  620.             // line 459
  621.             echo "            pw = \"指定なし\";
  622. \t\t\t";
  623.             // line 460
  624.             $context['_parent'] = $context;
  625.             $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.'460$this->source); })()));
  626.             foreach ($context['_seq'] as $context["_key"] => $context["pw"]) {
  627.                 if ($context["pw"]) {
  628.                     echo " pw = \"";
  629.                     echo twig_escape_filter($this->env$context["pw"], "html"nulltrue);
  630.                     echo "\"; ";
  631.                 }
  632.             }
  633.             $_parent $context['_parent'];
  634.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pw'], $context['_parent'], $context['loop']);
  635.             $context array_intersect_key($context$_parent) + $_parent;
  636.             // line 461
  637.             echo "\t\t";
  638.         }
  639.         // line 462
  640.         echo "
  641.         ";
  642.         // line 463
  643.         if (((isset($context["p_d"]) || array_key_exists("p_d"$context) ? $context["p_d"] : (function () { throw new RuntimeError('Variable "p_d" does not exist.'463$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.'463$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.'463$this->source); })())) == "")))) {
  644.             // line 464
  645.             echo "            pd = \"指定なし\";
  646. \t\t\t";
  647.             // line 465
  648.             $context['_parent'] = $context;
  649.             $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.'465$this->source); })()));
  650.             foreach ($context['_seq'] as $context["_key"] => $context["pd"]) {
  651.                 if ($context["pd"]) {
  652.                     echo " pd = \"";
  653.                     echo twig_escape_filter($this->env$context["pd"], "html"nulltrue);
  654.                     echo "\"; ";
  655.                 }
  656.             }
  657.             $_parent $context['_parent'];
  658.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pd'], $context['_parent'], $context['loop']);
  659.             $context array_intersect_key($context$_parent) + $_parent;
  660.             // line 466
  661.             echo "\t\t";
  662.         }
  663.         // line 467
  664.         echo "
  665.         ";
  666.         // line 468
  667.         if (((isset($context["p_h"]) || array_key_exists("p_h"$context) ? $context["p_h"] : (function () { throw new RuntimeError('Variable "p_h" does not exist.'468$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.'468$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.'468$this->source); })())) == "")))) {
  668.             // line 469
  669.             echo "            ph = \"指定なし\";
  670. \t\t\t";
  671.             // line 470
  672.             $context['_parent'] = $context;
  673.             $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.'470$this->source); })()));
  674.             foreach ($context['_seq'] as $context["_key"] => $context["ph"]) {
  675.                 if ($context["ph"]) {
  676.                     echo " ph = \"";
  677.                     echo twig_escape_filter($this->env$context["ph"], "html"nulltrue);
  678.                     echo "\"; ";
  679.                 }
  680.             }
  681.             $_parent $context['_parent'];
  682.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ph'], $context['_parent'], $context['loop']);
  683.             $context array_intersect_key($context$_parent) + $_parent;
  684.             // line 471
  685.             echo "\t\t";
  686.         }
  687.         // line 472
  688.         echo "
  689.         ";
  690.         // line 473
  691.         if (((isset($context["p_m"]) || array_key_exists("p_m"$context) ? $context["p_m"] : (function () { throw new RuntimeError('Variable "p_m" does not exist.'473$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.'473$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.'473$this->source); })())) == "")))) {
  692.             // line 474
  693.             echo "            pm = \"指定なし\";
  694. \t\t\t";
  695.             // line 475
  696.             $context['_parent'] = $context;
  697.             $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.'475$this->source); })()));
  698.             foreach ($context['_seq'] as $context["_key"] => $context["pm"]) {
  699.                 if ($context["pm"]) {
  700.                     echo " pm = \"";
  701.                     echo twig_escape_filter($this->env$context["pm"], "html"nulltrue);
  702.                     echo "\"; ";
  703.                 }
  704.             }
  705.             $_parent $context['_parent'];
  706.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pm'], $context['_parent'], $context['loop']);
  707.             $context array_intersect_key($context$_parent) + $_parent;
  708.             // line 476
  709.             echo "\t\t";
  710.         }
  711.         // line 477
  712.         echo "
  713. \t\t// ページ読み込み時: タイプ別に quantity の初期値をセット
  714. \t\t(function initQuantityByType(){
  715. \t\t\tvar saleType = ";
  716.         // line 480
  717.         echo twig_escape_filter($this->envtwig_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.'480$this->source); })()), "SaleType", [], "any"falsefalsefalse480), "id", [], "any"falsefalsefalse480), "html"nulltrue);
  718.         echo ";
  719. \t\t\tif(saleType == 2 && \$('#set_count').length){
  720. \t\t\t\tvar _v = parseInt(\$('#set_count').val()) || 1;
  721. \t\t\t\t\$('#quantity').val(_v);
  722. \t\t\t\t\$('input[name=\"quantity\"]').val(_v);
  723. \t\t\t} else if(saleType == 3 && \$('#daisu').length){
  724. \t\t\t\t\$('#quantity').val(parseInt(\$('#daisu').val()) || 1);
  725. \t\t\t} else if((saleType == 4 || saleType == 6) && \$('#maisu').length){
  726. \t\t\t\t\$('#quantity').val(parseInt(\$('#maisu').val()) || 1);
  727. \t\t\t} else if(saleType == 9 && \$('#quantity_only').length){
  728. \t\t\t\t\$('#quantity').val(parseInt(\$('#quantity_only').val()) || 1);
  729. \t\t\t}
  730. \t\t})();
  731. \t\tmitsumori_simulation(\"\",\"\");
  732. \t\tfunction contact_form(product_id){
  733. \t\t\t\$('#form1').attr('action', '";
  734.         // line 496
  735.         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.'496$this->source); })()), "id", [], "any"falsefalsefalse496)]), "html"nulltrue);
  736.         echo "');
  737. \t\t\t\$('#form1').submit();
  738. \t\t}
  739. \t\t// maisu / madoset は下部の新しい関数定義を使用
  740. \t\tfunction heibei(bei){
  741. \t\t\t\$('#heibei').val(parseInt(\$('#heibei').val()) + bei);
  742. \t\t\tif(parseInt(\$('#heibei').val()) < 1){ \$('#heibei').val(1); }
  743. \t\t\tif(parseInt(\$('#heibei').val()) > 100){ \$('#heibei').val(100); }
  744. \t\t\t\$('#quantity').val(\$('#heibei').val());
  745. \t\t\tmitsumori_simulation('heibei','heibei');
  746. \t\t}
  747. \t\tfunction daisu(dai){
  748. \t\t\t\$('#daisu').val(parseInt(\$('#daisu').val()) + dai);
  749. \t\t\tif(parseInt(\$('#daisu').val()) < 1){ \$('#daisu').val(1); }
  750. \t\t\tif(parseInt(\$('#daisu').val()) > 10){ \$('#daisu').val(10); }
  751. \t\t\t\$('#quantity').val(\$('#daisu').val());
  752. \t\t\tmitsumori_simulation('daisu','daisu');
  753. \t\t}
  754. \t\tfunction maisu(mai){
  755. \t\t\t\$('#maisu').val(parseInt(\$('#maisu').val()) + mai);
  756. \t\t\tif(parseInt(\$('#maisu').val()) < 1){ \$('#maisu').val(1); }
  757. \t\t\tif(parseInt(\$('#maisu').val()) > 100){ \$('#maisu').val(100); }
  758. \t\t\t\$('#quantity').val(\$('#maisu').val());
  759. \t\t\tmitsumori_simulation('maisu','maisu');
  760. \t\t}
  761. \t\t// タイプ2: セット数プルダウン連動
  762. \t\tfunction madosetSelect(val){
  763. \t\t\tvar v = parseInt(val);
  764. \t\t\tif(v < 1) v = 1;
  765. \t\t\tif(v > 20) v = 20;
  766. \t\t\t// id=\"quantity\" と name=\"quantity\" 両方を確実に書き換え
  767. \t\t\t\$('#quantity').val(v);
  768. \t\t\t\$('input[name=\"quantity\"]').val(v);
  769. \t\t\tmitsumori_simulation('set','set_count');
  770. \t\t}
  771. \t\t// タイプ2: ±ボタン版(後方互換)
  772. \t\tfunction madoset(mai){
  773. \t\t\tvar current = parseInt(\$('#set_count').val()) || 1;
  774. \t\t\tvar next = current + mai;
  775. \t\t\tif(next < 1) next = 1;
  776. \t\t\tif(next > 20) next = 20;
  777. \t\t\t\$('#set_count').val(next);
  778. \t\t\tmadosetSelect(next);
  779. \t\t}
  780. \t\t// タイプ5: ステップ・フェンス選択値を mitsumori_json に保存するためのグローバル変数
  781. \t\tvar deck_step = \"";
  782.         // line 546
  783.         if ((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'546$this->source); })())) {
  784.             echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, ($context["mitsumori_json"] ?? null), "deck_step", [], "any"truetruefalse546)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["mitsumori_json"] ?? null), "deck_step", [], "any"falsefalsefalse546), "不要")) : ("不要")), "html"nulltrue);
  785.         } else {
  786.             echo "不要";
  787.         }
  788.         echo "\";
  789. \t\tvar deck_fence = \"";
  790.         // line 547
  791.         if ((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'547$this->source); })())) {
  792.             echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, ($context["mitsumori_json"] ?? null), "deck_fence", [], "any"truetruefalse547)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["mitsumori_json"] ?? null), "deck_fence", [], "any"falsefalsefalse547), "不要")) : ("不要")), "html"nulltrue);
  793.         } else {
  794.             echo "不要";
  795.         }
  796.         echo "\";
  797. \t\t// PDF出力: モーダルの mitsumori_json をフォームに同期してから送信
  798. \t\tfunction syncPdfJson(){
  799. \t\t\tvar jsonVal = \$('#mitsumori_json').val();
  800. \t\t\t\$('#pdf_mitsumori_json').val(jsonVal);
  801. \t\t}
  802. \t\t// タイプ9: 商品のみ購入
  803. \t\tfunction quantityOnly(val){
  804. \t\t\tvar current = parseInt(\$('#quantity_only').val()) || 1;
  805. \t\t\tvar next = current + val;
  806. \t\t\tif(next < 1) next = 1;
  807. \t\t\t\$('#quantity_only').val(next);
  808. \t\t\t\$('#quantity').val(next);
  809. \t\t}
  810.     </script>
  811.     <script type=\"application/ld+json\">
  812.     {
  813.         \"@context\": \"https://schema.org/\",
  814.         \"@type\": \"Product\",
  815.         \"name\": \"";
  816.         // line 569
  817.         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.'569$this->source); })()), "name", [], "any"falsefalsefalse569), "html"nulltrue);
  818.         echo "\",
  819.         \"image\": [
  820.             ";
  821.         // line 571
  822.         $context['_parent'] = $context;
  823.         $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.'571$this->source); })()), "ProductImage", [], "any"falsefalsefalse571));
  824.         $context['_iterated'] = false;
  825.         $context['loop'] = [
  826.           'parent' => $context['_parent'],
  827.           'index0' => 0,
  828.           'index'  => 1,
  829.           'first'  => true,
  830.         ];
  831.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  832.             $length count($context['_seq']);
  833.             $context['loop']['revindex0'] = $length 1;
  834.             $context['loop']['revindex'] = $length;
  835.             $context['loop']['length'] = $length;
  836.             $context['loop']['last'] = === $length;
  837.         }
  838.         foreach ($context['_seq'] as $context["_key"] => $context["img"]) {
  839.             // line 572
  840.             echo "                \"";
  841.             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.'572$this->source); })()), "request", [], "any"falsefalsefalse572), "schemeAndHttpHost", [], "any"falsefalsefalse572), "html"nulltrue);
  842.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["img"], "save_image"), "html"nulltrue);
  843.             echo "\"";
  844.             if ( !twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse572)) {
  845.                 echo ",";
  846.             }
  847.             // line 573
  848.             echo "
  849.             ";
  850.             $context['_iterated'] = true;
  851.             ++$context['loop']['index0'];
  852.             ++$context['loop']['index'];
  853.             $context['loop']['first'] = false;
  854.             if (isset($context['loop']['length'])) {
  855.                 --$context['loop']['revindex0'];
  856.                 --$context['loop']['revindex'];
  857.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  858.             }
  859.         }
  860.         if (!$context['_iterated']) {
  861.             // line 575
  862.             echo "                \"";
  863.             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.'575$this->source); })()), "request", [], "any"falsefalsefalse575), "schemeAndHttpHost", [], "any"falsefalsefalse575), "html"nulltrue);
  864.             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);
  865.             echo "\"
  866.             ";
  867.         }
  868.         $_parent $context['_parent'];
  869.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['img'], $context['_parent'], $context['loop']);
  870.         $context array_intersect_key($context$_parent) + $_parent;
  871.         // line 577
  872.         echo "        ],
  873.         \"description\": \"";
  874.         // line 578
  875.         echo twig_escape_filter($this->envtwig_slice($this->envtwig_replace_filter(((twig_get_attribute($this->env$this->source, ($context["Product"] ?? null), "description_list", [], "any"truetruefalse578)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["Product"] ?? null), "description_list", [], "any"falsefalsefalse578), 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.'578$this->source); })()), "description_detail", [], "any"falsefalsefalse578))) : (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.'578$this->source); })()), "description_detail", [], "any"falsefalsefalse578))), ["
  876. => """ " => ""]), 0300), "html"nulltrue);
  877.         echo "\",
  878.         ";
  879.         // line 579
  880.         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.'579$this->source); })()), "code_min", [], "any"falsefalsefalse579)) {
  881.             // line 580
  882.             echo "        \"sku\": \"";
  883.             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.'580$this->source); })()), "code_min", [], "any"falsefalsefalse580), "html"nulltrue);
  884.             echo "\",
  885.         ";
  886.         }
  887.         // line 582
  888.         echo "        \"offers\": {
  889.             \"@type\": \"Offer\",
  890.             \"url\": \"";
  891.         // line 584
  892.         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.'584$this->source); })()), "id", [], "any"falsefalsefalse584)]), "html"nulltrue);
  893.         echo "\",
  894.             \"priceCurrency\": \"";
  895.         // line 585
  896.         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.'585$this->source); })()), "currency", [], "any"falsefalsefalse585), "html"nulltrue);
  897.         echo "\",
  898.             \"price\": ";
  899.         // line 586
  900.         ((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.'586$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse586)) ? (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.'586$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse586), "html"nulltrue))) : (print (0)));
  901.         echo ",
  902.             \"availability\": \"";
  903.         // line 587
  904.         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.'587$this->source); })()), "stock_find", [], "any"falsefalsefalse587)) ? ("InStock") : ("OutOfStock"));
  905.         echo "\"
  906.         }
  907.     }
  908.     </script>
  909. ";
  910.         
  911.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  912.         
  913.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  914.     }
  915.     // line 594
  916.     public function block_main($context, array $blocks = [])
  917.     {
  918.         $macros $this->macros;
  919.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  920.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  921.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  922.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  923.         // line 595
  924.         echo "    <div class=\"ec-productRole\" style=\"margin-top:20px;\">
  925.         <div class=\"ec-grid2\">
  926.             <div class=\"ec-grid2__cell\">
  927.                 <div class=\"ec-sliderItemRole\">
  928. \t                ";
  929.         // line 600
  930.         echo "\t                <div class=\"ec-productRole__title\">
  931. \t                    <h2 class=\"ec-headingTitle\">";
  932.         // line 601
  933.         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.'601$this->source); })()), "name", [], "any"falsefalsefalse601), "html"nulltrue);
  934.         echo "</h2>
  935. \t                </div>
  936.                     ";
  937.         // line 603
  938.         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.'603$this->source); })()), "option_favorite_product", [], "any"falsefalsefalse603)) {
  939.             // line 604
  940.             echo "                     <div style=\"position:relative;top: 20px;left: 10px;z-index:100;\">
  941. \t\t\t\t\t\t";
  942.             // line 605
  943.             if (((isset($context["is_favorite"]) || array_key_exists("is_favorite"$context) ? $context["is_favorite"] : (function () { throw new RuntimeError('Variable "is_favorite" does not exist.'605$this->source); })()) == false)) {
  944.                 // line 606
  945.                 echo "                        <form action=\"";
  946.                 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.'606$this->source); })()), "id", [], "any"falsefalsefalse606)]), "html"nulltrue);
  947.                 echo "\" method=\"post\">
  948.                            <button type=\"submit\" id=\"favorite\" class=\"favorite\">&#9825;</button>
  949.                         </form>
  950.                         ";
  951.             } else {
  952.                 // line 610
  953.                 echo "                        <form action=\"";
  954.                 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.'610$this->source); })()), "id", [], "any"falsefalsefalse610)]), "html"nulltrue);
  955.                 echo "\" method=\"post\">
  956.                            <button type=\"submit\" id=\"favorite\" class=\"favorite\" style=\"color:red;\">&#9829;</button>
  957.                         </form>
  958.                         ";
  959.             }
  960.             // line 614
  961.             echo "                     </div>
  962.                     ";
  963.         }
  964.         // line 616
  965.         echo "                    <div class=\"item_visual\">
  966.                         ";
  967.         // line 617
  968.         $context['_parent'] = $context;
  969.         $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.'617$this->source); })()), "ProductImage", [], "any"falsefalsefalse617));
  970.         $context['_iterated'] = false;
  971.         $context['loop'] = [
  972.           'parent' => $context['_parent'],
  973.           'index0' => 0,
  974.           'index'  => 1,
  975.           'first'  => true,
  976.         ];
  977.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  978.             $length count($context['_seq']);
  979.             $context['loop']['revindex0'] = $length 1;
  980.             $context['loop']['revindex'] = $length;
  981.             $context['loop']['length'] = $length;
  982.             $context['loop']['last'] = === $length;
  983.         }
  984.         foreach ($context['_seq'] as $context["_key"] => $context["ProductImage"]) {
  985.             // line 618
  986.             echo "                            <div class=\"slide-item\"><img src=\"";
  987.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["ProductImage"], "save_image"), "html"nulltrue);
  988.             echo "\" alt=\"";
  989.             ((twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse618)) ? (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.'618$this->source); })()), "name", [], "any"falsefalsefalse618), "html"nulltrue))) : (print ("")));
  990.             echo "\" width=\"550\" height=\"550\" style=\"max-height: 400px;\"";
  991.             if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse618) > 1)) {
  992.                 echo " loading=\"lazy\"";
  993.             }
  994.             echo "></div>
  995.                         ";
  996.             $context['_iterated'] = true;
  997.             ++$context['loop']['index0'];
  998.             ++$context['loop']['index'];
  999.             $context['loop']['first'] = false;
  1000.             if (isset($context['loop']['length'])) {
  1001.                 --$context['loop']['revindex0'];
  1002.                 --$context['loop']['revindex'];
  1003.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  1004.             }
  1005.         }
  1006.         if (!$context['_iterated']) {
  1007.             // line 620
  1008.             echo "                            <div class=\"slide-item\"><img src=\"";
  1009.             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);
  1010.             echo "\" alt=\"";
  1011.             ((twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse620)) ? (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.'620$this->source); })()), "name", [], "any"falsefalsefalse620), "html"nulltrue))) : (print ("")));
  1012.             echo "\" width=\"550\" height=\"550\" style=\"max-height: 400px;\"></div>
  1013.                         ";
  1014.         }
  1015.         $_parent $context['_parent'];
  1016.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductImage'], $context['_parent'], $context['loop']);
  1017.         $context array_intersect_key($context$_parent) + $_parent;
  1018.         // line 622
  1019.         echo "                    </div>
  1020.                     <div class=\"item_nav\">
  1021.                         ";
  1022.         // line 624
  1023.         $context['_parent'] = $context;
  1024.         $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.'624$this->source); })()), "ProductImage", [], "any"falsefalsefalse624));
  1025.         $context['loop'] = [
  1026.           'parent' => $context['_parent'],
  1027.           'index0' => 0,
  1028.           'index'  => 1,
  1029.           'first'  => true,
  1030.         ];
  1031.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  1032.             $length count($context['_seq']);
  1033.             $context['loop']['revindex0'] = $length 1;
  1034.             $context['loop']['revindex'] = $length;
  1035.             $context['loop']['length'] = $length;
  1036.             $context['loop']['last'] = === $length;
  1037.         }
  1038.         foreach ($context['_seq'] as $context["_key"] => $context["ProductImage"]) {
  1039.             // line 625
  1040.             echo "                            <div class=\"slideThumb\" data-index=\"";
  1041.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse625), "html"nulltrue);
  1042.             echo "\"><img src=\"";
  1043.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["ProductImage"], "save_image"), "html"nulltrue);
  1044.             echo "\" alt=\"\" width=\"80\" height=\"80\" loading=\"lazy\"></div>
  1045.                         ";
  1046.             ++$context['loop']['index0'];
  1047.             ++$context['loop']['index'];
  1048.             $context['loop']['first'] = false;
  1049.             if (isset($context['loop']['length'])) {
  1050.                 --$context['loop']['revindex0'];
  1051.                 --$context['loop']['revindex'];
  1052.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  1053.             }
  1054.         }
  1055.         $_parent $context['_parent'];
  1056.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductImage'], $context['_parent'], $context['loop']);
  1057.         $context array_intersect_key($context$_parent) + $_parent;
  1058.         // line 627
  1059.         echo "                    </div>
  1060.                 </div>
  1061.             </div>
  1062.             <div class=\"ec-grid2__cell2\">
  1063.                 <div class=\"ec-productRole__profile\" >
  1064.                     ";
  1065.         // line 636
  1066.         echo "                    ";
  1067.         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.'636$this->source); })()), "ProductCategories", [], "any"falsefalsefalse636))) {
  1068.             // line 637
  1069.             echo "                        <div class=\"ec-productRole__category\" style=\"padding:10px 0;\">
  1070.                             ";
  1071.             // line 638
  1072.             $context['_parent'] = $context;
  1073.             $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.'638$this->source); })()), "ProductCategories", [], "any"falsefalsefalse638));
  1074.             foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
  1075.                 // line 639
  1076.                 echo "                                <ul>
  1077.                                     <li>
  1078.                                         ";
  1079.                 // line 641
  1080.                 $context['_parent'] = $context;
  1081.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse641), "path", [], "any"falsefalsefalse641));
  1082.                 $context['loop'] = [
  1083.                   'parent' => $context['_parent'],
  1084.                   'index0' => 0,
  1085.                   'index'  => 1,
  1086.                   'first'  => true,
  1087.                 ];
  1088.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  1089.                     $length count($context['_seq']);
  1090.                     $context['loop']['revindex0'] = $length 1;
  1091.                     $context['loop']['revindex'] = $length;
  1092.                     $context['loop']['length'] = $length;
  1093.                     $context['loop']['last'] = === $length;
  1094.                 }
  1095.                 foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
  1096.                     // line 642
  1097.                     echo "                                            <a href=\"";
  1098.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  1099.                     echo "?category_id=";
  1100.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Category"], "id", [], "any"falsefalsefalse642), "html"nulltrue);
  1101.                     echo "\">";
  1102.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Category"], "name", [], "any"falsefalsefalse642), "html"nulltrue);
  1103.                     echo "</a>";
  1104.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse642) == false)) {
  1105.                         // line 643
  1106.                         echo "                                            <span>></span>";
  1107.                     }
  1108.                     ++$context['loop']['index0'];
  1109.                     ++$context['loop']['index'];
  1110.                     $context['loop']['first'] = false;
  1111.                     if (isset($context['loop']['length'])) {
  1112.                         --$context['loop']['revindex0'];
  1113.                         --$context['loop']['revindex'];
  1114.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  1115.                     }
  1116.                 }
  1117.                 $_parent $context['_parent'];
  1118.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
  1119.                 $context array_intersect_key($context$_parent) + $_parent;
  1120.                 // line 645
  1121.                 echo "                                    </li>
  1122.                                 </ul>
  1123.                             ";
  1124.             }
  1125.             $_parent $context['_parent'];
  1126.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
  1127.             $context array_intersect_key($context$_parent) + $_parent;
  1128.             // line 648
  1129.             echo "                        </div>
  1130.                     ";
  1131.         }
  1132.         // line 650
  1133.         echo "                    ";
  1134.         // line 651
  1135.         echo "                    <div class=\"ec-productRole__price\">
  1136. \t\t\t\t\t\t<span style=\"color:black;font-size:15px;\">工事費込み価格</span>
  1137.                         ";
  1138.         // line 653
  1139.         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.'653$this->source); })()), "hasProductClass", [], "any"falsefalsefalse653)) {
  1140.             // line 654
  1141.             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.'654$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse654) == 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.'654$this->source); })()), "getPrice02IncTaxMax", [], "any"falsefalsefalse654))) {
  1142.                 // line 655
  1143.                 echo "                                <div class=\"ec-price\">
  1144.                                     <span class=\"ec-price__price price02-default\">";
  1145.                 // line 656
  1146.                 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.'656$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse656)), "html"nulltrue);
  1147.                 echo "</span>
  1148.                                     <span class=\"ec-price__tax\">(";
  1149.                 // line 657
  1150.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html"nulltrue);
  1151.                 echo ")~</span>
  1152.                                 </div>
  1153.                             ";
  1154.             } else {
  1155.                 // line 660
  1156.                 echo "                                <div class=\"ec-price\">
  1157.                                     <span class=\"ec-price__price price02-default\">";
  1158.                 // line 661
  1159.                 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.'661$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse661)), "html"nulltrue);
  1160.                 echo " ~ ";
  1161.                 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.'661$this->source); })()), "getPrice02IncTaxMax", [], "any"falsefalsefalse661)), "html"nulltrue);
  1162.                 echo "</span>
  1163.                                     <span class=\"ec-price__tax\">(";
  1164.                 // line 662
  1165.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html"nulltrue);
  1166.                 echo ")</span>
  1167.                                 </div>
  1168.                             ";
  1169.             }
  1170.             // line 665
  1171.             echo "                        ";
  1172.         } else {
  1173.             // line 666
  1174.             echo "                            <div class=\"ec-price\">
  1175.                                 <span class=\"ec-price__price\">";
  1176.             // line 667
  1177.             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.'667$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse667)), "html"nulltrue);
  1178.             echo "</span>
  1179.                                     <span class=\"ec-price__tax\">(";
  1180.             // line 668
  1181.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html"nulltrue);
  1182.             echo ")~</span>
  1183.                             </div>
  1184.                         ";
  1185.         }
  1186.         // line 671
  1187.         echo "                    </div>
  1188.                     ";
  1189.         // line 673
  1190.         echo "                    <ul class=\"ec-productRole__tags\">
  1191.                         ";
  1192.         // line 674
  1193.         $context['_parent'] = $context;
  1194.         $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.'674$this->source); })()), "Tags", [], "any"falsefalsefalse674));
  1195.         foreach ($context['_seq'] as $context["_key"] => $context["Tag"]) {
  1196.             // line 675
  1197.             echo "                            <li class=\"ec-productRole__tag tag_";
  1198.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Tag"], "id", [], "any"falsefalsefalse675), "html"nulltrue);
  1199.             echo "\">";
  1200.             echo twig_escape_filter($this->env$context["Tag"], "html"nulltrue);
  1201.             echo "</li>
  1202.                         ";
  1203.         }
  1204.         $_parent $context['_parent'];
  1205.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Tag'], $context['_parent'], $context['loop']);
  1206.         $context array_intersect_key($context$_parent) + $_parent;
  1207.         // line 677
  1208.         echo "                    </ul>
  1209.                     ";
  1210.         // line 679
  1211.         echo "                    ";
  1212.         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.'679$this->source); })()), "code_min", [], "any"falsefalsefalse679))) {
  1213.             // line 680
  1214.             echo "                        <div class=\"ec-productRole__code\">
  1215.                             ";
  1216.             // line 681
  1217.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("商品コード"), "html"nulltrue);
  1218.             echo ": <span class=\"product-code-default\">";
  1219.             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.'681$this->source); })()), "code_min", [], "any"falsefalsefalse681), "html"nulltrue);
  1220.             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.'681$this->source); })()), "code_min", [], "any"falsefalsefalse681) != 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.'681$this->source); })()), "code_max", [], "any"falsefalsefalse681))) {
  1221.                 echo " ~ ";
  1222.                 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.'681$this->source); })()), "code_max", [], "any"falsefalsefalse681), "html"nulltrue);
  1223.             }
  1224.             echo "</span>
  1225.                         </div>
  1226.                     ";
  1227.         }
  1228.         // line 684
  1229.         echo "
  1230.                     <div class=\"ec-productRole__description\">
  1231. \t\t\t\t        <div class=\"ec-rectHeading\">
  1232. \t\t\t\t            <h4>製品情報</h4>
  1233. \t\t\t\t        </div>
  1234. \t\t\t\t\t\t";
  1235.         // line 689
  1236.         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.'689$this->source); })()), "sales_infomation", [], "any"falsefalsefalse689));
  1237.         echo "
  1238.                     </div>
  1239. \t\t\t\t\t<div class=\"card card-danger\" style=\"clear:both;margin:1px;\">
  1240. \t\t\t\t\t  <div class=\"card-header\">
  1241. \t\t\t\t\t    <h3 class=\"card-title\">見積シミュレーション</h3>
  1242. \t\t\t\t\t  </div>
  1243. \t\t\t\t\t  <div class=\"card-body p-2\">
  1244. \t\t\t\t\t";
  1245.         // line 699
  1246.         $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.'699$this->source); })()), "id", [], "any"falsefalsefalse699), "related_name1");
  1247.         // line 700
  1248.         echo "\t\t\t\t\t\t";
  1249.         $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.'700$this->source); })()), "id", [], "any"falsefalsefalse700), "related_name2");
  1250.         // line 701
  1251.         echo "\t\t\t\t\t\t";
  1252.         $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.'701$this->source); })()), "id", [], "any"falsefalsefalse701), "related_name3");
  1253.         // line 702
  1254.         echo "\t\t\t\t\t\t";
  1255.         $context["hasRelated"] = (((((isset($context["type1"]) || array_key_exists("type1"$context) ? $context["type1"] : (function () { throw new RuntimeError('Variable "type1" does not exist.'702$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.'702$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.'702$this->source); })()))) || ((        // line 703
  1256. (isset($context["type2"]) || array_key_exists("type2"$context) ? $context["type2"] : (function () { throw new RuntimeError('Variable "type2" does not exist.'703$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.'703$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.'703$this->source); })())))) || ((        // line 704
  1257. (isset($context["type3"]) || array_key_exists("type3"$context) ? $context["type3"] : (function () { throw new RuntimeError('Variable "type3" does not exist.'704$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.'704$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.'704$this->source); })()))));
  1258.         // line 705
  1259.         echo "\t\t\t\t\t\t";
  1260.         if ((isset($context["hasRelated"]) || array_key_exists("hasRelated"$context) ? $context["hasRelated"] : (function () { throw new RuntimeError('Variable "hasRelated" does not exist.'705$this->source); })())) {
  1261.             // line 706
  1262.             echo "\t\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>
  1263. \t\t\t\t\t\t";
  1264.         }
  1265.         // line 708
  1266.         echo "\t\t\t\t\t\t";
  1267.         if ((((isset($context["type1"]) || array_key_exists("type1"$context) ? $context["type1"] : (function () { throw new RuntimeError('Variable "type1" does not exist.'708$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.'708$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.'708$this->source); })())))) {
  1268.             // line 709
  1269.             echo "\t\t\t\t\t    <div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  1270. \t\t\t\t\t\t  <label class=\"col-4 col-form-label mt-2\">";
  1271.             // line 710
  1272.             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.'710$this->source); })()), "html"nulltrue);
  1273.             echo "</label>
  1274. \t\t\t\t\t\t  <div class=\"col-8 mt-2\">
  1275. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  1276. \t\t\t\t\t\t      ";
  1277.             // line 713
  1278.             $context['_parent'] = $context;
  1279.             $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.'713$this->source); })()));
  1280.             foreach ($context['_seq'] as $context["rp_id"] => $context["rp_name"]) {
  1281.                 // line 714
  1282.                 echo "\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  1283. \t\t\t\t\t\t        <input type=\"radio\" name=\"rp1\" id=\"rp1_";
  1284.                 // line 715
  1285.                 echo twig_escape_filter($this->env$context["rp_id"], "html"nulltrue);
  1286.                 echo "\" value=\"";
  1287.                 echo twig_escape_filter($this->env$context["rp_name"], "html"nulltrue);
  1288.                 echo "\" ";
  1289.                 if (((isset($context["base_select1"]) || array_key_exists("base_select1"$context) ? $context["base_select1"] : (function () { throw new RuntimeError('Variable "base_select1" does not exist.'715$this->source); })()) == $context["rp_name"])) {
  1290.                     echo "checked";
  1291.                 }
  1292.                 echo " onclick=\"location.href='/products/detail/";
  1293.                 echo twig_escape_filter($this->env$context["rp_id"], "html"nulltrue);
  1294.                 echo "';\"><label for=\"rp1_";
  1295.                 echo twig_escape_filter($this->env$context["rp_id"], "html"nulltrue);
  1296.                 echo "\">";
  1297.                 echo twig_escape_filter($this->env$context["rp_name"], "html"nulltrue);
  1298.                 echo "</label>
  1299. \t\t\t\t\t\t      </div>
  1300. \t\t\t\t\t\t\t  ";
  1301.             }
  1302.             $_parent $context['_parent'];
  1303.             unset($context['_seq'], $context['_iterated'], $context['rp_id'], $context['rp_name'], $context['_parent'], $context['loop']);
  1304.             $context array_intersect_key($context$_parent) + $_parent;
  1305.             // line 718
  1306.             echo "\t\t\t\t\t\t    </div>
  1307. \t\t\t\t\t\t  </div>
  1308. \t\t\t\t\t    </div>
  1309.                         ";
  1310.         }
  1311.         // line 722
  1312.         echo "
  1313. \t\t\t\t\t\t";
  1314.         // line 723
  1315.         if ((((isset($context["type2"]) || array_key_exists("type2"$context) ? $context["type2"] : (function () { throw new RuntimeError('Variable "type2" does not exist.'723$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.'723$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.'723$this->source); })())))) {
  1316.             // line 724
  1317.             echo "\t\t\t\t\t    <div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  1318. \t\t\t\t\t\t  <label class=\"col-4 col-form-label mt-2\">";
  1319.             // line 725
  1320.             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.'725$this->source); })()), "html"nulltrue);
  1321.             echo "</label>
  1322. \t\t\t\t\t\t  <div class=\"col-8 mt-2\">
  1323. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  1324. \t\t\t\t\t\t      ";
  1325.             // line 728
  1326.             $context['_parent'] = $context;
  1327.             $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.'728$this->source); })()));
  1328.             foreach ($context['_seq'] as $context["rp_id"] => $context["rp_name"]) {
  1329.                 // line 729
  1330.                 echo "\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  1331. \t\t\t\t\t\t        <input type=\"radio\" name=\"rp2\" id=\"rp2_";
  1332.                 // line 730
  1333.                 echo twig_escape_filter($this->env$context["rp_id"], "html"nulltrue);
  1334.                 echo "\" value=\"";
  1335.                 echo twig_escape_filter($this->env$context["rp_name"], "html"nulltrue);
  1336.                 echo "\" ";
  1337.                 if (((isset($context["base_select2"]) || array_key_exists("base_select2"$context) ? $context["base_select2"] : (function () { throw new RuntimeError('Variable "base_select2" does not exist.'730$this->source); })()) == $context["rp_name"])) {
  1338.                     echo "checked";
  1339.                 }
  1340.                 echo " onclick=\"location.href='/products/detail/";
  1341.                 echo twig_escape_filter($this->env$context["rp_id"], "html"nulltrue);
  1342.                 echo "';\"><label for=\"rp2_";
  1343.                 echo twig_escape_filter($this->env$context["rp_id"], "html"nulltrue);
  1344.                 echo "\">";
  1345.                 echo twig_escape_filter($this->env$context["rp_name"], "html"nulltrue);
  1346.                 echo "</label>
  1347. \t\t\t\t\t\t      </div>
  1348. \t\t\t\t\t\t\t  ";
  1349.             }
  1350.             $_parent $context['_parent'];
  1351.             unset($context['_seq'], $context['_iterated'], $context['rp_id'], $context['rp_name'], $context['_parent'], $context['loop']);
  1352.             $context array_intersect_key($context$_parent) + $_parent;
  1353.             // line 733
  1354.             echo "\t\t\t\t\t\t    </div>
  1355. \t\t\t\t\t\t  </div>
  1356. \t\t\t\t\t    </div>
  1357.                         ";
  1358.         }
  1359.         // line 737
  1360.         echo "
  1361. \t\t\t\t\t\t";
  1362.         // line 738
  1363.         if ((((isset($context["type3"]) || array_key_exists("type3"$context) ? $context["type3"] : (function () { throw new RuntimeError('Variable "type3" does not exist.'738$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.'738$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.'738$this->source); })())))) {
  1364.             // line 739
  1365.             echo "\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 mt-2\">";
  1367.             // line 740
  1368.             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.'740$this->source); })()), "html"nulltrue);
  1369.             echo "</label>
  1370. \t\t\t\t\t\t  <div class=\"col-8 mt-2\">
  1371. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  1372. \t\t\t\t\t\t      ";
  1373.             // line 743
  1374.             $context['_parent'] = $context;
  1375.             $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.'743$this->source); })()));
  1376.             foreach ($context['_seq'] as $context["rp_id"] => $context["rp_name"]) {
  1377.                 // line 744
  1378.                 echo "\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  1379. \t\t\t\t\t\t        <input type=\"radio\" name=\"rp3\" id=\"rp3_";
  1380.                 // line 745
  1381.                 echo twig_escape_filter($this->env$context["rp_id"], "html"nulltrue);
  1382.                 echo "\" value=\"";
  1383.                 echo twig_escape_filter($this->env$context["rp_name"], "html"nulltrue);
  1384.                 echo "\" ";
  1385.                 if (((isset($context["base_select3"]) || array_key_exists("base_select3"$context) ? $context["base_select3"] : (function () { throw new RuntimeError('Variable "base_select3" does not exist.'745$this->source); })()) == $context["rp_name"])) {
  1386.                     echo "checked";
  1387.                 }
  1388.                 echo " onclick=\"location.href='/products/detail/";
  1389.                 echo twig_escape_filter($this->env$context["rp_id"], "html"nulltrue);
  1390.                 echo "';\"><label for=\"rp3_";
  1391.                 echo twig_escape_filter($this->env$context["rp_id"], "html"nulltrue);
  1392.                 echo "\">";
  1393.                 echo twig_escape_filter($this->env$context["rp_name"], "html"nulltrue);
  1394.                 echo "</label>
  1395. \t\t\t\t\t\t      </div>
  1396. \t\t\t\t\t\t\t  ";
  1397.             }
  1398.             $_parent $context['_parent'];
  1399.             unset($context['_seq'], $context['_iterated'], $context['rp_id'], $context['rp_name'], $context['_parent'], $context['loop']);
  1400.             $context array_intersect_key($context$_parent) + $_parent;
  1401.             // line 748
  1402.             echo "\t\t\t\t\t\t    </div>
  1403. \t\t\t\t\t\t  </div>
  1404. \t\t\t\t\t    </div>
  1405.                         ";
  1406.         }
  1407.         // line 752
  1408.         echo "
  1409. \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>
  1410.                         ";
  1411.         // line 757
  1412.         if ((((isset($context["color"]) || array_key_exists("color"$context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.'757$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.'757$this->source); })()))) && (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.'757$this->source); })()), "SaleType", [], "any"falsefalsefalse757), "id", [], "any"falsefalsefalse757) != 3))) {
  1413.             // line 758
  1414.             echo "\t\t\t\t\t    <div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  1415. \t\t\t\t\t\t  <label class=\"col-4 col-form-label mt-2\">カラー</label>
  1416. \t\t\t\t\t\t  <div class=\"col-8 mt-2\">
  1417. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  1418. \t\t\t\t\t\t    ";
  1419.             // line 762
  1420.             $context["idx"] = 0;
  1421.             // line 763
  1422.             echo "\t\t\t\t\t\t    ";
  1423.             $context['_parent'] = $context;
  1424.             $context['_seq'] = twig_ensure_traversable((isset($context["color"]) || array_key_exists("color"$context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.'763$this->source); })()));
  1425.             foreach ($context['_seq'] as $context["_key"] => $context["cc"]) {
  1426.                 // line 764
  1427.                 echo "\t\t\t\t\t\t      ";
  1428.                 if (($context["cc"] && twig_get_attribute($this->env$this->source$context["cc"], "name", [], "array"falsefalsefalse764))) {
  1429.                     // line 765
  1430.                     echo "\t\t\t\t\t\t      ";
  1431.                     $context["idx"] = ((isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'765$this->source); })()) + 1);
  1432.                     // line 766
  1433.                     echo "\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  1434. \t\t\t\t\t\t        <input type=\"radio\" name=\"color\" id=\"cc_";
  1435.                     // line 767
  1436.                     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.'767$this->source); })()), "html"nulltrue);
  1437.                     echo "\" value=\"";
  1438.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cc"], "name", [], "array"falsefalsefalse767), "html"nulltrue);
  1439.                     echo "\" ";
  1440.                     if ((((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'767$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.'767$this->source); })()), "pc", [], "any"falsefalsefalse767) == twig_get_attribute($this->env$this->source$context["cc"], "name", [], "array"falsefalsefalse767))) || (twig_length_filter($this->env, (isset($context["color"]) || array_key_exists("color"$context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.'767$this->source); })())) == 1))) {
  1441.                         echo "checked";
  1442.                     }
  1443.                     echo " onclick=\"mitsumori_simulation('pc','cc_";
  1444.                     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.'767$this->source); })()), "html"nulltrue);
  1445.                     echo "');\"><label for=\"cc_";
  1446.                     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.'767$this->source); })()), "html"nulltrue);
  1447.                     echo "\">";
  1448.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cc"], "name", [], "array"falsefalsefalse767), "html"nulltrue);
  1449.                     echo "</label>
  1450. \t\t\t\t\t\t      </div>
  1451. \t\t\t\t\t\t      ";
  1452.                 }
  1453.                 // line 770
  1454.                 echo "\t\t\t\t\t\t\t";
  1455.             }
  1456.             $_parent $context['_parent'];
  1457.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cc'], $context['_parent'], $context['loop']);
  1458.             $context array_intersect_key($context$_parent) + $_parent;
  1459.             // line 771
  1460.             echo "\t\t\t\t\t\t    </div>
  1461. \t\t\t\t\t\t  </div>
  1462. \t\t\t\t\t    </div>
  1463.                         ";
  1464.         }
  1465.         // line 775
  1466.         echo "                        ";
  1467.         if ((((isset($context["p_w"]) || array_key_exists("p_w"$context) ? $context["p_w"] : (function () { throw new RuntimeError('Variable "p_w" does not exist.'775$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.'775$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.'775$this->source); })())) != ""))) {
  1468.             // line 776
  1469.             echo "\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  1470. \t\t\t\t\t\t  <label class=\"col-4 col-form-label\">幅</label>
  1471. \t\t\t\t\t\t  <div class=\"col-8\">
  1472. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  1473. \t\t\t\t\t\t    ";
  1474.             // line 780
  1475.             $context["idx"] = 0;
  1476.             // line 781
  1477.             echo "\t\t\t\t\t\t    ";
  1478.             $context['_parent'] = $context;
  1479.             $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.'781$this->source); })()));
  1480.             foreach ($context['_seq'] as $context["_key"] => $context["pw"]) {
  1481.                 // line 782
  1482.                 echo "\t\t\t\t\t\t      ";
  1483.                 if ($context["pw"]) {
  1484.                     // line 783
  1485.                     echo "\t\t\t\t\t\t      ";
  1486.                     $context["idx"] = ((isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'783$this->source); })()) + 1);
  1487.                     // line 784
  1488.                     echo "\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  1489. \t\t\t\t\t\t        <input type=\"radio\" name=\"pw\" id=\"pw_";
  1490.                     // line 785
  1491.                     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.'785$this->source); })()), "html"nulltrue);
  1492.                     echo "\" value=\"";
  1493.                     echo twig_escape_filter($this->env$context["pw"], "html"nulltrue);
  1494.                     echo "\" ";
  1495.                     if ((((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'785$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.'785$this->source); })()), "pw", [], "any"falsefalsefalse785) == $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.'785$this->source); })())) == 1))) {
  1496.                         echo "checked";
  1497.                     }
  1498.                     echo " onclick=\"mitsumori_simulation('pw','pw_";
  1499.                     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.'785$this->source); })()), "html"nulltrue);
  1500.                     echo "');\"><label for=\"pw_";
  1501.                     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.'785$this->source); })()), "html"nulltrue);
  1502.                     echo "\">";
  1503.                     echo twig_escape_filter($this->env$context["pw"], "html"nulltrue);
  1504.                     echo "</label>
  1505. \t\t\t\t\t\t      </div>
  1506. \t\t\t\t\t\t      ";
  1507.                 }
  1508.                 // line 788
  1509.                 echo "\t\t\t\t\t\t\t";
  1510.             }
  1511.             $_parent $context['_parent'];
  1512.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pw'], $context['_parent'], $context['loop']);
  1513.             $context array_intersect_key($context$_parent) + $_parent;
  1514.             // line 789
  1515.             echo "\t\t\t\t\t\t    </div>
  1516. \t\t\t\t\t\t  </div>
  1517. \t\t\t\t\t\t</div>
  1518.                         ";
  1519.         }
  1520.         // line 793
  1521.         echo "                        ";
  1522.         if ((((isset($context["p_d"]) || array_key_exists("p_d"$context) ? $context["p_d"] : (function () { throw new RuntimeError('Variable "p_d" does not exist.'793$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.'793$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.'793$this->source); })())) != ""))) {
  1523.             // line 794
  1524.             echo "\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  1525. \t\t\t\t\t\t  <label class=\"col-4 col-form-label\">奥行き</label>
  1526. \t\t\t\t\t\t  <div class=\"col-8\">
  1527. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  1528. \t\t\t\t\t\t    ";
  1529.             // line 798
  1530.             $context["idx"] = 0;
  1531.             // line 799
  1532.             echo "\t\t\t\t\t\t    ";
  1533.             $context['_parent'] = $context;
  1534.             $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.'799$this->source); })()));
  1535.             foreach ($context['_seq'] as $context["_key"] => $context["pd"]) {
  1536.                 // line 800
  1537.                 echo "\t\t\t\t\t\t      ";
  1538.                 if ($context["pd"]) {
  1539.                     // line 801
  1540.                     echo "\t\t\t\t\t\t      ";
  1541.                     $context["idx"] = ((isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'801$this->source); })()) + 1);
  1542.                     // line 802
  1543.                     echo "\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  1544. \t\t\t\t\t\t        <input type=\"radio\" name=\"pd\" id=\"pd_";
  1545.                     // line 803
  1546.                     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.'803$this->source); })()), "html"nulltrue);
  1547.                     echo "\" value=\"";
  1548.                     echo twig_escape_filter($this->env$context["pd"], "html"nulltrue);
  1549.                     echo "\" ";
  1550.                     if ((((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'803$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.'803$this->source); })()), "pd", [], "any"falsefalsefalse803) == $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.'803$this->source); })())) == 1))) {
  1551.                         echo "checked";
  1552.                     }
  1553.                     echo " onclick=\"mitsumori_simulation('pd','pd_";
  1554.                     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.'803$this->source); })()), "html"nulltrue);
  1555.                     echo "');\"><label for=\"pd_";
  1556.                     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.'803$this->source); })()), "html"nulltrue);
  1557.                     echo "\">";
  1558.                     echo twig_escape_filter($this->env$context["pd"], "html"nulltrue);
  1559.                     echo "</label>
  1560. \t\t\t\t\t\t      </div>
  1561. \t\t\t\t\t\t      ";
  1562.                 }
  1563.                 // line 806
  1564.                 echo "\t\t\t\t\t\t\t";
  1565.             }
  1566.             $_parent $context['_parent'];
  1567.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pd'], $context['_parent'], $context['loop']);
  1568.             $context array_intersect_key($context$_parent) + $_parent;
  1569.             // line 807
  1570.             echo "\t\t\t\t\t\t    </div>
  1571. \t\t\t\t\t\t  </div>
  1572. \t\t\t\t\t\t</div>
  1573.                         ";
  1574.         }
  1575.         // line 811
  1576.         echo "                        ";
  1577.         if ((((isset($context["p_h"]) || array_key_exists("p_h"$context) ? $context["p_h"] : (function () { throw new RuntimeError('Variable "p_h" does not exist.'811$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.'811$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.'811$this->source); })())) != ""))) {
  1578.             // line 812
  1579.             echo "\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  1580. \t\t\t\t\t\t  <label class=\"col-4 col-form-label\">高さ</label>
  1581. \t\t\t\t\t\t  <div class=\"col-8\">
  1582. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  1583. \t\t\t\t\t\t    ";
  1584.             // line 816
  1585.             $context["idx"] = 0;
  1586.             // line 817
  1587.             echo "\t\t\t\t\t\t    ";
  1588.             $context['_parent'] = $context;
  1589.             $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.'817$this->source); })()));
  1590.             foreach ($context['_seq'] as $context["_key"] => $context["ph"]) {
  1591.                 // line 818
  1592.                 echo "\t\t\t\t\t\t      ";
  1593.                 if ($context["ph"]) {
  1594.                     // line 819
  1595.                     echo "\t\t\t\t\t\t      ";
  1596.                     $context["idx"] = ((isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'819$this->source); })()) + 1);
  1597.                     // line 820
  1598.                     echo "\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  1599. \t\t\t\t\t\t        <input type=\"radio\" name=\"ph\" id=\"ph_";
  1600.                     // line 821
  1601.                     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.'821$this->source); })()), "html"nulltrue);
  1602.                     echo "\" value=\"";
  1603.                     echo twig_escape_filter($this->env$context["ph"], "html"nulltrue);
  1604.                     echo "\" ";
  1605.                     if ((((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'821$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.'821$this->source); })()), "ph", [], "any"falsefalsefalse821) == $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.'821$this->source); })())) == 1))) {
  1606.                         echo "checked";
  1607.                     }
  1608.                     echo " onclick=\"mitsumori_simulation('ph','ph_";
  1609.                     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.'821$this->source); })()), "html"nulltrue);
  1610.                     echo "');\"><label for=\"ph_";
  1611.                     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.'821$this->source); })()), "html"nulltrue);
  1612.                     echo "\">";
  1613.                     echo twig_escape_filter($this->env$context["ph"], "html"nulltrue);
  1614.                     echo "</label>
  1615. \t\t\t\t\t\t      </div>
  1616. \t\t\t\t\t\t      ";
  1617.                 }
  1618.                 // line 824
  1619.                 echo "\t\t\t\t\t\t\t";
  1620.             }
  1621.             $_parent $context['_parent'];
  1622.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ph'], $context['_parent'], $context['loop']);
  1623.             $context array_intersect_key($context$_parent) + $_parent;
  1624.             // line 825
  1625.             echo "\t\t\t\t\t\t    </div>
  1626. \t\t\t\t\t\t  </div>
  1627. \t\t\t\t\t\t</div>
  1628.                         ";
  1629.         }
  1630.         // line 829
  1631.         echo "                        ";
  1632.         if ((((isset($context["p_m"]) || array_key_exists("p_m"$context) ? $context["p_m"] : (function () { throw new RuntimeError('Variable "p_m" does not exist.'829$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.'829$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.'829$this->source); })())) != ""))) {
  1633.             // line 830
  1634.             echo "\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  1635. \t\t\t\t\t\t  <label class=\"col-4 col-form-label\">素材</label>
  1636. \t\t\t\t\t\t  <div class=\"col-8\">
  1637. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  1638. \t\t\t\t\t\t    ";
  1639.             // line 834
  1640.             $context["idx"] = 0;
  1641.             // line 835
  1642.             echo "\t\t\t\t\t\t    ";
  1643.             $context['_parent'] = $context;
  1644.             $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.'835$this->source); })()));
  1645.             foreach ($context['_seq'] as $context["_key"] => $context["pm"]) {
  1646.                 // line 836
  1647.                 echo "\t\t\t\t\t\t      ";
  1648.                 if ($context["pm"]) {
  1649.                     // line 837
  1650.                     echo "\t\t\t\t\t\t      ";
  1651.                     $context["idx"] = ((isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'837$this->source); })()) + 1);
  1652.                     // line 838
  1653.                     echo "\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  1654. \t\t\t\t\t\t        <input type=\"radio\" name=\"pm\" id=\"pm_";
  1655.                     // line 839
  1656.                     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.'839$this->source); })()), "html"nulltrue);
  1657.                     echo "\" value=\"";
  1658.                     echo twig_escape_filter($this->env$context["pm"], "html"nulltrue);
  1659.                     echo "\" ";
  1660.                     if ((((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'839$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.'839$this->source); })()), "pm", [], "any"falsefalsefalse839) == $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.'839$this->source); })())) == 1))) {
  1661.                         echo "checked";
  1662.                     }
  1663.                     echo " onclick=\"mitsumori_simulation('pm','pm_";
  1664.                     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.'839$this->source); })()), "html"nulltrue);
  1665.                     echo "');\"><label for=\"pm_";
  1666.                     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.'839$this->source); })()), "html"nulltrue);
  1667.                     echo "\">";
  1668.                     echo twig_escape_filter($this->env$context["pm"], "html"nulltrue);
  1669.                     echo "</label>
  1670. \t\t\t\t\t\t      </div>
  1671. \t\t\t\t\t\t      ";
  1672.                 }
  1673.                 // line 842
  1674.                 echo "\t\t\t\t\t\t\t";
  1675.             }
  1676.             $_parent $context['_parent'];
  1677.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pm'], $context['_parent'], $context['loop']);
  1678.             $context array_intersect_key($context$_parent) + $_parent;
  1679.             // line 843
  1680.             echo "\t\t\t\t\t\t    </div>
  1681. \t\t\t\t\t\t  </div>
  1682. \t\t\t\t\t\t</div>
  1683.                         ";
  1684.         }
  1685.         // line 847
  1686.         echo "
  1687. \t\t\t\t\t\t<!-- 1: 施工見積(通常) → 幅/奥行/高さ/素材/カラーは上部の共通ブロックで表示済み -->
  1688. \t\t\t\t\t\t";
  1689.         // line 849
  1690.         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.'849$this->source); })()), "SaleType", [], "any"falsefalsefalse849), "id", [], "any"falsefalsefalse849) == 1)) {
  1691.             // line 850
  1692.             echo "\t\t\t\t\t\t";
  1693.         }
  1694.         // line 851
  1695.         echo "
  1696. \t\t\t\t\t\t<!-- 2: 施工見積(補助金・窓) -->
  1697. \t\t\t\t\t\t";
  1698.         // line 853
  1699.         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.'853$this->source); })()), "SaleType", [], "any"falsefalsefalse853), "id", [], "any"falsefalsefalse853) == 2)) {
  1700.             // line 854
  1701.             echo "
  1702. \t\t\t\t\t\t\t";
  1703.             // line 856
  1704.             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)\">
  1705. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">窓サイズ</label>
  1706. \t\t\t\t\t\t\t  <div class=\"col-4\">
  1707. \t\t\t\t\t\t\t    <div class=\"input-group\">
  1708. \t\t\t\t\t\t\t      <span class=\"input-group-text\">窓幅</span>
  1709. \t\t\t\t\t\t\t      <input type=\"number\" name=\"mado_w\" id=\"mado_w\" class=\"form-control\" value=\"";
  1710.             // line 861
  1711.             echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, ($context["mitsumori_json"] ?? null), "mado_w", [], "any"truetruefalse861)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["mitsumori_json"] ?? null), "mado_w", [], "any"falsefalsefalse861), "")) : ("")), "html"nulltrue);
  1712.             echo "\" placeholder=\"例: 90\" min=\"1\" onchange=\"mitsumori_simulation('mado_w','mado_w');\">
  1713. \t\t\t\t\t\t\t      <span class=\"input-group-text\">cm</span>
  1714. \t\t\t\t\t\t\t    </div>
  1715. \t\t\t\t\t\t\t  </div>
  1716. \t\t\t\t\t\t\t  <div class=\"col-4\">
  1717. \t\t\t\t\t\t\t    <div class=\"input-group\">
  1718. \t\t\t\t\t\t\t      <span class=\"input-group-text\">窓高さ</span>
  1719. \t\t\t\t\t\t\t      <input type=\"number\" name=\"mado_h\" id=\"mado_h\" class=\"form-control\" value=\"";
  1720.             // line 868
  1721.             echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, ($context["mitsumori_json"] ?? null), "mado_h", [], "any"truetruefalse868)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["mitsumori_json"] ?? null), "mado_h", [], "any"falsefalsefalse868), "")) : ("")), "html"nulltrue);
  1722.             echo "\" placeholder=\"例: 110\" min=\"1\" onchange=\"mitsumori_simulation('mado_h','mado_h');\">
  1723. \t\t\t\t\t\t\t      <span class=\"input-group-text\">cm</span>
  1724. \t\t\t\t\t\t\t    </div>
  1725. \t\t\t\t\t\t\t  </div>
  1726. \t\t\t\t\t\t\t</div>
  1727. \t\t\t\t\t\t\t";
  1728.             // line 875
  1729.             echo "\t\t\t\t\t\t\t";
  1730.             if ((((isset($context["p_d"]) || array_key_exists("p_d"$context) ? $context["p_d"] : (function () { throw new RuntimeError('Variable "p_d" does not exist.'875$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.'875$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.'875$this->source); })())) != ""))) {
  1731.                 // line 876
  1732.                 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)\">
  1733. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">窓タイプ</label>
  1734. \t\t\t\t\t\t\t  <div class=\"col-8\">
  1735. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  1736. \t\t\t\t\t\t\t    ";
  1737.                 // line 880
  1738.                 $context["idx"] = 0;
  1739.                 // line 881
  1740.                 echo "\t\t\t\t\t\t\t    ";
  1741.                 $context['_parent'] = $context;
  1742.                 $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.'881$this->source); })()));
  1743.                 foreach ($context['_seq'] as $context["_key"] => $context["pd_val"]) {
  1744.                     // line 882
  1745.                     echo "\t\t\t\t\t\t\t      ";
  1746.                     if ($context["pd_val"]) {
  1747.                         // line 883
  1748.                         echo "\t\t\t\t\t\t\t      ";
  1749.                         $context["idx"] = ((isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'883$this->source); })()) + 1);
  1750.                         // line 884
  1751.                         echo "\t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  1752. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"mado_type\" id=\"mado_type_";
  1753.                         // line 885
  1754.                         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.'885$this->source); })()), "html"nulltrue);
  1755.                         echo "\" value=\"";
  1756.                         echo twig_escape_filter($this->env$context["pd_val"], "html"nulltrue);
  1757.                         echo "\"
  1758. \t\t\t\t\t\t\t          ";
  1759.                         // line 886
  1760.                         if ((((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'886$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.'886$this->source); })()), "pd", [], "any"falsefalsefalse886) == $context["pd_val"])) || (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.'886$this->source); })())) == 1))) {
  1761.                             echo "checked";
  1762.                         }
  1763.                         // line 887
  1764.                         echo "\t\t\t\t\t\t\t          onclick=\"mitsumori_simulation('pd','mado_type_";
  1765.                         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.'887$this->source); })()), "html"nulltrue);
  1766.                         echo "');\">
  1767. \t\t\t\t\t\t\t        <label for=\"mado_type_";
  1768.                         // line 888
  1769.                         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.'888$this->source); })()), "html"nulltrue);
  1770.                         echo "\">";
  1771.                         echo twig_escape_filter($this->env$context["pd_val"], "html"nulltrue);
  1772.                         echo "</label>
  1773. \t\t\t\t\t\t\t      </div>
  1774. \t\t\t\t\t\t\t      ";
  1775.                     }
  1776.                     // line 891
  1777.                     echo "\t\t\t\t\t\t\t    ";
  1778.                 }
  1779.                 $_parent $context['_parent'];
  1780.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pd_val'], $context['_parent'], $context['loop']);
  1781.                 $context array_intersect_key($context$_parent) + $_parent;
  1782.                 // line 892
  1783.                 echo "\t\t\t\t\t\t\t    </div>
  1784. \t\t\t\t\t\t\t  </div>
  1785. \t\t\t\t\t\t\t</div>
  1786. \t\t\t\t\t\t\t";
  1787.             }
  1788.             // line 896
  1789.             echo "
  1790. \t\t\t\t\t\t\t";
  1791.             // line 898
  1792.             echo "\t\t\t\t\t\t\t";
  1793.             if ((((isset($context["p_m"]) || array_key_exists("p_m"$context) ? $context["p_m"] : (function () { throw new RuntimeError('Variable "p_m" does not exist.'898$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.'898$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.'898$this->source); })())) != ""))) {
  1794.                 // line 899
  1795.                 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)\">
  1796. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">ガラスタイプ</label>
  1797. \t\t\t\t\t\t\t  <div class=\"col-8\">
  1798. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  1799. \t\t\t\t\t\t\t    ";
  1800.                 // line 903
  1801.                 $context["idx"] = 0;
  1802.                 // line 904
  1803.                 echo "\t\t\t\t\t\t\t    ";
  1804.                 $context['_parent'] = $context;
  1805.                 $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.'904$this->source); })()));
  1806.                 foreach ($context['_seq'] as $context["_key"] => $context["pm_val"]) {
  1807.                     // line 905
  1808.                     echo "\t\t\t\t\t\t\t      ";
  1809.                     if ($context["pm_val"]) {
  1810.                         // line 906
  1811.                         echo "\t\t\t\t\t\t\t      ";
  1812.                         $context["idx"] = ((isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'906$this->source); })()) + 1);
  1813.                         // line 907
  1814.                         echo "\t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  1815. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"glass_type\" id=\"glass_type_";
  1816.                         // line 908
  1817.                         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.'908$this->source); })()), "html"nulltrue);
  1818.                         echo "\" value=\"";
  1819.                         echo twig_escape_filter($this->env$context["pm_val"], "html"nulltrue);
  1820.                         echo "\"
  1821. \t\t\t\t\t\t\t          ";
  1822.                         // line 909
  1823.                         if ((((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'909$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.'909$this->source); })()), "pm", [], "any"falsefalsefalse909) == $context["pm_val"])) || (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.'909$this->source); })())) == 1))) {
  1824.                             echo "checked";
  1825.                         }
  1826.                         // line 910
  1827.                         echo "\t\t\t\t\t\t\t          onclick=\"mitsumori_simulation('pm','glass_type_";
  1828.                         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.'910$this->source); })()), "html"nulltrue);
  1829.                         echo "');\">
  1830. \t\t\t\t\t\t\t        <label for=\"glass_type_";
  1831.                         // line 911
  1832.                         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.'911$this->source); })()), "html"nulltrue);
  1833.                         echo "\">";
  1834.                         echo twig_escape_filter($this->env$context["pm_val"], "html"nulltrue);
  1835.                         echo "</label>
  1836. \t\t\t\t\t\t\t      </div>
  1837. \t\t\t\t\t\t\t      ";
  1838.                     }
  1839.                     // line 914
  1840.                     echo "\t\t\t\t\t\t\t    ";
  1841.                 }
  1842.                 $_parent $context['_parent'];
  1843.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pm_val'], $context['_parent'], $context['loop']);
  1844.                 $context array_intersect_key($context$_parent) + $_parent;
  1845.                 // line 915
  1846.                 echo "\t\t\t\t\t\t\t    </div>
  1847. \t\t\t\t\t\t\t  </div>
  1848. \t\t\t\t\t\t\t</div>
  1849. \t\t\t\t\t\t\t";
  1850.             }
  1851.             // line 919
  1852.             echo "
  1853. \t\t\t\t\t\t\t";
  1854.             // line 921
  1855.             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)\">
  1856. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">セット数</label>
  1857. \t\t\t\t\t\t\t  <div class=\"col-8\">
  1858. \t\t\t\t\t\t\t    <select name=\"set_count\" id=\"set_count\" class=\"form-control\" onchange=\"madosetSelect(this.value);\">
  1859. \t\t\t\t\t\t\t      ";
  1860.             // line 925
  1861.             $context['_parent'] = $context;
  1862.             $context['_seq'] = twig_ensure_traversable(range(120));
  1863.             foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  1864.                 // line 926
  1865.                 echo "\t\t\t\t\t\t\t        <option value=\"";
  1866.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1867.                 echo "\" ";
  1868.                 if (((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'926$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.'926$this->source); })()), "set_count", [], "any"falsefalsefalse926) == $context["i"]))) {
  1869.                     echo "selected";
  1870.                 }
  1871.                 echo ">";
  1872.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1873.                 echo " セット</option>
  1874. \t\t\t\t\t\t\t      ";
  1875.             }
  1876.             $_parent $context['_parent'];
  1877.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  1878.             $context array_intersect_key($context$_parent) + $_parent;
  1879.             // line 928
  1880.             echo "\t\t\t\t\t\t\t    </select>
  1881. \t\t\t\t\t\t\t  </div>
  1882. \t\t\t\t\t\t\t</div>
  1883. \t\t\t\t\t\t";
  1884.         }
  1885.         // line 933
  1886.         echo "
  1887. \t\t\t\t\t\t<!-- 3: 施工見積(物置・ゴミステーション) -->
  1888. \t\t\t\t\t\t";
  1889.         // line 935
  1890.         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.'935$this->source); })()), "SaleType", [], "any"falsefalsefalse935), "id", [], "any"falsefalsefalse935) == 3)) {
  1891.             // line 936
  1892.             echo "
  1893. \t\t\t\t\t\t\t";
  1894.             // line 938
  1895.             echo "\t\t\t\t\t\t\t";
  1896.             if ((((isset($context["p_w"]) || array_key_exists("p_w"$context) ? $context["p_w"] : (function () { throw new RuntimeError('Variable "p_w" does not exist.'938$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.'938$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.'938$this->source); })())) != ""))) {
  1897.                 // line 939
  1898.                 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)\">
  1899. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">幅</label>
  1900. \t\t\t\t\t\t\t  <div class=\"col-8\">
  1901. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  1902. \t\t\t\t\t\t\t    ";
  1903.                 // line 943
  1904.                 $context["idx"] = 0;
  1905.                 // line 944
  1906.                 echo "\t\t\t\t\t\t\t    ";
  1907.                 $context['_parent'] = $context;
  1908.                 $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.'944$this->source); })()));
  1909.                 foreach ($context['_seq'] as $context["_key"] => $context["pw_val"]) {
  1910.                     if ($context["pw_val"]) {
  1911.                         $context["idx"] = ((isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'944$this->source); })()) + 1);
  1912.                         // line 945
  1913.                         echo "\t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  1914. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"pw\" id=\"pw3_";
  1915.                         // line 946
  1916.                         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.'946$this->source); })()), "html"nulltrue);
  1917.                         echo "\" value=\"";
  1918.                         echo twig_escape_filter($this->env$context["pw_val"], "html"nulltrue);
  1919.                         echo "\"
  1920. \t\t\t\t\t\t\t          ";
  1921.                         // line 947
  1922.                         if ((((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'947$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.'947$this->source); })()), "pw", [], "any"falsefalsefalse947) == $context["pw_val"])) || (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.'947$this->source); })())) == 1))) {
  1923.                             echo "checked";
  1924.                         }
  1925.                         // line 948
  1926.                         echo "\t\t\t\t\t\t\t          onclick=\"mitsumori_simulation('pw','pw3_";
  1927.                         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.'948$this->source); })()), "html"nulltrue);
  1928.                         echo "');\">
  1929. \t\t\t\t\t\t\t        <label for=\"pw3_";
  1930.                         // line 949
  1931.                         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.'949$this->source); })()), "html"nulltrue);
  1932.                         echo "\">";
  1933.                         echo twig_escape_filter($this->env$context["pw_val"], "html"nulltrue);
  1934.                         echo "</label>
  1935. \t\t\t\t\t\t\t      </div>
  1936. \t\t\t\t\t\t\t    ";
  1937.                     }
  1938.                 }
  1939.                 $_parent $context['_parent'];
  1940.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pw_val'], $context['_parent'], $context['loop']);
  1941.                 $context array_intersect_key($context$_parent) + $_parent;
  1942.                 // line 952
  1943.                 echo "\t\t\t\t\t\t\t    </div>
  1944. \t\t\t\t\t\t\t  </div>
  1945. \t\t\t\t\t\t\t</div>
  1946. \t\t\t\t\t\t\t";
  1947.             }
  1948.             // line 956
  1949.             echo "
  1950. \t\t\t\t\t\t\t";
  1951.             // line 957
  1952.             if ((((isset($context["p_d"]) || array_key_exists("p_d"$context) ? $context["p_d"] : (function () { throw new RuntimeError('Variable "p_d" does not exist.'957$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.'957$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.'957$this->source); })())) != ""))) {
  1953.                 // line 958
  1954.                 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)\">
  1955. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">奥行き</label>
  1956. \t\t\t\t\t\t\t  <div class=\"col-8\">
  1957. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  1958. \t\t\t\t\t\t\t    ";
  1959.                 // line 962
  1960.                 $context["idx"] = 0;
  1961.                 // line 963
  1962.                 echo "\t\t\t\t\t\t\t    ";
  1963.                 $context['_parent'] = $context;
  1964.                 $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.'963$this->source); })()));
  1965.                 foreach ($context['_seq'] as $context["_key"] => $context["pd_val"]) {
  1966.                     if ($context["pd_val"]) {
  1967.                         $context["idx"] = ((isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'963$this->source); })()) + 1);
  1968.                         // line 964
  1969.                         echo "\t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  1970. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"pd\" id=\"pd3_";
  1971.                         // line 965
  1972.                         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.'965$this->source); })()), "html"nulltrue);
  1973.                         echo "\" value=\"";
  1974.                         echo twig_escape_filter($this->env$context["pd_val"], "html"nulltrue);
  1975.                         echo "\"
  1976. \t\t\t\t\t\t\t          ";
  1977.                         // line 966
  1978.                         if ((((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'966$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.'966$this->source); })()), "pd", [], "any"falsefalsefalse966) == $context["pd_val"])) || (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.'966$this->source); })())) == 1))) {
  1979.                             echo "checked";
  1980.                         }
  1981.                         // line 967
  1982.                         echo "\t\t\t\t\t\t\t          onclick=\"mitsumori_simulation('pd','pd3_";
  1983.                         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.'967$this->source); })()), "html"nulltrue);
  1984.                         echo "');\">
  1985. \t\t\t\t\t\t\t        <label for=\"pd3_";
  1986.                         // line 968
  1987.                         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.'968$this->source); })()), "html"nulltrue);
  1988.                         echo "\">";
  1989.                         echo twig_escape_filter($this->env$context["pd_val"], "html"nulltrue);
  1990.                         echo "</label>
  1991. \t\t\t\t\t\t\t      </div>
  1992. \t\t\t\t\t\t\t    ";
  1993.                     }
  1994.                 }
  1995.                 $_parent $context['_parent'];
  1996.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pd_val'], $context['_parent'], $context['loop']);
  1997.                 $context array_intersect_key($context$_parent) + $_parent;
  1998.                 // line 971
  1999.                 echo "\t\t\t\t\t\t\t    </div>
  2000. \t\t\t\t\t\t\t  </div>
  2001. \t\t\t\t\t\t\t</div>
  2002. \t\t\t\t\t\t\t";
  2003.             }
  2004.             // line 975
  2005.             echo "
  2006. \t\t\t\t\t\t\t";
  2007.             // line 976
  2008.             if ((((isset($context["p_h"]) || array_key_exists("p_h"$context) ? $context["p_h"] : (function () { throw new RuntimeError('Variable "p_h" does not exist.'976$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.'976$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.'976$this->source); })())) != ""))) {
  2009.                 // line 977
  2010.                 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)\">
  2011. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">高さ</label>
  2012. \t\t\t\t\t\t\t  <div class=\"col-8\">
  2013. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  2014. \t\t\t\t\t\t\t    ";
  2015.                 // line 981
  2016.                 $context["idx"] = 0;
  2017.                 // line 982
  2018.                 echo "\t\t\t\t\t\t\t    ";
  2019.                 $context['_parent'] = $context;
  2020.                 $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.'982$this->source); })()));
  2021.                 foreach ($context['_seq'] as $context["_key"] => $context["ph_val"]) {
  2022.                     if ($context["ph_val"]) {
  2023.                         $context["idx"] = ((isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'982$this->source); })()) + 1);
  2024.                         // line 983
  2025.                         echo "\t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2026. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"ph\" id=\"ph3_";
  2027.                         // line 984
  2028.                         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.'984$this->source); })()), "html"nulltrue);
  2029.                         echo "\" value=\"";
  2030.                         echo twig_escape_filter($this->env$context["ph_val"], "html"nulltrue);
  2031.                         echo "\"
  2032. \t\t\t\t\t\t\t          ";
  2033.                         // line 985
  2034.                         if ((((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'985$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.'985$this->source); })()), "ph", [], "any"falsefalsefalse985) == $context["ph_val"])) || (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.'985$this->source); })())) == 1))) {
  2035.                             echo "checked";
  2036.                         }
  2037.                         // line 986
  2038.                         echo "\t\t\t\t\t\t\t          onclick=\"mitsumori_simulation('ph','ph3_";
  2039.                         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.'986$this->source); })()), "html"nulltrue);
  2040.                         echo "');\">
  2041. \t\t\t\t\t\t\t        <label for=\"ph3_";
  2042.                         // line 987
  2043.                         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.'987$this->source); })()), "html"nulltrue);
  2044.                         echo "\">";
  2045.                         echo twig_escape_filter($this->env$context["ph_val"], "html"nulltrue);
  2046.                         echo "</label>
  2047. \t\t\t\t\t\t\t      </div>
  2048. \t\t\t\t\t\t\t    ";
  2049.                     }
  2050.                 }
  2051.                 $_parent $context['_parent'];
  2052.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ph_val'], $context['_parent'], $context['loop']);
  2053.                 $context array_intersect_key($context$_parent) + $_parent;
  2054.                 // line 990
  2055.                 echo "\t\t\t\t\t\t\t    </div>
  2056. \t\t\t\t\t\t\t  </div>
  2057. \t\t\t\t\t\t\t</div>
  2058. \t\t\t\t\t\t\t";
  2059.             }
  2060.             // line 994
  2061.             echo "
  2062. \t\t\t\t\t\t\t";
  2063.             // line 996
  2064.             echo "\t\t\t\t\t\t\t";
  2065.             if ((((isset($context["p_m"]) || array_key_exists("p_m"$context) ? $context["p_m"] : (function () { throw new RuntimeError('Variable "p_m" does not exist.'996$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.'996$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.'996$this->source); })())) != ""))) {
  2066.                 // line 997
  2067.                 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)\">
  2068. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">棚タイプ<br><small class=\"text-muted\">(間仕切り仕様)</small></label>
  2069. \t\t\t\t\t\t\t  <div class=\"col-8\">
  2070. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  2071. \t\t\t\t\t\t\t    ";
  2072.                 // line 1001
  2073.                 $context["idx"] = 0;
  2074.                 // line 1002
  2075.                 echo "\t\t\t\t\t\t\t    ";
  2076.                 $context['_parent'] = $context;
  2077.                 $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.'1002$this->source); })()));
  2078.                 foreach ($context['_seq'] as $context["_key"] => $context["pm_val"]) {
  2079.                     if ($context["pm_val"]) {
  2080.                         $context["idx"] = ((isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'1002$this->source); })()) + 1);
  2081.                         // line 1003
  2082.                         echo "\t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2083. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"pm\" id=\"pm3_";
  2084.                         // line 1004
  2085.                         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.'1004$this->source); })()), "html"nulltrue);
  2086.                         echo "\" value=\"";
  2087.                         echo twig_escape_filter($this->env$context["pm_val"], "html"nulltrue);
  2088.                         echo "\"
  2089. \t\t\t\t\t\t\t          ";
  2090.                         // line 1005
  2091.                         if ((((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'1005$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.'1005$this->source); })()), "pm", [], "any"falsefalsefalse1005) == $context["pm_val"])) || (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.'1005$this->source); })())) == 1))) {
  2092.                             echo "checked";
  2093.                         }
  2094.                         // line 1006
  2095.                         echo "\t\t\t\t\t\t\t          onclick=\"mitsumori_simulation('pm','pm3_";
  2096.                         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.'1006$this->source); })()), "html"nulltrue);
  2097.                         echo "');\">
  2098. \t\t\t\t\t\t\t        <label for=\"pm3_";
  2099.                         // line 1007
  2100.                         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.'1007$this->source); })()), "html"nulltrue);
  2101.                         echo "\">";
  2102.                         echo twig_escape_filter($this->env$context["pm_val"], "html"nulltrue);
  2103.                         echo "</label>
  2104. \t\t\t\t\t\t\t      </div>
  2105. \t\t\t\t\t\t\t    ";
  2106.                     }
  2107.                 }
  2108.                 $_parent $context['_parent'];
  2109.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pm_val'], $context['_parent'], $context['loop']);
  2110.                 $context array_intersect_key($context$_parent) + $_parent;
  2111.                 // line 1010
  2112.                 echo "\t\t\t\t\t\t\t    </div>
  2113. \t\t\t\t\t\t\t  </div>
  2114. \t\t\t\t\t\t\t</div>
  2115. \t\t\t\t\t\t\t";
  2116.             }
  2117.             // line 1014
  2118.             echo "
  2119. \t\t\t\t\t\t\t";
  2120.             // line 1016
  2121.             echo "\t\t\t\t\t\t\t";
  2122.             if (((isset($context["color"]) || array_key_exists("color"$context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.'1016$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.'1016$this->source); })())))) {
  2123.                 // line 1017
  2124.                 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)\">
  2125. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">カラー</label>
  2126. \t\t\t\t\t\t\t  <div class=\"col-8\">
  2127. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  2128. \t\t\t\t\t\t\t    ";
  2129.                 // line 1021
  2130.                 $context["idx"] = 0;
  2131.                 // line 1022
  2132.                 echo "\t\t\t\t\t\t\t    ";
  2133.                 $context['_parent'] = $context;
  2134.                 $context['_seq'] = twig_ensure_traversable((isset($context["color"]) || array_key_exists("color"$context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.'1022$this->source); })()));
  2135.                 foreach ($context['_seq'] as $context["_key"] => $context["cc"]) {
  2136.                     if (($context["cc"] && twig_get_attribute($this->env$this->source$context["cc"], "name", [], "array"falsefalsefalse1022))) {
  2137.                         $context["idx"] = ((isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'1022$this->source); })()) + 1);
  2138.                         // line 1023
  2139.                         echo "\t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2140. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"color3\" id=\"cc3_";
  2141.                         // line 1024
  2142.                         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.'1024$this->source); })()), "html"nulltrue);
  2143.                         echo "\" value=\"";
  2144.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cc"], "name", [], "array"falsefalsefalse1024), "html"nulltrue);
  2145.                         echo "\"
  2146. \t\t\t\t\t\t\t          ";
  2147.                         // line 1025
  2148.                         if ((((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'1025$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.'1025$this->source); })()), "pc", [], "any"falsefalsefalse1025) == twig_get_attribute($this->env$this->source$context["cc"], "name", [], "array"falsefalsefalse1025))) || (twig_length_filter($this->env, (isset($context["color"]) || array_key_exists("color"$context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.'1025$this->source); })())) == 1))) {
  2149.                             echo "checked";
  2150.                         }
  2151.                         // line 1026
  2152.                         echo "\t\t\t\t\t\t\t          onclick=\"mitsumori_simulation('pc','cc3_";
  2153.                         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.'1026$this->source); })()), "html"nulltrue);
  2154.                         echo "');\">
  2155. \t\t\t\t\t\t\t        <label for=\"cc3_";
  2156.                         // line 1027
  2157.                         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.'1027$this->source); })()), "html"nulltrue);
  2158.                         echo "\">";
  2159.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cc"], "name", [], "array"falsefalsefalse1027), "html"nulltrue);
  2160.                         echo "</label>
  2161. \t\t\t\t\t\t\t      </div>
  2162. \t\t\t\t\t\t\t    ";
  2163.                     }
  2164.                 }
  2165.                 $_parent $context['_parent'];
  2166.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cc'], $context['_parent'], $context['loop']);
  2167.                 $context array_intersect_key($context$_parent) + $_parent;
  2168.                 // line 1030
  2169.                 echo "\t\t\t\t\t\t\t    </div>
  2170. \t\t\t\t\t\t\t  </div>
  2171. \t\t\t\t\t\t\t</div>
  2172. \t\t\t\t\t\t\t";
  2173.             }
  2174.             // line 1034
  2175.             echo "
  2176. \t\t\t\t\t\t\t";
  2177.             // line 1036
  2178.             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)\">
  2179. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">台数</label>
  2180. \t\t\t\t\t\t\t  <div class=\"col-4\">
  2181. \t\t\t\t\t\t\t    <div class=\"input-group mb-3\">
  2182. \t\t\t\t\t\t\t      <input type=\"number\" name=\"daisu\" id=\"daisu\" class=\"form-control\" value=\"";
  2183.             // line 1040
  2184.             echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, ($context["mitsumori_json"] ?? null), "daisu", [], "any"truetruefalse1040)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["mitsumori_json"] ?? null), "daisu", [], "any"falsefalsefalse1040), "1")) : ("1")), "html"nulltrue);
  2185.             echo "\" min=\"1\" max=\"10\" onchange=\"mitsumori_simulation('daisu','daisu');\">
  2186. \t\t\t\t\t\t\t      <span class=\"input-group-text\">台</span>
  2187. \t\t\t\t\t\t\t    </div>
  2188. \t\t\t\t\t\t\t  </div>
  2189. \t\t\t\t\t\t\t  <div class=\"col-4\">
  2190. \t\t\t\t\t\t\t    <button type=\"button\" class=\"btn btn-info\" onclick=\"daisu(+1);\">+</button>
  2191. \t\t\t\t\t\t\t    <button type=\"button\" class=\"btn btn-danger\" onclick=\"daisu(-1);\">ー</button>
  2192. \t\t\t\t\t\t\t  </div>
  2193. \t\t\t\t\t\t\t</div>
  2194. \t\t\t\t\t\t";
  2195.         }
  2196.         // line 1051
  2197.         echo "
  2198. \t\t\t\t\t\t<!-- 4: 施工見積(フェンス・組み立て式) -->
  2199. \t\t\t\t\t\t";
  2200.         // line 1053
  2201.         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.'1053$this->source); })()), "SaleType", [], "any"falsefalsefalse1053), "id", [], "any"falsefalsefalse1053) == 4)) {
  2202.             // line 1054
  2203.             echo "
  2204. \t\t\t\t\t\t\t";
  2205.             // line 1056
  2206.             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)\">
  2207. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">枚数</label>
  2208. \t\t\t\t\t\t\t  <div class=\"col-4 mb-3\">
  2209. \t\t\t\t\t\t\t    <div class=\"input-group\">
  2210. \t\t\t\t\t\t\t      <input type=\"number\" name=\"maisu\" id=\"maisu\" class=\"form-control\" value=\"";
  2211.             // line 1060
  2212.             echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, ($context["mitsumori_json"] ?? null), "maisu", [], "any"truetruefalse1060)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["mitsumori_json"] ?? null), "maisu", [], "any"falsefalsefalse1060), "3")) : ("3")), "html"nulltrue);
  2213.             echo "\" min=\"3\" max=\"20\" onchange=\"mitsumori_simulation('maisu','maisu');\">
  2214. \t\t\t\t\t\t\t      <span class=\"input-group-text\">枚</span>
  2215. \t\t\t\t\t\t\t    </div>
  2216. \t\t\t\t\t\t\t  </div>
  2217. \t\t\t\t\t\t\t  <div class=\"col-4\">
  2218. \t\t\t\t\t\t\t    <button type=\"button\" class=\"btn btn-info\" onclick=\"maisu(+1);\">+</button>
  2219. \t\t\t\t\t\t\t    <button type=\"button\" class=\"btn btn-danger\" onclick=\"maisu(-1);\">ー</button>
  2220. \t\t\t\t\t\t\t  </div>
  2221. \t\t\t\t\t\t\t</div>
  2222. \t\t\t\t\t\t";
  2223.         }
  2224.         // line 1071
  2225.         echo "
  2226. \t\t\t\t\t\t<!-- 5: 施工見積(ウッドデッキ・タイルデッキ) -->
  2227. \t\t\t\t\t\t";
  2228.         // line 1073
  2229.         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.'1073$this->source); })()), "SaleType", [], "any"falsefalsefalse1073), "id", [], "any"falsefalsefalse1073) == 5)) {
  2230.             // line 1074
  2231.             echo "
  2232. \t\t\t\t\t\t\t";
  2233.             // line 1076
  2234.             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)\">
  2235. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">施工面積</label>
  2236. \t\t\t\t\t\t\t  <div class=\"col-8\">
  2237. \t\t\t\t\t\t\t    <div class=\"input-group\">
  2238. \t\t\t\t\t\t\t      <input type=\"number\" name=\"area\" id=\"area\"
  2239. \t\t\t\t\t\t\t        class=\"form-control\"
  2240. \t\t\t\t\t\t\t        value=\"";
  2241.             // line 1082
  2242.             echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, ($context["mitsumori_json"] ?? null), "area", [], "any"truetruefalse1082)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["mitsumori_json"] ?? null), "area", [], "any"falsefalsefalse1082), "")) : ("")), "html"nulltrue);
  2243.             echo "\"
  2244. \t\t\t\t\t\t\t        placeholder=\"例: 7.5\"
  2245. \t\t\t\t\t\t\t        min=\"0.1\" step=\"0.1\"
  2246. \t\t\t\t\t\t\t        onchange=\"mitsumori_simulation('area','area');\">
  2247. \t\t\t\t\t\t\t      <span class=\"input-group-text\">㎡</span>
  2248. \t\t\t\t\t\t\t    </div>
  2249. \t\t\t\t\t\t\t    <small class=\"text-muted\">幅(cm) × 奥行き(cm) ÷ 10000 = ㎡</small>
  2250. \t\t\t\t\t\t\t  </div>
  2251. \t\t\t\t\t\t\t</div>
  2252. \t\t\t\t\t\t\t";
  2253.             // line 1093
  2254.             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)\">
  2255. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">ステップ</label>
  2256. \t\t\t\t\t\t\t  <div class=\"col-8\">
  2257. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  2258. \t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2259. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"deck_step\" id=\"deck_step_yes\" value=\"必要\"
  2260. \t\t\t\t\t\t\t          ";
  2261.             // line 1099
  2262.             if (((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'1099$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.'1099$this->source); })()), "deck_step", [], "any"falsefalsefalse1099) == "必要"))) {
  2263.                 echo "checked";
  2264.             }
  2265.             // line 1100
  2266.             echo "\t\t\t\t\t\t\t          onclick=\"mitsumori_simulation('op0','deck_step_yes');\">
  2267. \t\t\t\t\t\t\t        <label for=\"deck_step_yes\">必要</label>
  2268. \t\t\t\t\t\t\t      </div>
  2269. \t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2270. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"deck_step\" id=\"deck_step_no\" value=\"不要\"
  2271. \t\t\t\t\t\t\t          ";
  2272.             // line 1105
  2273.             if ((( !(isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'1105$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.'1105$this->source); })()), "deck_step", [], "any"falsefalsefalse1105) == "不要")) ||  !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.'1105$this->source); })()), "deck_step", [], "any"falsefalsefalse1105))) {
  2274.                 echo "checked";
  2275.             }
  2276.             // line 1106
  2277.             echo "\t\t\t\t\t\t\t          onclick=\"mitsumori_simulation('op0','deck_step_no');\">
  2278. \t\t\t\t\t\t\t        <label for=\"deck_step_no\">不要</label>
  2279. \t\t\t\t\t\t\t      </div>
  2280. \t\t\t\t\t\t\t    </div>
  2281. \t\t\t\t\t\t\t  </div>
  2282. \t\t\t\t\t\t\t</div>
  2283. \t\t\t\t\t\t\t";
  2284.             // line 1114
  2285.             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)\">
  2286. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">デッキフェンス</label>
  2287. \t\t\t\t\t\t\t  <div class=\"col-8\">
  2288. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  2289. \t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2290. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"deck_fence\" id=\"deck_fence_yes\" value=\"必要\"
  2291. \t\t\t\t\t\t\t          ";
  2292.             // line 1120
  2293.             if (((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'1120$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.'1120$this->source); })()), "deck_fence", [], "any"falsefalsefalse1120) == "必要"))) {
  2294.                 echo "checked";
  2295.             }
  2296.             // line 1121
  2297.             echo "\t\t\t\t\t\t\t          onclick=\"mitsumori_simulation('op1','deck_fence_yes');\">
  2298. \t\t\t\t\t\t\t        <label for=\"deck_fence_yes\">必要</label>
  2299. \t\t\t\t\t\t\t      </div>
  2300. \t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2301. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"deck_fence\" id=\"deck_fence_no\" value=\"不要\"
  2302. \t\t\t\t\t\t\t          ";
  2303.             // line 1126
  2304.             if ((( !(isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'1126$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.'1126$this->source); })()), "deck_fence", [], "any"falsefalsefalse1126) == "不要")) ||  !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.'1126$this->source); })()), "deck_fence", [], "any"falsefalsefalse1126))) {
  2305.                 echo "checked";
  2306.             }
  2307.             // line 1127
  2308.             echo "\t\t\t\t\t\t\t          onclick=\"mitsumori_simulation('op1','deck_fence_no');\">
  2309. \t\t\t\t\t\t\t        <label for=\"deck_fence_no\">不要</label>
  2310. \t\t\t\t\t\t\t      </div>
  2311. \t\t\t\t\t\t\t    </div>
  2312. \t\t\t\t\t\t\t  </div>
  2313. \t\t\t\t\t\t\t</div>
  2314. \t\t\t\t\t\t";
  2315.         }
  2316.         // line 1135
  2317.         echo "
  2318. \t\t\t\t\t\t<!-- 6: 施工見積(芝生・枚数・数量買い) -->
  2319. \t\t\t\t\t\t";
  2320.         // line 1137
  2321.         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.'1137$this->source); })()), "SaleType", [], "any"falsefalsefalse1137), "id", [], "any"falsefalsefalse1137) == 6)) {
  2322.             // line 1138
  2323.             echo "
  2324. \t\t\t\t\t\t\t";
  2325.             // line 1140
  2326.             echo "\t\t\t\t\t\t\t";
  2327.             if ((((isset($context["p_m"]) || array_key_exists("p_m"$context) ? $context["p_m"] : (function () { throw new RuntimeError('Variable "p_m" does not exist.'1140$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.'1140$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.'1140$this->source); })())) != ""))) {
  2328.                 // line 1141
  2329.                 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)\">
  2330. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">規格</label>
  2331. \t\t\t\t\t\t\t  <div class=\"col-8\">
  2332. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  2333. \t\t\t\t\t\t\t    ";
  2334.                 // line 1145
  2335.                 $context["idx"] = 0;
  2336.                 // line 1146
  2337.                 echo "\t\t\t\t\t\t\t    ";
  2338.                 $context['_parent'] = $context;
  2339.                 $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.'1146$this->source); })()));
  2340.                 foreach ($context['_seq'] as $context["_key"] => $context["pm_val"]) {
  2341.                     if ($context["pm_val"]) {
  2342.                         $context["idx"] = ((isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'1146$this->source); })()) + 1);
  2343.                         // line 1147
  2344.                         echo "\t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2345. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"pm\" id=\"pm6_";
  2346.                         // line 1148
  2347.                         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.'1148$this->source); })()), "html"nulltrue);
  2348.                         echo "\" value=\"";
  2349.                         echo twig_escape_filter($this->env$context["pm_val"], "html"nulltrue);
  2350.                         echo "\"
  2351. \t\t\t\t\t\t\t          ";
  2352.                         // line 1149
  2353.                         if ((((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'1149$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.'1149$this->source); })()), "pm", [], "any"falsefalsefalse1149) == $context["pm_val"])) || (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.'1149$this->source); })())) == 1))) {
  2354.                             echo "checked";
  2355.                         }
  2356.                         // line 1150
  2357.                         echo "\t\t\t\t\t\t\t          onclick=\"mitsumori_simulation('pm','pm6_";
  2358.                         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.'1150$this->source); })()), "html"nulltrue);
  2359.                         echo "');\">
  2360. \t\t\t\t\t\t\t        <label for=\"pm6_";
  2361.                         // line 1151
  2362.                         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.'1151$this->source); })()), "html"nulltrue);
  2363.                         echo "\">";
  2364.                         echo twig_escape_filter($this->env$context["pm_val"], "html"nulltrue);
  2365.                         echo "</label>
  2366. \t\t\t\t\t\t\t      </div>
  2367. \t\t\t\t\t\t\t    ";
  2368.                     }
  2369.                 }
  2370.                 $_parent $context['_parent'];
  2371.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pm_val'], $context['_parent'], $context['loop']);
  2372.                 $context array_intersect_key($context$_parent) + $_parent;
  2373.                 // line 1154
  2374.                 echo "\t\t\t\t\t\t\t    </div>
  2375. \t\t\t\t\t\t\t  </div>
  2376. \t\t\t\t\t\t\t</div>
  2377. \t\t\t\t\t\t\t";
  2378.             }
  2379.             // line 1158
  2380.             echo "
  2381. \t\t\t\t\t\t\t";
  2382.             // line 1160
  2383.             echo "\t\t\t\t\t\t\t";
  2384.             if ((((isset($context["p_w"]) || array_key_exists("p_w"$context) ? $context["p_w"] : (function () { throw new RuntimeError('Variable "p_w" does not exist.'1160$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.'1160$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.'1160$this->source); })())) != ""))) {
  2385.                 // line 1161
  2386.                 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)\">
  2387. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">芝の長さ</label>
  2388. \t\t\t\t\t\t\t  <div class=\"col-8\">
  2389. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  2390. \t\t\t\t\t\t\t    ";
  2391.                 // line 1165
  2392.                 $context["idx"] = 0;
  2393.                 // line 1166
  2394.                 echo "\t\t\t\t\t\t\t    ";
  2395.                 $context['_parent'] = $context;
  2396.                 $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.'1166$this->source); })()));
  2397.                 foreach ($context['_seq'] as $context["_key"] => $context["pw_val"]) {
  2398.                     if ($context["pw_val"]) {
  2399.                         $context["idx"] = ((isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'1166$this->source); })()) + 1);
  2400.                         // line 1167
  2401.                         echo "\t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2402. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"pw\" id=\"pw6_";
  2403.                         // line 1168
  2404.                         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.'1168$this->source); })()), "html"nulltrue);
  2405.                         echo "\" value=\"";
  2406.                         echo twig_escape_filter($this->env$context["pw_val"], "html"nulltrue);
  2407.                         echo "\"
  2408. \t\t\t\t\t\t\t          ";
  2409.                         // line 1169
  2410.                         if ((((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'1169$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.'1169$this->source); })()), "pw", [], "any"falsefalsefalse1169) == $context["pw_val"])) || (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.'1169$this->source); })())) == 1))) {
  2411.                             echo "checked";
  2412.                         }
  2413.                         // line 1170
  2414.                         echo "\t\t\t\t\t\t\t          onclick=\"mitsumori_simulation('pw','pw6_";
  2415.                         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.'1170$this->source); })()), "html"nulltrue);
  2416.                         echo "');\">
  2417. \t\t\t\t\t\t\t        <label for=\"pw6_";
  2418.                         // line 1171
  2419.                         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.'1171$this->source); })()), "html"nulltrue);
  2420.                         echo "\">";
  2421.                         echo twig_escape_filter($this->env$context["pw_val"], "html"nulltrue);
  2422.                         echo "</label>
  2423. \t\t\t\t\t\t\t      </div>
  2424. \t\t\t\t\t\t\t    ";
  2425.                     }
  2426.                 }
  2427.                 $_parent $context['_parent'];
  2428.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pw_val'], $context['_parent'], $context['loop']);
  2429.                 $context array_intersect_key($context$_parent) + $_parent;
  2430.                 // line 1174
  2431.                 echo "\t\t\t\t\t\t\t    </div>
  2432. \t\t\t\t\t\t\t  </div>
  2433. \t\t\t\t\t\t\t</div>
  2434. \t\t\t\t\t\t\t";
  2435.             }
  2436.             // line 1178
  2437.             echo "
  2438. \t\t\t\t\t\t\t";
  2439.             // line 1180
  2440.             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)\">
  2441. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">施工面積</label>
  2442. \t\t\t\t\t\t\t  <div class=\"col-8\">
  2443. \t\t\t\t\t\t\t    <div class=\"input-group\">
  2444. \t\t\t\t\t\t\t      <input type=\"number\" name=\"area\" id=\"area\"
  2445. \t\t\t\t\t\t\t        class=\"form-control\"
  2446. \t\t\t\t\t\t\t        value=\"";
  2447.             // line 1186
  2448.             echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, ($context["mitsumori_json"] ?? null), "area", [], "any"truetruefalse1186)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["mitsumori_json"] ?? null), "area", [], "any"falsefalsefalse1186), "")) : ("")), "html"nulltrue);
  2449.             echo "\"
  2450. \t\t\t\t\t\t\t        placeholder=\"例: 10.5\"
  2451. \t\t\t\t\t\t\t        min=\"0.1\" step=\"0.1\"
  2452. \t\t\t\t\t\t\t        onchange=\"mitsumori_simulation('area','area');\">
  2453. \t\t\t\t\t\t\t      <span class=\"input-group-text\">平米</span>
  2454. \t\t\t\t\t\t\t    </div>
  2455. \t\t\t\t\t\t\t  </div>
  2456. \t\t\t\t\t\t\t</div>
  2457. \t\t\t\t\t\t";
  2458.         }
  2459.         // line 1196
  2460.         echo "
  2461. \t\t\t\t\t\t<!-- 9: 商品のみ購入 -->
  2462. \t\t\t\t\t\t";
  2463.         // line 1198
  2464.         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.'1198$this->source); })()), "SaleType", [], "any"falsefalsefalse1198), "id", [], "any"falsefalsefalse1198) == 9)) {
  2465.             // line 1199
  2466.             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)\">
  2467. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">数量</label>
  2468. \t\t\t\t\t\t\t  <div class=\"col-4\">
  2469. \t\t\t\t\t\t\t    <div class=\"input-group mb-3\">
  2470. \t\t\t\t\t\t\t      <input type=\"number\" name=\"quantity_only\" id=\"quantity_only\" class=\"form-control\" value=\"1\" min=\"1\" onchange=\"\$('#quantity').val(this.value);\">
  2471. \t\t\t\t\t\t\t      <span class=\"input-group-text\">個</span>
  2472. \t\t\t\t\t\t\t    </div>
  2473. \t\t\t\t\t\t\t  </div>
  2474. \t\t\t\t\t\t\t  <div class=\"col-4\">
  2475. \t\t\t\t\t\t\t    <button type=\"button\" class=\"btn btn-info\" onclick=\"quantityOnly(+1);\">+</button>
  2476. \t\t\t\t\t\t\t    <button type=\"button\" class=\"btn btn-danger\" onclick=\"quantityOnly(-1);\">ー</button>
  2477. \t\t\t\t\t\t\t  </div>
  2478. \t\t\t\t\t\t\t</div>
  2479. \t\t\t\t\t\t";
  2480.         }
  2481.         // line 1213
  2482.         echo "
  2483. \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>
  2484. \t\t\t\t\t\t";
  2485.         // line 1218
  2486.         $context['_parent'] = $context;
  2487.         $context['_seq'] = twig_ensure_traversable(range(010));
  2488.         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  2489.             // line 1219
  2490.             echo "\t\t\t\t\t\t\t";
  2491.             if (((isset($context["op"]) || array_key_exists("op"$context) ? $context["op"] : (function () { throw new RuntimeError('Variable "op" does not exist.'1219$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.'1219$this->source); })())) >= ($context["i"] + 1)))) {
  2492.                 // line 1220
  2493.                 echo "\t\t\t\t\t\t\t";
  2494.                 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.'1220$this->source); })()), $context["i"], [], "array"falsefalsefalse1220), "name", [], "array"falsefalsefalse1220)) {
  2495.                     // line 1221
  2496.                     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)\">
  2497. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">";
  2498.                     // line 1222
  2499.                     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.'1222$this->source); })()), $context["i"], [], "array"falsefalsefalse1222), "name", [], "array"falsefalsefalse1222), "html"nulltrue);
  2500.                     echo "</label>
  2501. \t\t\t\t\t\t\t  <div class=\"col-8\">
  2502. \t\t\t\t\t            ";
  2503.                     // line 1224
  2504.                     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.'1224$this->source); })()), $context["i"], [], "array"falsefalsefalse1224), "comment", [], "array"falsefalsefalse1224), "html"nulltrue);
  2505.                     echo "
  2506. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  2507. \t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2508. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"op";
  2509.                     // line 1227
  2510.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2511.                     echo "\" id=\"op";
  2512.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2513.                     echo "_1\" value=\"";
  2514.                     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.'1227$this->source); })()), $context["i"], [], "array"falsefalsefalse1227), "on", [], "array"falsefalsefalse1227), "html"nulltrue);
  2515.                     echo "\" ";
  2516.                     if (((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'1227$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.'1227$this->source); })()), "op", [], "any"falsefalsefalse1227), $context["i"], [], "array"falsefalsefalse1227) == 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.'1227$this->source); })()), $context["i"], [], "array"falsefalsefalse1227), "on", [], "array"falsefalsefalse1227)))) {
  2517.                         echo "checked";
  2518.                     }
  2519.                     echo " onclick=\"mitsumori_simulation('op";
  2520.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2521.                     echo "','op";
  2522.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2523.                     echo "_1');\"><label for=\"op";
  2524.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2525.                     echo "_1\">";
  2526.                     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.'1227$this->source); })()), $context["i"], [], "array"falsefalsefalse1227), "on", [], "array"falsefalsefalse1227), "html"nulltrue);
  2527.                     echo "</label>
  2528. \t\t\t\t\t\t\t      </div>
  2529. \t\t\t\t\t\t\t    </div>
  2530. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  2531. \t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2532. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"op";
  2533.                     // line 1232
  2534.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2535.                     echo "\" id=\"op";
  2536.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2537.                     echo "_2\" value=\"";
  2538.                     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.'1232$this->source); })()), $context["i"], [], "array"falsefalsefalse1232), "off", [], "array"falsefalsefalse1232), "html"nulltrue);
  2539.                     echo "\" ";
  2540.                     if (((isset($context["mitsumori_json"]) || array_key_exists("mitsumori_json"$context) ? $context["mitsumori_json"] : (function () { throw new RuntimeError('Variable "mitsumori_json" does not exist.'1232$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.'1232$this->source); })()), "op", [], "any"falsefalsefalse1232), $context["i"], [], "array"falsefalsefalse1232) == 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.'1232$this->source); })()), $context["i"], [], "array"falsefalsefalse1232), "off", [], "array"falsefalsefalse1232)))) {
  2541.                         echo "checked";
  2542.                     }
  2543.                     echo " onclick=\"mitsumori_simulation('op";
  2544.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2545.                     echo "','op";
  2546.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2547.                     echo "_2');\"><label for=\"op";
  2548.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2549.                     echo "_2\">";
  2550.                     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.'1232$this->source); })()), $context["i"], [], "array"falsefalsefalse1232), "off", [], "array"falsefalsefalse1232), "html"nulltrue);
  2551.                     echo "</label>
  2552. \t\t\t\t\t\t\t      </div>
  2553. \t\t\t\t\t\t\t    </div>
  2554. \t\t\t\t\t\t\t  </div>
  2555. \t\t\t\t\t\t\t</div>
  2556. \t\t\t\t\t\t\t";
  2557.                 }
  2558.                 // line 1238
  2559.                 echo "\t\t\t\t\t\t\t";
  2560.             }
  2561.             // line 1239
  2562.             echo "\t\t\t\t\t\t";
  2563.         }
  2564.         $_parent $context['_parent'];
  2565.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  2566.         $context array_intersect_key($context$_parent) + $_parent;
  2567.         // line 1240
  2568.         echo "
  2569. \t\t\t\t\t  </div>
  2570. \t\t\t\t\t  <!-- /.card-body -->
  2571. \t\t\t\t\t</div>
  2572.                     <form action=\"";
  2573.         // line 1246
  2574.         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.'1246$this->source); })()), "id", [], "any"falsefalsefalse1246)]), "html"nulltrue);
  2575.         echo "\" method=\"post\" id=\"form1\" name=\"form1\">
  2576.                         ";
  2577.         // line 1247
  2578.         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.'1247$this->source); })()), "stock_find", [], "any"falsefalsefalse1247)) {
  2579.             // line 1248
  2580.             echo "                            <div class=\"ec-productRole__actions\">
  2581.                                 ";
  2582.             // line 1249
  2583.             if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse1249)) {
  2584.                 // line 1250
  2585.                 echo "                                    <div class=\"ec-select\">
  2586.                                         ";
  2587.                 // line 1251
  2588.                 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.'1251$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse1251), 'row');
  2589.                 echo "
  2590.                                         ";
  2591.                 // line 1252
  2592.                 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.'1252$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse1252), 'errors');
  2593.                 echo "
  2594.                                     </div>
  2595.                                     ";
  2596.                 // line 1254
  2597.                 if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse1254)) {
  2598.                     // line 1255
  2599.                     echo "                                        <div class=\"ec-select\">
  2600.                                             ";
  2601.                     // line 1256
  2602.                     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.'1256$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse1256), 'row');
  2603.                     echo "
  2604.                                             ";
  2605.                     // line 1257
  2606.                     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.'1257$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse1257), 'errors');
  2607.                     echo "
  2608.                                         </div>
  2609.                                     ";
  2610.                 }
  2611.                 // line 1260
  2612.                 echo "                                ";
  2613.             }
  2614.             // line 1261
  2615.             echo "                                <div class=\"ec-numberInput\">
  2616.                                     ";
  2617.             // line 1262
  2618.             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.'1262$this->source); })()), "quantity", [], "any"falsefalsefalse1262), 'widget', ["type" => "hidden"]);
  2619.             echo "
  2620.                                     ";
  2621.             // line 1263
  2622.             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.'1263$this->source); })()), "quantity", [], "any"falsefalsefalse1263), 'errors');
  2623.             echo "
  2624.                                 </div>
  2625.                             </div>
  2626.                         ";
  2627.         } else {
  2628.             // line 1268
  2629.             echo "                            <div class=\"ec-productRole__btn\">
  2630.                                 <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  2631.                                     ";
  2632.             // line 1270
  2633.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html"nulltrue);
  2634.             echo "
  2635.                                 </button>
  2636.                             </div>
  2637.                         ";
  2638.         }
  2639.         // line 1274
  2640.         echo "                        <div class=\"ec-productRole__btn mt-3\">
  2641.                            <button type=\"submit\" id=\"cart_btn\" class=\"ec-blockBtn--action add-cart\">施工検討リストに入れる</button>
  2642.                         </div>
  2643.                         ";
  2644.         // line 1277
  2645.         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.'1277$this->source); })()), 'rest');
  2646.         echo "
  2647.                     </form>
  2648.                     <div class=\"ec-modal\">
  2649.                         <div class=\"ec-modal-overlay\">
  2650.                             <div class=\"ec-modal-wrap\">
  2651.                                 <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  2652.         // line 1282
  2653.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  2654.         echo "\" alt=\"\"/></span></span>
  2655.                                 <div id=\"ec-modal-header\" class=\"text-center\">";
  2656.         // line 1283
  2657.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("施工検討リストに追加しました。"), "html"nulltrue);
  2658.         echo "</div>
  2659.                                 <div class=\"ec-modal-box\">
  2660.                                     <div class=\"ec-role\">
  2661.                                         <span class=\"ec-inlineBtn--cancel\">";
  2662.         // line 1286
  2663.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("商品検索を続ける"), "html"nulltrue);
  2664.         echo "</span>
  2665.                                         <a href=\"";
  2666.         // line 1287
  2667.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  2668.         echo "\" class=\"ec-inlineBtn--action\">";
  2669.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("施工検討リストへ進む"), "html"nulltrue);
  2670.         echo "</a>
  2671.                                     </div>
  2672.                                 </div>
  2673.                             </div>
  2674.                         </div>
  2675.                     </div>
  2676.                     <div class=\"ec-productRole__description\">";
  2677.         // line 1293
  2678.         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.'1293$this->source); })()), "description_detail", [], "any"falsefalsefalse1293));
  2679.         echo "
  2680.                     </div>
  2681.                 </div>
  2682. \t\t\t\t<div class=\"card col-12 collapsed-card sticky-top float-right\">
  2683. \t\t\t\t\t<div class=\"card-header\">
  2684. \t\t\t\t\t  <h3 class=\"card-title\">現在のお見積り額</h3>
  2685. \t\t\t\t\t  <div class=\"card-tools\">
  2686. \t\t\t\t\t    <span class=\"float-left\" id=\"mitsumori_message\">395000円</span>
  2687. \t\t\t\t\t    <button type=\"button\" class=\"btn btn-tool\" data-card-widget=\"collapse\">
  2688. \t\t\t\t\t      <i class=\"fas fa-plus\"></i>
  2689. \t\t\t\t\t    </button>
  2690. \t\t\t\t\t  </div>
  2691. \t\t\t\t\t</div>
  2692. \t\t\t\t\t<div class=\"card-body p-0\">
  2693. \t\t\t\t\t  <ul class=\"nav nav-pills flex-column\">
  2694. \t\t\t\t\t    <li class=\"nav-item active\">
  2695. \t\t\t\t\t      <a class=\"nav-link\">
  2696. \t\t\t\t\t        <i class=\"far fa-file-alt\"></i> 合計(工事費・税込)
  2697. \t\t\t\t\t        <span class=\"float-right\" id=\"mitsumori_goukei\">395,000円</span>
  2698. \t\t\t\t\t      </a>
  2699. \t\t\t\t\t    </li>
  2700. \t\t\t\t\t    <li class=\"nav-item active\">
  2701. \t\t\t\t\t      <a class=\"nav-link\">
  2702. \t\t\t\t\t        <i class=\"far fa-file-alt\"></i> 商品価格
  2703. \t\t\t\t\t        <span class=\"float-right\" id=\"mitsumori_price\">307,008円</span>
  2704. \t\t\t\t\t      </a>
  2705. \t\t\t\t\t    </li>
  2706. \t\t\t\t\t    <li class=\"nav-item\">
  2707. \t\t\t\t\t      <a class=\"nav-link\">
  2708. \t\t\t\t\t        &nbsp;&nbsp;<i class=\"far fa-file-alt\"></i> カタログ価格
  2709. \t\t\t\t\t        <span class=\"float-right\" id=\"maker_price\">479,700円</span>
  2710. \t\t\t\t\t      </a>
  2711. \t\t\t\t\t    </li>
  2712. \t\t\t\t\t    <li class=\"nav-item\">
  2713. \t\t\t\t\t      <a class=\"nav-link\">
  2714. \t\t\t\t\t        &nbsp;&nbsp;<i class=\"far fa-file-alt\"></i> お値引き
  2715. \t\t\t\t\t        <span class=\"float-right\" id=\"mitsumori_off\">-172,692円</span>
  2716. \t\t\t\t\t      </a>
  2717. \t\t\t\t\t    </li>
  2718. \t\t\t\t\t    <li class=\"nav-item\">
  2719. \t\t\t\t\t      <a class=\"nav-link\">
  2720. \t\t\t\t\t        <i class=\"far fa-file-alt\"></i> 基本工事費
  2721. \t\t\t\t\t        <span class=\"float-right\" id=\"mitsumori_ct\">53,250円</span>
  2722. \t\t\t\t\t      </a>
  2723. \t\t\t\t\t    </li>
  2724. \t\t\t\t\t    <li class=\"nav-item\">
  2725. \t\t\t\t\t      <a class=\"nav-link\">
  2726. \t\t\t\t\t        <i class=\"far fa-file-alt\"></i> 施工オプション
  2727. \t\t\t\t\t        <span class=\"float-right\"id=\"mitsumori_option\">6,297円</span>
  2728. \t\t\t\t\t      </a>
  2729. \t\t\t\t\t    </li>
  2730. \t\t\t\t\t  </ul>
  2731. \t\t\t\t\t</div>
  2732. \t\t\t\t\t<div class=\"card-footer\">
  2733. \t\t                <button type=\"button\" id=\"mitsumori_btn\" class=\"btn btn-info\" data-toggle=\"modal\" data-target=\"#modal-mitsumori\">
  2734. \t\t                  見積書表示
  2735. \t\t                </button>
  2736.                         <button type=\"submit\" id=\"cart_btn2\" class=\"btn btn-info add-cart\">施工検討リストに入れる</button>
  2737. \t\t\t\t\t</div>
  2738. \t\t\t\t</div>
  2739.             </div>
  2740.         </div>
  2741.     </div>
  2742.   <div class=\"modal\" id=\"modal-mitsumori\">
  2743.     <div class=\"modal-dialog modal-mitsumori\" style=\"max-width:1000px\">
  2744.       <div class=\"modal-content\">
  2745.         <div class=\"modal-header\">
  2746.           <h4 class=\"modal-title\">お見積書</h4>
  2747.           <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  2748.             <span aria-hidden=\"true\">&times;</span>
  2749.           </button>
  2750.         </div>
  2751.         <div class=\"modal-body\">
  2752. \t\t\t<div class=\"invoice p-3 mb-5\" style=\"max-width:1000px; margin:auto;\">
  2753. \t\t\t  <!-- title row -->
  2754. \t\t\t  <div class=\"row\">
  2755. \t\t\t    <div class=\"col-12\">
  2756. \t\t\t      <h2>概算お見積書 
  2757. \t\t\t        <small class=\"float-right\" style=\"font-size:14px;\">発行日: 2025/03/14</small>
  2758. \t\t\t      </h2>
  2759. \t\t\t    </div>
  2760. \t\t\t    <!-- /.col -->
  2761. \t\t\t  </div>
  2762. \t\t\t  <!-- info row -->
  2763. \t\t\t  <div class=\"row invoice-info\">
  2764. \t\t\t    <div class=\"col-sm-8 invoice-col\">
  2765. \t\t\t      <h3>お客様</h3>
  2766. \t\t\t      <span>下記の通り、お見積もり申し上げます。</span>
  2767. \t\t\t      <br />
  2768. \t\t\t      <br / >
  2769. \t\t\t      <br />
  2770. \t\t\t      <h2>お見積金額: <span id=\"mitsumori_kei\">399,080円</span></h2>
  2771. \t\t\t      <span>
  2772. \t\t\t        <br/>
  2773. \t\t\t        <br/>
  2774. \t\t\t        <br/>
  2775. \t\t\t        <br/>
  2776. \t\t\t      </span>
  2777. \t\t\t    </div>
  2778. \t\t\t    <div class=\"col-sm-4 invoice-col\">
  2779. \t\t\t      <p>
  2780. \t\t\t        <img alt=\"\" src=\"/html/user_data/js/images/logo.png\" style=\"width: 260px; max-width: 100%; max-height: 10mm;\">
  2781. \t\t\t      </p>
  2782. \t\t\t      <p>有限会社プラス</p>
  2783. \t\t\t      <p>〒400-0334</p>
  2784. \t\t\t      <p>山梨県南アルプス市藤田1450番地2</p>
  2785. \t\t\t      <p>TEL: 055-284-6480</p>
  2786. \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;\">
  2787. \t\t\t    </div>
  2788. \t\t\t    <!-- /.col -->
  2789. \t\t\t    <!-- /.col -->
  2790. \t\t\t  </div>
  2791. \t\t\t  <!-- /.row -->
  2792. \t\t\t  <!-- Table row -->
  2793. \t\t\t  <div class=\"row\">
  2794. \t\t\t    <div class=\"col-12 table-responsive\">
  2795. \t\t\t      <table class=\"table table-striped\">
  2796. \t\t\t        <thead>
  2797. \t\t\t          <tr>
  2798. \t\t\t            <th>項目</th>
  2799. \t\t\t            <th>数量</th>
  2800. \t\t\t            <th>単位</th>
  2801. \t\t\t            <th>単価</th>
  2802. \t\t\t            <th>小計</th>
  2803. \t\t\t          </tr>
  2804. \t\t\t        </thead>
  2805. \t\t\t        <tbody>
  2806. \t\t\t          <tr>
  2807. \t\t\t            <td>プレーンルーフ 600タイプ 1台用 単体セット</td>
  2808. \t\t\t            <td>1</td>
  2809. \t\t\t            <td>式</td>
  2810. \t\t\t            <td id=\"mitsumori_price_01\">352,800</td>
  2811. \t\t\t            <td id=\"mitsumori_price_02\">352,800</td>
  2812. \t\t\t          </tr>
  2813. \t\t\t          <tr>
  2814. \t\t\t            <td>基本工事費</td>
  2815. \t\t\t            <td>1</td>
  2816. \t\t\t            <td>式</td>
  2817. \t\t\t            <td id=\"mitsumori_ct_01\">10,000</td>
  2818. \t\t\t            <td id=\"mitsumori_ct_02\">10,000</td>
  2819. \t\t\t          </tr>
  2820. \t\t\t          <tr>
  2821. \t\t\t            <td>残土・ガラ処理</td>
  2822. \t\t\t            <td>1</td>
  2823. \t\t\t            <td>式</td>
  2824. \t\t\t            <td>0円</td>
  2825. \t\t\t            <td></td>
  2826. \t\t\t          </tr>
  2827. \t\t\t          <tr>
  2828. \t\t\t            <td> </td>
  2829. \t\t\t            <td></td>
  2830. \t\t\t            <td></td>
  2831. \t\t\t            <td></td>
  2832. \t\t\t            <td></td>
  2833. \t\t\t          </tr>
  2834. \t\t\t        </tbody>
  2835. \t\t\t      </table>
  2836. \t\t\t    </div>
  2837. \t\t\t    <!-- /.col -->
  2838. \t\t\t  </div>
  2839. \t\t\t  <!-- /.row -->
  2840. \t\t\t  <div class=\"row\">
  2841. \t\t\t    <!-- accepted payments column -->
  2842. \t\t\t    <div class=\"col-6\">
  2843. \t\t\t      <p class=\"lead\">お支払い方法</p>
  2844. \t\t\t      <p class=\"text-muted well well-sm shadow-none\" style=\"margin-top: 10px;\">銀行振込、クレジットカード決済、PAYPAY決済
  2845. \t\t\t        <br>銀行振込:山梨中央銀行 白根支店 普通口座 391402
  2846. \t\t\t        <br>※商品代金と工事代金の総額が金100万円(税込)を超える場合、着手金として代金の半額をご契約後お支払いいただきます。 
  2847. \t\t\t      </p>
  2848. \t\t\t    </div>
  2849. \t\t\t    <!-- /.col -->
  2850. \t\t\t    <div class=\"col-6\">
  2851. \t\t\t      <div class=\"table-responsive\">
  2852. \t\t\t        <table class=\"table\">
  2853. \t\t\t          <tbody>
  2854. \t\t\t            <tr>
  2855. \t\t\t              <th style=\"width:50%\">小計:</th>
  2856. \t\t\t              <td id=\"mitsumori_shoukei\">362,800</td>
  2857. \t\t\t            </tr>
  2858. \t\t\t            <tr>
  2859. \t\t\t              <th>消費税 (10%)</th>
  2860. \t\t\t              <td id=\"mitsumori_tax\">36,280</td>
  2861. \t\t\t            </tr>
  2862. \t\t\t            <tr>
  2863. \t\t\t              <th>合計:</th>
  2864. \t\t\t              <td id=\"mitsumori_goukei_02\">399,080</td>
  2865. \t\t\t            </tr>
  2866. \t\t\t          </tbody>
  2867. \t\t\t        </table>
  2868. \t\t\t      </div>
  2869. \t\t\t    </div>
  2870. \t\t\t    <!-- /.col -->
  2871. \t\t\t  </div>
  2872. \t\t\t  <!-- /.row -->
  2873. \t\t\t</div>
  2874.         </div>
  2875.         <div class=\"modal-footer justify-content-between\">
  2876. \t\t\t      ";
  2877.         // line 1495
  2878.         echo "\t\t\t      <form method=\"post\" action=\"";
  2879.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mitsumori_pdf");
  2880.         echo "\" target=\"_blank\" id=\"pdf_download_form\">
  2881. \t\t\t        <input type=\"hidden\" name=\"_token\" value=\"";
  2882.         // line 1496
  2883.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("mitsumori_pdf"), "html"nulltrue);
  2884.         echo "\">
  2885. \t\t\t        <input type=\"hidden\" name=\"mitsumori_json\" id=\"pdf_mitsumori_json\">
  2886. \t\t\t        <button type=\"submit\" class=\"btn btn-primary float-right\" style=\"margin-right: 5px;\" onclick=\"syncPdfJson();\">
  2887. \t\t\t          <i class=\"fas fa-download\"></i>PDF出力
  2888. \t\t\t        </button>
  2889. \t\t\t      </form>
  2890.                   <button type=\"submit\" id=\"cart_btn3\" class=\"btn btn-info add-cart\">施工検討リストに入れる</button>
  2891.         </div>
  2892.       </div>
  2893.       <!-- /.modal-content -->
  2894.     </div>
  2895.     <!-- /.modal-dialog -->
  2896.   </div>
  2897.   <!-- /.modal -->
  2898. ";
  2899.         
  2900.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  2901.         
  2902.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  2903.     }
  2904.     public function getTemplateName()
  2905.     {
  2906.         return "Product/detail.twig";
  2907.     }
  2908.     public function isTraitable()
  2909.     {
  2910.         return false;
  2911.     }
  2912.     public function getDebugInfo()
  2913.     {
  2914.         return array (  2991 => 1496,  2986 => 1495,  2782 => 1293,  2771 => 1287,  2767 => 1286,  2761 => 1283,  2757 => 1282,  2749 => 1277,  2744 => 1274,  2737 => 1270,  2733 => 1268,  2725 => 1263,  2721 => 1262,  2718 => 1261,  2715 => 1260,  2709 => 1257,  2705 => 1256,  2702 => 1255,  2700 => 1254,  2695 => 1252,  2691 => 1251,  2688 => 1250,  2686 => 1249,  2683 => 1248,  2681 => 1247,  2677 => 1246,  2669 => 1240,  2663 => 1239,  2660 => 1238,  2635 => 1232,  2611 => 1227,  2605 => 1224,  2600 => 1222,  2597 => 1221,  2594 => 1220,  2591 => 1219,  2587 => 1218,  2580 => 1213,  2564 => 1199,  2562 => 1198,  2558 => 1196,  2545 => 1186,  2537 => 1180,  2534 => 1178,  2528 => 1174,  2516 => 1171,  2511 => 1170,  2507 => 1169,  2501 => 1168,  2498 => 1167,  2491 => 1166,  2489 => 1165,  2483 => 1161,  2480 => 1160,  2477 => 1158,  2471 => 1154,  2459 => 1151,  2454 => 1150,  2450 => 1149,  2444 => 1148,  2441 => 1147,  2434 => 1146,  2432 => 1145,  2426 => 1141,  2423 => 1140,  2420 => 1138,  2418 => 1137,  2414 => 1135,  2404 => 1127,  2400 => 1126,  2393 => 1121,  2389 => 1120,  2381 => 1114,  2372 => 1106,  2368 => 1105,  2361 => 1100,  2357 => 1099,  2349 => 1093,  2336 => 1082,  2328 => 1076,  2325 => 1074,  2323 => 1073,  2319 => 1071,  2305 => 1060,  2299 => 1056,  2296 => 1054,  2294 => 1053,  2290 => 1051,  2276 => 1040,  2270 => 1036,  2267 => 1034,  2261 => 1030,  2249 => 1027,  2244 => 1026,  2240 => 1025,  2234 => 1024,  2231 => 1023,  2224 => 1022,  2222 => 1021,  2216 => 1017,  2213 => 1016,  2210 => 1014,  2204 => 1010,  2192 => 1007,  2187 => 1006,  2183 => 1005,  2177 => 1004,  2174 => 1003,  2167 => 1002,  2165 => 1001,  2159 => 997,  2156 => 996,  2153 => 994,  2147 => 990,  2135 => 987,  2130 => 986,  2126 => 985,  2120 => 984,  2117 => 983,  2110 => 982,  2108 => 981,  2102 => 977,  2100 => 976,  2097 => 975,  2091 => 971,  2079 => 968,  2074 => 967,  2070 => 966,  2064 => 965,  2061 => 964,  2054 => 963,  2052 => 962,  2046 => 958,  2044 => 957,  2041 => 956,  2035 => 952,  2023 => 949,  2018 => 948,  2014 => 947,  2008 => 946,  2005 => 945,  1998 => 944,  1996 => 943,  1990 => 939,  1987 => 938,  1984 => 936,  1982 => 935,  1978 => 933,  1971 => 928,  1956 => 926,  1952 => 925,  1946 => 921,  1943 => 919,  1937 => 915,  1931 => 914,  1923 => 911,  1918 => 910,  1914 => 909,  1908 => 908,  1905 => 907,  1902 => 906,  1899 => 905,  1894 => 904,  1892 => 903,  1886 => 899,  1883 => 898,  1880 => 896,  1874 => 892,  1868 => 891,  1860 => 888,  1855 => 887,  1851 => 886,  1845 => 885,  1842 => 884,  1839 => 883,  1836 => 882,  1831 => 881,  1829 => 880,  1823 => 876,  1820 => 875,  1811 => 868,  1801 => 861,  1794 => 856,  1791 => 854,  1789 => 853,  1785 => 851,  1782 => 850,  1780 => 849,  1776 => 847,  1770 => 843,  1764 => 842,  1746 => 839,  1743 => 838,  1740 => 837,  1737 => 836,  1732 => 835,  1730 => 834,  1724 => 830,  1721 => 829,  1715 => 825,  1709 => 824,  1691 => 821,  1688 => 820,  1685 => 819,  1682 => 818,  1677 => 817,  1675 => 816,  1669 => 812,  1666 => 811,  1660 => 807,  1654 => 806,  1636 => 803,  1633 => 802,  1630 => 801,  1627 => 800,  1622 => 799,  1620 => 798,  1614 => 794,  1611 => 793,  1605 => 789,  1599 => 788,  1581 => 785,  1578 => 784,  1575 => 783,  1572 => 782,  1567 => 781,  1565 => 780,  1559 => 776,  1556 => 775,  1550 => 771,  1544 => 770,  1526 => 767,  1523 => 766,  1520 => 765,  1517 => 764,  1512 => 763,  1510 => 762,  1504 => 758,  1502 => 757,  1495 => 752,  1489 => 748,  1468 => 745,  1465 => 744,  1461 => 743,  1455 => 740,  1452 => 739,  1450 => 738,  1447 => 737,  1441 => 733,  1420 => 730,  1417 => 729,  1413 => 728,  1407 => 725,  1404 => 724,  1402 => 723,  1399 => 722,  1393 => 718,  1372 => 715,  1369 => 714,  1365 => 713,  1359 => 710,  1356 => 709,  1353 => 708,  1349 => 706,  1346 => 705,  1344 => 704,  1343 => 703,  1341 => 702,  1338 => 701,  1335 => 700,  1333 => 699,  1320 => 689,  1313 => 684,  1301 => 681,  1298 => 680,  1295 => 679,  1292 => 677,  1281 => 675,  1277 => 674,  1274 => 673,  1271 => 671,  1265 => 668,  1261 => 667,  1258 => 666,  1255 => 665,  1249 => 662,  1243 => 661,  1240 => 660,  1234 => 657,  1230 => 656,  1227 => 655,  1225 => 654,  1223 => 653,  1219 => 651,  1217 => 650,  1213 => 648,  1205 => 645,  1190 => 643,  1181 => 642,  1164 => 641,  1160 => 639,  1156 => 638,  1153 => 637,  1150 => 636,  1140 => 627,  1121 => 625,  1104 => 624,  1100 => 622,  1089 => 620,  1067 => 618,  1049 => 617,  1046 => 616,  1042 => 614,  1034 => 610,  1026 => 606,  1024 => 605,  1021 => 604,  1019 => 603,  1014 => 601,  1011 => 600,  1005 => 595,  995 => 594,  979 => 587,  975 => 586,  971 => 585,  967 => 584,  963 => 582,  957 => 580,  955 => 579,  950 => 578,  947 => 577,  937 => 575,  923 => 573,  915 => 572,  897 => 571,  892 => 569,  863 => 547,  855 => 546,  802 => 496,  783 => 480,  778 => 477,  775 => 476,  762 => 475,  759 => 474,  757 => 473,  754 => 472,  751 => 471,  738 => 470,  735 => 469,  733 => 468,  730 => 467,  727 => 466,  714 => 465,  711 => 464,  709 => 463,  706 => 462,  703 => 461,  690 => 460,  687 => 459,  685 => 458,  682 => 457,  679 => 456,  666 => 455,  663 => 454,  661 => 453,  632 => 427,  620 => 418,  488 => 289,  478 => 284,  472 => 283,  466 => 282,  460 => 281,  454 => 280,  448 => 279,  442 => 278,  436 => 277,  430 => 276,  424 => 275,  418 => 274,  412 => 273,  406 => 272,  400 => 271,  394 => 270,  388 => 269,  368 => 252,  358 => 245,  328 => 218,  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,);
  2915.     }
  2916.     public function getSourceContext()
  2917.     {
  2918.         return new Source("{#
  2919. This file is part of EC-CUBE
  2920. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  2921. http://www.ec-cube.co.jp/
  2922. For the full copyright and license information, please view the LICENSE
  2923. file that was distributed with this source code.
  2924. #}
  2925. {% extends 'default_frame.twig' %}
  2926. {% set body_class = 'product_page' %}
  2927. {% block stylesheet %}
  2928.     <style>
  2929.         .slick-slider {
  2930.             margin-bottom: 10px;
  2931. \t\t\tmargin-top: -20px;
  2932.         }
  2933.         .slick-dots {
  2934.             position: absolute;
  2935.             bottom: -45px;
  2936.             display: block;
  2937.             width: 100%;
  2938.             padding: 0;
  2939.             list-style: none;
  2940.             text-align: center;
  2941.         }
  2942.         .slick-dots li {
  2943.             position: relative;
  2944.             display: inline-block;
  2945.             width: 20px;
  2946.             height: 20px;
  2947.             margin: 0 5px;
  2948.             padding: 0;
  2949.             cursor: pointer;
  2950.         }
  2951.         .slick-dots li button {
  2952.             font-size: 0;
  2953.             line-height: 0;
  2954.             display: block;
  2955.             width: 20px;
  2956.             height: 20px;
  2957.             padding: 5px;
  2958.             cursor: pointer;
  2959.             color: transparent;
  2960.             border: 0;
  2961.             outline: none;
  2962.             background: transparent;
  2963.         }
  2964.         .slick-dots li button:hover,
  2965.         .slick-dots li button:focus {
  2966.             outline: none;
  2967.         }
  2968.         .slick-dots li button:hover:before,
  2969.         .slick-dots li button:focus:before {
  2970.             opacity: 1;
  2971.         }
  2972.         .slick-dots li button:before {
  2973.             content: \" \";
  2974.             line-height: 20px;
  2975.             position: absolute;
  2976.             top: 0;
  2977.             left: 0;
  2978.             width: 12px;
  2979.             height: 12px;
  2980.             text-align: center;
  2981.             opacity: .25;
  2982.             background-color: black;
  2983.             border-radius: 50%;
  2984.         }
  2985.         .slick-dots li.slick-active button:before {
  2986.             opacity: .75;
  2987.             background-color: black;
  2988.         }
  2989.         .slick-dots li button.thumbnail img {
  2990.             width: 0;
  2991.             height: 0;
  2992.         }
  2993.     </style>
  2994.     <link rel=\"stylesheet\" href=\"/html/user_data/js/style.css\">
  2995.     <link rel=\"stylesheet\" href=\"/html/plugins/icheck-bootstrap/icheck-bootstrap.min.css\">
  2996. {% endblock %}
  2997. {% block javascript %}
  2998.     <script>
  2999.         eccube.classCategories = {{ class_categories_as_json(Product)|raw }};
  3000.         // 規格2に選択肢を割り当てる。
  3001.         function fnSetClassCategories(form, classcat_id2_selected) {
  3002.             var \$form = \$(form);
  3003.             var product_id = \$form.find('input[name=product_id]').val();
  3004.             var \$sele1 = \$form.find('select[name=classcategory_id1]');
  3005.             var \$sele2 = \$form.find('select[name=classcategory_id2]');
  3006.             eccube.setClassCategories(\$form, product_id, \$sele1, \$sele2, classcat_id2_selected);
  3007.         }
  3008.         {% if form.classcategory_id2 is defined %}
  3009.         fnSetClassCategories(
  3010.             \$('#form1'), {{ form.classcategory_id2.vars.value|json_encode|raw }}
  3011.         );
  3012.         {% elseif form.classcategory_id1 is defined %}
  3013.         eccube.checkStock(\$('#form1'), {{ Product.id }}, {{ form.classcategory_id1.vars.value|json_encode|raw }}, null);
  3014.         {% endif %}
  3015.     </script>
  3016.     <script>
  3017.         \$(function() {
  3018.             // bfcache無効化
  3019.             \$(window).bind('pageshow', function(event) {
  3020.                 if (event.originalEvent.persisted) {
  3021.                     location.reload(true);
  3022.                 }
  3023.             });
  3024.             // Core Web Vital の Cumulative Layout Shift(CLS)対策のため
  3025.             // img タグに width, height が付与されている.
  3026.             // 630px 未満の画面サイズでは縦横比が壊れるための対策
  3027.             // see https://github.com/EC-CUBE/ec-cube/pull/5023
  3028.             \$('.ec-grid2__cell').hide();
  3029.             var removeSize = function () {
  3030.                 \$('.slide-item').height('');
  3031.                 \$('.slide-item img')
  3032.                     .removeAttr('width')
  3033.                     .removeAttr('height')
  3034.                     .removeAttr('style');
  3035.             };
  3036.             var slickInitial = function(slick) {
  3037.                 \$('.ec-grid2__cell').fadeIn(1500);
  3038.                 var baseHeight = \$(slick.target).height();
  3039.                 var baseWidth = \$(slick.target).width();
  3040.                 var rate = baseWidth / baseHeight;
  3041. \t\t\t\tif(baseHeight * rate < 400){
  3042. \t                \$('.slide-item').height(baseHeight * rate); // 余白を削除する
  3043. \t\t\t\t}else{
  3044. \t                \$('.slide-item').height(400); // 余白を削除する
  3045. \t\t\t\t}
  3046.                 // transform を使用することでCLSの影響を受けないようにする
  3047.                 \$('.slide-item img')
  3048.                     .css(
  3049.                         {
  3050.                             'transform-origin': 'top left',
  3051.                             'transform': 'scaleY(' + rate + ')',
  3052.                             'transition': 'transform .1s'
  3053.                         }
  3054.                     );
  3055.                 // 正しいサイズに近くなったら属性を解除する
  3056.                 setTimeout(removeSize, 500);
  3057.             };
  3058.             \$('.item_visual').on('init', slickInitial);
  3059.             // リサイズ時は CLS の影響を受けないため属性を解除する
  3060.             \$(window).resize(removeSize);
  3061.             \$('.item_visual').slick({
  3062.                 dots: false,
  3063.                 arrows: true,
  3064.                 responsive: [{
  3065.                     breakpoint: 768,
  3066.                     settings: {
  3067.                         dots: true,
  3068.                 \t\tarrows: false
  3069.                     }
  3070.                 }]
  3071.             });
  3072.             \$('.slideThumb').on('click', function() {
  3073.                 var index = \$(this).attr('data-index');
  3074.                 \$('.item_visual').slick('slickGoTo', index, false);
  3075.             })
  3076.         });
  3077.     </script>
  3078.     <script>
  3079.         \$(function() {
  3080.             \$('.add-cart').on('click', function(event) {
  3081.                 {% if form.classcategory_id1 is defined %}
  3082.                 // 規格1フォームの必須チェック
  3083.                 if (\$('#classcategory_id1').val() == '__unselected' || \$('#classcategory_id1').val() == '') {
  3084.                     \$('#classcategory_id1')[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
  3085.                     return true;
  3086.                 } else {
  3087.                     \$('#classcategory_id1')[0].setCustomValidity('');
  3088.                 }
  3089.                 {% endif %}
  3090.                 {% if form.classcategory_id2 is defined %}
  3091.                 // 規格2フォームの必須チェック
  3092.                 if (\$('#classcategory_id2').val() == '__unselected' || \$('#classcategory_id2').val() == '') {
  3093.                     \$('#classcategory_id2')[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
  3094.                     return true;
  3095.                 } else {
  3096.                     \$('#classcategory_id2')[0].setCustomValidity('');
  3097.                 }
  3098.                 {% endif %}
  3099.                 // タイプ2: カート送信直前に set_count を quantity に同期
  3100.                 if(\$('#set_count').length){
  3101.                     var _sc = parseInt(\$('#set_count').val()) || 1;
  3102.                     \$('#quantity').val(_sc);
  3103.                     \$('input[name=\"quantity\"]').val(_sc);
  3104.                 }
  3105.                 // 個数フォームのチェック
  3106.                 if (\$('#quantity').val() < 1) {
  3107.                     \$('#quantity')[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  3108.                     return true;
  3109.                 } else {
  3110.                     \$('#quantity')[0].setCustomValidity('');
  3111.                 }
  3112.                 event.preventDefault();
  3113.                 \$form = \$('#form1');
  3114.                 \$.ajax({
  3115.                     url: \$form.attr('action'),
  3116.                     type: \$form.attr('method'),
  3117.                     data: \$form.serialize(),
  3118.                     dataType: 'json',
  3119.                     beforeSend: function(xhr, settings) {
  3120.                         // Buttonを無効にする
  3121.                         \$('.add-cart').prop('disabled', true);
  3122.                     }
  3123.                 }).done(function(data) {
  3124.                     // レスポンス内のメッセージをalertで表示
  3125.                     \$.each(data.messages, function() {
  3126.                         \$('#ec-modal-header').text(this);
  3127.                     });
  3128.                     \$('.ec-modal').show()
  3129.                     // カートブロックを更新する
  3130.                     \$.ajax({
  3131.                         url: \"{{ url('block_cart') }}\",
  3132.                         type: 'GET',
  3133.                         dataType: 'html'
  3134.                     }).done(function(html) {
  3135.                         \$('.ec-headerRole__cart').html(html);
  3136.                     });
  3137.                 }).fail(function(data) {
  3138.                     alert('{{ '施工検討リストへの追加に失敗しました。'|trans }}');
  3139.                 }).always(function(data) {
  3140.                     // Buttonを有効にする
  3141.                     \$('.add-cart').prop('disabled', false);
  3142.                 });
  3143.             });
  3144.         });
  3145.         \$('.ec-modal-wrap').on('click', function(e) {
  3146.             // モーダル内の処理は外側にバブリングさせない
  3147.             e.stopPropagation();
  3148.         });
  3149.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  3150.             \$('.ec-modal').hide()
  3151.         });
  3152. \t\tvar pw = \"{% if mitsumori_json %}{{ mitsumori_json.pw }}{% endif %}\";
  3153. \t\tvar pd = \"{% if mitsumori_json %}{{ mitsumori_json.pd }}{% endif %}\";
  3154. \t\tvar ph = \"{% if mitsumori_json %}{{ mitsumori_json.ph }}{% endif %}\";
  3155. \t\tvar pm = \"{% if mitsumori_json %}{{ mitsumori_json.pm }}{% endif %}\";
  3156. \t\tvar pc = \"{% if mitsumori_json %}{{ mitsumori_json.pc }}{% endif %}\";
  3157. \t\tvar op0 = \"{% if mitsumori_json %}{{ mitsumori_json.op[0] }}{% endif %}\";
  3158. \t\tvar op1 = \"{% if mitsumori_json %}{{ mitsumori_json.op[1] }}{% endif %}\";
  3159. \t\tvar op2 = \"{% if mitsumori_json %}{{ mitsumori_json.op[2] }}{% endif %}\";
  3160. \t\tvar op3 = \"{% if mitsumori_json %}{{ mitsumori_json.op[3] }}{% endif %}\";
  3161. \t\tvar op4 = \"{% if mitsumori_json %}{{ mitsumori_json.op[4] }}{% endif %}\";
  3162. \t\tvar op5 = \"{% if mitsumori_json %}{{ mitsumori_json.op[5] }}{% endif %}\";
  3163. \t\tvar op6 = \"{% if mitsumori_json %}{{ mitsumori_json.op[6] }}{% endif %}\";
  3164. \t\tvar op7 = \"{% if mitsumori_json %}{{ mitsumori_json.op[7] }}{% endif %}\";
  3165. \t\tvar op8 = \"{% if mitsumori_json %}{{ mitsumori_json.op[8] }}{% endif %}\";
  3166. \t\tvar op9 = \"{% if mitsumori_json %}{{ mitsumori_json.op[9] }}{% endif %}\";
  3167. \t\tvar op10 = \"{% if mitsumori_json %}{{ mitsumori_json.op[10] }}{% endif %}\";
  3168. \t\tconst formatter = new Intl.NumberFormat('ja-JP');
  3169. \t\tfunction mitsumori_simulation(type , value_id){
  3170. \t\t\tvar pp = {{ pp|raw }};
  3171. \t\t\tif(type == \"pw\"){
  3172. \t\t\t\tpw = \$('#'+value_id).val();
  3173. \t\t\t}
  3174. \t\t\tif(type == \"pd\"){
  3175. \t\t\t\tpd = \$('#'+value_id).val();
  3176. \t\t\t}
  3177. \t\t\tif(type == \"ph\"){
  3178. \t\t\t\tph = \$('#'+value_id).val();
  3179. \t\t\t}
  3180. \t\t\tif(type == \"pm\"){
  3181. \t\t\t\tpm = \$('#'+value_id).val();
  3182. \t\t\t}
  3183. \t\t\tif(type == \"pc\"){
  3184. \t\t\t\tpc = \$('#'+value_id).val();
  3185. \t\t\t}
  3186. \t\t\tif(type == \"op0\"){ op0 = \$('#'+value_id).val(); }
  3187. \t\t\tif(type == \"op1\"){ op1 = \$('#'+value_id).val(); }
  3188. \t\t\tif(type == \"op2\"){ op2 = \$('#'+value_id).val(); }
  3189. \t\t\tif(type == \"op3\"){ op3 = \$('#'+value_id).val(); }
  3190. \t\t\tif(type == \"op4\"){ op4 = \$('#'+value_id).val(); }
  3191. \t\t\tif(type == \"op5\"){ op5 = \$('#'+value_id).val(); }
  3192. \t\t\tif(type == \"op6\"){ op6 = \$('#'+value_id).val(); }
  3193. \t\t\tif(type == \"op7\"){ op7 = \$('#'+value_id).val(); }
  3194. \t\t\tif(type == \"op8\"){ op8 = \$('#'+value_id).val(); }
  3195. \t\t\tif(type == \"op9\"){ op9 = \$('#'+value_id).val(); }
  3196. \t\t\tif(type == \"op10\"){ op10 = \$('#'+value_id).val(); }
  3197. \t\t\tif(pm == \"\"){
  3198. \t\t\t\t\$('#mitsumori_message').text(\"素材を選択してください\");
  3199. \t\t\t}
  3200. \t\t\tif(ph == \"\"){
  3201. \t\t\t\t\$('#mitsumori_message').text(\"高さを選択してください\");
  3202. \t\t\t}
  3203. \t\t\tif(pd == \"\"){
  3204. \t\t\t\t\$('#mitsumori_message').text(\"奥行きを選択してください\");
  3205. \t\t\t}
  3206. \t\t\tif(pw == \"\"){
  3207. \t\t\t\t\$('#mitsumori_message').text(\"幅を選択してください\");
  3208. \t\t\t}
  3209. \t\t\tif(pc == \"\"){
  3210. \t\t\t\t\$('#mitsumori_message').text(\"カラーを選択してください\");
  3211. \t\t\t\t\$('#mitsumori_btn').hide();
  3212. \t\t\t\t\$('#mitsumori_goukei').text(\"---円\");
  3213. \t\t\t\t\$('#mitsumori_off').text(\"---円\");
  3214. \t\t\t\t\$('#mitsumori_price').text(\"---円\");
  3215. \t\t\t\t\$('#maker_price').text(\"---円\");
  3216. \t\t\t\t\$('#mitsumori_ct').text(\"---円\");
  3217. \t\t\t\t\$('#mitsumori_option').text(\"---円\");
  3218. \t\t\t}
  3219. \t\t\tif(pw != \"\" && pd != \"\" && ph != \"\" && pm != \"\" && pc != \"\"){
  3220. \t\t\t\t\$('#mitsumori_btn').show();
  3221. \t\t\t\t
  3222. \t\t\t\tpp.forEach((el) => {
  3223. \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 == \"指定なし\")){
  3224. \t\t\t\t\tif(op0 == \"商品購入のみ\" || op1 == \"商品購入のみ\" || op2 == \"商品購入のみ\" || op3 == \"商品購入のみ\" || op4 == \"商品購入のみ\" 
  3225. \t\t\t\t\t\t|| op5 == \"商品購入のみ\" || op6 == \"商品購入のみ\" || op7 == \"商品購入のみ\" || op8 == \"商品購入のみ\" || op9 == \"商品購入のみ\"){
  3226. \t\t\t\t\t  \t\$('#mitsumori_message').text(formatter.format(parseInt(el.price)) + \"円\");
  3227. \t\t\t\t\t  \t\$('#mitsumori_goukei').text(formatter.format(parseInt(el.price)) + \"円\");
  3228. \t\t\t\t\t  \t\$('#mitsumori_off').text(formatter.format(parseInt(el.price) - parseInt(el.maker_price)) + \"円\");
  3229. \t\t\t\t\t  \t\$('#mitsumori_price').text(formatter.format(parseInt(el.price)) + \"円\");
  3230. \t\t\t\t\t  \t\$('#maker_price').text(formatter.format(parseInt(el.maker_price)) + \"円\");
  3231. \t\t\t\t\t  \t\$('#mitsumori_ct').text(\"0円\");
  3232. \t\t\t\t\t  \t\$('#mitsumori_option').text(\"0円\");
  3233. \t\t\t\t\t  \t\$('#mitsumori_kei').text(formatter.format(parseInt(el.price)) + \"円\");
  3234. \t\t\t\t\t  \t\$('#mitsumori_price_01').text(formatter.format(parseInt(el.price)) + \"円\");
  3235. \t\t\t\t\t  \t\$('#mitsumori_price_02').text(formatter.format(parseInt(el.price)) + \"円\");
  3236. \t\t\t\t\t  \t\$('#mitsumori_ct_01').text(\"0円\");
  3237. \t\t\t\t\t  \t\$('#mitsumori_ct_02').text(\"0円\");
  3238. \t\t\t\t\t  \t\$('#mitsumori_goukei_02').text(formatter.format(parseInt(el.price)) + \"円\");
  3239. \t\t\t\t\t\t
  3240. \t\t\t\t\t\tmitsumori_goukei = (parseInt(el.price));
  3241. \t\t\t\t\t\tshoukei = mitsumori_goukei / 1.1;
  3242. \t\t\t\t\t\ttax = parseInt(mitsumori_goukei - shoukei);
  3243. \t\t\t\t\t  \t\$('#mitsumori_shoukei').text(formatter.format(parseInt(shoukei)) + \"円\");
  3244. \t\t\t\t\t  \t\$('#mitsumori_tax').text(formatter.format(parseInt(tax)) + \"円\");
  3245. \t\t\t\t\t}else{
  3246. \t\t\t\t\t  \t\$('#mitsumori_message').text(formatter.format(parseInt(el.price) + parseInt(el.ct)) + \"円\");
  3247. \t\t\t\t\t  \t\$('#mitsumori_goukei').text(formatter.format(parseInt(el.price) + parseInt(el.ct)) + \"円\");
  3248. \t\t\t\t\t  \t\$('#mitsumori_off').text(formatter.format(parseInt(el.price) - parseInt(el.maker_price)) + \"円\");
  3249. \t\t\t\t\t  \t\$('#mitsumori_price').text(formatter.format(parseInt(el.price)) + \"円\");
  3250. \t\t\t\t\t  \t\$('#maker_price').text(formatter.format(parseInt(el.maker_price)) + \"円\");
  3251. \t\t\t\t\t  \t\$('#mitsumori_ct').text(formatter.format(parseInt(el.ct)) + \"円\");
  3252. \t\t\t\t\t  \t\$('#mitsumori_option').text(\"0円\");
  3253. \t\t\t\t\t  \t\$('#mitsumori_kei').text(formatter.format(parseInt(el.price) + parseInt(el.ct)) + \"円\");
  3254. \t\t\t\t\t  \t\$('#mitsumori_price_01').text(formatter.format(parseInt(el.price)) + \"円\");
  3255. \t\t\t\t\t  \t\$('#mitsumori_price_02').text(formatter.format(parseInt(el.price)) + \"円\");
  3256. \t\t\t\t\t  \t\$('#mitsumori_ct_01').text(formatter.format(parseInt(el.ct)) + \"円\");
  3257. \t\t\t\t\t  \t\$('#mitsumori_ct_02').text(formatter.format(parseInt(el.ct)) + \"円\");
  3258. \t\t\t\t\t  \t\$('#mitsumori_goukei_02').text(formatter.format(parseInt(el.price) + parseInt(el.ct)) + \"円\");
  3259. \t\t\t\t\t\tmitsumori_goukei = (parseInt(el.price) + parseInt(el.ct));
  3260. \t\t\t\t\t\tshoukei = mitsumori_goukei / 1.1;
  3261. \t\t\t\t\t\ttax = parseInt(mitsumori_goukei - shoukei);
  3262. \t\t\t\t\t  \t\$('#mitsumori_shoukei').text(formatter.format(parseInt(shoukei)) + \"円\");
  3263. \t\t\t\t\t  \t\$('#mitsumori_tax').text(formatter.format(parseInt(tax)) + \"円\");
  3264. \t\t\t\t\t}
  3265. \t\t\t\t  }
  3266. \t\t\t\t});\t
  3267. \t\t\t\t// タイプ5: ステップ・フェンス・面積の現在値を取得
  3268. \t\t\t\tif(\$('input[name=deck_step]:checked').length){ deck_step = \$('input[name=deck_step]:checked').val(); }
  3269. \t\t\t\tif(\$('input[name=deck_fence]:checked').length){ deck_fence = \$('input[name=deck_fence]:checked').val(); }
  3270. \t\t\t\t// タイプ2: 窓サイズ・窓タイプ・ガラスタイプ・セット数
  3271. \t\t\t\tvar mado_w_val     = \$('#mado_w').val()     || '';
  3272. \t\t\t\tvar mado_h_val     = \$('#mado_h').val()     || '';
  3273. \t\t\t\tvar mado_type_val  = \$('input[name=mado_type]:checked').val()  || '';
  3274. \t\t\t\tvar glass_type_val = \$('input[name=glass_type]:checked').val() || '';
  3275. \t\t\t\tvar set_count_val  = parseInt(\$('#set_count').val()) || 1;
  3276. \t\t\t\t// タイプ3: 台数
  3277. \t\t\t\tvar daisu_val = parseInt(\$('#daisu').val()) || 1;
  3278. \t\t\t\t// タイプ4・6: 枚数
  3279. \t\t\t\tvar maisu_val = parseInt(\$('#maisu').val()) || 1;
  3280. \t\t\t\t// タイプ5: 面積
  3281. \t\t\t\tvar area_val = \$('#area').val() || '';
  3282. \t\t\t\t// sale_type
  3283. \t\t\t\tvar sale_type_id = {{ ProductClass.SaleType.id }};
  3284. \t\t\t\tvar mitsumori_json = { \"mitsumori_goukei\": \$('#mitsumori_goukei').text(),
  3285. \t\t\t\t\t\t\t\t\t\t\"mitsumori_goukei_02\": \$('#mitsumori_goukei_02').text(),
  3286. \t\t\t\t\t\t\t\t\t\t\"mitsumori_price\": \$('#mitsumori_price').text(),
  3287. \t\t\t\t\t\t\t\t\t\t\"maker_price\": \$('#maker_price').text(),
  3288. \t\t\t\t\t\t\t\t\t\t\"mitsumori_off\": \$('#mitsumori_off').text(),
  3289. \t\t\t\t\t\t\t\t\t\t\"mitsumori_ct\": \$('#mitsumori_ct').text(),
  3290. \t\t\t\t\t\t\t\t\t\t\"mitsumori_option\": \$('#mitsumori_option').text(),
  3291. \t\t\t\t\t\t\t\t\t\t\"product_id\": {{ Product.id }},
  3292. \t\t\t\t\t\t\t\t\t\t\"sale_type\": sale_type_id,
  3293. \t\t\t\t\t\t\t\t\t\t\"pw\": pw,
  3294. \t\t\t\t\t\t\t\t\t\t\"pd\": pd,
  3295. \t\t\t\t\t\t\t\t\t\t\"ph\": ph,
  3296. \t\t\t\t\t\t\t\t\t\t\"pm\": pm,
  3297. \t\t\t\t\t\t\t\t\t\t\"pc\": pc,
  3298. \t\t\t\t\t\t\t\t\t\t\"op\": [op0,op1,op2,op3,op4,op5,op6,op7,op8,op9,op10],
  3299. \t\t\t\t\t\t\t\t\t\t\"mado_w\":     mado_w_val,
  3300. \t\t\t\t\t\t\t\t\t\t\"mado_h\":     mado_h_val,
  3301. \t\t\t\t\t\t\t\t\t\t\"mado_type\":  mado_type_val,
  3302. \t\t\t\t\t\t\t\t\t\t\"glass_type\": glass_type_val,
  3303. \t\t\t\t\t\t\t\t\t\t\"set_count\":  set_count_val,
  3304. \t\t\t\t\t\t\t\t\t\t\"daisu\":      daisu_val,
  3305. \t\t\t\t\t\t\t\t\t\t\"maisu\":      maisu_val,
  3306. \t\t\t\t\t\t\t\t\t\t\"area\":       area_val,
  3307. \t\t\t\t\t\t\t\t\t\t\"deck_step\":  deck_step,
  3308. \t\t\t\t\t\t\t\t\t\t\"deck_fence\": deck_fence };
  3309. \t\t\t\t\$('#mitsumori_json').val(JSON.stringify(mitsumori_json));
  3310. \t\t\t\t
  3311. \t\t\t}
  3312. \t\t\t
  3313. \t\t}
  3314.         {% if color and color|length == 1 %}
  3315.             pc = \"指定なし\";
  3316. \t\t\t{% for cc in color %}{% if cc and cc['name'] %} pc = \"{{ cc['name'] }}\"; {% endif %}{% endfor %}
  3317. \t\t{% endif %}
  3318.         {% if p_w and (p_w|length == 1 or p_w|join == \"\") %}
  3319.             pw = \"指定なし\";
  3320. \t\t\t{% for pw in p_w %}{% if pw %} pw = \"{{ pw }}\"; {% endif %}{% endfor %}
  3321. \t\t{% endif %}
  3322.         {% if p_d and (p_d|length == 1 or p_d|join == \"\") %}
  3323.             pd = \"指定なし\";
  3324. \t\t\t{% for pd in p_d %}{% if pd %} pd = \"{{ pd }}\"; {% endif %}{% endfor %}
  3325. \t\t{% endif %}
  3326.         {% if p_h and (p_h|length == 1 or p_h|join == \"\") %}
  3327.             ph = \"指定なし\";
  3328. \t\t\t{% for ph in p_h %}{% if ph %} ph = \"{{ ph }}\"; {% endif %}{% endfor %}
  3329. \t\t{% endif %}
  3330.         {% if p_m and (p_m|length == 1 or p_m|join == \"\") %}
  3331.             pm = \"指定なし\";
  3332. \t\t\t{% for pm in p_m %}{% if pm %} pm = \"{{ pm }}\"; {% endif %}{% endfor %}
  3333. \t\t{% endif %}
  3334. \t\t// ページ読み込み時: タイプ別に quantity の初期値をセット
  3335. \t\t(function initQuantityByType(){
  3336. \t\t\tvar saleType = {{ ProductClass.SaleType.id }};
  3337. \t\t\tif(saleType == 2 && \$('#set_count').length){
  3338. \t\t\t\tvar _v = parseInt(\$('#set_count').val()) || 1;
  3339. \t\t\t\t\$('#quantity').val(_v);
  3340. \t\t\t\t\$('input[name=\"quantity\"]').val(_v);
  3341. \t\t\t} else if(saleType == 3 && \$('#daisu').length){
  3342. \t\t\t\t\$('#quantity').val(parseInt(\$('#daisu').val()) || 1);
  3343. \t\t\t} else if((saleType == 4 || saleType == 6) && \$('#maisu').length){
  3344. \t\t\t\t\$('#quantity').val(parseInt(\$('#maisu').val()) || 1);
  3345. \t\t\t} else if(saleType == 9 && \$('#quantity_only').length){
  3346. \t\t\t\t\$('#quantity').val(parseInt(\$('#quantity_only').val()) || 1);
  3347. \t\t\t}
  3348. \t\t})();
  3349. \t\tmitsumori_simulation(\"\",\"\");
  3350. \t\tfunction contact_form(product_id){
  3351. \t\t\t\$('#form1').attr('action', '{{ url('contact', {product:Product.id}) }}');
  3352. \t\t\t\$('#form1').submit();
  3353. \t\t}
  3354. \t\t// maisu / madoset は下部の新しい関数定義を使用
  3355. \t\tfunction heibei(bei){
  3356. \t\t\t\$('#heibei').val(parseInt(\$('#heibei').val()) + bei);
  3357. \t\t\tif(parseInt(\$('#heibei').val()) < 1){ \$('#heibei').val(1); }
  3358. \t\t\tif(parseInt(\$('#heibei').val()) > 100){ \$('#heibei').val(100); }
  3359. \t\t\t\$('#quantity').val(\$('#heibei').val());
  3360. \t\t\tmitsumori_simulation('heibei','heibei');
  3361. \t\t}
  3362. \t\tfunction daisu(dai){
  3363. \t\t\t\$('#daisu').val(parseInt(\$('#daisu').val()) + dai);
  3364. \t\t\tif(parseInt(\$('#daisu').val()) < 1){ \$('#daisu').val(1); }
  3365. \t\t\tif(parseInt(\$('#daisu').val()) > 10){ \$('#daisu').val(10); }
  3366. \t\t\t\$('#quantity').val(\$('#daisu').val());
  3367. \t\t\tmitsumori_simulation('daisu','daisu');
  3368. \t\t}
  3369. \t\tfunction maisu(mai){
  3370. \t\t\t\$('#maisu').val(parseInt(\$('#maisu').val()) + mai);
  3371. \t\t\tif(parseInt(\$('#maisu').val()) < 1){ \$('#maisu').val(1); }
  3372. \t\t\tif(parseInt(\$('#maisu').val()) > 100){ \$('#maisu').val(100); }
  3373. \t\t\t\$('#quantity').val(\$('#maisu').val());
  3374. \t\t\tmitsumori_simulation('maisu','maisu');
  3375. \t\t}
  3376. \t\t// タイプ2: セット数プルダウン連動
  3377. \t\tfunction madosetSelect(val){
  3378. \t\t\tvar v = parseInt(val);
  3379. \t\t\tif(v < 1) v = 1;
  3380. \t\t\tif(v > 20) v = 20;
  3381. \t\t\t// id=\"quantity\" と name=\"quantity\" 両方を確実に書き換え
  3382. \t\t\t\$('#quantity').val(v);
  3383. \t\t\t\$('input[name=\"quantity\"]').val(v);
  3384. \t\t\tmitsumori_simulation('set','set_count');
  3385. \t\t}
  3386. \t\t// タイプ2: ±ボタン版(後方互換)
  3387. \t\tfunction madoset(mai){
  3388. \t\t\tvar current = parseInt(\$('#set_count').val()) || 1;
  3389. \t\t\tvar next = current + mai;
  3390. \t\t\tif(next < 1) next = 1;
  3391. \t\t\tif(next > 20) next = 20;
  3392. \t\t\t\$('#set_count').val(next);
  3393. \t\t\tmadosetSelect(next);
  3394. \t\t}
  3395. \t\t// タイプ5: ステップ・フェンス選択値を mitsumori_json に保存するためのグローバル変数
  3396. \t\tvar deck_step = \"{% if mitsumori_json %}{{ mitsumori_json.deck_step|default('不要') }}{% else %}不要{% endif %}\";
  3397. \t\tvar deck_fence = \"{% if mitsumori_json %}{{ mitsumori_json.deck_fence|default('不要') }}{% else %}不要{% endif %}\";
  3398. \t\t// PDF出力: モーダルの mitsumori_json をフォームに同期してから送信
  3399. \t\tfunction syncPdfJson(){
  3400. \t\t\tvar jsonVal = \$('#mitsumori_json').val();
  3401. \t\t\t\$('#pdf_mitsumori_json').val(jsonVal);
  3402. \t\t}
  3403. \t\t// タイプ9: 商品のみ購入
  3404. \t\tfunction quantityOnly(val){
  3405. \t\t\tvar current = parseInt(\$('#quantity_only').val()) || 1;
  3406. \t\t\tvar next = current + val;
  3407. \t\t\tif(next < 1) next = 1;
  3408. \t\t\t\$('#quantity_only').val(next);
  3409. \t\t\t\$('#quantity').val(next);
  3410. \t\t}
  3411.     </script>
  3412.     <script type=\"application/ld+json\">
  3413.     {
  3414.         \"@context\": \"https://schema.org/\",
  3415.         \"@type\": \"Product\",
  3416.         \"name\": \"{{ Product.name }}\",
  3417.         \"image\": [
  3418.             {% for img in Product.ProductImage %}
  3419.                 \"{{ app.request.schemeAndHttpHost }}{{ asset(img, 'save_image') }}\"{% if not loop.last %},{% endif %}
  3420.             {% else %}
  3421.                 \"{{ app.request.schemeAndHttpHost }}{{ asset(''|no_image_product, 'save_image') }}\"
  3422.             {% endfor %}
  3423.         ],
  3424.         \"description\": \"{{ Product.description_list | default(Product.description_detail) | replace({'\\n': '', '\\r': ''}) | slice(0,300) }}\",
  3425.         {% if Product.code_min %}
  3426.         \"sku\": \"{{ Product.code_min }}\",
  3427.         {% endif %}
  3428.         \"offers\": {
  3429.             \"@type\": \"Offer\",
  3430.             \"url\": \"{{ url('product_detail', {'id': Product.id}) }}\",
  3431.             \"priceCurrency\": \"{{ eccube_config.currency }}\",
  3432.             \"price\": {{ Product.getPrice02IncTaxMin ? Product.getPrice02IncTaxMin : 0}},
  3433.             \"availability\": \"{{ Product.stock_find ? \"InStock\" : \"OutOfStock\" }}\"
  3434.         }
  3435.     }
  3436.     </script>
  3437. {% endblock %}
  3438. {% block main %}
  3439.     <div class=\"ec-productRole\" style=\"margin-top:20px;\">
  3440.         <div class=\"ec-grid2\">
  3441.             <div class=\"ec-grid2__cell\">
  3442.                 <div class=\"ec-sliderItemRole\">
  3443. \t                {# 商品名 #}
  3444. \t                <div class=\"ec-productRole__title\">
  3445. \t                    <h2 class=\"ec-headingTitle\">{{ Product.name }}</h2>
  3446. \t                </div>
  3447.                     {% if BaseInfo.option_favorite_product %}
  3448.                      <div style=\"position:relative;top: 20px;left: 10px;z-index:100;\">
  3449. \t\t\t\t\t\t{% if is_favorite == false %}
  3450.                         <form action=\"{{ url('product_add_favorite', {id:Product.id}) }}\" method=\"post\">
  3451.                            <button type=\"submit\" id=\"favorite\" class=\"favorite\">&#9825;</button>
  3452.                         </form>
  3453.                         {% else %}
  3454.                         <form action=\"{{ url('product_add_favorite', {id:Product.id}) }}\" method=\"post\">
  3455.                            <button type=\"submit\" id=\"favorite\" class=\"favorite\" style=\"color:red;\">&#9829;</button>
  3456.                         </form>
  3457.                         {% endif %}
  3458.                      </div>
  3459.                     {% endif %}
  3460.                     <div class=\"item_visual\">
  3461.                         {% for ProductImage in Product.ProductImage %}
  3462.                             <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>
  3463.                         {% else %}
  3464.                             <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>
  3465.                         {% endfor %}
  3466.                     </div>
  3467.                     <div class=\"item_nav\">
  3468.                         {% for ProductImage in Product.ProductImage %}
  3469.                             <div class=\"slideThumb\" data-index=\"{{ loop.index0 }}\"><img src=\"{{ asset(ProductImage, 'save_image') }}\" alt=\"\" width=\"80\" height=\"80\" loading=\"lazy\"></div>
  3470.                         {% endfor %}
  3471.                     </div>
  3472.                 </div>
  3473.             </div>
  3474.             <div class=\"ec-grid2__cell2\">
  3475.                 <div class=\"ec-productRole__profile\" >
  3476.                     {# 関連カテゴリ #}
  3477.                     {% if Product.ProductCategories is not empty %}
  3478.                         <div class=\"ec-productRole__category\" style=\"padding:10px 0;\">
  3479.                             {% for ProductCategory in Product.ProductCategories %}
  3480.                                 <ul>
  3481.                                     <li>
  3482.                                         {% for Category in ProductCategory.Category.path %}
  3483.                                             <a href=\"{{ url('product_list') }}?category_id={{ Category.id }}\">{{ Category.name }}</a> {%- if loop.last == false %}
  3484.                                             <span>></span>{% endif -%}
  3485.                                         {% endfor %}
  3486.                                     </li>
  3487.                                 </ul>
  3488.                             {% endfor %}
  3489.                         </div>
  3490.                     {% endif %}
  3491.                     {# 販売価格 #}
  3492.                     <div class=\"ec-productRole__price\">
  3493. \t\t\t\t\t\t<span style=\"color:black;font-size:15px;\">工事費込み価格</span>
  3494.                         {% if Product.hasProductClass -%}
  3495.                             {% if Product.getPrice02IncTaxMin == Product.getPrice02IncTaxMax %}
  3496.                                 <div class=\"ec-price\">
  3497.                                     <span class=\"ec-price__price price02-default\">{{ Product.getPrice02IncTaxMin|price }}</span>
  3498.                                     <span class=\"ec-price__tax\">({{ '税込'|trans }})~</span>
  3499.                                 </div>
  3500.                             {% else %}
  3501.                                 <div class=\"ec-price\">
  3502.                                     <span class=\"ec-price__price price02-default\">{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}</span>
  3503.                                     <span class=\"ec-price__tax\">({{ '税込'|trans }})</span>
  3504.                                 </div>
  3505.                             {% endif %}
  3506.                         {% else %}
  3507.                             <div class=\"ec-price\">
  3508.                                 <span class=\"ec-price__price\">{{ Product.getPrice02IncTaxMin|price }}</span>
  3509.                                     <span class=\"ec-price__tax\">({{ '税込'|trans }})~</span>
  3510.                             </div>
  3511.                         {% endif %}
  3512.                     </div>
  3513.                     {# タグ #}
  3514.                     <ul class=\"ec-productRole__tags\">
  3515.                         {% for Tag in Product.Tags %}
  3516.                             <li class=\"ec-productRole__tag tag_{{ Tag.id }}\">{{ Tag }}</li>
  3517.                         {% endfor %}
  3518.                     </ul>
  3519.                     {# 商品コード #}
  3520.                     {% if Product.code_min is not empty %}
  3521.                         <div class=\"ec-productRole__code\">
  3522.                             {{ '商品コード'|trans }}: <span class=\"product-code-default\">{{ Product.code_min }}{% if Product.code_min != Product.code_max %} ~ {{ Product.code_max }}{% endif %}</span>
  3523.                         </div>
  3524.                     {% endif %}
  3525.                     <div class=\"ec-productRole__description\">
  3526. \t\t\t\t        <div class=\"ec-rectHeading\">
  3527. \t\t\t\t            <h4>製品情報</h4>
  3528. \t\t\t\t        </div>
  3529. \t\t\t\t\t\t{{ Product.sales_infomation|raw|nl2br }}
  3530.                     </div>
  3531. \t\t\t\t\t<div class=\"card card-danger\" style=\"clear:both;margin:1px;\">
  3532. \t\t\t\t\t  <div class=\"card-header\">
  3533. \t\t\t\t\t    <h3 class=\"card-title\">見積シミュレーション</h3>
  3534. \t\t\t\t\t  </div>
  3535. \t\t\t\t\t  <div class=\"card-body p-2\">
  3536. \t\t\t\t\t{% set type1 = getProduct_field(Product.id,\"related_name1\") %}
  3537. \t\t\t\t\t\t{% set type2 = getProduct_field(Product.id,\"related_name2\") %}
  3538. \t\t\t\t\t\t{% set type3 = getProduct_field(Product.id,\"related_name3\") %}
  3539. \t\t\t\t\t\t{% set hasRelated = (type1 and related_product1 and related_product1|length)
  3540. \t\t\t\t\t\t                 or (type2 and related_product2 and related_product2|length)
  3541. \t\t\t\t\t\t                 or (type3 and related_product3 and related_product3|length) %}
  3542. \t\t\t\t\t\t{% if hasRelated %}
  3543. \t\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>
  3544. \t\t\t\t\t\t{% endif %}
  3545. \t\t\t\t\t\t{% if type1 and related_product1 and related_product1|length %}
  3546. \t\t\t\t\t    <div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  3547. \t\t\t\t\t\t  <label class=\"col-4 col-form-label mt-2\">{{ type1 }}</label>
  3548. \t\t\t\t\t\t  <div class=\"col-8 mt-2\">
  3549. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  3550. \t\t\t\t\t\t      {% for rp_id, rp_name in related_product1 %}
  3551. \t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  3552. \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>
  3553. \t\t\t\t\t\t      </div>
  3554. \t\t\t\t\t\t\t  {% endfor %}
  3555. \t\t\t\t\t\t    </div>
  3556. \t\t\t\t\t\t  </div>
  3557. \t\t\t\t\t    </div>
  3558.                         {% endif %}
  3559. \t\t\t\t\t\t{% if type2 and related_product2 and related_product2|length %}
  3560. \t\t\t\t\t    <div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  3561. \t\t\t\t\t\t  <label class=\"col-4 col-form-label mt-2\">{{ type2 }}</label>
  3562. \t\t\t\t\t\t  <div class=\"col-8 mt-2\">
  3563. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  3564. \t\t\t\t\t\t      {% for rp_id, rp_name in related_product2 %}
  3565. \t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  3566. \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>
  3567. \t\t\t\t\t\t      </div>
  3568. \t\t\t\t\t\t\t  {% endfor %}
  3569. \t\t\t\t\t\t    </div>
  3570. \t\t\t\t\t\t  </div>
  3571. \t\t\t\t\t    </div>
  3572.                         {% endif %}
  3573. \t\t\t\t\t\t{% if type3 and related_product3 and related_product3|length %}
  3574. \t\t\t\t\t    <div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  3575. \t\t\t\t\t\t  <label class=\"col-4 col-form-label mt-2\">{{ type3 }}</label>
  3576. \t\t\t\t\t\t  <div class=\"col-8 mt-2\">
  3577. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  3578. \t\t\t\t\t\t      {% for rp_id, rp_name in related_product3 %}
  3579. \t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  3580. \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>
  3581. \t\t\t\t\t\t      </div>
  3582. \t\t\t\t\t\t\t  {% endfor %}
  3583. \t\t\t\t\t\t    </div>
  3584. \t\t\t\t\t\t  </div>
  3585. \t\t\t\t\t    </div>
  3586.                         {% endif %}
  3587. \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>
  3588.                         {% if color and color|length and ProductClass.SaleType.id != 3 %}
  3589. \t\t\t\t\t    <div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  3590. \t\t\t\t\t\t  <label class=\"col-4 col-form-label mt-2\">カラー</label>
  3591. \t\t\t\t\t\t  <div class=\"col-8 mt-2\">
  3592. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  3593. \t\t\t\t\t\t    {% set idx = 0 %}
  3594. \t\t\t\t\t\t    {% for cc in color %}
  3595. \t\t\t\t\t\t      {% if cc and cc['name'] %}
  3596. \t\t\t\t\t\t      {% set idx = idx + 1 %}
  3597. \t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  3598. \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>
  3599. \t\t\t\t\t\t      </div>
  3600. \t\t\t\t\t\t      {% endif %}
  3601. \t\t\t\t\t\t\t{% endfor %}
  3602. \t\t\t\t\t\t    </div>
  3603. \t\t\t\t\t\t  </div>
  3604. \t\t\t\t\t    </div>
  3605.                         {% endif %}
  3606.                         {% if p_w and p_w|length and p_w|join != \"\" %}
  3607. \t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  3608. \t\t\t\t\t\t  <label class=\"col-4 col-form-label\">幅</label>
  3609. \t\t\t\t\t\t  <div class=\"col-8\">
  3610. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  3611. \t\t\t\t\t\t    {% set idx = 0 %}
  3612. \t\t\t\t\t\t    {% for pw in p_w %}
  3613. \t\t\t\t\t\t      {% if pw %}
  3614. \t\t\t\t\t\t      {% set idx = idx + 1 %}
  3615. \t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  3616. \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>
  3617. \t\t\t\t\t\t      </div>
  3618. \t\t\t\t\t\t      {% endif %}
  3619. \t\t\t\t\t\t\t{% endfor %}
  3620. \t\t\t\t\t\t    </div>
  3621. \t\t\t\t\t\t  </div>
  3622. \t\t\t\t\t\t</div>
  3623.                         {% endif %}
  3624.                         {% if p_d and p_d|length and p_d|join != \"\" %}
  3625. \t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  3626. \t\t\t\t\t\t  <label class=\"col-4 col-form-label\">奥行き</label>
  3627. \t\t\t\t\t\t  <div class=\"col-8\">
  3628. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  3629. \t\t\t\t\t\t    {% set idx = 0 %}
  3630. \t\t\t\t\t\t    {% for pd in p_d %}
  3631. \t\t\t\t\t\t      {% if pd %}
  3632. \t\t\t\t\t\t      {% set idx = idx + 1 %}
  3633. \t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  3634. \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>
  3635. \t\t\t\t\t\t      </div>
  3636. \t\t\t\t\t\t      {% endif %}
  3637. \t\t\t\t\t\t\t{% endfor %}
  3638. \t\t\t\t\t\t    </div>
  3639. \t\t\t\t\t\t  </div>
  3640. \t\t\t\t\t\t</div>
  3641.                         {% endif %}
  3642.                         {% if p_h and p_h|length and p_h|join != \"\" %}
  3643. \t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  3644. \t\t\t\t\t\t  <label class=\"col-4 col-form-label\">高さ</label>
  3645. \t\t\t\t\t\t  <div class=\"col-8\">
  3646. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  3647. \t\t\t\t\t\t    {% set idx = 0 %}
  3648. \t\t\t\t\t\t    {% for ph in p_h %}
  3649. \t\t\t\t\t\t      {% if ph %}
  3650. \t\t\t\t\t\t      {% set idx = idx + 1 %}
  3651. \t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  3652. \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>
  3653. \t\t\t\t\t\t      </div>
  3654. \t\t\t\t\t\t      {% endif %}
  3655. \t\t\t\t\t\t\t{% endfor %}
  3656. \t\t\t\t\t\t    </div>
  3657. \t\t\t\t\t\t  </div>
  3658. \t\t\t\t\t\t</div>
  3659.                         {% endif %}
  3660.                         {% if p_m and p_m|length and p_m|join != \"\" %}
  3661. \t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  3662. \t\t\t\t\t\t  <label class=\"col-4 col-form-label\">素材</label>
  3663. \t\t\t\t\t\t  <div class=\"col-8\">
  3664. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  3665. \t\t\t\t\t\t    {% set idx = 0 %}
  3666. \t\t\t\t\t\t    {% for pm in p_m %}
  3667. \t\t\t\t\t\t      {% if pm %}
  3668. \t\t\t\t\t\t      {% set idx = idx + 1 %}
  3669. \t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  3670. \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>
  3671. \t\t\t\t\t\t      </div>
  3672. \t\t\t\t\t\t      {% endif %}
  3673. \t\t\t\t\t\t\t{% endfor %}
  3674. \t\t\t\t\t\t    </div>
  3675. \t\t\t\t\t\t  </div>
  3676. \t\t\t\t\t\t</div>
  3677.                         {% endif %}
  3678. \t\t\t\t\t\t<!-- 1: 施工見積(通常) → 幅/奥行/高さ/素材/カラーは上部の共通ブロックで表示済み -->
  3679. \t\t\t\t\t\t{% if ProductClass.SaleType.id == 1 %}
  3680. \t\t\t\t\t\t{% endif %}
  3681. \t\t\t\t\t\t<!-- 2: 施工見積(補助金・窓) -->
  3682. \t\t\t\t\t\t{% if ProductClass.SaleType.id == 2 %}
  3683. \t\t\t\t\t\t\t{# 窓サイズ(自由入力) #}
  3684. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  3685. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">窓サイズ</label>
  3686. \t\t\t\t\t\t\t  <div class=\"col-4\">
  3687. \t\t\t\t\t\t\t    <div class=\"input-group\">
  3688. \t\t\t\t\t\t\t      <span class=\"input-group-text\">窓幅</span>
  3689. \t\t\t\t\t\t\t      <input type=\"number\" name=\"mado_w\" id=\"mado_w\" class=\"form-control\" value=\"{{ mitsumori_json.mado_w|default('') }}\" placeholder=\"例: 90\" min=\"1\" onchange=\"mitsumori_simulation('mado_w','mado_w');\">
  3690. \t\t\t\t\t\t\t      <span class=\"input-group-text\">cm</span>
  3691. \t\t\t\t\t\t\t    </div>
  3692. \t\t\t\t\t\t\t  </div>
  3693. \t\t\t\t\t\t\t  <div class=\"col-4\">
  3694. \t\t\t\t\t\t\t    <div class=\"input-group\">
  3695. \t\t\t\t\t\t\t      <span class=\"input-group-text\">窓高さ</span>
  3696. \t\t\t\t\t\t\t      <input type=\"number\" name=\"mado_h\" id=\"mado_h\" class=\"form-control\" value=\"{{ mitsumori_json.mado_h|default('') }}\" placeholder=\"例: 110\" min=\"1\" onchange=\"mitsumori_simulation('mado_h','mado_h');\">
  3697. \t\t\t\t\t\t\t      <span class=\"input-group-text\">cm</span>
  3698. \t\t\t\t\t\t\t    </div>
  3699. \t\t\t\t\t\t\t  </div>
  3700. \t\t\t\t\t\t\t</div>
  3701. \t\t\t\t\t\t\t{# 窓タイプ(p_d データから選択肢を生成) #}
  3702. \t\t\t\t\t\t\t{% if p_d and p_d|length and p_d|join != \"\" %}
  3703. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  3704. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">窓タイプ</label>
  3705. \t\t\t\t\t\t\t  <div class=\"col-8\">
  3706. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  3707. \t\t\t\t\t\t\t    {% set idx = 0 %}
  3708. \t\t\t\t\t\t\t    {% for pd_val in p_d %}
  3709. \t\t\t\t\t\t\t      {% if pd_val %}
  3710. \t\t\t\t\t\t\t      {% set idx = idx + 1 %}
  3711. \t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  3712. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"mado_type\" id=\"mado_type_{{ idx }}\" value=\"{{ pd_val }}\"
  3713. \t\t\t\t\t\t\t          {% if (mitsumori_json and mitsumori_json.pd == pd_val) or (p_d|length == 1) %}checked{% endif %}
  3714. \t\t\t\t\t\t\t          onclick=\"mitsumori_simulation('pd','mado_type_{{ idx }}');\">
  3715. \t\t\t\t\t\t\t        <label for=\"mado_type_{{ idx }}\">{{ pd_val }}</label>
  3716. \t\t\t\t\t\t\t      </div>
  3717. \t\t\t\t\t\t\t      {% endif %}
  3718. \t\t\t\t\t\t\t    {% endfor %}
  3719. \t\t\t\t\t\t\t    </div>
  3720. \t\t\t\t\t\t\t  </div>
  3721. \t\t\t\t\t\t\t</div>
  3722. \t\t\t\t\t\t\t{% endif %}
  3723. \t\t\t\t\t\t\t{# ガラスタイプ(p_m データから選択肢を生成) #}
  3724. \t\t\t\t\t\t\t{% if p_m and p_m|length and p_m|join != \"\" %}
  3725. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  3726. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">ガラスタイプ</label>
  3727. \t\t\t\t\t\t\t  <div class=\"col-8\">
  3728. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  3729. \t\t\t\t\t\t\t    {% set idx = 0 %}
  3730. \t\t\t\t\t\t\t    {% for pm_val in p_m %}
  3731. \t\t\t\t\t\t\t      {% if pm_val %}
  3732. \t\t\t\t\t\t\t      {% set idx = idx + 1 %}
  3733. \t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  3734. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"glass_type\" id=\"glass_type_{{ idx }}\" value=\"{{ pm_val }}\"
  3735. \t\t\t\t\t\t\t          {% if (mitsumori_json and mitsumori_json.pm == pm_val) or (p_m|length == 1) %}checked{% endif %}
  3736. \t\t\t\t\t\t\t          onclick=\"mitsumori_simulation('pm','glass_type_{{ idx }}');\">
  3737. \t\t\t\t\t\t\t        <label for=\"glass_type_{{ idx }}\">{{ pm_val }}</label>
  3738. \t\t\t\t\t\t\t      </div>
  3739. \t\t\t\t\t\t\t      {% endif %}
  3740. \t\t\t\t\t\t\t    {% endfor %}
  3741. \t\t\t\t\t\t\t    </div>
  3742. \t\t\t\t\t\t\t  </div>
  3743. \t\t\t\t\t\t\t</div>
  3744. \t\t\t\t\t\t\t{% endif %}
  3745. \t\t\t\t\t\t\t{# セット数(プルダウン) → quantity に連動 #}
  3746. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  3747. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">セット数</label>
  3748. \t\t\t\t\t\t\t  <div class=\"col-8\">
  3749. \t\t\t\t\t\t\t    <select name=\"set_count\" id=\"set_count\" class=\"form-control\" onchange=\"madosetSelect(this.value);\">
  3750. \t\t\t\t\t\t\t      {% for i in 1..20 %}
  3751. \t\t\t\t\t\t\t        <option value=\"{{ i }}\" {% if mitsumori_json and mitsumori_json.set_count == i %}selected{% endif %}>{{ i }} セット</option>
  3752. \t\t\t\t\t\t\t      {% endfor %}
  3753. \t\t\t\t\t\t\t    </select>
  3754. \t\t\t\t\t\t\t  </div>
  3755. \t\t\t\t\t\t\t</div>
  3756. \t\t\t\t\t\t{% endif %}
  3757. \t\t\t\t\t\t<!-- 3: 施工見積(物置・ゴミステーション) -->
  3758. \t\t\t\t\t\t{% if ProductClass.SaleType.id == 3 %}
  3759. \t\t\t\t\t\t\t{# 幅・奥行き・高さ(p_w/p_d/p_h からラジオボタン生成) #}
  3760. \t\t\t\t\t\t\t{% if p_w and p_w|length and p_w|join != \"\" %}
  3761. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  3762. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">幅</label>
  3763. \t\t\t\t\t\t\t  <div class=\"col-8\">
  3764. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  3765. \t\t\t\t\t\t\t    {% set idx = 0 %}
  3766. \t\t\t\t\t\t\t    {% for pw_val in p_w %}{% if pw_val %}{% set idx = idx + 1 %}
  3767. \t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  3768. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"pw\" id=\"pw3_{{ idx }}\" value=\"{{ pw_val }}\"
  3769. \t\t\t\t\t\t\t          {% if (mitsumori_json and mitsumori_json.pw == pw_val) or p_w|length == 1 %}checked{% endif %}
  3770. \t\t\t\t\t\t\t          onclick=\"mitsumori_simulation('pw','pw3_{{ idx }}');\">
  3771. \t\t\t\t\t\t\t        <label for=\"pw3_{{ idx }}\">{{ pw_val }}</label>
  3772. \t\t\t\t\t\t\t      </div>
  3773. \t\t\t\t\t\t\t    {% endif %}{% endfor %}
  3774. \t\t\t\t\t\t\t    </div>
  3775. \t\t\t\t\t\t\t  </div>
  3776. \t\t\t\t\t\t\t</div>
  3777. \t\t\t\t\t\t\t{% endif %}
  3778. \t\t\t\t\t\t\t{% if p_d and p_d|length and p_d|join != \"\" %}
  3779. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  3780. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">奥行き</label>
  3781. \t\t\t\t\t\t\t  <div class=\"col-8\">
  3782. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  3783. \t\t\t\t\t\t\t    {% set idx = 0 %}
  3784. \t\t\t\t\t\t\t    {% for pd_val in p_d %}{% if pd_val %}{% set idx = idx + 1 %}
  3785. \t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  3786. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"pd\" id=\"pd3_{{ idx }}\" value=\"{{ pd_val }}\"
  3787. \t\t\t\t\t\t\t          {% if (mitsumori_json and mitsumori_json.pd == pd_val) or p_d|length == 1 %}checked{% endif %}
  3788. \t\t\t\t\t\t\t          onclick=\"mitsumori_simulation('pd','pd3_{{ idx }}');\">
  3789. \t\t\t\t\t\t\t        <label for=\"pd3_{{ idx }}\">{{ pd_val }}</label>
  3790. \t\t\t\t\t\t\t      </div>
  3791. \t\t\t\t\t\t\t    {% endif %}{% endfor %}
  3792. \t\t\t\t\t\t\t    </div>
  3793. \t\t\t\t\t\t\t  </div>
  3794. \t\t\t\t\t\t\t</div>
  3795. \t\t\t\t\t\t\t{% endif %}
  3796. \t\t\t\t\t\t\t{% if p_h and p_h|length and p_h|join != \"\" %}
  3797. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  3798. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">高さ</label>
  3799. \t\t\t\t\t\t\t  <div class=\"col-8\">
  3800. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  3801. \t\t\t\t\t\t\t    {% set idx = 0 %}
  3802. \t\t\t\t\t\t\t    {% for ph_val in p_h %}{% if ph_val %}{% set idx = idx + 1 %}
  3803. \t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  3804. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"ph\" id=\"ph3_{{ idx }}\" value=\"{{ ph_val }}\"
  3805. \t\t\t\t\t\t\t          {% if (mitsumori_json and mitsumori_json.ph == ph_val) or p_h|length == 1 %}checked{% endif %}
  3806. \t\t\t\t\t\t\t          onclick=\"mitsumori_simulation('ph','ph3_{{ idx }}');\">
  3807. \t\t\t\t\t\t\t        <label for=\"ph3_{{ idx }}\">{{ ph_val }}</label>
  3808. \t\t\t\t\t\t\t      </div>
  3809. \t\t\t\t\t\t\t    {% endif %}{% endfor %}
  3810. \t\t\t\t\t\t\t    </div>
  3811. \t\t\t\t\t\t\t  </div>
  3812. \t\t\t\t\t\t\t</div>
  3813. \t\t\t\t\t\t\t{% endif %}
  3814. \t\t\t\t\t\t\t{# 棚タイプ(p_m データから選択肢を生成) #}
  3815. \t\t\t\t\t\t\t{% if p_m and p_m|length and p_m|join != \"\" %}
  3816. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  3817. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">棚タイプ<br><small class=\"text-muted\">(間仕切り仕様)</small></label>
  3818. \t\t\t\t\t\t\t  <div class=\"col-8\">
  3819. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  3820. \t\t\t\t\t\t\t    {% set idx = 0 %}
  3821. \t\t\t\t\t\t\t    {% for pm_val in p_m %}{% if pm_val %}{% set idx = idx + 1 %}
  3822. \t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  3823. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"pm\" id=\"pm3_{{ idx }}\" value=\"{{ pm_val }}\"
  3824. \t\t\t\t\t\t\t          {% if (mitsumori_json and mitsumori_json.pm == pm_val) or p_m|length == 1 %}checked{% endif %}
  3825. \t\t\t\t\t\t\t          onclick=\"mitsumori_simulation('pm','pm3_{{ idx }}');\">
  3826. \t\t\t\t\t\t\t        <label for=\"pm3_{{ idx }}\">{{ pm_val }}</label>
  3827. \t\t\t\t\t\t\t      </div>
  3828. \t\t\t\t\t\t\t    {% endif %}{% endfor %}
  3829. \t\t\t\t\t\t\t    </div>
  3830. \t\t\t\t\t\t\t  </div>
  3831. \t\t\t\t\t\t\t</div>
  3832. \t\t\t\t\t\t\t{% endif %}
  3833. \t\t\t\t\t\t\t{# カラー(共通の color データ使用) #}
  3834. \t\t\t\t\t\t\t{% if color and color|length %}
  3835. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  3836. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">カラー</label>
  3837. \t\t\t\t\t\t\t  <div class=\"col-8\">
  3838. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  3839. \t\t\t\t\t\t\t    {% set idx = 0 %}
  3840. \t\t\t\t\t\t\t    {% for cc in color %}{% if cc and cc['name'] %}{% set idx = idx + 1 %}
  3841. \t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  3842. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"color3\" id=\"cc3_{{ idx }}\" value=\"{{ cc['name'] }}\"
  3843. \t\t\t\t\t\t\t          {% if (mitsumori_json and mitsumori_json.pc == cc['name']) or color|length == 1 %}checked{% endif %}
  3844. \t\t\t\t\t\t\t          onclick=\"mitsumori_simulation('pc','cc3_{{ idx }}');\">
  3845. \t\t\t\t\t\t\t        <label for=\"cc3_{{ idx }}\">{{ cc['name'] }}</label>
  3846. \t\t\t\t\t\t\t      </div>
  3847. \t\t\t\t\t\t\t    {% endif %}{% endfor %}
  3848. \t\t\t\t\t\t\t    </div>
  3849. \t\t\t\t\t\t\t  </div>
  3850. \t\t\t\t\t\t\t</div>
  3851. \t\t\t\t\t\t\t{% endif %}
  3852. \t\t\t\t\t\t\t{# 台数 #}
  3853. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  3854. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">台数</label>
  3855. \t\t\t\t\t\t\t  <div class=\"col-4\">
  3856. \t\t\t\t\t\t\t    <div class=\"input-group mb-3\">
  3857. \t\t\t\t\t\t\t      <input type=\"number\" name=\"daisu\" id=\"daisu\" class=\"form-control\" value=\"{{ mitsumori_json.daisu|default('1') }}\" min=\"1\" max=\"10\" onchange=\"mitsumori_simulation('daisu','daisu');\">
  3858. \t\t\t\t\t\t\t      <span class=\"input-group-text\">台</span>
  3859. \t\t\t\t\t\t\t    </div>
  3860. \t\t\t\t\t\t\t  </div>
  3861. \t\t\t\t\t\t\t  <div class=\"col-4\">
  3862. \t\t\t\t\t\t\t    <button type=\"button\" class=\"btn btn-info\" onclick=\"daisu(+1);\">+</button>
  3863. \t\t\t\t\t\t\t    <button type=\"button\" class=\"btn btn-danger\" onclick=\"daisu(-1);\">ー</button>
  3864. \t\t\t\t\t\t\t  </div>
  3865. \t\t\t\t\t\t\t</div>
  3866. \t\t\t\t\t\t{% endif %}
  3867. \t\t\t\t\t\t<!-- 4: 施工見積(フェンス・組み立て式) -->
  3868. \t\t\t\t\t\t{% if ProductClass.SaleType.id == 4 %}
  3869. \t\t\t\t\t\t\t{# 枚数 #}
  3870. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  3871. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">枚数</label>
  3872. \t\t\t\t\t\t\t  <div class=\"col-4 mb-3\">
  3873. \t\t\t\t\t\t\t    <div class=\"input-group\">
  3874. \t\t\t\t\t\t\t      <input type=\"number\" name=\"maisu\" id=\"maisu\" class=\"form-control\" value=\"{{ mitsumori_json.maisu|default('3') }}\" min=\"3\" max=\"20\" onchange=\"mitsumori_simulation('maisu','maisu');\">
  3875. \t\t\t\t\t\t\t      <span class=\"input-group-text\">枚</span>
  3876. \t\t\t\t\t\t\t    </div>
  3877. \t\t\t\t\t\t\t  </div>
  3878. \t\t\t\t\t\t\t  <div class=\"col-4\">
  3879. \t\t\t\t\t\t\t    <button type=\"button\" class=\"btn btn-info\" onclick=\"maisu(+1);\">+</button>
  3880. \t\t\t\t\t\t\t    <button type=\"button\" class=\"btn btn-danger\" onclick=\"maisu(-1);\">ー</button>
  3881. \t\t\t\t\t\t\t  </div>
  3882. \t\t\t\t\t\t\t</div>
  3883. \t\t\t\t\t\t{% endif %}
  3884. \t\t\t\t\t\t<!-- 5: 施工見積(ウッドデッキ・タイルデッキ) -->
  3885. \t\t\t\t\t\t{% if ProductClass.SaleType.id == 5 %}
  3886. \t\t\t\t\t\t\t{# 施工面積(㎡ 直接入力) #}
  3887. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  3888. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">施工面積</label>
  3889. \t\t\t\t\t\t\t  <div class=\"col-8\">
  3890. \t\t\t\t\t\t\t    <div class=\"input-group\">
  3891. \t\t\t\t\t\t\t      <input type=\"number\" name=\"area\" id=\"area\"
  3892. \t\t\t\t\t\t\t        class=\"form-control\"
  3893. \t\t\t\t\t\t\t        value=\"{{ mitsumori_json.area|default('') }}\"
  3894. \t\t\t\t\t\t\t        placeholder=\"例: 7.5\"
  3895. \t\t\t\t\t\t\t        min=\"0.1\" step=\"0.1\"
  3896. \t\t\t\t\t\t\t        onchange=\"mitsumori_simulation('area','area');\">
  3897. \t\t\t\t\t\t\t      <span class=\"input-group-text\">㎡</span>
  3898. \t\t\t\t\t\t\t    </div>
  3899. \t\t\t\t\t\t\t    <small class=\"text-muted\">幅(cm) × 奥行き(cm) ÷ 10000 = ㎡</small>
  3900. \t\t\t\t\t\t\t  </div>
  3901. \t\t\t\t\t\t\t</div>
  3902. \t\t\t\t\t\t\t{# ステップの有無 #}
  3903. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  3904. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">ステップ</label>
  3905. \t\t\t\t\t\t\t  <div class=\"col-8\">
  3906. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  3907. \t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  3908. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"deck_step\" id=\"deck_step_yes\" value=\"必要\"
  3909. \t\t\t\t\t\t\t          {% if mitsumori_json and mitsumori_json.deck_step == '必要' %}checked{% endif %}
  3910. \t\t\t\t\t\t\t          onclick=\"mitsumori_simulation('op0','deck_step_yes');\">
  3911. \t\t\t\t\t\t\t        <label for=\"deck_step_yes\">必要</label>
  3912. \t\t\t\t\t\t\t      </div>
  3913. \t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  3914. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"deck_step\" id=\"deck_step_no\" value=\"不要\"
  3915. \t\t\t\t\t\t\t          {% if not mitsumori_json or mitsumori_json.deck_step == '不要' or not mitsumori_json.deck_step %}checked{% endif %}
  3916. \t\t\t\t\t\t\t          onclick=\"mitsumori_simulation('op0','deck_step_no');\">
  3917. \t\t\t\t\t\t\t        <label for=\"deck_step_no\">不要</label>
  3918. \t\t\t\t\t\t\t      </div>
  3919. \t\t\t\t\t\t\t    </div>
  3920. \t\t\t\t\t\t\t  </div>
  3921. \t\t\t\t\t\t\t</div>
  3922. \t\t\t\t\t\t\t{# ウッドデッキフェンスの有無 #}
  3923. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  3924. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">デッキフェンス</label>
  3925. \t\t\t\t\t\t\t  <div class=\"col-8\">
  3926. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  3927. \t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  3928. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"deck_fence\" id=\"deck_fence_yes\" value=\"必要\"
  3929. \t\t\t\t\t\t\t          {% if mitsumori_json and mitsumori_json.deck_fence == '必要' %}checked{% endif %}
  3930. \t\t\t\t\t\t\t          onclick=\"mitsumori_simulation('op1','deck_fence_yes');\">
  3931. \t\t\t\t\t\t\t        <label for=\"deck_fence_yes\">必要</label>
  3932. \t\t\t\t\t\t\t      </div>
  3933. \t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  3934. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"deck_fence\" id=\"deck_fence_no\" value=\"不要\"
  3935. \t\t\t\t\t\t\t          {% if not mitsumori_json or mitsumori_json.deck_fence == '不要' or not mitsumori_json.deck_fence %}checked{% endif %}
  3936. \t\t\t\t\t\t\t          onclick=\"mitsumori_simulation('op1','deck_fence_no');\">
  3937. \t\t\t\t\t\t\t        <label for=\"deck_fence_no\">不要</label>
  3938. \t\t\t\t\t\t\t      </div>
  3939. \t\t\t\t\t\t\t    </div>
  3940. \t\t\t\t\t\t\t  </div>
  3941. \t\t\t\t\t\t\t</div>
  3942. \t\t\t\t\t\t{% endif %}
  3943. \t\t\t\t\t\t<!-- 6: 施工見積(芝生・枚数・数量買い) -->
  3944. \t\t\t\t\t\t{% if ProductClass.SaleType.id == 6 %}
  3945. \t\t\t\t\t\t\t{# 規格(p_m データ → 素材から抽出) #}
  3946. \t\t\t\t\t\t\t{% if p_m and p_m|length and p_m|join != \"\" %}
  3947. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  3948. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">規格</label>
  3949. \t\t\t\t\t\t\t  <div class=\"col-8\">
  3950. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  3951. \t\t\t\t\t\t\t    {% set idx = 0 %}
  3952. \t\t\t\t\t\t\t    {% for pm_val in p_m %}{% if pm_val %}{% set idx = idx + 1 %}
  3953. \t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  3954. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"pm\" id=\"pm6_{{ idx }}\" value=\"{{ pm_val }}\"
  3955. \t\t\t\t\t\t\t          {% if (mitsumori_json and mitsumori_json.pm == pm_val) or p_m|length == 1 %}checked{% endif %}
  3956. \t\t\t\t\t\t\t          onclick=\"mitsumori_simulation('pm','pm6_{{ idx }}');\">
  3957. \t\t\t\t\t\t\t        <label for=\"pm6_{{ idx }}\">{{ pm_val }}</label>
  3958. \t\t\t\t\t\t\t      </div>
  3959. \t\t\t\t\t\t\t    {% endif %}{% endfor %}
  3960. \t\t\t\t\t\t\t    </div>
  3961. \t\t\t\t\t\t\t  </div>
  3962. \t\t\t\t\t\t\t</div>
  3963. \t\t\t\t\t\t\t{% endif %}
  3964. \t\t\t\t\t\t\t{# 芝の長さ(p_w データ → 幅から抽出) #}
  3965. \t\t\t\t\t\t\t{% if p_w and p_w|length and p_w|join != \"\" %}
  3966. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  3967. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">芝の長さ</label>
  3968. \t\t\t\t\t\t\t  <div class=\"col-8\">
  3969. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  3970. \t\t\t\t\t\t\t    {% set idx = 0 %}
  3971. \t\t\t\t\t\t\t    {% for pw_val in p_w %}{% if pw_val %}{% set idx = idx + 1 %}
  3972. \t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  3973. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"pw\" id=\"pw6_{{ idx }}\" value=\"{{ pw_val }}\"
  3974. \t\t\t\t\t\t\t          {% if (mitsumori_json and mitsumori_json.pw == pw_val) or p_w|length == 1 %}checked{% endif %}
  3975. \t\t\t\t\t\t\t          onclick=\"mitsumori_simulation('pw','pw6_{{ idx }}');\">
  3976. \t\t\t\t\t\t\t        <label for=\"pw6_{{ idx }}\">{{ pw_val }}</label>
  3977. \t\t\t\t\t\t\t      </div>
  3978. \t\t\t\t\t\t\t    {% endif %}{% endfor %}
  3979. \t\t\t\t\t\t\t    </div>
  3980. \t\t\t\t\t\t\t  </div>
  3981. \t\t\t\t\t\t\t</div>
  3982. \t\t\t\t\t\t\t{% endif %}
  3983. \t\t\t\t\t\t\t{# 施工面積(㎡ 自由入力) #}
  3984. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  3985. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">施工面積</label>
  3986. \t\t\t\t\t\t\t  <div class=\"col-8\">
  3987. \t\t\t\t\t\t\t    <div class=\"input-group\">
  3988. \t\t\t\t\t\t\t      <input type=\"number\" name=\"area\" id=\"area\"
  3989. \t\t\t\t\t\t\t        class=\"form-control\"
  3990. \t\t\t\t\t\t\t        value=\"{{ mitsumori_json.area|default('') }}\"
  3991. \t\t\t\t\t\t\t        placeholder=\"例: 10.5\"
  3992. \t\t\t\t\t\t\t        min=\"0.1\" step=\"0.1\"
  3993. \t\t\t\t\t\t\t        onchange=\"mitsumori_simulation('area','area');\">
  3994. \t\t\t\t\t\t\t      <span class=\"input-group-text\">平米</span>
  3995. \t\t\t\t\t\t\t    </div>
  3996. \t\t\t\t\t\t\t  </div>
  3997. \t\t\t\t\t\t\t</div>
  3998. \t\t\t\t\t\t{% endif %}
  3999. \t\t\t\t\t\t<!-- 9: 商品のみ購入 -->
  4000. \t\t\t\t\t\t{% if ProductClass.SaleType.id == 9 %}
  4001. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  4002. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">数量</label>
  4003. \t\t\t\t\t\t\t  <div class=\"col-4\">
  4004. \t\t\t\t\t\t\t    <div class=\"input-group mb-3\">
  4005. \t\t\t\t\t\t\t      <input type=\"number\" name=\"quantity_only\" id=\"quantity_only\" class=\"form-control\" value=\"1\" min=\"1\" onchange=\"\$('#quantity').val(this.value);\">
  4006. \t\t\t\t\t\t\t      <span class=\"input-group-text\">個</span>
  4007. \t\t\t\t\t\t\t    </div>
  4008. \t\t\t\t\t\t\t  </div>
  4009. \t\t\t\t\t\t\t  <div class=\"col-4\">
  4010. \t\t\t\t\t\t\t    <button type=\"button\" class=\"btn btn-info\" onclick=\"quantityOnly(+1);\">+</button>
  4011. \t\t\t\t\t\t\t    <button type=\"button\" class=\"btn btn-danger\" onclick=\"quantityOnly(-1);\">ー</button>
  4012. \t\t\t\t\t\t\t  </div>
  4013. \t\t\t\t\t\t\t</div>
  4014. \t\t\t\t\t\t{% endif %}
  4015. \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>
  4016. \t\t\t\t\t\t{% for i in 0..10 %}
  4017. \t\t\t\t\t\t\t{% if op and op|length >= i+1 %}
  4018. \t\t\t\t\t\t\t{% if op[i]['name'] %}
  4019. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  4020. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">{{ op[i]['name'] }}</label>
  4021. \t\t\t\t\t\t\t  <div class=\"col-8\">
  4022. \t\t\t\t\t            {{ op[i]['comment'] }}
  4023. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  4024. \t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  4025. \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');\"><label for=\"op{{ i }}_1\">{{ op[i]['on'] }}</label>
  4026. \t\t\t\t\t\t\t      </div>
  4027. \t\t\t\t\t\t\t    </div>
  4028. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  4029. \t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  4030. \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');\"><label for=\"op{{ i }}_2\">{{ op[i]['off'] }}</label>
  4031. \t\t\t\t\t\t\t      </div>
  4032. \t\t\t\t\t\t\t    </div>
  4033. \t\t\t\t\t\t\t  </div>
  4034. \t\t\t\t\t\t\t</div>
  4035. \t\t\t\t\t\t\t{% endif %}
  4036. \t\t\t\t\t\t\t{% endif %}
  4037. \t\t\t\t\t\t{% endfor %}
  4038. \t\t\t\t\t  </div>
  4039. \t\t\t\t\t  <!-- /.card-body -->
  4040. \t\t\t\t\t</div>
  4041.                     <form action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\" id=\"form1\" name=\"form1\">
  4042.                         {% if Product.stock_find %}
  4043.                             <div class=\"ec-productRole__actions\">
  4044.                                 {% if form.classcategory_id1 is defined %}
  4045.                                     <div class=\"ec-select\">
  4046.                                         {{ form_row(form.classcategory_id1) }}
  4047.                                         {{ form_errors(form.classcategory_id1) }}
  4048.                                     </div>
  4049.                                     {% if form.classcategory_id2 is defined %}
  4050.                                         <div class=\"ec-select\">
  4051.                                             {{ form_row(form.classcategory_id2) }}
  4052.                                             {{ form_errors(form.classcategory_id2) }}
  4053.                                         </div>
  4054.                                     {% endif %}
  4055.                                 {% endif %}
  4056.                                 <div class=\"ec-numberInput\">
  4057.                                     {{ form_widget(form.quantity, { type: 'hidden' }) }}
  4058.                                     {{ form_errors(form.quantity) }}
  4059.                                 </div>
  4060.                             </div>
  4061.                         {% else %}
  4062.                             <div class=\"ec-productRole__btn\">
  4063.                                 <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  4064.                                     {{ 'ただいま品切れ中です。'|trans }}
  4065.                                 </button>
  4066.                             </div>
  4067.                         {% endif %}
  4068.                         <div class=\"ec-productRole__btn mt-3\">
  4069.                            <button type=\"submit\" id=\"cart_btn\" class=\"ec-blockBtn--action add-cart\">施工検討リストに入れる</button>
  4070.                         </div>
  4071.                         {{ form_rest(form) }}
  4072.                     </form>
  4073.                     <div class=\"ec-modal\">
  4074.                         <div class=\"ec-modal-overlay\">
  4075.                             <div class=\"ec-modal-wrap\">
  4076.                                 <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
  4077.                                 <div id=\"ec-modal-header\" class=\"text-center\">{{ '施工検討リストに追加しました。'|trans }}</div>
  4078.                                 <div class=\"ec-modal-box\">
  4079.                                     <div class=\"ec-role\">
  4080.                                         <span class=\"ec-inlineBtn--cancel\">{{ '商品検索を続ける'|trans }}</span>
  4081.                                         <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ '施工検討リストへ進む'|trans }}</a>
  4082.                                     </div>
  4083.                                 </div>
  4084.                             </div>
  4085.                         </div>
  4086.                     </div>
  4087.                     <div class=\"ec-productRole__description\">{{ Product.description_detail|raw|nl2br }}
  4088.                     </div>
  4089.                 </div>
  4090. \t\t\t\t<div class=\"card col-12 collapsed-card sticky-top float-right\">
  4091. \t\t\t\t\t<div class=\"card-header\">
  4092. \t\t\t\t\t  <h3 class=\"card-title\">現在のお見積り額</h3>
  4093. \t\t\t\t\t  <div class=\"card-tools\">
  4094. \t\t\t\t\t    <span class=\"float-left\" id=\"mitsumori_message\">395000円</span>
  4095. \t\t\t\t\t    <button type=\"button\" class=\"btn btn-tool\" data-card-widget=\"collapse\">
  4096. \t\t\t\t\t      <i class=\"fas fa-plus\"></i>
  4097. \t\t\t\t\t    </button>
  4098. \t\t\t\t\t  </div>
  4099. \t\t\t\t\t</div>
  4100. \t\t\t\t\t<div class=\"card-body p-0\">
  4101. \t\t\t\t\t  <ul class=\"nav nav-pills flex-column\">
  4102. \t\t\t\t\t    <li class=\"nav-item active\">
  4103. \t\t\t\t\t      <a class=\"nav-link\">
  4104. \t\t\t\t\t        <i class=\"far fa-file-alt\"></i> 合計(工事費・税込)
  4105. \t\t\t\t\t        <span class=\"float-right\" id=\"mitsumori_goukei\">395,000円</span>
  4106. \t\t\t\t\t      </a>
  4107. \t\t\t\t\t    </li>
  4108. \t\t\t\t\t    <li class=\"nav-item active\">
  4109. \t\t\t\t\t      <a class=\"nav-link\">
  4110. \t\t\t\t\t        <i class=\"far fa-file-alt\"></i> 商品価格
  4111. \t\t\t\t\t        <span class=\"float-right\" id=\"mitsumori_price\">307,008円</span>
  4112. \t\t\t\t\t      </a>
  4113. \t\t\t\t\t    </li>
  4114. \t\t\t\t\t    <li class=\"nav-item\">
  4115. \t\t\t\t\t      <a class=\"nav-link\">
  4116. \t\t\t\t\t        &nbsp;&nbsp;<i class=\"far fa-file-alt\"></i> カタログ価格
  4117. \t\t\t\t\t        <span class=\"float-right\" id=\"maker_price\">479,700円</span>
  4118. \t\t\t\t\t      </a>
  4119. \t\t\t\t\t    </li>
  4120. \t\t\t\t\t    <li class=\"nav-item\">
  4121. \t\t\t\t\t      <a class=\"nav-link\">
  4122. \t\t\t\t\t        &nbsp;&nbsp;<i class=\"far fa-file-alt\"></i> お値引き
  4123. \t\t\t\t\t        <span class=\"float-right\" id=\"mitsumori_off\">-172,692円</span>
  4124. \t\t\t\t\t      </a>
  4125. \t\t\t\t\t    </li>
  4126. \t\t\t\t\t    <li class=\"nav-item\">
  4127. \t\t\t\t\t      <a class=\"nav-link\">
  4128. \t\t\t\t\t        <i class=\"far fa-file-alt\"></i> 基本工事費
  4129. \t\t\t\t\t        <span class=\"float-right\" id=\"mitsumori_ct\">53,250円</span>
  4130. \t\t\t\t\t      </a>
  4131. \t\t\t\t\t    </li>
  4132. \t\t\t\t\t    <li class=\"nav-item\">
  4133. \t\t\t\t\t      <a class=\"nav-link\">
  4134. \t\t\t\t\t        <i class=\"far fa-file-alt\"></i> 施工オプション
  4135. \t\t\t\t\t        <span class=\"float-right\"id=\"mitsumori_option\">6,297円</span>
  4136. \t\t\t\t\t      </a>
  4137. \t\t\t\t\t    </li>
  4138. \t\t\t\t\t  </ul>
  4139. \t\t\t\t\t</div>
  4140. \t\t\t\t\t<div class=\"card-footer\">
  4141. \t\t                <button type=\"button\" id=\"mitsumori_btn\" class=\"btn btn-info\" data-toggle=\"modal\" data-target=\"#modal-mitsumori\">
  4142. \t\t                  見積書表示
  4143. \t\t                </button>
  4144.                         <button type=\"submit\" id=\"cart_btn2\" class=\"btn btn-info add-cart\">施工検討リストに入れる</button>
  4145. \t\t\t\t\t</div>
  4146. \t\t\t\t</div>
  4147.             </div>
  4148.         </div>
  4149.     </div>
  4150.   <div class=\"modal\" id=\"modal-mitsumori\">
  4151.     <div class=\"modal-dialog modal-mitsumori\" style=\"max-width:1000px\">
  4152.       <div class=\"modal-content\">
  4153.         <div class=\"modal-header\">
  4154.           <h4 class=\"modal-title\">お見積書</h4>
  4155.           <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  4156.             <span aria-hidden=\"true\">&times;</span>
  4157.           </button>
  4158.         </div>
  4159.         <div class=\"modal-body\">
  4160. \t\t\t<div class=\"invoice p-3 mb-5\" style=\"max-width:1000px; margin:auto;\">
  4161. \t\t\t  <!-- title row -->
  4162. \t\t\t  <div class=\"row\">
  4163. \t\t\t    <div class=\"col-12\">
  4164. \t\t\t      <h2>概算お見積書 
  4165. \t\t\t        <small class=\"float-right\" style=\"font-size:14px;\">発行日: 2025/03/14</small>
  4166. \t\t\t      </h2>
  4167. \t\t\t    </div>
  4168. \t\t\t    <!-- /.col -->
  4169. \t\t\t  </div>
  4170. \t\t\t  <!-- info row -->
  4171. \t\t\t  <div class=\"row invoice-info\">
  4172. \t\t\t    <div class=\"col-sm-8 invoice-col\">
  4173. \t\t\t      <h3>お客様</h3>
  4174. \t\t\t      <span>下記の通り、お見積もり申し上げます。</span>
  4175. \t\t\t      <br />
  4176. \t\t\t      <br / >
  4177. \t\t\t      <br />
  4178. \t\t\t      <h2>お見積金額: <span id=\"mitsumori_kei\">399,080円</span></h2>
  4179. \t\t\t      <span>
  4180. \t\t\t        <br/>
  4181. \t\t\t        <br/>
  4182. \t\t\t        <br/>
  4183. \t\t\t        <br/>
  4184. \t\t\t      </span>
  4185. \t\t\t    </div>
  4186. \t\t\t    <div class=\"col-sm-4 invoice-col\">
  4187. \t\t\t      <p>
  4188. \t\t\t        <img alt=\"\" src=\"/html/user_data/js/images/logo.png\" style=\"width: 260px; max-width: 100%; max-height: 10mm;\">
  4189. \t\t\t      </p>
  4190. \t\t\t      <p>有限会社プラス</p>
  4191. \t\t\t      <p>〒400-0334</p>
  4192. \t\t\t      <p>山梨県南アルプス市藤田1450番地2</p>
  4193. \t\t\t      <p>TEL: 055-284-6480</p>
  4194. \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;\">
  4195. \t\t\t    </div>
  4196. \t\t\t    <!-- /.col -->
  4197. \t\t\t    <!-- /.col -->
  4198. \t\t\t  </div>
  4199. \t\t\t  <!-- /.row -->
  4200. \t\t\t  <!-- Table row -->
  4201. \t\t\t  <div class=\"row\">
  4202. \t\t\t    <div class=\"col-12 table-responsive\">
  4203. \t\t\t      <table class=\"table table-striped\">
  4204. \t\t\t        <thead>
  4205. \t\t\t          <tr>
  4206. \t\t\t            <th>項目</th>
  4207. \t\t\t            <th>数量</th>
  4208. \t\t\t            <th>単位</th>
  4209. \t\t\t            <th>単価</th>
  4210. \t\t\t            <th>小計</th>
  4211. \t\t\t          </tr>
  4212. \t\t\t        </thead>
  4213. \t\t\t        <tbody>
  4214. \t\t\t          <tr>
  4215. \t\t\t            <td>プレーンルーフ 600タイプ 1台用 単体セット</td>
  4216. \t\t\t            <td>1</td>
  4217. \t\t\t            <td>式</td>
  4218. \t\t\t            <td id=\"mitsumori_price_01\">352,800</td>
  4219. \t\t\t            <td id=\"mitsumori_price_02\">352,800</td>
  4220. \t\t\t          </tr>
  4221. \t\t\t          <tr>
  4222. \t\t\t            <td>基本工事費</td>
  4223. \t\t\t            <td>1</td>
  4224. \t\t\t            <td>式</td>
  4225. \t\t\t            <td id=\"mitsumori_ct_01\">10,000</td>
  4226. \t\t\t            <td id=\"mitsumori_ct_02\">10,000</td>
  4227. \t\t\t          </tr>
  4228. \t\t\t          <tr>
  4229. \t\t\t            <td>残土・ガラ処理</td>
  4230. \t\t\t            <td>1</td>
  4231. \t\t\t            <td>式</td>
  4232. \t\t\t            <td>0円</td>
  4233. \t\t\t            <td></td>
  4234. \t\t\t          </tr>
  4235. \t\t\t          <tr>
  4236. \t\t\t            <td> </td>
  4237. \t\t\t            <td></td>
  4238. \t\t\t            <td></td>
  4239. \t\t\t            <td></td>
  4240. \t\t\t            <td></td>
  4241. \t\t\t          </tr>
  4242. \t\t\t        </tbody>
  4243. \t\t\t      </table>
  4244. \t\t\t    </div>
  4245. \t\t\t    <!-- /.col -->
  4246. \t\t\t  </div>
  4247. \t\t\t  <!-- /.row -->
  4248. \t\t\t  <div class=\"row\">
  4249. \t\t\t    <!-- accepted payments column -->
  4250. \t\t\t    <div class=\"col-6\">
  4251. \t\t\t      <p class=\"lead\">お支払い方法</p>
  4252. \t\t\t      <p class=\"text-muted well well-sm shadow-none\" style=\"margin-top: 10px;\">銀行振込、クレジットカード決済、PAYPAY決済
  4253. \t\t\t        <br>銀行振込:山梨中央銀行 白根支店 普通口座 391402
  4254. \t\t\t        <br>※商品代金と工事代金の総額が金100万円(税込)を超える場合、着手金として代金の半額をご契約後お支払いいただきます。 
  4255. \t\t\t      </p>
  4256. \t\t\t    </div>
  4257. \t\t\t    <!-- /.col -->
  4258. \t\t\t    <div class=\"col-6\">
  4259. \t\t\t      <div class=\"table-responsive\">
  4260. \t\t\t        <table class=\"table\">
  4261. \t\t\t          <tbody>
  4262. \t\t\t            <tr>
  4263. \t\t\t              <th style=\"width:50%\">小計:</th>
  4264. \t\t\t              <td id=\"mitsumori_shoukei\">362,800</td>
  4265. \t\t\t            </tr>
  4266. \t\t\t            <tr>
  4267. \t\t\t              <th>消費税 (10%)</th>
  4268. \t\t\t              <td id=\"mitsumori_tax\">36,280</td>
  4269. \t\t\t            </tr>
  4270. \t\t\t            <tr>
  4271. \t\t\t              <th>合計:</th>
  4272. \t\t\t              <td id=\"mitsumori_goukei_02\">399,080</td>
  4273. \t\t\t            </tr>
  4274. \t\t\t          </tbody>
  4275. \t\t\t        </table>
  4276. \t\t\t      </div>
  4277. \t\t\t    </div>
  4278. \t\t\t    <!-- /.col -->
  4279. \t\t\t  </div>
  4280. \t\t\t  <!-- /.row -->
  4281. \t\t\t</div>
  4282.         </div>
  4283.         <div class=\"modal-footer justify-content-between\">
  4284. \t\t\t      {# PDF出力: mitsumori_json を POST して PDF ダウンロード #}
  4285. \t\t\t      <form method=\"post\" action=\"{{ url('mitsumori_pdf') }}\" target=\"_blank\" id=\"pdf_download_form\">
  4286. \t\t\t        <input type=\"hidden\" name=\"_token\" value=\"{{ csrf_token('mitsumori_pdf') }}\">
  4287. \t\t\t        <input type=\"hidden\" name=\"mitsumori_json\" id=\"pdf_mitsumori_json\">
  4288. \t\t\t        <button type=\"submit\" class=\"btn btn-primary float-right\" style=\"margin-right: 5px;\" onclick=\"syncPdfJson();\">
  4289. \t\t\t          <i class=\"fas fa-download\"></i>PDF出力
  4290. \t\t\t        </button>
  4291. \t\t\t      </form>
  4292.                   <button type=\"submit\" id=\"cart_btn3\" class=\"btn btn-info add-cart\">施工検討リストに入れる</button>
  4293.         </div>
  4294.       </div>
  4295.       <!-- /.modal-content -->
  4296.     </div>
  4297.     <!-- /.modal-dialog -->
  4298.   </div>
  4299.   <!-- /.modal -->
  4300. {% endblock %}
  4301. ""Product/detail.twig""/home/xs538259/exterior-plus.jp/public_html/app/template/default/Product/detail.twig");
  4302.     }
  4303. }