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

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