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

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      <div class=\"icheck-danger d-inline\">
  1009. \t\t\t\t\t\t        <input type=\"radio\" name=\"rp3\" id=\"rp3_";
  1010.             // line 571
  1011.             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.'571$this->source); })()), "id", [], "any"falsefalsefalse571), "html"nulltrue);
  1012.             echo "\" value=\"";
  1013.             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.'571$this->source); })()), "name", [], "any"falsefalsefalse571), "html"nulltrue);
  1014.             echo "\" checked ><label for=\"rp3_";
  1015.             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.'571$this->source); })()), "id", [], "any"falsefalsefalse571), "html"nulltrue);
  1016.             echo "\">";
  1017.             echo twig_escape_filter($this->env, (isset($context["base_select3"]) || array_key_exists("base_select3"$context) ? $context["base_select3"] : (function () { throw new RuntimeError('Variable "base_select3" does not exist.'571$this->source); })()), "html"nulltrue);
  1018.             echo "</label>
  1019. \t\t\t\t\t\t      </div>
  1020. \t\t\t\t\t\t      ";
  1021.             // line 573
  1022.             $context['_parent'] = $context;
  1023.             $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.'573$this->source); })()));
  1024.             foreach ($context['_seq'] as $context["rp_id"] => $context["rp_name"]) {
  1025.                 // line 574
  1026.                 echo "\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  1027. \t\t\t\t\t\t        <input type=\"radio\" name=\"rp3\" id=\"rp3_";
  1028.                 // line 575
  1029.                 echo twig_escape_filter($this->env$context["rp_id"], "html"nulltrue);
  1030.                 echo "\" value=\"";
  1031.                 echo twig_escape_filter($this->env$context["rp_name"], "html"nulltrue);
  1032.                 echo "\" ";
  1033.                 if (((isset($context["base_select3"]) || array_key_exists("base_select3"$context) ? $context["base_select3"] : (function () { throw new RuntimeError('Variable "base_select3" does not exist.'575$this->source); })()) == $context["rp_name"])) {
  1034.                     echo "checked";
  1035.                 }
  1036.                 echo " onclick=\"location.href='/products/detail/";
  1037.                 echo twig_escape_filter($this->env$context["rp_id"], "html"nulltrue);
  1038.                 echo "';\"><label for=\"rp3_";
  1039.                 echo twig_escape_filter($this->env$context["rp_id"], "html"nulltrue);
  1040.                 echo "\">";
  1041.                 echo twig_escape_filter($this->env$context["rp_name"], "html"nulltrue);
  1042.                 echo "</label>
  1043. \t\t\t\t\t\t      </div>
  1044. \t\t\t\t\t\t\t  ";
  1045.             }
  1046.             $_parent $context['_parent'];
  1047.             unset($context['_seq'], $context['_iterated'], $context['rp_id'], $context['rp_name'], $context['_parent'], $context['loop']);
  1048.             $context array_intersect_key($context$_parent) + $_parent;
  1049.             // line 578
  1050.             echo "\t\t\t\t\t\t    </div>
  1051. \t\t\t\t\t\t  </div>
  1052. \t\t\t\t\t    </div>
  1053.                         ";
  1054.         }
  1055.         // line 582
  1056.         echo "
  1057. \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>
  1058.                         ";
  1059.         // line 584
  1060.         if (((isset($context["color"]) || array_key_exists("color"$context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.'584$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.'584$this->source); })())))) {
  1061.             // line 585
  1062.             echo "\t\t\t\t\t    <div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  1063. \t\t\t\t\t\t  <label class=\"col-4 col-form-label mt-2\">カラー</label>
  1064. \t\t\t\t\t\t  <div class=\"col-8 mt-2\">
  1065. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  1066. \t\t\t\t\t\t    ";
  1067.             // line 589
  1068.             $context["idx"] = 0;
  1069.             // line 590
  1070.             echo "\t\t\t\t\t\t    ";
  1071.             $context['_parent'] = $context;
  1072.             $context['_seq'] = twig_ensure_traversable((isset($context["color"]) || array_key_exists("color"$context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.'590$this->source); })()));
  1073.             foreach ($context['_seq'] as $context["_key"] => $context["cc"]) {
  1074.                 // line 591
  1075.                 echo "\t\t\t\t\t\t      ";
  1076.                 if (($context["cc"] && twig_get_attribute($this->env$this->source$context["cc"], "name", [], "array"falsefalsefalse591))) {
  1077.                     // line 592
  1078.                     echo "\t\t\t\t\t\t      ";
  1079.                     $context["idx"] = ((isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'592$this->source); })()) + 1);
  1080.                     // line 593
  1081.                     echo "\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  1082. \t\t\t\t\t\t        <input type=\"radio\" name=\"color\" id=\"cc_";
  1083.                     // line 594
  1084.                     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.'594$this->source); })()), "html"nulltrue);
  1085.                     echo "\" value=\"";
  1086.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cc"], "name", [], "array"falsefalsefalse594), "html"nulltrue);
  1087.                     echo "\" onclick=\"mitsumori_simulation('pc','cc_";
  1088.                     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.'594$this->source); })()), "html"nulltrue);
  1089.                     echo "');\"><label for=\"cc_";
  1090.                     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.'594$this->source); })()), "html"nulltrue);
  1091.                     echo "\">";
  1092.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cc"], "name", [], "array"falsefalsefalse594), "html"nulltrue);
  1093.                     echo "</label>
  1094. \t\t\t\t\t\t      </div>
  1095. \t\t\t\t\t\t      ";
  1096.                 }
  1097.                 // line 597
  1098.                 echo "\t\t\t\t\t\t\t";
  1099.             }
  1100.             $_parent $context['_parent'];
  1101.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cc'], $context['_parent'], $context['loop']);
  1102.             $context array_intersect_key($context$_parent) + $_parent;
  1103.             // line 598
  1104.             echo "\t\t\t\t\t\t    </div>
  1105. \t\t\t\t\t\t  </div>
  1106. \t\t\t\t\t    </div>
  1107.                         ";
  1108.         }
  1109.         // line 602
  1110.         echo "                        ";
  1111.         if (((isset($context["p_w"]) || array_key_exists("p_w"$context) ? $context["p_w"] : (function () { throw new RuntimeError('Variable "p_w" does not exist.'602$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.'602$this->source); })())))) {
  1112.             // line 603
  1113.             echo "\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  1114. \t\t\t\t\t\t  <label class=\"col-4 col-form-label\">幅</label>
  1115. \t\t\t\t\t\t  <div class=\"col-8\">
  1116. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  1117. \t\t\t\t\t\t    ";
  1118.             // line 607
  1119.             $context["idx"] = 0;
  1120.             // line 608
  1121.             echo "\t\t\t\t\t\t    ";
  1122.             $context['_parent'] = $context;
  1123.             $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.'608$this->source); })()));
  1124.             foreach ($context['_seq'] as $context["_key"] => $context["pw"]) {
  1125.                 // line 609
  1126.                 echo "\t\t\t\t\t\t      ";
  1127.                 if ($context["pw"]) {
  1128.                     // line 610
  1129.                     echo "\t\t\t\t\t\t      ";
  1130.                     $context["idx"] = ((isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'610$this->source); })()) + 1);
  1131.                     // line 611
  1132.                     echo "\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  1133. \t\t\t\t\t\t        <input type=\"radio\" name=\"pw\" id=\"pw_";
  1134.                     // line 612
  1135.                     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.'612$this->source); })()), "html"nulltrue);
  1136.                     echo "\" value=\"";
  1137.                     echo twig_escape_filter($this->env$context["pw"], "html"nulltrue);
  1138.                     echo "\" onclick=\"mitsumori_simulation('pw','pw_";
  1139.                     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.'612$this->source); })()), "html"nulltrue);
  1140.                     echo "');\"><label for=\"pw_";
  1141.                     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.'612$this->source); })()), "html"nulltrue);
  1142.                     echo "\">";
  1143.                     echo twig_escape_filter($this->env$context["pw"], "html"nulltrue);
  1144.                     echo "</label>
  1145. \t\t\t\t\t\t      </div>
  1146. \t\t\t\t\t\t      ";
  1147.                 }
  1148.                 // line 615
  1149.                 echo "\t\t\t\t\t\t\t";
  1150.             }
  1151.             $_parent $context['_parent'];
  1152.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pw'], $context['_parent'], $context['loop']);
  1153.             $context array_intersect_key($context$_parent) + $_parent;
  1154.             // line 616
  1155.             echo "\t\t\t\t\t\t    </div>
  1156. \t\t\t\t\t\t  </div>
  1157. \t\t\t\t\t\t</div>
  1158.                         ";
  1159.         }
  1160.         // line 620
  1161.         echo "                        ";
  1162.         if (((isset($context["p_d"]) || array_key_exists("p_d"$context) ? $context["p_d"] : (function () { throw new RuntimeError('Variable "p_d" does not exist.'620$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.'620$this->source); })())))) {
  1163.             // line 621
  1164.             echo "\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  1165. \t\t\t\t\t\t  <label class=\"col-4 col-form-label\">奥行き</label>
  1166. \t\t\t\t\t\t  <div class=\"col-8\">
  1167. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  1168. \t\t\t\t\t\t    ";
  1169.             // line 625
  1170.             $context["idx"] = 0;
  1171.             // line 626
  1172.             echo "\t\t\t\t\t\t    ";
  1173.             $context['_parent'] = $context;
  1174.             $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.'626$this->source); })()));
  1175.             foreach ($context['_seq'] as $context["_key"] => $context["pd"]) {
  1176.                 // line 627
  1177.                 echo "\t\t\t\t\t\t      ";
  1178.                 if ($context["pd"]) {
  1179.                     // line 628
  1180.                     echo "\t\t\t\t\t\t      ";
  1181.                     $context["idx"] = ((isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'628$this->source); })()) + 1);
  1182.                     // line 629
  1183.                     echo "\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  1184. \t\t\t\t\t\t        <input type=\"radio\" name=\"pd\" id=\"pd_";
  1185.                     // line 630
  1186.                     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.'630$this->source); })()), "html"nulltrue);
  1187.                     echo "\" value=\"";
  1188.                     echo twig_escape_filter($this->env$context["pd"], "html"nulltrue);
  1189.                     echo "\" onclick=\"mitsumori_simulation('pd','pd_";
  1190.                     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.'630$this->source); })()), "html"nulltrue);
  1191.                     echo "');\"><label for=\"pd_";
  1192.                     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.'630$this->source); })()), "html"nulltrue);
  1193.                     echo "\">";
  1194.                     echo twig_escape_filter($this->env$context["pd"], "html"nulltrue);
  1195.                     echo "</label>
  1196. \t\t\t\t\t\t      </div>
  1197. \t\t\t\t\t\t      ";
  1198.                 }
  1199.                 // line 633
  1200.                 echo "\t\t\t\t\t\t\t";
  1201.             }
  1202.             $_parent $context['_parent'];
  1203.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pd'], $context['_parent'], $context['loop']);
  1204.             $context array_intersect_key($context$_parent) + $_parent;
  1205.             // line 634
  1206.             echo "\t\t\t\t\t\t    </div>
  1207. \t\t\t\t\t\t  </div>
  1208. \t\t\t\t\t\t</div>
  1209.                         ";
  1210.         }
  1211.         // line 638
  1212.         echo "                        ";
  1213.         if (((isset($context["p_h"]) || array_key_exists("p_h"$context) ? $context["p_h"] : (function () { throw new RuntimeError('Variable "p_h" does not exist.'638$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.'638$this->source); })())))) {
  1214.             // line 639
  1215.             echo "\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  1216. \t\t\t\t\t\t  <label class=\"col-4 col-form-label\">高さ</label>
  1217. \t\t\t\t\t\t  <div class=\"col-8\">
  1218. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  1219. \t\t\t\t\t\t    ";
  1220.             // line 643
  1221.             $context["idx"] = 0;
  1222.             // line 644
  1223.             echo "\t\t\t\t\t\t    ";
  1224.             $context['_parent'] = $context;
  1225.             $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.'644$this->source); })()));
  1226.             foreach ($context['_seq'] as $context["_key"] => $context["ph"]) {
  1227.                 // line 645
  1228.                 echo "\t\t\t\t\t\t      ";
  1229.                 if ($context["ph"]) {
  1230.                     // line 646
  1231.                     echo "\t\t\t\t\t\t      ";
  1232.                     $context["idx"] = ((isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'646$this->source); })()) + 1);
  1233.                     // line 647
  1234.                     echo "\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  1235. \t\t\t\t\t\t        <input type=\"radio\" name=\"ph\" id=\"ph_";
  1236.                     // line 648
  1237.                     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.'648$this->source); })()), "html"nulltrue);
  1238.                     echo "\" value=\"";
  1239.                     echo twig_escape_filter($this->env$context["ph"], "html"nulltrue);
  1240.                     echo "\" onclick=\"mitsumori_simulation('ph','ph_";
  1241.                     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.'648$this->source); })()), "html"nulltrue);
  1242.                     echo "');\"><label for=\"ph_";
  1243.                     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.'648$this->source); })()), "html"nulltrue);
  1244.                     echo "\">";
  1245.                     echo twig_escape_filter($this->env$context["ph"], "html"nulltrue);
  1246.                     echo "</label>
  1247. \t\t\t\t\t\t      </div>
  1248. \t\t\t\t\t\t      ";
  1249.                 }
  1250.                 // line 651
  1251.                 echo "\t\t\t\t\t\t\t";
  1252.             }
  1253.             $_parent $context['_parent'];
  1254.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ph'], $context['_parent'], $context['loop']);
  1255.             $context array_intersect_key($context$_parent) + $_parent;
  1256.             // line 652
  1257.             echo "\t\t\t\t\t\t    </div>
  1258. \t\t\t\t\t\t  </div>
  1259. \t\t\t\t\t\t</div>
  1260.                         ";
  1261.         }
  1262.         // line 656
  1263.         echo "                        ";
  1264.         if (((isset($context["p_w"]) || array_key_exists("p_w"$context) ? $context["p_w"] : (function () { throw new RuntimeError('Variable "p_w" does not exist.'656$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.'656$this->source); })())))) {
  1265.             // line 657
  1266.             echo "\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  1267. \t\t\t\t\t\t  <label class=\"col-4 col-form-label\">素材</label>
  1268. \t\t\t\t\t\t  <div class=\"col-8\">
  1269. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  1270. \t\t\t\t\t\t    ";
  1271.             // line 661
  1272.             $context["idx"] = 0;
  1273.             // line 662
  1274.             echo "\t\t\t\t\t\t    ";
  1275.             $context['_parent'] = $context;
  1276.             $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.'662$this->source); })()));
  1277.             foreach ($context['_seq'] as $context["_key"] => $context["pm"]) {
  1278.                 // line 663
  1279.                 echo "\t\t\t\t\t\t      ";
  1280.                 if ($context["pm"]) {
  1281.                     // line 664
  1282.                     echo "\t\t\t\t\t\t      ";
  1283.                     $context["idx"] = ((isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'664$this->source); })()) + 1);
  1284.                     // line 665
  1285.                     echo "\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  1286. \t\t\t\t\t\t        <input type=\"radio\" name=\"pm\" id=\"pm_";
  1287.                     // line 666
  1288.                     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.'666$this->source); })()), "html"nulltrue);
  1289.                     echo "\" value=\"";
  1290.                     echo twig_escape_filter($this->env$context["pm"], "html"nulltrue);
  1291.                     echo "\" onclick=\"mitsumori_simulation('pm','pm_";
  1292.                     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.'666$this->source); })()), "html"nulltrue);
  1293.                     echo "');\"><label for=\"pm_";
  1294.                     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.'666$this->source); })()), "html"nulltrue);
  1295.                     echo "\">";
  1296.                     echo twig_escape_filter($this->env$context["pm"], "html"nulltrue);
  1297.                     echo "</label>
  1298. \t\t\t\t\t\t      </div>
  1299. \t\t\t\t\t\t      ";
  1300.                 }
  1301.                 // line 669
  1302.                 echo "\t\t\t\t\t\t\t";
  1303.             }
  1304.             $_parent $context['_parent'];
  1305.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pm'], $context['_parent'], $context['loop']);
  1306.             $context array_intersect_key($context$_parent) + $_parent;
  1307.             // line 670
  1308.             echo "\t\t\t\t\t\t    </div>
  1309. \t\t\t\t\t\t  </div>
  1310. \t\t\t\t\t\t</div>
  1311.                         ";
  1312.         }
  1313.         // line 674
  1314.         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>
  1315. \t\t\t\t\t\t";
  1316.         // line 675
  1317.         $context['_parent'] = $context;
  1318.         $context['_seq'] = twig_ensure_traversable(range(010));
  1319.         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  1320.             // line 676
  1321.             echo "\t\t\t\t\t\t\t";
  1322.             if (((isset($context["op"]) || array_key_exists("op"$context) ? $context["op"] : (function () { throw new RuntimeError('Variable "op" does not exist.'676$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.'676$this->source); })())) >= ($context["i"] + 1)))) {
  1323.                 // line 677
  1324.                 echo "\t\t\t\t\t\t\t";
  1325.                 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.'677$this->source); })()), $context["i"], [], "array"falsefalsefalse677), "name", [], "array"falsefalsefalse677)) {
  1326.                     // line 678
  1327.                     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)\">
  1328. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">";
  1329.                     // line 679
  1330.                     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.'679$this->source); })()), $context["i"], [], "array"falsefalsefalse679), "name", [], "array"falsefalsefalse679), "html"nulltrue);
  1331.                     echo "</label>
  1332. \t\t\t\t\t\t\t  <div class=\"col-8\">
  1333. \t\t\t\t\t            ";
  1334.                     // line 681
  1335.                     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), "comment", [], "array"falsefalsefalse681), "html"nulltrue);
  1336.                     echo "
  1337. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  1338. \t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  1339. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"op";
  1340.                     // line 684
  1341.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1342.                     echo "\" id=\"op";
  1343.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1344.                     echo "_1\" value=\"";
  1345.                     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.'684$this->source); })()), $context["i"], [], "array"falsefalsefalse684), "on", [], "array"falsefalsefalse684), "html"nulltrue);
  1346.                     echo "\" onclick=\"mitsumori_simulation('op";
  1347.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1348.                     echo "','op";
  1349.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1350.                     echo "_1');\"><label for=\"op";
  1351.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1352.                     echo "_1\">";
  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.'684$this->source); })()), $context["i"], [], "array"falsefalsefalse684), "on", [], "array"falsefalsefalse684), "html"nulltrue);
  1354.                     echo "</label>
  1355. \t\t\t\t\t\t\t      </div>
  1356. \t\t\t\t\t\t\t    </div>
  1357. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  1358. \t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  1359. \t\t\t\t\t\t\t        <input type=\"radio\" name=\"op";
  1360.                     // line 689
  1361.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1362.                     echo "\" id=\"op";
  1363.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1364.                     echo "_2\" value=\"";
  1365.                     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.'689$this->source); })()), $context["i"], [], "array"falsefalsefalse689), "off", [], "array"falsefalsefalse689), "html"nulltrue);
  1366.                     echo "\" onclick=\"mitsumori_simulation('op";
  1367.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1368.                     echo "','op";
  1369.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1370.                     echo "_2');\"><label for=\"op";
  1371.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1372.                     echo "_2\">";
  1373.                     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.'689$this->source); })()), $context["i"], [], "array"falsefalsefalse689), "off", [], "array"falsefalsefalse689), "html"nulltrue);
  1374.                     echo "</label>
  1375. \t\t\t\t\t\t\t      </div>
  1376. \t\t\t\t\t\t\t    </div>
  1377. \t\t\t\t\t\t\t  </div>
  1378. \t\t\t\t\t\t\t</div>
  1379. \t\t\t\t\t\t\t";
  1380.                 }
  1381.                 // line 695
  1382.                 echo "\t\t\t\t\t\t\t";
  1383.             }
  1384.             // line 696
  1385.             echo "\t\t\t\t\t\t";
  1386.         }
  1387.         $_parent $context['_parent'];
  1388.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  1389.         $context array_intersect_key($context$_parent) + $_parent;
  1390.         // line 697
  1391.         echo "\t\t\t\t\t  </div>
  1392. \t\t\t\t\t  <!-- /.card-body -->
  1393. \t\t\t\t\t</div>
  1394.                     <form action=\"";
  1395.         // line 702
  1396.         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.'702$this->source); })()), "id", [], "any"falsefalsefalse702)]), "html"nulltrue);
  1397.         echo "\" method=\"post\" id=\"form1\" name=\"form1\">
  1398.                         ";
  1399.         // line 703
  1400.         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.'703$this->source); })()), "stock_find", [], "any"falsefalsefalse703)) {
  1401.             // line 704
  1402.             echo "                            <div class=\"ec-productRole__actions\">
  1403.                                 ";
  1404.             // line 705
  1405.             if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse705)) {
  1406.                 // line 706
  1407.                 echo "                                    <div class=\"ec-select\">
  1408.                                         ";
  1409.                 // line 707
  1410.                 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.'707$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse707), 'row');
  1411.                 echo "
  1412.                                         ";
  1413.                 // line 708
  1414.                 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.'708$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse708), 'errors');
  1415.                 echo "
  1416.                                     </div>
  1417.                                     ";
  1418.                 // line 710
  1419.                 if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse710)) {
  1420.                     // line 711
  1421.                     echo "                                        <div class=\"ec-select\">
  1422.                                             ";
  1423.                     // line 712
  1424.                     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.'712$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse712), 'row');
  1425.                     echo "
  1426.                                             ";
  1427.                     // line 713
  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.'713$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse713), 'errors');
  1429.                     echo "
  1430.                                         </div>
  1431.                                     ";
  1432.                 }
  1433.                 // line 716
  1434.                 echo "                                ";
  1435.             }
  1436.             // line 717
  1437.             echo "                                <div class=\"ec-numberInput\">
  1438.                                     ";
  1439.             // line 718
  1440.             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.'718$this->source); })()), "quantity", [], "any"falsefalsefalse718), 'widget', ["type" => "hidden"]);
  1441.             echo "
  1442.                                     ";
  1443.             // line 719
  1444.             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.'719$this->source); })()), "quantity", [], "any"falsefalsefalse719), 'errors');
  1445.             echo "
  1446.                                 </div>
  1447.                             </div>
  1448. \t\t\t\t\t\t\t";
  1449.             // line 723
  1450.             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.'723$this->source); })()), "SaleType", [], "any"falsefalsefalse723), "id", [], "any"falsefalsefalse723) != 9)) {
  1451.                 // line 724
  1452.                 echo "                            <div class=\"ec-productRole__btn\">
  1453.                             </div>
  1454. \t\t\t\t\t\t\t";
  1455.             } else {
  1456.                 // line 727
  1457.                 echo "                            <div class=\"ec-productRole__btn\">
  1458.                                 <button type=\"submit\" class=\"ec-blockBtn--action add-cart\">
  1459.                                     ";
  1460.                 // line 729
  1461.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html"nulltrue);
  1462.                 echo "
  1463.                                 </button>
  1464.                             </div>
  1465. \t\t\t\t\t\t\t";
  1466.             }
  1467.             // line 733
  1468.             echo "                        ";
  1469.         } else {
  1470.             // line 734
  1471.             echo "                            <div class=\"ec-productRole__btn\">
  1472.                                 <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  1473.                                     ";
  1474.             // line 736
  1475.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html"nulltrue);
  1476.             echo "
  1477.                                 </button>
  1478.                             </div>
  1479.                         ";
  1480.         }
  1481.         // line 740
  1482.         echo "                        ";
  1483.         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.'740$this->source); })()), 'rest');
  1484.         echo "
  1485.                     </form>
  1486.                     <div class=\"ec-modal\">
  1487.                         <div class=\"ec-modal-overlay\">
  1488.                             <div class=\"ec-modal-wrap\">
  1489.                                 <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  1490.         // line 745
  1491.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  1492.         echo "\" alt=\"\"/></span></span>
  1493.                                 <div id=\"ec-modal-header\" class=\"text-center\">";
  1494.         // line 746
  1495.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  1496.         echo "</div>
  1497.                                 <div class=\"ec-modal-box\">
  1498.                                     <div class=\"ec-role\">
  1499.                                         <span class=\"ec-inlineBtn--cancel\">";
  1500.         // line 749
  1501.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  1502.         echo "</span>
  1503.                                         <a href=\"";
  1504.         // line 750
  1505.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  1506.         echo "\" class=\"ec-inlineBtn--action\">";
  1507.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  1508.         echo "</a>
  1509.                                     </div>
  1510.                                 </div>
  1511.                             </div>
  1512.                         </div>
  1513.                     </div>
  1514.                     <div class=\"ec-productRole__description\">";
  1515.         // line 756
  1516.         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.'756$this->source); })()), "description_detail", [], "any"falsefalsefalse756));
  1517.         echo "
  1518.                     </div>
  1519.                 </div>
  1520. \t\t\t\t<div class=\"card col-12 collapsed-card sticky-top float-right\">
  1521. \t\t\t\t\t<div class=\"card-header\">
  1522. \t\t\t\t\t  <h3 class=\"card-title\">現在のお見積り額</h3>
  1523. \t\t\t\t\t  <div class=\"card-tools\">
  1524. \t\t\t\t\t    <span class=\"float-left\" id=\"mitsumori_message\">395000円</span>
  1525. \t\t\t\t\t    <button type=\"button\" class=\"btn btn-tool\" data-card-widget=\"collapse\">
  1526. \t\t\t\t\t      <i class=\"fas fa-plus\"></i>
  1527. \t\t\t\t\t    </button>
  1528. \t\t\t\t\t  </div>
  1529. \t\t\t\t\t</div>
  1530. \t\t\t\t\t<div class=\"card-body p-0\">
  1531. \t\t\t\t\t  <ul class=\"nav nav-pills flex-column\">
  1532. \t\t\t\t\t    <li class=\"nav-item active\">
  1533. \t\t\t\t\t      <a class=\"nav-link\">
  1534. \t\t\t\t\t        <i class=\"far fa-file-alt\"></i> 合計(工事費・税込)
  1535. \t\t\t\t\t        <span class=\"float-right\" id=\"mitsumori_goukei\">395,000円</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 active\">
  1539. \t\t\t\t\t      <a class=\"nav-link\">
  1540. \t\t\t\t\t        <i class=\"far fa-file-alt\"></i> 商品価格
  1541. \t\t\t\t\t        <span class=\"float-right\" id=\"mitsumori_price\">307,008円</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        &nbsp;&nbsp;<i class=\"far fa-file-alt\"></i> カタログ価格
  1547. \t\t\t\t\t        <span class=\"float-right\" id=\"maker_price\">479,700円</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        &nbsp;&nbsp;<i class=\"far fa-file-alt\"></i> お値引き
  1553. \t\t\t\t\t        <span class=\"float-right\" id=\"mitsumori_off\">-172,692円</span>
  1554. \t\t\t\t\t      </a>
  1555. \t\t\t\t\t    </li>
  1556. \t\t\t\t\t    <li class=\"nav-item\">
  1557. \t\t\t\t\t      <a class=\"nav-link\">
  1558. \t\t\t\t\t        <i class=\"far fa-file-alt\"></i> 基本工事費
  1559. \t\t\t\t\t        <span class=\"float-right\" id=\"mitsumori_ct\">53,250円</span>
  1560. \t\t\t\t\t      </a>
  1561. \t\t\t\t\t    </li>
  1562. \t\t\t\t\t    <li class=\"nav-item\">
  1563. \t\t\t\t\t      <a class=\"nav-link\">
  1564. \t\t\t\t\t        <i class=\"far fa-file-alt\"></i> 施工オプション
  1565. \t\t\t\t\t        <span class=\"float-right\"id=\"mitsumori_option\">6,297円</span>
  1566. \t\t\t\t\t      </a>
  1567. \t\t\t\t\t    </li>
  1568. \t\t\t\t\t  </ul>
  1569. \t\t\t\t\t</div>
  1570. \t\t\t\t\t<div class=\"card-footer\">
  1571. \t\t                <button type=\"button\" id=\"mitsumori_btn\" class=\"btn btn-info\" data-toggle=\"modal\" data-target=\"#modal-mitsumori\">
  1572. \t\t                  見積書表示
  1573. \t\t                </button>
  1574. \t\t\t\t\t\t<button id=\"contact\" class=\"btn btn-info\" onclick=\"location.href='/contact?product=";
  1575.         // line 814
  1576.         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.'814$this->source); })()), "id", [], "any"falsefalsefalse814), "html"nulltrue);
  1577.         echo "';\">無料現地調査へ進む</button>
  1578. \t\t\t\t\t</div>
  1579. \t\t\t\t</div>
  1580.             </div>
  1581.         </div>
  1582.     </div>
  1583.   <div class=\"modal\" id=\"modal-mitsumori\">
  1584.     <div class=\"modal-dialog modal-mitsumori\" style=\"max-width:1000px\">
  1585.       <div class=\"modal-content\">
  1586.         <div class=\"modal-header\">
  1587.           <h4 class=\"modal-title\">お見積書</h4>
  1588.           <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  1589.             <span aria-hidden=\"true\">&times;</span>
  1590.           </button>
  1591.         </div>
  1592.         <div class=\"modal-body\">
  1593. \t\t\t<div class=\"invoice p-3 mb-5\" style=\"max-width:1000px; margin:auto;\">
  1594. \t\t\t  <!-- title row -->
  1595. \t\t\t  <div class=\"row\">
  1596. \t\t\t    <div class=\"col-12\">
  1597. \t\t\t      <h2>概算お見積書 
  1598. \t\t\t        <small class=\"float-right\" style=\"font-size:14px;\">発行日: 2025/03/14</small>
  1599. \t\t\t      </h2>
  1600. \t\t\t    </div>
  1601. \t\t\t    <!-- /.col -->
  1602. \t\t\t  </div>
  1603. \t\t\t  <!-- info row -->
  1604. \t\t\t  <div class=\"row invoice-info\">
  1605. \t\t\t    <div class=\"col-sm-8 invoice-col\">
  1606. \t\t\t      <h3>お客様</h3>
  1607. \t\t\t      <span>下記の通り、お見積もり申し上げます。</span>
  1608. \t\t\t      <br />
  1609. \t\t\t      <br / >
  1610. \t\t\t      <br />
  1611. \t\t\t      <h2>お見積金額: <span id=\"mitsumori_kei\">399,080円</span></h2>
  1612. \t\t\t      <span>
  1613. \t\t\t        <br/>
  1614. \t\t\t        <br/>
  1615. \t\t\t        <br/>
  1616. \t\t\t        <br/>
  1617. \t\t\t      </span>
  1618. \t\t\t    </div>
  1619. \t\t\t    <div class=\"col-sm-4 invoice-col\">
  1620. \t\t\t      <p>
  1621. \t\t\t        <img alt=\"\" src=\"/html/user_data/js/images/logo.png\" style=\"width: 260px; max-width: 100%; max-height: 10mm;\">
  1622. \t\t\t      </p>
  1623. \t\t\t      <p>有限会社プラス</p>
  1624. \t\t\t      <p>〒400-0334</p>
  1625. \t\t\t      <p>山梨県南アルプス市藤田1450番地2</p>
  1626. \t\t\t      <p>TEL: 055-284-6480</p>
  1627. \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;\">
  1628. \t\t\t    </div>
  1629. \t\t\t    <!-- /.col -->
  1630. \t\t\t    <!-- /.col -->
  1631. \t\t\t  </div>
  1632. \t\t\t  <!-- /.row -->
  1633. \t\t\t  <!-- Table row -->
  1634. \t\t\t  <div class=\"row\">
  1635. \t\t\t    <div class=\"col-12 table-responsive\">
  1636. \t\t\t      <table class=\"table table-striped\">
  1637. \t\t\t        <thead>
  1638. \t\t\t          <tr>
  1639. \t\t\t            <th>項目</th>
  1640. \t\t\t            <th>数量</th>
  1641. \t\t\t            <th>単位</th>
  1642. \t\t\t            <th>単価</th>
  1643. \t\t\t            <th>小計</th>
  1644. \t\t\t          </tr>
  1645. \t\t\t        </thead>
  1646. \t\t\t        <tbody>
  1647. \t\t\t          <tr>
  1648. \t\t\t            <td>プレーンルーフ 600タイプ 1台用 単体セット</td>
  1649. \t\t\t            <td>1</td>
  1650. \t\t\t            <td>式</td>
  1651. \t\t\t            <td id=\"mitsumori_price_01\">352,800</td>
  1652. \t\t\t            <td id=\"mitsumori_price_02\">352,800</td>
  1653. \t\t\t          </tr>
  1654. \t\t\t          <tr>
  1655. \t\t\t            <td>基本工事費</td>
  1656. \t\t\t            <td>1</td>
  1657. \t\t\t            <td>式</td>
  1658. \t\t\t            <td id=\"mitsumori_ct_01\">10,000</td>
  1659. \t\t\t            <td id=\"mitsumori_ct_02\">10,000</td>
  1660. \t\t\t          </tr>
  1661. \t\t\t          <tr>
  1662. \t\t\t            <td>残土・ガラ処理</td>
  1663. \t\t\t            <td>1</td>
  1664. \t\t\t            <td>式</td>
  1665. \t\t\t            <td>0円</td>
  1666. \t\t\t            <td></td>
  1667. \t\t\t          </tr>
  1668. \t\t\t          <tr>
  1669. \t\t\t            <td> </td>
  1670. \t\t\t            <td></td>
  1671. \t\t\t            <td></td>
  1672. \t\t\t            <td></td>
  1673. \t\t\t            <td></td>
  1674. \t\t\t          </tr>
  1675. \t\t\t        </tbody>
  1676. \t\t\t      </table>
  1677. \t\t\t    </div>
  1678. \t\t\t    <!-- /.col -->
  1679. \t\t\t  </div>
  1680. \t\t\t  <!-- /.row -->
  1681. \t\t\t  <div class=\"row\">
  1682. \t\t\t    <!-- accepted payments column -->
  1683. \t\t\t    <div class=\"col-6\">
  1684. \t\t\t      <p class=\"lead\">お支払い方法</p>
  1685. \t\t\t      <p class=\"text-muted well well-sm shadow-none\" style=\"margin-top: 10px;\">銀行振込、クレジットカード決済、PAYPAY決済
  1686. \t\t\t        <br>銀行振込:山梨中央銀行 白根支店 普通口座 391402
  1687. \t\t\t        <br>※商品代金と工事代金の総額が金100万円(税込)を超える場合、着手金として代金の半額をご契約後お支払いいただきます。 
  1688. \t\t\t      </p>
  1689. \t\t\t    </div>
  1690. \t\t\t    <!-- /.col -->
  1691. \t\t\t    <div class=\"col-6\">
  1692. \t\t\t      <div class=\"table-responsive\">
  1693. \t\t\t        <table class=\"table\">
  1694. \t\t\t          <tbody>
  1695. \t\t\t            <tr>
  1696. \t\t\t              <th style=\"width:50%\">小計:</th>
  1697. \t\t\t              <td id=\"mitsumori_shoukei\">362,800</td>
  1698. \t\t\t            </tr>
  1699. \t\t\t            <tr>
  1700. \t\t\t              <th>消費税 (10%)</th>
  1701. \t\t\t              <td id=\"mitsumori_tax\">36,280</td>
  1702. \t\t\t            </tr>
  1703. \t\t\t            <tr>
  1704. \t\t\t              <th>合計:</th>
  1705. \t\t\t              <td id=\"mitsumori_goukei_02\">399,080</td>
  1706. \t\t\t            </tr>
  1707. \t\t\t          </tbody>
  1708. \t\t\t        </table>
  1709. \t\t\t      </div>
  1710. \t\t\t    </div>
  1711. \t\t\t    <!-- /.col -->
  1712. \t\t\t  </div>
  1713. \t\t\t  <!-- /.row -->
  1714. \t\t\t</div>
  1715.         </div>
  1716.         <div class=\"modal-footer justify-content-between\">
  1717. \t\t\t      <button type=\"button\" class=\"btn btn-primary float-right\" style=\"margin-right: 5px;\">
  1718. \t\t\t        <i class=\"fas fa-download\"></i>PDF出力
  1719. \t\t\t      </button>
  1720.           <button type=\"button\" class=\"btn btn-info\" onclick=\"location.href='/contact?product=";
  1721.         // line 961
  1722.         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.'961$this->source); })()), "id", [], "any"falsefalsefalse961), "html"nulltrue);
  1723.         echo "';\">無料現地調査へ進む</button>
  1724.         </div>
  1725.       </div>
  1726.       <!-- /.modal-content -->
  1727.     </div>
  1728.     <!-- /.modal-dialog -->
  1729.   </div>
  1730.   <!-- /.modal -->
  1731. ";
  1732.         
  1733.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1734.         
  1735.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1736.     }
  1737.     public function getTemplateName()
  1738.     {
  1739.         return "Product/detail.twig";
  1740.     }
  1741.     public function isTraitable()
  1742.     {
  1743.         return false;
  1744.     }
  1745.     public function getDebugInfo()
  1746.     {
  1747.         return array (  1801 => 961,  1651 => 814,  1590 => 756,  1579 => 750,  1575 => 749,  1569 => 746,  1565 => 745,  1556 => 740,  1549 => 736,  1545 => 734,  1542 => 733,  1535 => 729,  1531 => 727,  1526 => 724,  1524 => 723,  1517 => 719,  1513 => 718,  1510 => 717,  1507 => 716,  1501 => 713,  1497 => 712,  1494 => 711,  1492 => 710,  1487 => 708,  1483 => 707,  1480 => 706,  1478 => 705,  1475 => 704,  1473 => 703,  1469 => 702,  1462 => 697,  1456 => 696,  1453 => 695,  1432 => 689,  1412 => 684,  1406 => 681,  1401 => 679,  1398 => 678,  1395 => 677,  1392 => 676,  1388 => 675,  1385 => 674,  1379 => 670,  1373 => 669,  1359 => 666,  1356 => 665,  1353 => 664,  1350 => 663,  1345 => 662,  1343 => 661,  1337 => 657,  1334 => 656,  1328 => 652,  1322 => 651,  1308 => 648,  1305 => 647,  1302 => 646,  1299 => 645,  1294 => 644,  1292 => 643,  1286 => 639,  1283 => 638,  1277 => 634,  1271 => 633,  1257 => 630,  1254 => 629,  1251 => 628,  1248 => 627,  1243 => 626,  1241 => 625,  1235 => 621,  1232 => 620,  1226 => 616,  1220 => 615,  1206 => 612,  1203 => 611,  1200 => 610,  1197 => 609,  1192 => 608,  1190 => 607,  1184 => 603,  1181 => 602,  1175 => 598,  1169 => 597,  1155 => 594,  1152 => 593,  1149 => 592,  1146 => 591,  1141 => 590,  1139 => 589,  1133 => 585,  1131 => 584,  1127 => 582,  1121 => 578,  1100 => 575,  1097 => 574,  1093 => 573,  1082 => 571,  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,);
  1748.     }
  1749.     public function getSourceContext()
  1750.     {
  1751.         return new Source("{#
  1752. This file is part of EC-CUBE
  1753. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  1754. http://www.ec-cube.co.jp/
  1755. For the full copyright and license information, please view the LICENSE
  1756. file that was distributed with this source code.
  1757. #}
  1758. {% extends 'default_frame.twig' %}
  1759. {% set body_class = 'product_page' %}
  1760. {% block stylesheet %}
  1761.     <style>
  1762.         .slick-slider {
  1763.             margin-bottom: 10px;
  1764. \t\t\tmargin-top: -20px;
  1765.         }
  1766.         .slick-dots {
  1767.             position: absolute;
  1768.             bottom: -45px;
  1769.             display: block;
  1770.             width: 100%;
  1771.             padding: 0;
  1772.             list-style: none;
  1773.             text-align: center;
  1774.         }
  1775.         .slick-dots li {
  1776.             position: relative;
  1777.             display: inline-block;
  1778.             width: 20px;
  1779.             height: 20px;
  1780.             margin: 0 5px;
  1781.             padding: 0;
  1782.             cursor: pointer;
  1783.         }
  1784.         .slick-dots li button {
  1785.             font-size: 0;
  1786.             line-height: 0;
  1787.             display: block;
  1788.             width: 20px;
  1789.             height: 20px;
  1790.             padding: 5px;
  1791.             cursor: pointer;
  1792.             color: transparent;
  1793.             border: 0;
  1794.             outline: none;
  1795.             background: transparent;
  1796.         }
  1797.         .slick-dots li button:hover,
  1798.         .slick-dots li button:focus {
  1799.             outline: none;
  1800.         }
  1801.         .slick-dots li button:hover:before,
  1802.         .slick-dots li button:focus:before {
  1803.             opacity: 1;
  1804.         }
  1805.         .slick-dots li button:before {
  1806.             content: \" \";
  1807.             line-height: 20px;
  1808.             position: absolute;
  1809.             top: 0;
  1810.             left: 0;
  1811.             width: 12px;
  1812.             height: 12px;
  1813.             text-align: center;
  1814.             opacity: .25;
  1815.             background-color: black;
  1816.             border-radius: 50%;
  1817.         }
  1818.         .slick-dots li.slick-active button:before {
  1819.             opacity: .75;
  1820.             background-color: black;
  1821.         }
  1822.         .slick-dots li button.thumbnail img {
  1823.             width: 0;
  1824.             height: 0;
  1825.         }
  1826.     </style>
  1827.     <link rel=\"stylesheet\" href=\"/html/user_data/js/style.css\">
  1828.     <link rel=\"stylesheet\" href=\"/html/plugins/icheck-bootstrap/icheck-bootstrap.min.css\">
  1829. {% endblock %}
  1830. {% block javascript %}
  1831.     <script>
  1832.         eccube.classCategories = {{ class_categories_as_json(Product)|raw }};
  1833.         // 規格2に選択肢を割り当てる。
  1834.         function fnSetClassCategories(form, classcat_id2_selected) {
  1835.             var \$form = \$(form);
  1836.             var product_id = \$form.find('input[name=product_id]').val();
  1837.             var \$sele1 = \$form.find('select[name=classcategory_id1]');
  1838.             var \$sele2 = \$form.find('select[name=classcategory_id2]');
  1839.             eccube.setClassCategories(\$form, product_id, \$sele1, \$sele2, classcat_id2_selected);
  1840.         }
  1841.         {% if form.classcategory_id2 is defined %}
  1842.         fnSetClassCategories(
  1843.             \$('#form1'), {{ form.classcategory_id2.vars.value|json_encode|raw }}
  1844.         );
  1845.         {% elseif form.classcategory_id1 is defined %}
  1846.         eccube.checkStock(\$('#form1'), {{ Product.id }}, {{ form.classcategory_id1.vars.value|json_encode|raw }}, null);
  1847.         {% endif %}
  1848.     </script>
  1849.     <script>
  1850.         \$(function() {
  1851.             // bfcache無効化
  1852.             \$(window).bind('pageshow', function(event) {
  1853.                 if (event.originalEvent.persisted) {
  1854.                     location.reload(true);
  1855.                 }
  1856.             });
  1857.             // Core Web Vital の Cumulative Layout Shift(CLS)対策のため
  1858.             // img タグに width, height が付与されている.
  1859.             // 630px 未満の画面サイズでは縦横比が壊れるための対策
  1860.             // see https://github.com/EC-CUBE/ec-cube/pull/5023
  1861.             \$('.ec-grid2__cell').hide();
  1862.             var removeSize = function () {
  1863.                 \$('.slide-item').height('');
  1864.                 \$('.slide-item img')
  1865.                     .removeAttr('width')
  1866.                     .removeAttr('height')
  1867.                     .removeAttr('style');
  1868.             };
  1869.             var slickInitial = function(slick) {
  1870.                 \$('.ec-grid2__cell').fadeIn(1500);
  1871.                 var baseHeight = \$(slick.target).height();
  1872.                 var baseWidth = \$(slick.target).width();
  1873.                 var rate = baseWidth / baseHeight;
  1874. \t\t\t\tif(baseHeight * rate < 400){
  1875. \t                \$('.slide-item').height(baseHeight * rate); // 余白を削除する
  1876. \t\t\t\t}else{
  1877. \t                \$('.slide-item').height(400); // 余白を削除する
  1878. \t\t\t\t}
  1879.                 // transform を使用することでCLSの影響を受けないようにする
  1880.                 \$('.slide-item img')
  1881.                     .css(
  1882.                         {
  1883.                             'transform-origin': 'top left',
  1884.                             'transform': 'scaleY(' + rate + ')',
  1885.                             'transition': 'transform .1s'
  1886.                         }
  1887.                     );
  1888.                 // 正しいサイズに近くなったら属性を解除する
  1889.                 setTimeout(removeSize, 500);
  1890.             };
  1891.             \$('.item_visual').on('init', slickInitial);
  1892.             // リサイズ時は CLS の影響を受けないため属性を解除する
  1893.             \$(window).resize(removeSize);
  1894.             \$('.item_visual').slick({
  1895.                 dots: false,
  1896.                 arrows: true,
  1897.                 responsive: [{
  1898.                     breakpoint: 768,
  1899.                     settings: {
  1900.                         dots: true,
  1901.                 \t\tarrows: false
  1902.                     }
  1903.                 }]
  1904.             });
  1905.             \$('.slideThumb').on('click', function() {
  1906.                 var index = \$(this).attr('data-index');
  1907.                 \$('.item_visual').slick('slickGoTo', index, false);
  1908.             })
  1909.         });
  1910.     </script>
  1911.     <script>
  1912.         \$(function() {
  1913.             \$('.add-cart').on('click', function(event) {
  1914.                 {% if form.classcategory_id1 is defined %}
  1915.                 // 規格1フォームの必須チェック
  1916.                 if (\$('#classcategory_id1').val() == '__unselected' || \$('#classcategory_id1').val() == '') {
  1917.                     \$('#classcategory_id1')[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
  1918.                     return true;
  1919.                 } else {
  1920.                     \$('#classcategory_id1')[0].setCustomValidity('');
  1921.                 }
  1922.                 {% endif %}
  1923.                 {% if form.classcategory_id2 is defined %}
  1924.                 // 規格2フォームの必須チェック
  1925.                 if (\$('#classcategory_id2').val() == '__unselected' || \$('#classcategory_id2').val() == '') {
  1926.                     \$('#classcategory_id2')[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
  1927.                     return true;
  1928.                 } else {
  1929.                     \$('#classcategory_id2')[0].setCustomValidity('');
  1930.                 }
  1931.                 {% endif %}
  1932.                 // 個数フォームのチェック
  1933.                 if (\$('#quantity').val() < 1) {
  1934.                     \$('#quantity')[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  1935.                     return true;
  1936.                 } else {
  1937.                     \$('#quantity')[0].setCustomValidity('');
  1938.                 }
  1939.                 event.preventDefault();
  1940.                 \$form = \$('#form1');
  1941.                 \$.ajax({
  1942.                     url: \$form.attr('action'),
  1943.                     type: \$form.attr('method'),
  1944.                     data: \$form.serialize(),
  1945.                     dataType: 'json',
  1946.                     beforeSend: function(xhr, settings) {
  1947.                         // Buttonを無効にする
  1948.                         \$('.add-cart').prop('disabled', true);
  1949.                     }
  1950.                 }).done(function(data) {
  1951.                     // レスポンス内のメッセージをalertで表示
  1952.                     \$.each(data.messages, function() {
  1953.                         \$('#ec-modal-header').text(this);
  1954.                     });
  1955.                     \$('.ec-modal').show()
  1956.                     // カートブロックを更新する
  1957.                     \$.ajax({
  1958.                         url: \"{{ url('block_cart') }}\",
  1959.                         type: 'GET',
  1960.                         dataType: 'html'
  1961.                     }).done(function(html) {
  1962.                         \$('.ec-headerRole__cart').html(html);
  1963.                     });
  1964.                 }).fail(function(data) {
  1965.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  1966.                 }).always(function(data) {
  1967.                     // Buttonを有効にする
  1968.                     \$('.add-cart').prop('disabled', false);
  1969.                 });
  1970.             });
  1971.         });
  1972.         \$('.ec-modal-wrap').on('click', function(e) {
  1973.             // モーダル内の処理は外側にバブリングさせない
  1974.             e.stopPropagation();
  1975.         });
  1976.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  1977.             \$('.ec-modal').hide()
  1978.         });
  1979. \t\tvar pw = \"\";
  1980. \t\tvar pd = \"\";
  1981. \t\tvar ph = \"\";
  1982. \t\tvar pm = \"\";
  1983. \t\tvar pc = \"\";
  1984. \t\tvar op0 = \"\";
  1985. \t\tvar op1 = \"\";
  1986. \t\tvar op2 = \"\";
  1987. \t\tvar op3 = \"\";
  1988. \t\tvar op4 = \"\";
  1989. \t\tvar op5 = \"\";
  1990. \t\tvar op6 = \"\";
  1991. \t\tvar op7 = \"\";
  1992. \t\tvar op8 = \"\";
  1993. \t\tvar op9 = \"\";
  1994. \t\tvar op10 = \"\";
  1995. \t\tconst formatter = new Intl.NumberFormat('ja-JP');
  1996. \t\tfunction mitsumori_simulation(type , value_id){
  1997. \t\t\tvar pp = {{ pp|raw }};
  1998. \t\t\tif(type == \"pw\"){
  1999. \t\t\t\tpw = \$('#'+value_id).val();
  2000. \t\t\t}
  2001. \t\t\tif(type == \"pd\"){
  2002. \t\t\t\tpd = \$('#'+value_id).val();
  2003. \t\t\t}
  2004. \t\t\tif(type == \"ph\"){
  2005. \t\t\t\tph = \$('#'+value_id).val();
  2006. \t\t\t}
  2007. \t\t\tif(type == \"pm\"){
  2008. \t\t\t\tpm = \$('#'+value_id).val();
  2009. \t\t\t}
  2010. \t\t\tif(type == \"pc\"){
  2011. \t\t\t\tpc = \$('#'+value_id).val();
  2012. \t\t\t}
  2013. \t\t\tif(type == \"op0\"){ op0 = \$('#'+value_id).val(); }
  2014. \t\t\tif(type == \"op1\"){ op1 = \$('#'+value_id).val(); }
  2015. \t\t\tif(type == \"op2\"){ op2 = \$('#'+value_id).val(); }
  2016. \t\t\tif(type == \"op3\"){ op3 = \$('#'+value_id).val(); }
  2017. \t\t\tif(type == \"op4\"){ op4 = \$('#'+value_id).val(); }
  2018. \t\t\tif(type == \"op5\"){ op5 = \$('#'+value_id).val(); }
  2019. \t\t\tif(type == \"op6\"){ op6 = \$('#'+value_id).val(); }
  2020. \t\t\tif(type == \"op7\"){ op7 = \$('#'+value_id).val(); }
  2021. \t\t\tif(type == \"op8\"){ op8 = \$('#'+value_id).val(); }
  2022. \t\t\tif(type == \"op9\"){ op9 = \$('#'+value_id).val(); }
  2023. \t\t\tif(type == \"op10\"){ op10 = \$('#'+value_id).val(); }
  2024. \t\t\tif(pm == \"\"){
  2025. \t\t\t\t\$('#mitsumori_message').text(\"素材を選択してください\");
  2026. \t\t\t}
  2027. \t\t\tif(ph == \"\"){
  2028. \t\t\t\t\$('#mitsumori_message').text(\"高さを選択してください\");
  2029. \t\t\t}
  2030. \t\t\tif(pd == \"\"){
  2031. \t\t\t\t\$('#mitsumori_message').text(\"奥行きを選択してください\");
  2032. \t\t\t}
  2033. \t\t\tif(pw == \"\"){
  2034. \t\t\t\t\$('#mitsumori_message').text(\"幅を選択してください\");
  2035. \t\t\t}
  2036. \t\t\tif(pc == \"\"){
  2037. \t\t\t\t\$('#mitsumori_message').text(\"カラーを選択してください\");
  2038. \t\t\t\t\$('#mitsumori_btn').hide();
  2039. \t\t\t\t\$('#mitsumori_goukei').text(\"---円\");
  2040. \t\t\t\t\$('#mitsumori_off').text(\"---円\");
  2041. \t\t\t\t\$('#mitsumori_price').text(\"---円\");
  2042. \t\t\t\t\$('#maker_price').text(\"---円\");
  2043. \t\t\t\t\$('#mitsumori_ct').text(\"---円\");
  2044. \t\t\t\t\$('#mitsumori_option').text(\"---円\");
  2045. \t\t\t}
  2046. \t\t\tif(pw != \"\" && pd != \"\" && ph != \"\" && pm != \"\" && pc != \"\"){
  2047. \t\t\t\t\$('#mitsumori_btn').show();
  2048. \t\t\t\t
  2049. \t\t\t\tpp.forEach((el) => {
  2050. \t\t\t\t  if(pw == el.w && pd == el.d && ph == el.h && pm == el.m && pc == el.c){
  2051. \t\t\t\t\tif(op0 == \"商品購入のみ\" || op1 == \"商品購入のみ\" || op2 == \"商品購入のみ\" || op3 == \"商品購入のみ\" || op4 == \"商品購入のみ\" 
  2052. \t\t\t\t\t\t|| op5 == \"商品購入のみ\" || op6 == \"商品購入のみ\" || op7 == \"商品購入のみ\" || op8 == \"商品購入のみ\" || op9 == \"商品購入のみ\"){
  2053. \t\t\t\t\t  \t\$('#mitsumori_message').text(formatter.format(parseInt(el.price)) + \"円\");
  2054. \t\t\t\t\t  \t\$('#mitsumori_goukei').text(formatter.format(parseInt(el.price)) + \"円\");
  2055. \t\t\t\t\t  \t\$('#mitsumori_off').text(formatter.format(parseInt(el.price) - parseInt(el.maker_price)) + \"円\");
  2056. \t\t\t\t\t  \t\$('#mitsumori_price').text(formatter.format(parseInt(el.price)) + \"円\");
  2057. \t\t\t\t\t  \t\$('#maker_price').text(formatter.format(parseInt(el.maker_price)) + \"円\");
  2058. \t\t\t\t\t  \t\$('#mitsumori_ct').text(\"0円\");
  2059. \t\t\t\t\t  \t\$('#mitsumori_option').text(\"0円\");
  2060. \t\t\t\t\t  \t\$('#mitsumori_kei').text(formatter.format(parseInt(el.price)) + \"円\");
  2061. \t\t\t\t\t  \t\$('#mitsumori_price_01').text(formatter.format(parseInt(el.price)) + \"円\");
  2062. \t\t\t\t\t  \t\$('#mitsumori_price_02').text(formatter.format(parseInt(el.price)) + \"円\");
  2063. \t\t\t\t\t  \t\$('#mitsumori_ct_01').text(\"0円\");
  2064. \t\t\t\t\t  \t\$('#mitsumori_ct_02').text(\"0円\");
  2065. \t\t\t\t\t  \t\$('#mitsumori_goukei_02').text(formatter.format(parseInt(el.price)) + \"円\");
  2066. \t\t\t\t\t\t
  2067. \t\t\t\t\t\tmitsumori_goukei = (parseInt(el.price));
  2068. \t\t\t\t\t\tshoukei = mitsumori_goukei / 1.1;
  2069. \t\t\t\t\t\ttax = parseInt(mitsumori_goukei - shoukei);
  2070. \t\t\t\t\t  \t\$('#mitsumori_shoukei').text(formatter.format(parseInt(shoukei)) + \"円\");
  2071. \t\t\t\t\t  \t\$('#mitsumori_tax').text(formatter.format(parseInt(tax)) + \"円\");
  2072. \t\t\t\t\t}else{
  2073. \t\t\t\t\t  \t\$('#mitsumori_message').text(formatter.format(parseInt(el.price) + parseInt(el.ct)) + \"円\");
  2074. \t\t\t\t\t  \t\$('#mitsumori_goukei').text(formatter.format(parseInt(el.price) + parseInt(el.ct)) + \"円\");
  2075. \t\t\t\t\t  \t\$('#mitsumori_off').text(formatter.format(parseInt(el.price) - parseInt(el.maker_price)) + \"円\");
  2076. \t\t\t\t\t  \t\$('#mitsumori_price').text(formatter.format(parseInt(el.price)) + \"円\");
  2077. \t\t\t\t\t  \t\$('#maker_price').text(formatter.format(parseInt(el.maker_price)) + \"円\");
  2078. \t\t\t\t\t  \t\$('#mitsumori_ct').text(formatter.format(parseInt(el.ct)) + \"円\");
  2079. \t\t\t\t\t  \t\$('#mitsumori_option').text(\"0円\");
  2080. \t\t\t\t\t  \t\$('#mitsumori_kei').text(formatter.format(parseInt(el.price) + parseInt(el.ct)) + \"円\");
  2081. \t\t\t\t\t  \t\$('#mitsumori_price_01').text(formatter.format(parseInt(el.price)) + \"円\");
  2082. \t\t\t\t\t  \t\$('#mitsumori_price_02').text(formatter.format(parseInt(el.price)) + \"円\");
  2083. \t\t\t\t\t  \t\$('#mitsumori_ct_01').text(formatter.format(parseInt(el.ct)) + \"円\");
  2084. \t\t\t\t\t  \t\$('#mitsumori_ct_02').text(formatter.format(parseInt(el.ct)) + \"円\");
  2085. \t\t\t\t\t  \t\$('#mitsumori_goukei_02').text(formatter.format(parseInt(el.price) + parseInt(el.ct)) + \"円\");
  2086. \t\t\t\t\t\tmitsumori_goukei = (parseInt(el.price) + parseInt(el.ct));
  2087. \t\t\t\t\t\tshoukei = mitsumori_goukei / 1.1;
  2088. \t\t\t\t\t\ttax = parseInt(mitsumori_goukei - shoukei);
  2089. \t\t\t\t\t  \t\$('#mitsumori_shoukei').text(formatter.format(parseInt(shoukei)) + \"円\");
  2090. \t\t\t\t\t  \t\$('#mitsumori_tax').text(formatter.format(parseInt(tax)) + \"円\");
  2091. \t\t\t\t\t}
  2092. \t\t\t\t  }
  2093. \t\t\t\t});
  2094. \t\t\t}
  2095. \t\t}
  2096. \t\tmitsumori_simulation(\"\",\"\");
  2097.     </script>
  2098.     <script type=\"application/ld+json\">
  2099.     {
  2100.         \"@context\": \"https://schema.org/\",
  2101.         \"@type\": \"Product\",
  2102.         \"name\": \"{{ Product.name }}\",
  2103.         \"image\": [
  2104.             {% for img in Product.ProductImage %}
  2105.                 \"{{ app.request.schemeAndHttpHost }}{{ asset(img, 'save_image') }}\"{% if not loop.last %},{% endif %}
  2106.             {% else %}
  2107.                 \"{{ app.request.schemeAndHttpHost }}{{ asset(''|no_image_product, 'save_image') }}\"
  2108.             {% endfor %}
  2109.         ],
  2110.         \"description\": \"{{ Product.description_list | default(Product.description_detail) | replace({'\\n': '', '\\r': ''}) | slice(0,300) }}\",
  2111.         {% if Product.code_min %}
  2112.         \"sku\": \"{{ Product.code_min }}\",
  2113.         {% endif %}
  2114.         \"offers\": {
  2115.             \"@type\": \"Offer\",
  2116.             \"url\": \"{{ url('product_detail', {'id': Product.id}) }}\",
  2117.             \"priceCurrency\": \"{{ eccube_config.currency }}\",
  2118.             \"price\": {{ Product.getPrice02IncTaxMin ? Product.getPrice02IncTaxMin : 0}},
  2119.             \"availability\": \"{{ Product.stock_find ? \"InStock\" : \"OutOfStock\" }}\"
  2120.         }
  2121.     }
  2122.     </script>
  2123. {% endblock %}
  2124. {% block main %}
  2125.     <div class=\"ec-productRole\" style=\"margin-top:20px;\">
  2126.         <div class=\"ec-grid2\">
  2127.             <div class=\"ec-grid2__cell\">
  2128.                 <div class=\"ec-sliderItemRole\">
  2129. \t                {# 商品名 #}
  2130. \t                <div class=\"ec-productRole__title\">
  2131. \t                    <h2 class=\"ec-headingTitle\">{{ Product.name }}</h2>
  2132. \t                </div>
  2133.                     {% if BaseInfo.option_favorite_product %}
  2134.                      <div style=\"position:relative;top: 20px;left: 10px;z-index:100;\">
  2135. \t\t\t\t\t\t{% if is_favorite == false %}
  2136.                         <form action=\"{{ url('product_add_favorite', {id:Product.id}) }}\" method=\"post\">
  2137.                            <button type=\"submit\" id=\"favorite\" class=\"favorite\">&#9825;</button>
  2138.                         </form>
  2139.                         {% else %}
  2140.                         <form action=\"{{ url('product_add_favorite', {id:Product.id}) }}\" method=\"post\">
  2141.                            <button type=\"submit\" id=\"favorite\" class=\"favorite\" style=\"color:red;\">&#9829;</button>
  2142.                         </form>
  2143.                         {% endif %}
  2144.                      </div>
  2145.                     {% endif %}
  2146.                     <div class=\"item_visual\">
  2147.                         {% for ProductImage in Product.ProductImage %}
  2148.                             <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>
  2149.                         {% else %}
  2150.                             <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>
  2151.                         {% endfor %}
  2152.                     </div>
  2153.                     <div class=\"item_nav\">
  2154.                         {% for ProductImage in Product.ProductImage %}
  2155.                             <div class=\"slideThumb\" data-index=\"{{ loop.index0 }}\"><img src=\"{{ asset(ProductImage, 'save_image') }}\" alt=\"\" width=\"80\" height=\"80\" loading=\"lazy\"></div>
  2156.                         {% endfor %}
  2157.                     </div>
  2158.                 </div>
  2159.             </div>
  2160.             <div class=\"ec-grid2__cell2\">
  2161.                 <div class=\"ec-productRole__profile\" >
  2162.                     {# 関連カテゴリ #}
  2163.                     {% if Product.ProductCategories is not empty %}
  2164.                         <div class=\"ec-productRole__category\" style=\"padding:10px 0;\">
  2165.                             {% for ProductCategory in Product.ProductCategories %}
  2166.                                 <ul>
  2167.                                     <li>
  2168.                                         {% for Category in ProductCategory.Category.path %}
  2169.                                             <a href=\"{{ url('product_list') }}?category_id={{ Category.id }}\">{{ Category.name }}</a> {%- if loop.last == false %}
  2170.                                             <span>></span>{% endif -%}
  2171.                                         {% endfor %}
  2172.                                     </li>
  2173.                                 </ul>
  2174.                             {% endfor %}
  2175.                         </div>
  2176.                     {% endif %}
  2177.                     {# 販売価格 #}
  2178.                     <div class=\"ec-productRole__price\">
  2179. \t\t\t\t\t\t<span style=\"color:black;font-size:15px;\">工事費込み価格</span>
  2180.                         {% if Product.hasProductClass -%}
  2181.                             {% if Product.getPrice02IncTaxMin == Product.getPrice02IncTaxMax %}
  2182.                                 <div class=\"ec-price\">
  2183.                                     <span class=\"ec-price__price price02-default\">{{ Product.getPrice02IncTaxMin|price }}</span>
  2184.                                     <span class=\"ec-price__tax\">({{ '税込'|trans }})~</span>
  2185.                                 </div>
  2186.                             {% else %}
  2187.                                 <div class=\"ec-price\">
  2188.                                     <span class=\"ec-price__price price02-default\">{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}</span>
  2189.                                     <span class=\"ec-price__tax\">({{ '税込'|trans }})</span>
  2190.                                 </div>
  2191.                             {% endif %}
  2192.                         {% else %}
  2193.                             <div class=\"ec-price\">
  2194.                                 <span class=\"ec-price__price\">{{ Product.getPrice02IncTaxMin|price }}</span>
  2195.                                     <span class=\"ec-price__tax\">({{ '税込'|trans }})~</span>
  2196.                             </div>
  2197.                         {% endif %}
  2198.                     </div>
  2199.                     {# タグ #}
  2200.                     <ul class=\"ec-productRole__tags\">
  2201.                         {% for Tag in Product.Tags %}
  2202.                             <li class=\"ec-productRole__tag tag_{{ Tag.id }}\">{{ Tag }}</li>
  2203.                         {% endfor %}
  2204.                     </ul>
  2205.                     {# 商品コード #}
  2206.                     {% if Product.code_min is not empty %}
  2207.                         <div class=\"ec-productRole__code\">
  2208.                             {{ '商品コード'|trans }}: <span class=\"product-code-default\">{{ Product.code_min }}{% if Product.code_min != Product.code_max %} ~ {{ Product.code_max }}{% endif %}</span>
  2209.                         </div>
  2210.                     {% endif %}
  2211.                     <div class=\"ec-productRole__description\">
  2212. \t\t\t\t        <div class=\"ec-rectHeading\">
  2213. \t\t\t\t            <h4>製品情報</h4>
  2214. \t\t\t\t        </div>
  2215. \t\t\t\t\t\t{{ Product.sales_infomation|raw|nl2br }}
  2216.                     </div>
  2217. \t\t\t\t\t<div class=\"card card-danger\" style=\"clear:both;margin:1px;\">
  2218. \t\t\t\t\t  <div class=\"card-header\">
  2219. \t\t\t\t\t    <h3 class=\"card-title\">見積シミュレーション</h3>
  2220. \t\t\t\t\t  </div>
  2221. \t\t\t\t\t  <div class=\"card-body p-2\">
  2222. \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>
  2223. \t\t\t\t\t\t{% set type1 = getProduct_field(Product.id,\"related_name1\") %}
  2224.                         {% if type1 and related_product1 and related_product1|length %}
  2225. \t\t\t\t\t    <div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  2226. \t\t\t\t\t\t  <label class=\"col-4 col-form-label mt-2\">{{ type1 }}</label>
  2227. \t\t\t\t\t\t  <div class=\"col-8 mt-2\">
  2228. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  2229. \t\t\t\t\t\t      {% for rp_id, rp_name in related_product1 %}
  2230. \t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2231. \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>
  2232. \t\t\t\t\t\t      </div>
  2233. \t\t\t\t\t\t\t  {% endfor %}
  2234. \t\t\t\t\t\t    </div>
  2235. \t\t\t\t\t\t  </div>
  2236. \t\t\t\t\t    </div>
  2237.                         {% endif %}
  2238. \t\t\t\t\t\t{% set type2 = getProduct_field(Product.id,\"related_name2\") %}
  2239.                         {% if type2 and related_product2 and related_product2|length %}
  2240. \t\t\t\t\t    <div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  2241. \t\t\t\t\t\t  <label class=\"col-4 col-form-label mt-2\">{{ type2 }}</label>
  2242. \t\t\t\t\t\t  <div class=\"col-8 mt-2\">
  2243. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  2244. \t\t\t\t\t\t      {% for rp_id, rp_name in related_product2 %}
  2245. \t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2246. \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>
  2247. \t\t\t\t\t\t      </div>
  2248. \t\t\t\t\t\t\t  {% endfor %}
  2249. \t\t\t\t\t\t    </div>
  2250. \t\t\t\t\t\t  </div>
  2251. \t\t\t\t\t    </div>
  2252.                         {% endif %}
  2253. \t\t\t\t\t\t{% set type3 = getProduct_field(Product.id,\"related_name3\") %}
  2254.                         {% if type3 and related_product3 and related_product3|length %}
  2255. \t\t\t\t\t    <div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  2256. \t\t\t\t\t\t  <label class=\"col-4 col-form-label mt-2\">{{ type3 }}</label>
  2257. \t\t\t\t\t\t  <div class=\"col-8 mt-2\">
  2258. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  2259. \t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2260. \t\t\t\t\t\t        <input type=\"radio\" name=\"rp3\" id=\"rp3_{{ Product.id }}\" value=\"{{ Product.name }}\" checked ><label for=\"rp3_{{ Product.id  }}\">{{ base_select3 }}</label>
  2261. \t\t\t\t\t\t      </div>
  2262. \t\t\t\t\t\t      {% for rp_id, rp_name in related_product3 %}
  2263. \t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2264. \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>
  2265. \t\t\t\t\t\t      </div>
  2266. \t\t\t\t\t\t\t  {% endfor %}
  2267. \t\t\t\t\t\t    </div>
  2268. \t\t\t\t\t\t  </div>
  2269. \t\t\t\t\t    </div>
  2270.                         {% endif %}
  2271. \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>
  2272.                         {% if color and color|length %}
  2273. \t\t\t\t\t    <div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  2274. \t\t\t\t\t\t  <label class=\"col-4 col-form-label mt-2\">カラー</label>
  2275. \t\t\t\t\t\t  <div class=\"col-8 mt-2\">
  2276. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  2277. \t\t\t\t\t\t    {% set idx = 0 %}
  2278. \t\t\t\t\t\t    {% for cc in color %}
  2279. \t\t\t\t\t\t      {% if cc and cc['name'] %}
  2280. \t\t\t\t\t\t      {% set idx = idx + 1 %}
  2281. \t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2282. \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>
  2283. \t\t\t\t\t\t      </div>
  2284. \t\t\t\t\t\t      {% endif %}
  2285. \t\t\t\t\t\t\t{% endfor %}
  2286. \t\t\t\t\t\t    </div>
  2287. \t\t\t\t\t\t  </div>
  2288. \t\t\t\t\t    </div>
  2289.                         {% endif %}
  2290.                         {% if p_w and p_w|length %}
  2291. \t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  2292. \t\t\t\t\t\t  <label class=\"col-4 col-form-label\">幅</label>
  2293. \t\t\t\t\t\t  <div class=\"col-8\">
  2294. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  2295. \t\t\t\t\t\t    {% set idx = 0 %}
  2296. \t\t\t\t\t\t    {% for pw in p_w %}
  2297. \t\t\t\t\t\t      {% if pw %}
  2298. \t\t\t\t\t\t      {% set idx = idx + 1 %}
  2299. \t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2300. \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>
  2301. \t\t\t\t\t\t      </div>
  2302. \t\t\t\t\t\t      {% endif %}
  2303. \t\t\t\t\t\t\t{% endfor %}
  2304. \t\t\t\t\t\t    </div>
  2305. \t\t\t\t\t\t  </div>
  2306. \t\t\t\t\t\t</div>
  2307.                         {% endif %}
  2308.                         {% if p_d and p_d|length %}
  2309. \t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  2310. \t\t\t\t\t\t  <label class=\"col-4 col-form-label\">奥行き</label>
  2311. \t\t\t\t\t\t  <div class=\"col-8\">
  2312. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  2313. \t\t\t\t\t\t    {% set idx = 0 %}
  2314. \t\t\t\t\t\t    {% for pd in p_d %}
  2315. \t\t\t\t\t\t      {% if pd %}
  2316. \t\t\t\t\t\t      {% set idx = idx + 1 %}
  2317. \t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2318. \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>
  2319. \t\t\t\t\t\t      </div>
  2320. \t\t\t\t\t\t      {% endif %}
  2321. \t\t\t\t\t\t\t{% endfor %}
  2322. \t\t\t\t\t\t    </div>
  2323. \t\t\t\t\t\t  </div>
  2324. \t\t\t\t\t\t</div>
  2325.                         {% endif %}
  2326.                         {% if p_h and p_h|length %}
  2327. \t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  2328. \t\t\t\t\t\t  <label class=\"col-4 col-form-label\">高さ</label>
  2329. \t\t\t\t\t\t  <div class=\"col-8\">
  2330. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  2331. \t\t\t\t\t\t    {% set idx = 0 %}
  2332. \t\t\t\t\t\t    {% for ph in p_h %}
  2333. \t\t\t\t\t\t      {% if ph %}
  2334. \t\t\t\t\t\t      {% set idx = idx + 1 %}
  2335. \t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2336. \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>
  2337. \t\t\t\t\t\t      </div>
  2338. \t\t\t\t\t\t      {% endif %}
  2339. \t\t\t\t\t\t\t{% endfor %}
  2340. \t\t\t\t\t\t    </div>
  2341. \t\t\t\t\t\t  </div>
  2342. \t\t\t\t\t\t</div>
  2343.                         {% endif %}
  2344.                         {% if p_w and p_w|length %}
  2345. \t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  2346. \t\t\t\t\t\t  <label class=\"col-4 col-form-label\">素材</label>
  2347. \t\t\t\t\t\t  <div class=\"col-8\">
  2348. \t\t\t\t\t\t    <div class=\"form-group clearfix\">
  2349. \t\t\t\t\t\t    {% set idx = 0 %}
  2350. \t\t\t\t\t\t    {% for pm in p_m %}
  2351. \t\t\t\t\t\t      {% if pm %}
  2352. \t\t\t\t\t\t      {% set idx = idx + 1 %}
  2353. \t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2354. \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>
  2355. \t\t\t\t\t\t      </div>
  2356. \t\t\t\t\t\t      {% endif %}
  2357. \t\t\t\t\t\t\t{% endfor %}
  2358. \t\t\t\t\t\t    </div>
  2359. \t\t\t\t\t\t  </div>
  2360. \t\t\t\t\t\t</div>
  2361.                         {% endif %}
  2362. \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>
  2363. \t\t\t\t\t\t{% for i in 0..10 %}
  2364. \t\t\t\t\t\t\t{% if op and op|length >= i+1 %}
  2365. \t\t\t\t\t\t\t{% if op[i]['name'] %}
  2366. \t\t\t\t\t\t\t<div class=\"form-group row mt-2\" style=\"border-bottom:1px solid rgba(0,0,0,.125)\">
  2367. \t\t\t\t\t\t\t  <label class=\"col-4 col-form-label\">{{ op[i]['name'] }}</label>
  2368. \t\t\t\t\t\t\t  <div class=\"col-8\">
  2369. \t\t\t\t\t            {{ op[i]['comment'] }}
  2370. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  2371. \t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2372. \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>
  2373. \t\t\t\t\t\t\t      </div>
  2374. \t\t\t\t\t\t\t    </div>
  2375. \t\t\t\t\t\t\t    <div class=\"form-group clearfix\">
  2376. \t\t\t\t\t\t\t      <div class=\"icheck-danger d-inline\">
  2377. \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>
  2378. \t\t\t\t\t\t\t      </div>
  2379. \t\t\t\t\t\t\t    </div>
  2380. \t\t\t\t\t\t\t  </div>
  2381. \t\t\t\t\t\t\t</div>
  2382. \t\t\t\t\t\t\t{% endif %}
  2383. \t\t\t\t\t\t\t{% endif %}
  2384. \t\t\t\t\t\t{% endfor %}
  2385. \t\t\t\t\t  </div>
  2386. \t\t\t\t\t  <!-- /.card-body -->
  2387. \t\t\t\t\t</div>
  2388.                     <form action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\" id=\"form1\" name=\"form1\">
  2389.                         {% if Product.stock_find %}
  2390.                             <div class=\"ec-productRole__actions\">
  2391.                                 {% if form.classcategory_id1 is defined %}
  2392.                                     <div class=\"ec-select\">
  2393.                                         {{ form_row(form.classcategory_id1) }}
  2394.                                         {{ form_errors(form.classcategory_id1) }}
  2395.                                     </div>
  2396.                                     {% if form.classcategory_id2 is defined %}
  2397.                                         <div class=\"ec-select\">
  2398.                                             {{ form_row(form.classcategory_id2) }}
  2399.                                             {{ form_errors(form.classcategory_id2) }}
  2400.                                         </div>
  2401.                                     {% endif %}
  2402.                                 {% endif %}
  2403.                                 <div class=\"ec-numberInput\">
  2404.                                     {{ form_widget(form.quantity, { type: 'hidden' }) }}
  2405.                                     {{ form_errors(form.quantity) }}
  2406.                                 </div>
  2407.                             </div>
  2408. \t\t\t\t\t\t\t{% if ProductClass.SaleType.id != 9 %}
  2409.                             <div class=\"ec-productRole__btn\">
  2410.                             </div>
  2411. \t\t\t\t\t\t\t{% else %}
  2412.                             <div class=\"ec-productRole__btn\">
  2413.                                 <button type=\"submit\" class=\"ec-blockBtn--action add-cart\">
  2414.                                     {{ 'カートに入れる'|trans }}
  2415.                                 </button>
  2416.                             </div>
  2417. \t\t\t\t\t\t\t{% endif %}
  2418.                         {% else %}
  2419.                             <div class=\"ec-productRole__btn\">
  2420.                                 <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  2421.                                     {{ 'ただいま品切れ中です。'|trans }}
  2422.                                 </button>
  2423.                             </div>
  2424.                         {% endif %}
  2425.                         {{ form_rest(form) }}
  2426.                     </form>
  2427.                     <div class=\"ec-modal\">
  2428.                         <div class=\"ec-modal-overlay\">
  2429.                             <div class=\"ec-modal-wrap\">
  2430.                                 <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
  2431.                                 <div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
  2432.                                 <div class=\"ec-modal-box\">
  2433.                                     <div class=\"ec-role\">
  2434.                                         <span class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</span>
  2435.                                         <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
  2436.                                     </div>
  2437.                                 </div>
  2438.                             </div>
  2439.                         </div>
  2440.                     </div>
  2441.                     <div class=\"ec-productRole__description\">{{ Product.description_detail|raw|nl2br }}
  2442.                     </div>
  2443.                 </div>
  2444. \t\t\t\t<div class=\"card col-12 collapsed-card sticky-top float-right\">
  2445. \t\t\t\t\t<div class=\"card-header\">
  2446. \t\t\t\t\t  <h3 class=\"card-title\">現在のお見積り額</h3>
  2447. \t\t\t\t\t  <div class=\"card-tools\">
  2448. \t\t\t\t\t    <span class=\"float-left\" id=\"mitsumori_message\">395000円</span>
  2449. \t\t\t\t\t    <button type=\"button\" class=\"btn btn-tool\" data-card-widget=\"collapse\">
  2450. \t\t\t\t\t      <i class=\"fas fa-plus\"></i>
  2451. \t\t\t\t\t    </button>
  2452. \t\t\t\t\t  </div>
  2453. \t\t\t\t\t</div>
  2454. \t\t\t\t\t<div class=\"card-body p-0\">
  2455. \t\t\t\t\t  <ul class=\"nav nav-pills flex-column\">
  2456. \t\t\t\t\t    <li class=\"nav-item active\">
  2457. \t\t\t\t\t      <a class=\"nav-link\">
  2458. \t\t\t\t\t        <i class=\"far fa-file-alt\"></i> 合計(工事費・税込)
  2459. \t\t\t\t\t        <span class=\"float-right\" id=\"mitsumori_goukei\">395,000円</span>
  2460. \t\t\t\t\t      </a>
  2461. \t\t\t\t\t    </li>
  2462. \t\t\t\t\t    <li class=\"nav-item active\">
  2463. \t\t\t\t\t      <a class=\"nav-link\">
  2464. \t\t\t\t\t        <i class=\"far fa-file-alt\"></i> 商品価格
  2465. \t\t\t\t\t        <span class=\"float-right\" id=\"mitsumori_price\">307,008円</span>
  2466. \t\t\t\t\t      </a>
  2467. \t\t\t\t\t    </li>
  2468. \t\t\t\t\t    <li class=\"nav-item\">
  2469. \t\t\t\t\t      <a class=\"nav-link\">
  2470. \t\t\t\t\t        &nbsp;&nbsp;<i class=\"far fa-file-alt\"></i> カタログ価格
  2471. \t\t\t\t\t        <span class=\"float-right\" id=\"maker_price\">479,700円</span>
  2472. \t\t\t\t\t      </a>
  2473. \t\t\t\t\t    </li>
  2474. \t\t\t\t\t    <li class=\"nav-item\">
  2475. \t\t\t\t\t      <a class=\"nav-link\">
  2476. \t\t\t\t\t        &nbsp;&nbsp;<i class=\"far fa-file-alt\"></i> お値引き
  2477. \t\t\t\t\t        <span class=\"float-right\" id=\"mitsumori_off\">-172,692円</span>
  2478. \t\t\t\t\t      </a>
  2479. \t\t\t\t\t    </li>
  2480. \t\t\t\t\t    <li class=\"nav-item\">
  2481. \t\t\t\t\t      <a class=\"nav-link\">
  2482. \t\t\t\t\t        <i class=\"far fa-file-alt\"></i> 基本工事費
  2483. \t\t\t\t\t        <span class=\"float-right\" id=\"mitsumori_ct\">53,250円</span>
  2484. \t\t\t\t\t      </a>
  2485. \t\t\t\t\t    </li>
  2486. \t\t\t\t\t    <li class=\"nav-item\">
  2487. \t\t\t\t\t      <a class=\"nav-link\">
  2488. \t\t\t\t\t        <i class=\"far fa-file-alt\"></i> 施工オプション
  2489. \t\t\t\t\t        <span class=\"float-right\"id=\"mitsumori_option\">6,297円</span>
  2490. \t\t\t\t\t      </a>
  2491. \t\t\t\t\t    </li>
  2492. \t\t\t\t\t  </ul>
  2493. \t\t\t\t\t</div>
  2494. \t\t\t\t\t<div class=\"card-footer\">
  2495. \t\t                <button type=\"button\" id=\"mitsumori_btn\" class=\"btn btn-info\" data-toggle=\"modal\" data-target=\"#modal-mitsumori\">
  2496. \t\t                  見積書表示
  2497. \t\t                </button>
  2498. \t\t\t\t\t\t<button id=\"contact\" class=\"btn btn-info\" onclick=\"location.href='/contact?product={{ Product.id }}';\">無料現地調査へ進む</button>
  2499. \t\t\t\t\t</div>
  2500. \t\t\t\t</div>
  2501.             </div>
  2502.         </div>
  2503.     </div>
  2504.   <div class=\"modal\" id=\"modal-mitsumori\">
  2505.     <div class=\"modal-dialog modal-mitsumori\" style=\"max-width:1000px\">
  2506.       <div class=\"modal-content\">
  2507.         <div class=\"modal-header\">
  2508.           <h4 class=\"modal-title\">お見積書</h4>
  2509.           <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  2510.             <span aria-hidden=\"true\">&times;</span>
  2511.           </button>
  2512.         </div>
  2513.         <div class=\"modal-body\">
  2514. \t\t\t<div class=\"invoice p-3 mb-5\" style=\"max-width:1000px; margin:auto;\">
  2515. \t\t\t  <!-- title row -->
  2516. \t\t\t  <div class=\"row\">
  2517. \t\t\t    <div class=\"col-12\">
  2518. \t\t\t      <h2>概算お見積書 
  2519. \t\t\t        <small class=\"float-right\" style=\"font-size:14px;\">発行日: 2025/03/14</small>
  2520. \t\t\t      </h2>
  2521. \t\t\t    </div>
  2522. \t\t\t    <!-- /.col -->
  2523. \t\t\t  </div>
  2524. \t\t\t  <!-- info row -->
  2525. \t\t\t  <div class=\"row invoice-info\">
  2526. \t\t\t    <div class=\"col-sm-8 invoice-col\">
  2527. \t\t\t      <h3>お客様</h3>
  2528. \t\t\t      <span>下記の通り、お見積もり申し上げます。</span>
  2529. \t\t\t      <br />
  2530. \t\t\t      <br / >
  2531. \t\t\t      <br />
  2532. \t\t\t      <h2>お見積金額: <span id=\"mitsumori_kei\">399,080円</span></h2>
  2533. \t\t\t      <span>
  2534. \t\t\t        <br/>
  2535. \t\t\t        <br/>
  2536. \t\t\t        <br/>
  2537. \t\t\t        <br/>
  2538. \t\t\t      </span>
  2539. \t\t\t    </div>
  2540. \t\t\t    <div class=\"col-sm-4 invoice-col\">
  2541. \t\t\t      <p>
  2542. \t\t\t        <img alt=\"\" src=\"/html/user_data/js/images/logo.png\" style=\"width: 260px; max-width: 100%; max-height: 10mm;\">
  2543. \t\t\t      </p>
  2544. \t\t\t      <p>有限会社プラス</p>
  2545. \t\t\t      <p>〒400-0334</p>
  2546. \t\t\t      <p>山梨県南アルプス市藤田1450番地2</p>
  2547. \t\t\t      <p>TEL: 055-284-6480</p>
  2548. \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;\">
  2549. \t\t\t    </div>
  2550. \t\t\t    <!-- /.col -->
  2551. \t\t\t    <!-- /.col -->
  2552. \t\t\t  </div>
  2553. \t\t\t  <!-- /.row -->
  2554. \t\t\t  <!-- Table row -->
  2555. \t\t\t  <div class=\"row\">
  2556. \t\t\t    <div class=\"col-12 table-responsive\">
  2557. \t\t\t      <table class=\"table table-striped\">
  2558. \t\t\t        <thead>
  2559. \t\t\t          <tr>
  2560. \t\t\t            <th>項目</th>
  2561. \t\t\t            <th>数量</th>
  2562. \t\t\t            <th>単位</th>
  2563. \t\t\t            <th>単価</th>
  2564. \t\t\t            <th>小計</th>
  2565. \t\t\t          </tr>
  2566. \t\t\t        </thead>
  2567. \t\t\t        <tbody>
  2568. \t\t\t          <tr>
  2569. \t\t\t            <td>プレーンルーフ 600タイプ 1台用 単体セット</td>
  2570. \t\t\t            <td>1</td>
  2571. \t\t\t            <td>式</td>
  2572. \t\t\t            <td id=\"mitsumori_price_01\">352,800</td>
  2573. \t\t\t            <td id=\"mitsumori_price_02\">352,800</td>
  2574. \t\t\t          </tr>
  2575. \t\t\t          <tr>
  2576. \t\t\t            <td>基本工事費</td>
  2577. \t\t\t            <td>1</td>
  2578. \t\t\t            <td>式</td>
  2579. \t\t\t            <td id=\"mitsumori_ct_01\">10,000</td>
  2580. \t\t\t            <td id=\"mitsumori_ct_02\">10,000</td>
  2581. \t\t\t          </tr>
  2582. \t\t\t          <tr>
  2583. \t\t\t            <td>残土・ガラ処理</td>
  2584. \t\t\t            <td>1</td>
  2585. \t\t\t            <td>式</td>
  2586. \t\t\t            <td>0円</td>
  2587. \t\t\t            <td></td>
  2588. \t\t\t          </tr>
  2589. \t\t\t          <tr>
  2590. \t\t\t            <td> </td>
  2591. \t\t\t            <td></td>
  2592. \t\t\t            <td></td>
  2593. \t\t\t            <td></td>
  2594. \t\t\t            <td></td>
  2595. \t\t\t          </tr>
  2596. \t\t\t        </tbody>
  2597. \t\t\t      </table>
  2598. \t\t\t    </div>
  2599. \t\t\t    <!-- /.col -->
  2600. \t\t\t  </div>
  2601. \t\t\t  <!-- /.row -->
  2602. \t\t\t  <div class=\"row\">
  2603. \t\t\t    <!-- accepted payments column -->
  2604. \t\t\t    <div class=\"col-6\">
  2605. \t\t\t      <p class=\"lead\">お支払い方法</p>
  2606. \t\t\t      <p class=\"text-muted well well-sm shadow-none\" style=\"margin-top: 10px;\">銀行振込、クレジットカード決済、PAYPAY決済
  2607. \t\t\t        <br>銀行振込:山梨中央銀行 白根支店 普通口座 391402
  2608. \t\t\t        <br>※商品代金と工事代金の総額が金100万円(税込)を超える場合、着手金として代金の半額をご契約後お支払いいただきます。 
  2609. \t\t\t      </p>
  2610. \t\t\t    </div>
  2611. \t\t\t    <!-- /.col -->
  2612. \t\t\t    <div class=\"col-6\">
  2613. \t\t\t      <div class=\"table-responsive\">
  2614. \t\t\t        <table class=\"table\">
  2615. \t\t\t          <tbody>
  2616. \t\t\t            <tr>
  2617. \t\t\t              <th style=\"width:50%\">小計:</th>
  2618. \t\t\t              <td id=\"mitsumori_shoukei\">362,800</td>
  2619. \t\t\t            </tr>
  2620. \t\t\t            <tr>
  2621. \t\t\t              <th>消費税 (10%)</th>
  2622. \t\t\t              <td id=\"mitsumori_tax\">36,280</td>
  2623. \t\t\t            </tr>
  2624. \t\t\t            <tr>
  2625. \t\t\t              <th>合計:</th>
  2626. \t\t\t              <td id=\"mitsumori_goukei_02\">399,080</td>
  2627. \t\t\t            </tr>
  2628. \t\t\t          </tbody>
  2629. \t\t\t        </table>
  2630. \t\t\t      </div>
  2631. \t\t\t    </div>
  2632. \t\t\t    <!-- /.col -->
  2633. \t\t\t  </div>
  2634. \t\t\t  <!-- /.row -->
  2635. \t\t\t</div>
  2636.         </div>
  2637.         <div class=\"modal-footer justify-content-between\">
  2638. \t\t\t      <button type=\"button\" class=\"btn btn-primary float-right\" style=\"margin-right: 5px;\">
  2639. \t\t\t        <i class=\"fas fa-download\"></i>PDF出力
  2640. \t\t\t      </button>
  2641.           <button type=\"button\" class=\"btn btn-info\" onclick=\"location.href='/contact?product={{ Product.id }}';\">無料現地調査へ進む</button>
  2642.         </div>
  2643.       </div>
  2644.       <!-- /.modal-content -->
  2645.     </div>
  2646.     <!-- /.modal-dialog -->
  2647.   </div>
  2648.   <!-- /.modal -->
  2649. {% endblock %}
  2650. ""Product/detail.twig""/home/xs538259/exterior-plus.jp/public_html/app/template/default/Product/detail.twig");
  2651.     }
  2652. }