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

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