app/template/default/Product/detail.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE
  3. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  4. http://www.ec-cube.co.jp/
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. #}
  8. {% extends 'default_frame.twig' %}
  9. {% set body_class = 'product_page' %}
  10. {% block stylesheet %}
  11.     <style>
  12.         .slick-slider {
  13.             margin-bottom: 10px;
  14.             margin-top: -20px;
  15.         }
  16.         .slick-dots {
  17.             position: absolute;
  18.             bottom: -45px;
  19.             display: block;
  20.             width: 100%;
  21.             padding: 0;
  22.             list-style: none;
  23.             text-align: center;
  24.         }
  25.         .slick-dots li {
  26.             position: relative;
  27.             display: inline-block;
  28.             width: 20px;
  29.             height: 20px;
  30.             margin: 0 5px;
  31.             padding: 0;
  32.             cursor: pointer;
  33.         }
  34.         .slick-dots li button {
  35.             font-size: 0;
  36.             line-height: 0;
  37.             display: block;
  38.             width: 20px;
  39.             height: 20px;
  40.             padding: 5px;
  41.             cursor: pointer;
  42.             color: transparent;
  43.             border: 0;
  44.             outline: none;
  45.             background: transparent;
  46.         }
  47.         .slick-dots li button:hover,
  48.         .slick-dots li button:focus {
  49.             outline: none;
  50.         }
  51.         .slick-dots li button:hover:before,
  52.         .slick-dots li button:focus:before {
  53.             opacity: 1;
  54.         }
  55.         .slick-dots li button:before {
  56.             content: " ";
  57.             line-height: 20px;
  58.             position: absolute;
  59.             top: 0;
  60.             left: 0;
  61.             width: 12px;
  62.             height: 12px;
  63.             text-align: center;
  64.             opacity: .25;
  65.             background-color: black;
  66.             border-radius: 50%;
  67.         }
  68.         .slick-dots li.slick-active button:before {
  69.             opacity: .75;
  70.             background-color: black;
  71.         }
  72.         .slick-dots li button.thumbnail img {
  73.             width: 0;
  74.             height: 0;
  75.         }
  76.     </style>
  77.     <link rel="stylesheet" href="/html/user_data/js/style.css">
  78.     <link rel="stylesheet" href="/html/plugins/icheck-bootstrap/icheck-bootstrap.min.css">
  79. {% endblock %}
  80. {% block javascript %}
  81.     <script>
  82.         eccube.classCategories = {{ class_categories_as_json(Product)|raw }};
  83.         // 規格2に選択肢を割り当てる。
  84.         function fnSetClassCategories(form, classcat_id2_selected) {
  85.             var $form = $(form);
  86.             var product_id = $form.find('input[name=product_id]').val();
  87.             var $sele1 = $form.find('select[name=classcategory_id1]');
  88.             var $sele2 = $form.find('select[name=classcategory_id2]');
  89.             eccube.setClassCategories($form, product_id, $sele1, $sele2, classcat_id2_selected);
  90.         }
  91.         {% if form.classcategory_id2 is defined %}
  92.         fnSetClassCategories(
  93.             $('#form1'), {{ form.classcategory_id2.vars.value|json_encode|raw }}
  94.         );
  95.         {% elseif form.classcategory_id1 is defined %}
  96.         eccube.checkStock($('#form1'), {{ Product.id }}, {{ form.classcategory_id1.vars.value|json_encode|raw }}, null);
  97.         {% endif %}
  98.     </script>
  99.     <script>
  100.         $(function() {
  101.             // bfcache無効化
  102.             $(window).bind('pageshow', function(event) {
  103.                 if (event.originalEvent.persisted) {
  104.                     location.reload(true);
  105.                 }
  106.             });
  107.             // Core Web Vital の Cumulative Layout Shift(CLS)対策のため
  108.             // img タグに width, height が付与されている.
  109.             // 630px 未満の画面サイズでは縦横比が壊れるための対策
  110.             // see https://github.com/EC-CUBE/ec-cube/pull/5023
  111.             $('.ec-grid2__cell').hide();
  112.             var removeSize = function () {
  113.                 $('.slide-item').height('');
  114.                 $('.slide-item img')
  115.                     .removeAttr('width')
  116.                     .removeAttr('height')
  117.                     .removeAttr('style');
  118.             };
  119.             var slickInitial = function(slick) {
  120.                 $('.ec-grid2__cell').fadeIn(1500);
  121.                 var baseHeight = $(slick.target).height();
  122.                 var baseWidth = $(slick.target).width();
  123.                 var rate = baseWidth / baseHeight;
  124.                 if(baseHeight * rate < 400){
  125.                     $('.slide-item').height(baseHeight * rate); // 余白を削除する
  126.                 }else{
  127.                     $('.slide-item').height(400); // 余白を削除する
  128.                 }
  129.                 // transform を使用することでCLSの影響を受けないようにする
  130.                 $('.slide-item img')
  131.                     .css(
  132.                         {
  133.                             'transform-origin': 'top left',
  134.                             'transform': 'scaleY(' + rate + ')',
  135.                             'transition': 'transform .1s'
  136.                         }
  137.                     );
  138.                 // 正しいサイズに近くなったら属性を解除する
  139.                 setTimeout(removeSize, 500);
  140.             };
  141.             $('.item_visual').on('init', slickInitial);
  142.             // リサイズ時は CLS の影響を受けないため属性を解除する
  143.             $(window).resize(removeSize);
  144.             $('.item_visual').slick({
  145.                 dots: false,
  146.                 arrows: true,
  147.                 responsive: [{
  148.                     breakpoint: 768,
  149.                     settings: {
  150.                         dots: true,
  151.                         arrows: false
  152.                     }
  153.                 }]
  154.             });
  155.             $('.slideThumb').on('click', function() {
  156.                 var index = $(this).attr('data-index');
  157.                 $('.item_visual').slick('slickGoTo', index, false);
  158.             })
  159.         });
  160.     </script>
  161.     <script>
  162.         $(function() {
  163.             $('.add-cart').on('click', function(event) {
  164.                 {% if form.classcategory_id1 is defined %}
  165.                 // 規格1フォームの必須チェック
  166.                 if ($('#classcategory_id1').val() == '__unselected' || $('#classcategory_id1').val() == '') {
  167.                     $('#classcategory_id1')[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
  168.                     return true;
  169.                 } else {
  170.                     $('#classcategory_id1')[0].setCustomValidity('');
  171.                 }
  172.                 {% endif %}
  173.                 {% if form.classcategory_id2 is defined %}
  174.                 // 規格2フォームの必須チェック
  175.                 if ($('#classcategory_id2').val() == '__unselected' || $('#classcategory_id2').val() == '') {
  176.                     $('#classcategory_id2')[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
  177.                     return true;
  178.                 } else {
  179.                     $('#classcategory_id2')[0].setCustomValidity('');
  180.                 }
  181.                 {% endif %}
  182.                 // 個数フォームのチェック
  183.                 if ($('#quantity').val() < 1) {
  184.                     $('#quantity')[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  185.                     return true;
  186.                 } else {
  187.                     $('#quantity')[0].setCustomValidity('');
  188.                 }
  189.                 event.preventDefault();
  190.                 $form = $('#form1');
  191.                 $.ajax({
  192.                     url: $form.attr('action'),
  193.                     type: $form.attr('method'),
  194.                     data: $form.serialize(),
  195.                     dataType: 'json',
  196.                     beforeSend: function(xhr, settings) {
  197.                         // Buttonを無効にする
  198.                         $('.add-cart').prop('disabled', true);
  199.                     }
  200.                 }).done(function(data) {
  201.                     // レスポンス内のメッセージをalertで表示
  202.                     $.each(data.messages, function() {
  203.                         $('#ec-modal-header').text(this);
  204.                     });
  205.                     $('.ec-modal').show()
  206.                     // カートブロックを更新する
  207.                     $.ajax({
  208.                         url: "{{ url('block_cart') }}",
  209.                         type: 'GET',
  210.                         dataType: 'html'
  211.                     }).done(function(html) {
  212.                         $('.ec-headerRole__cart').html(html);
  213.                     });
  214.                 }).fail(function(data) {
  215.                     alert('{{ '施工検討リストへの追加に失敗しました。'|trans }}');
  216.                 }).always(function(data) {
  217.                     // Buttonを有効にする
  218.                     $('.add-cart').prop('disabled', false);
  219.                 });
  220.             });
  221.         });
  222.         $('.ec-modal-wrap').on('click', function(e) {
  223.             // モーダル内の処理は外側にバブリングさせない
  224.             e.stopPropagation();
  225.         });
  226.         $('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  227.             $('.ec-modal').hide()
  228.         });
  229.         var pw = "{% if mitsumori_json %}{{ mitsumori_json.pw }}{% endif %}";
  230.         var pd = "{% if mitsumori_json %}{{ mitsumori_json.pd }}{% endif %}";
  231.         var ph = "{% if mitsumori_json %}{{ mitsumori_json.ph }}{% endif %}";
  232.         var pm = "{% if mitsumori_json %}{{ mitsumori_json.pm }}{% endif %}";
  233.         var pc = "{% if mitsumori_json %}{{ mitsumori_json.pc }}{% endif %}";
  234.         var op0 = "{% if mitsumori_json %}{{ mitsumori_json.op[0] }}{% endif %}";
  235.         var op1 = "{% if mitsumori_json %}{{ mitsumori_json.op[1] }}{% endif %}";
  236.         var op2 = "{% if mitsumori_json %}{{ mitsumori_json.op[2] }}{% endif %}";
  237.         var op3 = "{% if mitsumori_json %}{{ mitsumori_json.op[3] }}{% endif %}";
  238.         var op4 = "{% if mitsumori_json %}{{ mitsumori_json.op[4] }}{% endif %}";
  239.         var op5 = "{% if mitsumori_json %}{{ mitsumori_json.op[5] }}{% endif %}";
  240.         var op6 = "{% if mitsumori_json %}{{ mitsumori_json.op[6] }}{% endif %}";
  241.         var op7 = "{% if mitsumori_json %}{{ mitsumori_json.op[7] }}{% endif %}";
  242.         var op8 = "{% if mitsumori_json %}{{ mitsumori_json.op[8] }}{% endif %}";
  243.         var op9 = "{% if mitsumori_json %}{{ mitsumori_json.op[9] }}{% endif %}";
  244.         var op10 = "{% if mitsumori_json %}{{ mitsumori_json.op[10] }}{% endif %}";
  245.         const formatter = new Intl.NumberFormat('ja-JP');
  246.         function mitsumori_simulation(type , value_id){
  247.             var pp = {{ pp|raw }};
  248.             if(type == "pw"){
  249.                 pw = $('#'+value_id).val();
  250.             }
  251.             if(type == "pd"){
  252.                 pd = $('#'+value_id).val();
  253.             }
  254.             if(type == "ph"){
  255.                 ph = $('#'+value_id).val();
  256.             }
  257.             if(type == "pm"){
  258.                 pm = $('#'+value_id).val();
  259.             }
  260.             if(type == "pc"){
  261.                 pc = $('#'+value_id).val();
  262.             }
  263.             if(type == "op0"){ op0 = $('#'+value_id).val(); }
  264.             if(type == "op1"){ op1 = $('#'+value_id).val(); }
  265.             if(type == "op2"){ op2 = $('#'+value_id).val(); }
  266.             if(type == "op3"){ op3 = $('#'+value_id).val(); }
  267.             if(type == "op4"){ op4 = $('#'+value_id).val(); }
  268.             if(type == "op5"){ op5 = $('#'+value_id).val(); }
  269.             if(type == "op6"){ op6 = $('#'+value_id).val(); }
  270.             if(type == "op7"){ op7 = $('#'+value_id).val(); }
  271.             if(type == "op8"){ op8 = $('#'+value_id).val(); }
  272.             if(type == "op9"){ op9 = $('#'+value_id).val(); }
  273.             if(type == "op10"){ op10 = $('#'+value_id).val(); }
  274.             if(pm == ""){
  275.                 $('#mitsumori_message').text("素材を選択してください");
  276.             }
  277.             if(ph == ""){
  278.                 $('#mitsumori_message').text("高さを選択してください");
  279.             }
  280.             if(pd == ""){
  281.                 $('#mitsumori_message').text("奥行きを選択してください");
  282.             }
  283.             if(pw == ""){
  284.                 $('#mitsumori_message').text("幅を選択してください");
  285.             }
  286.             if(pc == ""){
  287.                 $('#mitsumori_message').text("カラーを選択してください");
  288.                 $('#mitsumori_btn').hide();
  289.                 $('#mitsumori_goukei').text("---円");
  290.                 $('#mitsumori_off').text("---円");
  291.                 $('#mitsumori_price').text("---円");
  292.                 $('#maker_price').text("---円");
  293.                 $('#mitsumori_ct').text("---円");
  294.                 $('#mitsumori_option').text("---円");
  295.             }
  296.             if(pw != "" && pd != "" && ph != "" && pm != "" && pc != ""){
  297.                 $('#mitsumori_btn').show();
  298.                 
  299.                 pp.forEach((el) => {
  300.                   if((pw == el.w || pw == "指定なし") && (pd == el.d || pd == "指定なし") && (ph == el.h || ph == "指定なし") && (pm == el.m || pm == "指定なし") && (pc == el.c || pc == "指定なし")){
  301.                     if(op0 == "商品購入のみ" || op1 == "商品購入のみ" || op2 == "商品購入のみ" || op3 == "商品購入のみ" || op4 == "商品購入のみ" 
  302.                         || op5 == "商品購入のみ" || op6 == "商品購入のみ" || op7 == "商品購入のみ" || op8 == "商品購入のみ" || op9 == "商品購入のみ"){
  303.                           $('#mitsumori_message').text(formatter.format(parseInt(el.price)) + "円");
  304.                           $('#mitsumori_goukei').text(formatter.format(parseInt(el.price)) + "円");
  305.                           $('#mitsumori_off').text(formatter.format(parseInt(el.price) - parseInt(el.maker_price)) + "円");
  306.                           $('#mitsumori_price').text(formatter.format(parseInt(el.price)) + "円");
  307.                           $('#maker_price').text(formatter.format(parseInt(el.maker_price)) + "円");
  308.                           $('#mitsumori_ct').text("0円");
  309.                           $('#mitsumori_option').text("0円");
  310.                           $('#mitsumori_kei').text(formatter.format(parseInt(el.price)) + "円");
  311.                           $('#mitsumori_price_01').text(formatter.format(parseInt(el.price)) + "円");
  312.                           $('#mitsumori_price_02').text(formatter.format(parseInt(el.price)) + "円");
  313.                           $('#mitsumori_ct_01').text("0円");
  314.                           $('#mitsumori_ct_02').text("0円");
  315.                           $('#mitsumori_goukei_02').text(formatter.format(parseInt(el.price)) + "円");
  316.                         
  317.                         mitsumori_goukei = (parseInt(el.price));
  318.                         shoukei = mitsumori_goukei / 1.1;
  319.                         tax = parseInt(mitsumori_goukei - shoukei);
  320.                           $('#mitsumori_shoukei').text(formatter.format(parseInt(shoukei)) + "円");
  321.                           $('#mitsumori_tax').text(formatter.format(parseInt(tax)) + "円");
  322.                     }else{
  323.                           $('#mitsumori_message').text(formatter.format(parseInt(el.price) + parseInt(el.ct)) + "円");
  324.                           $('#mitsumori_goukei').text(formatter.format(parseInt(el.price) + parseInt(el.ct)) + "円");
  325.                           $('#mitsumori_off').text(formatter.format(parseInt(el.price) - parseInt(el.maker_price)) + "円");
  326.                           $('#mitsumori_price').text(formatter.format(parseInt(el.price)) + "円");
  327.                           $('#maker_price').text(formatter.format(parseInt(el.maker_price)) + "円");
  328.                           $('#mitsumori_ct').text(formatter.format(parseInt(el.ct)) + "円");
  329.                           $('#mitsumori_option').text("0円");
  330.                           $('#mitsumori_kei').text(formatter.format(parseInt(el.price) + parseInt(el.ct)) + "円");
  331.                           $('#mitsumori_price_01').text(formatter.format(parseInt(el.price)) + "円");
  332.                           $('#mitsumori_price_02').text(formatter.format(parseInt(el.price)) + "円");
  333.                           $('#mitsumori_ct_01').text(formatter.format(parseInt(el.ct)) + "円");
  334.                           $('#mitsumori_ct_02').text(formatter.format(parseInt(el.ct)) + "円");
  335.                           $('#mitsumori_goukei_02').text(formatter.format(parseInt(el.price) + parseInt(el.ct)) + "円");
  336.                         mitsumori_goukei = (parseInt(el.price) + parseInt(el.ct));
  337.                         shoukei = mitsumori_goukei / 1.1;
  338.                         tax = parseInt(mitsumori_goukei - shoukei);
  339.                           $('#mitsumori_shoukei').text(formatter.format(parseInt(shoukei)) + "円");
  340.                           $('#mitsumori_tax').text(formatter.format(parseInt(tax)) + "円");
  341.                     }
  342.                   }
  343.                 });    
  344.                 var mitsumori_json = { "mitsumori_goukei": $('#mitsumori_goukei').text(),
  345.                                         "mitsumori_goukei_02": $('#mitsumori_goukei_02').text(),
  346.                                         "mitsumori_price": $('#mitsumori_price').text(),
  347.                                         "maker_price": $('#maker_price').text(),
  348.                                         "mitsumori_off": $('#mitsumori_off').text(),
  349.                                         "mitsumori_ct": $('#mitsumori_ct').text(),
  350.                                         "mitsumori_option": $('#mitsumori_option').text(),
  351.                                         "product_id": {{ Product.id }},
  352.                                         "pw": pw,
  353.                                         "pd": pd,
  354.                                         "ph": ph,
  355.                                         "pm": pm,
  356.                                         "pc": pc,
  357.                                         "op": [op0,op1,op2,op3,op4,op5,op6,op7,op8,op9,op10] };
  358.                 $('#mitsumori_json').val(JSON.stringify(mitsumori_json));
  359.                 
  360.             }
  361.             
  362.         }
  363.         {% if color and color|length == 1 %}
  364.             pc = "指定なし";
  365.             {% for cc in color %}{% if cc and cc['name'] %} pc = "{{ cc['name'] }}"; {% endif %}{% endfor %}
  366.         {% endif %}
  367.         {% if p_w and (p_w|length == 1 or p_w|join == "") %}
  368.             pw = "指定なし";
  369.             {% for pw in p_w %}{% if pw %} pw = "{{ pw }}"; {% endif %}{% endfor %}
  370.         {% endif %}
  371.         {% if p_d and (p_d|length == 1 or p_d|join == "") %}
  372.             pd = "指定なし";
  373.             {% for pd in p_d %}{% if pd %} pd = "{{ pd }}"; {% endif %}{% endfor %}
  374.         {% endif %}
  375.         {% if p_h and (p_h|length == 1 or p_h|join == "") %}
  376.             ph = "指定なし";
  377.             {% for ph in p_h %}{% if ph %} ph = "{{ ph }}"; {% endif %}{% endfor %}
  378.         {% endif %}
  379.         {% if p_m and (p_m|length == 1 or p_m|join == "") %}
  380.             pm = "指定なし";
  381.             {% for pm in p_m %}{% if pm %} pm = "{{ pm }}"; {% endif %}{% endfor %}
  382.         {% endif %}
  383.         mitsumori_simulation("","");
  384.         function contact_form(product_id){
  385.             $('#form1').attr('action', '{{ url('contact', {product:Product.id}) }}');
  386.             $('#form1').submit();
  387.         }
  388.         function maisu(mai){
  389.             $('#maisu').val(parseInt($('#maisu').val()) + mai);
  390.             if(parseInt($('#maisu').val()) < 3){ $('#maisu').val(3); }
  391.             if(parseInt($('#maisu').val()) > 20){ $('#maisu').val(20); }
  392.             $('#quantity').val($('#maisu').val());
  393.         }
  394.         function madoset(mai){
  395.             $('#set').val(parseInt($('#set').val()) + mai);
  396.             if(parseInt($('#set').val()) < 1){ $('#set').val(1); }
  397.             if(parseInt($('#set').val()) > 20){ $('#set').val(20); }
  398.             $('#quantity').val($('#set').val());
  399.         }
  400.         function heibei(bei){
  401.             $('#heibei').val(parseInt($('#heibei').val()) + dai);
  402.             if(parseInt($('#heibei').val()) < 1){ $('#heibei').val(1); }
  403.             if(parseInt($('#heibei').val()) > 100){ $('#heibei').val(100); }
  404.             $('#quantity').val($('#heibei').val());
  405.         }
  406.         function daisu(dai){
  407.             $('#daisu').val(parseInt($('#daisu').val()) + dai);
  408.             if(parseInt($('#daisu').val()) < 1){ $('#daisu').val(1); }
  409.             if(parseInt($('#daisu').val()) > 10){ $('#daisu').val(10); }
  410.             $('#quantity').val($('#daisu').val());
  411.         }
  412.     </script>
  413.     <script type="application/ld+json">
  414.     {
  415.         "@context": "https://schema.org/",
  416.         "@type": "Product",
  417.         "name": "{{ Product.name }}",
  418.         "image": [
  419.             {% for img in Product.ProductImage %}
  420.                 "{{ app.request.schemeAndHttpHost }}{{ asset(img, 'save_image') }}"{% if not loop.last %},{% endif %}
  421.             {% else %}
  422.                 "{{ app.request.schemeAndHttpHost }}{{ asset(''|no_image_product, 'save_image') }}"
  423.             {% endfor %}
  424.         ],
  425.         "description": "{{ Product.description_list | default(Product.description_detail) | replace({'\n': '', '\r': ''}) | slice(0,300) }}",
  426.         {% if Product.code_min %}
  427.         "sku": "{{ Product.code_min }}",
  428.         {% endif %}
  429.         "offers": {
  430.             "@type": "Offer",
  431.             "url": "{{ url('product_detail', {'id': Product.id}) }}",
  432.             "priceCurrency": "{{ eccube_config.currency }}",
  433.             "price": {{ Product.getPrice02IncTaxMin ? Product.getPrice02IncTaxMin : 0}},
  434.             "availability": "{{ Product.stock_find ? "InStock" : "OutOfStock" }}"
  435.         }
  436.     }
  437.     </script>
  438. {% endblock %}
  439. {% block main %}
  440.     <div class="ec-productRole" style="margin-top:20px;">
  441.         <div class="ec-grid2">
  442.             <div class="ec-grid2__cell">
  443.                 <div class="ec-sliderItemRole">
  444.                     {# 商品名 #}
  445.                     <div class="ec-productRole__title">
  446.                         <h2 class="ec-headingTitle">{{ Product.name }}</h2>
  447.                     </div>
  448.                     {% if BaseInfo.option_favorite_product %}
  449.                      <div style="position:relative;top: 20px;left: 10px;z-index:100;">
  450.                         {% if is_favorite == false %}
  451.                         <form action="{{ url('product_add_favorite', {id:Product.id}) }}" method="post">
  452.                            <button type="submit" id="favorite" class="favorite">&#9825;</button>
  453.                         </form>
  454.                         {% else %}
  455.                         <form action="{{ url('product_add_favorite', {id:Product.id}) }}" method="post">
  456.                            <button type="submit" id="favorite" class="favorite" style="color:red;">&#9829;</button>
  457.                         </form>
  458.                         {% endif %}
  459.                      </div>
  460.                     {% endif %}
  461.                     <div class="item_visual">
  462.                         {% for ProductImage in Product.ProductImage %}
  463.                             <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>
  464.                         {% else %}
  465.                             <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>
  466.                         {% endfor %}
  467.                     </div>
  468.                     <div class="item_nav">
  469.                         {% for ProductImage in Product.ProductImage %}
  470.                             <div class="slideThumb" data-index="{{ loop.index0 }}"><img src="{{ asset(ProductImage, 'save_image') }}" alt="" width="80" height="80" loading="lazy"></div>
  471.                         {% endfor %}
  472.                     </div>
  473.                 </div>
  474.             </div>
  475.             <div class="ec-grid2__cell2">
  476.                 <div class="ec-productRole__profile" >
  477.                     {# 関連カテゴリ #}
  478.                     {% if Product.ProductCategories is not empty %}
  479.                         <div class="ec-productRole__category" style="padding:10px 0;">
  480.                             {% for ProductCategory in Product.ProductCategories %}
  481.                                 <ul>
  482.                                     <li>
  483.                                         {% for Category in ProductCategory.Category.path %}
  484.                                             <a href="{{ url('product_list') }}?category_id={{ Category.id }}">{{ Category.name }}</a> {%- if loop.last == false %}
  485.                                             <span>></span>{% endif -%}
  486.                                         {% endfor %}
  487.                                     </li>
  488.                                 </ul>
  489.                             {% endfor %}
  490.                         </div>
  491.                     {% endif %}
  492.                     {# 販売価格 #}
  493.                     <div class="ec-productRole__price">
  494.                         <span style="color:black;font-size:15px;">工事費込み価格</span>
  495.                         {% if Product.hasProductClass -%}
  496.                             {% if Product.getPrice02IncTaxMin == Product.getPrice02IncTaxMax %}
  497.                                 <div class="ec-price">
  498.                                     <span class="ec-price__price price02-default">{{ Product.getPrice02IncTaxMin|price }}</span>
  499.                                     <span class="ec-price__tax">({{ '税込'|trans }})~</span>
  500.                                 </div>
  501.                             {% else %}
  502.                                 <div class="ec-price">
  503.                                     <span class="ec-price__price price02-default">{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}</span>
  504.                                     <span class="ec-price__tax">({{ '税込'|trans }})</span>
  505.                                 </div>
  506.                             {% endif %}
  507.                         {% else %}
  508.                             <div class="ec-price">
  509.                                 <span class="ec-price__price">{{ Product.getPrice02IncTaxMin|price }}</span>
  510.                                     <span class="ec-price__tax">({{ '税込'|trans }})~</span>
  511.                             </div>
  512.                         {% endif %}
  513.                     </div>
  514.                     {# タグ #}
  515.                     <ul class="ec-productRole__tags">
  516.                         {% for Tag in Product.Tags %}
  517.                             <li class="ec-productRole__tag tag_{{ Tag.id }}">{{ Tag }}</li>
  518.                         {% endfor %}
  519.                     </ul>
  520.                     {# 商品コード #}
  521.                     {% if Product.code_min is not empty %}
  522.                         <div class="ec-productRole__code">
  523.                             {{ '商品コード'|trans }}: <span class="product-code-default">{{ Product.code_min }}{% if Product.code_min != Product.code_max %} ~ {{ Product.code_max }}{% endif %}</span>
  524.                         </div>
  525.                     {% endif %}
  526.                     <div class="ec-productRole__description">
  527.                         <div class="ec-rectHeading">
  528.                             <h4>製品情報</h4>
  529.                         </div>
  530.                         {{ Product.sales_infomation|raw|nl2br }}
  531.                     </div>
  532.                     <div class="card card-danger" style="clear:both;margin:1px;">
  533.                       <div class="card-header">
  534.                         <h3 class="card-title">見積シミュレーション</h3>
  535.                       </div>
  536.                       <div class="card-body p-2">
  537.                         <div class="row" style="border-bottom:1px solid rgba(0,0,0,.125)"><label class="col-12 col-form-label">この商品のタイプを選択してください。</label></div>
  538.                         {% set type1 = getProduct_field(Product.id,"related_name1") %}
  539.                         {% if type1 and related_product1 and related_product1|length %}
  540.                         <div class="form-group row mt-2" style="border-bottom:1px solid rgba(0,0,0,.125)">
  541.                           <label class="col-4 col-form-label mt-2">{{ type1 }}</label>
  542.                           <div class="col-8 mt-2">
  543.                             <div class="form-group clearfix">
  544.                               {% for rp_id, rp_name in related_product1 %}
  545.                               <div class="icheck-danger d-inline">
  546.                                 <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>
  547.                               </div>
  548.                               {% endfor %}
  549.                             </div>
  550.                           </div>
  551.                         </div>
  552.                         {% endif %}
  553.                         {% set type2 = getProduct_field(Product.id,"related_name2") %}
  554.                         {% if type2 and related_product2 and related_product2|length %}
  555.                         <div class="form-group row mt-2" style="border-bottom:1px solid rgba(0,0,0,.125)">
  556.                           <label class="col-4 col-form-label mt-2">{{ type2 }}</label>
  557.                           <div class="col-8 mt-2">
  558.                             <div class="form-group clearfix">
  559.                               {% for rp_id, rp_name in related_product2 %}
  560.                               <div class="icheck-danger d-inline">
  561.                                 <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>
  562.                               </div>
  563.                               {% endfor %}
  564.                             </div>
  565.                           </div>
  566.                         </div>
  567.                         {% endif %}
  568.                         {% set type3 = getProduct_field(Product.id,"related_name3") %}
  569.                         {% if type3 and related_product3 and related_product3|length %}
  570.                         <div class="form-group row mt-2" style="border-bottom:1px solid rgba(0,0,0,.125)">
  571.                           <label class="col-4 col-form-label mt-2">{{ type3 }}</label>
  572.                           <div class="col-8 mt-2">
  573.                             <div class="form-group clearfix">
  574.                               {% for rp_id, rp_name in related_product3 %}
  575.                               <div class="icheck-danger d-inline">
  576.                                 <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>
  577.                               </div>
  578.                               {% endfor %}
  579.                             </div>
  580.                           </div>
  581.                         </div>
  582.                         {% endif %}
  583.                         <div class="row" style="border-bottom:1px solid rgba(0,0,0,.125)"><label class="col-12 col-form-label">この商品のオプションを選択してください。</label></div>
  584.                         {% if color and color|length %}
  585.                         <div class="form-group row mt-2" style="border-bottom:1px solid rgba(0,0,0,.125)">
  586.                           <label class="col-4 col-form-label mt-2">カラー</label>
  587.                           <div class="col-8 mt-2">
  588.                             <div class="form-group clearfix">
  589.                             {% set idx = 0 %}
  590.                             {% for cc in color %}
  591.                               {% if cc and cc['name'] %}
  592.                               {% set idx = idx + 1 %}
  593.                               <div class="icheck-danger d-inline">
  594.                                 <input type="radio" name="color" id="cc_{{ idx }}" value="{{ cc['name'] }}" {% if mitsumori_json and mitsumori_json.pc == cc['name'] or color|length == 1 %}checked{% endif %} onclick="mitsumori_simulation('pc','cc_{{ idx }}');"><label for="cc_{{ idx }}">{{ cc['name'] }}</label>
  595.                               </div>
  596.                               {% endif %}
  597.                             {% endfor %}
  598.                             </div>
  599.                           </div>
  600.                         </div>
  601.                         {% endif %}
  602.                         {% if p_w and p_w|length and p_w|join != "" %}
  603.                         <div class="form-group row mt-2" style="border-bottom:1px solid rgba(0,0,0,.125)">
  604.                           <label class="col-4 col-form-label">幅</label>
  605.                           <div class="col-8">
  606.                             <div class="form-group clearfix">
  607.                             {% set idx = 0 %}
  608.                             {% for pw in p_w %}
  609.                               {% if pw %}
  610.                               {% set idx = idx + 1 %}
  611.                               <div class="icheck-danger d-inline">
  612.                                 <input type="radio" name="pw" id="pw_{{ idx }}" value="{{ pw }}" {% if mitsumori_json and mitsumori_json.pw == pw or p_w|length == 1 %}checked{% endif %} onclick="mitsumori_simulation('pw','pw_{{ idx }}');"><label for="pw_{{ idx }}">{{ pw }}</label>
  613.                               </div>
  614.                               {% endif %}
  615.                             {% endfor %}
  616.                             </div>
  617.                           </div>
  618.                         </div>
  619.                         {% endif %}
  620.                         {% if p_d and p_d|length and p_d|join != "" %}
  621.                         <div class="form-group row mt-2" style="border-bottom:1px solid rgba(0,0,0,.125)">
  622.                           <label class="col-4 col-form-label">奥行き</label>
  623.                           <div class="col-8">
  624.                             <div class="form-group clearfix">
  625.                             {% set idx = 0 %}
  626.                             {% for pd in p_d %}
  627.                               {% if pd %}
  628.                               {% set idx = idx + 1 %}
  629.                               <div class="icheck-danger d-inline">
  630.                                 <input type="radio" name="pd" id="pd_{{ idx }}" value="{{ pd }}" {% if (mitsumori_json and mitsumori_json.pd == pd) or p_d|length == 1 %}checked{% endif %} onclick="mitsumori_simulation('pd','pd_{{ idx }}');"><label for="pd_{{ idx }}">{{ pd }}</label>
  631.                               </div>
  632.                               {% endif %}
  633.                             {% endfor %}
  634.                             </div>
  635.                           </div>
  636.                         </div>
  637.                         {% endif %}
  638.                         {% if p_h and p_h|length and p_h|join != "" %}
  639.                         <div class="form-group row mt-2" style="border-bottom:1px solid rgba(0,0,0,.125)">
  640.                           <label class="col-4 col-form-label">高さ</label>
  641.                           <div class="col-8">
  642.                             <div class="form-group clearfix">
  643.                             {% set idx = 0 %}
  644.                             {% for ph in p_h %}
  645.                               {% if ph %}
  646.                               {% set idx = idx + 1 %}
  647.                               <div class="icheck-danger d-inline">
  648.                                 <input type="radio" name="ph" id="ph_{{ idx }}" value="{{ ph }}" {% if (mitsumori_json and mitsumori_json.ph == ph) or p_h|length == 1%}checked{% endif %} onclick="mitsumori_simulation('ph','ph_{{ idx }}');"><label for="ph_{{ idx }}">{{ ph }}</label>
  649.                               </div>
  650.                               {% endif %}
  651.                             {% endfor %}
  652.                             </div>
  653.                           </div>
  654.                         </div>
  655.                         {% endif %}
  656.                         {% if p_m and p_m|length and p_m|join != "" %}
  657.                         <div class="form-group row mt-2" style="border-bottom:1px solid rgba(0,0,0,.125)">
  658.                           <label class="col-4 col-form-label">素材</label>
  659.                           <div class="col-8">
  660.                             <div class="form-group clearfix">
  661.                             {% set idx = 0 %}
  662.                             {% for pm in p_m %}
  663.                               {% if pm %}
  664.                               {% set idx = idx + 1 %}
  665.                               <div class="icheck-danger d-inline">
  666.                                 <input type="radio" name="pm" id="pm_{{ idx }}" value="{{ pm }}" {% if mitsumori_json and mitsumori_json.pm == pm or p_m|length == 1 %}checked{% endif %} onclick="mitsumori_simulation('pm','pm_{{ idx }}');"><label for="pm_{{ idx }}">{{ pm }}</label>
  667.                               </div>
  668.                               {% endif %}
  669.                             {% endfor %}
  670.                             </div>
  671.                           </div>
  672.                         </div>
  673.                         {% endif %}
  674.                         <!-- 1: 施工見積(通常)-->
  675.                         {% if ProductClass.SaleType.id == 1 %}
  676.                         {% endif %}
  677.                         <!-- 2: 施工見積(補助金・窓)-->
  678.                         {% if ProductClass.SaleType.id == 2 %}
  679.                             <!-- 幅・高さの数値指定 -->
  680.                             <div class="form-group row mt-2" style="border-bottom:1px solid rgba(0,0,0,.125)">
  681.                               <label class="col-4 col-form-label">窓枠</label>
  682.                               <div class="col-4">
  683.                                 <div class="input-group">
  684.                                    <span class="input-group-text">高さ</span><input type="text" name="takasa" id="takasa" class="form-control" value="1" onchange="mitsumori_simulation('takasa','takasa');" /><span class="input-group-text">cm</span>
  685.                                 </div>
  686.                               </div>
  687.                               <div class="col-4">
  688.                                 <div class="input-group mb-3">
  689.                                    <span class="input-group-text">横幅</span><input type="text" name="yokohaba" id="yokohaba" class="form-control" value="1" onchange="mitsumori_simulation('yokohaba','yokohaba');" /><span class="input-group-text">cm</span>
  690.                                 </div>
  691.                               </div>
  692.                             </div>
  693.                             <!-- 枚数(入力)の指定 -->
  694.                             <div class="form-group row mt-2" style="border-bottom:1px solid rgba(0,0,0,.125)">
  695.                               <label class="col-4 col-form-label">セット数</label>
  696.                               <div class="col-4 mb-3">
  697.                                 <div class="input-group">
  698.                                    <input type="text" name="set" id="set" class="form-control" value="1" onchange="mitsumori_simulation('set','set');" /><span class="input-group-text">セット</span>
  699.                                 </div>
  700.                               </div>
  701.                               <div class="col-4">
  702.                                 <button type="button" id="op_btn_1" class="btn btn-info" onclick="madoset(+1);">+</button>
  703.                                 <button type="button" id="op_btn_2" class="btn btn-danger" onclick="madoset(-1);">ー</button>
  704.                               </div>
  705.                             
  706.                         {% endif %}
  707.                         <!-- 3: 施工見積(物置・ゴミステーション)-->
  708.                         {% if ProductClass.SaleType.id == 3 %}
  709.                             <!-- 幅・奥行き・高さ -->
  710.                             <!-- 台数の指定 -->
  711.                             <div class="form-group row mt-2" style="border-bottom:1px solid rgba(0,0,0,.125)">
  712.                               <label class="col-4 col-form-label">台数</label>
  713.                               <div class="col-4">
  714.                                 <div class="input-group mb-3">
  715.                                    <input type="text" name="daisu" id="daisu" class="form-control" value="1" onchange="mitsumori_simulation('daisu','daisu');" /><span class="input-group-text">台</span>
  716.                                 </div>
  717.                               </div>
  718.                               <div class="col-4">
  719.                                 <button type="button" id="op_btn_1" class="btn btn-info" onclick="daisu(+1);">+</button>
  720.                                 <button type="button" id="op_btn_2" class="btn btn-danger" onclick="daisu(-1);">ー</button>
  721.                               </div>
  722.                             </div>
  723.                         {% endif %}
  724.                         <!-- 4: 施工見積(フェンス・組み立て式)-->
  725.                         {% if ProductClass.SaleType.id == 4 %}
  726.                             <!-- 枚数(入力)の指定 -->
  727.                             <div class="form-group row mt-2" style="border-bottom:1px solid rgba(0,0,0,.125)">
  728.                               <label class="col-4 col-form-label">枚数</label>
  729.                               <div class="col-4 mb-3">
  730.                                 <div class="input-group">
  731.                                    <input type="text" name="maisu" id="maisu" class="form-control" value="3" onchange="mitsumori_simulation('daisu','daisu');" /><span class="input-group-text">枚</span>
  732.                                 </div>
  733.                               </div>
  734.                               <div class="col-4">
  735.                                 <button type="button" id="op_btn_1" class="btn btn-info" onclick="maisu(+1);">+</button>
  736.                                 <button type="button" id="op_btn_2" class="btn btn-danger" onclick="maisu(-1);">ー</button>
  737.                               </div>
  738.                             </div>
  739.                         {% endif %}
  740.                         <!-- 5: 施工見積(ウッドデッキ・タイルデッキ)-->
  741.                         {% if ProductClass.SaleType.id == 5 %}
  742.                         {% endif %}
  743.                         <!-- 6: 施工見積(芝生・枚数・数量買い)-->
  744.                         {% if ProductClass.SaleType.id == 6 %}
  745.                             <!-- 平米(入力)の指定 -->
  746.                             <div class="form-group row mt-2" style="border-bottom:1px solid rgba(0,0,0,.125)">
  747.                               <label class="col-4 col-form-label">枚数</label>
  748.                               <div class="col-4">
  749.                                 <div class="input-group">
  750.                                    <input type="text" name="heibei" id="heibei" class="form-control" value="1" onchange="mitsumori_simulation('heibei','heibei');" /><span class="input-group-text">平米</span>
  751.                                 </div>
  752.                               </div>
  753.                               <div class="col-4">
  754.                                 <button type="button" id="op_btn_1" class="btn btn-info" onclick="heibei(+1);">+</button>
  755.                                 <button type="button" id="op_btn_2" class="btn btn-danger" onclick="heibei(-1);">ー</button>
  756.                               </div>
  757.                             </div>
  758.                         {% endif %}
  759.                         <!-- 9: 商品のみ購入 -->
  760.                         <div class="row" style="border-bottom:1px solid rgba(0,0,0,.125)"><label class="col-12 col-form-label">取り付け工事のご希望に関してお答えください。</label></div>
  761.                         {% for i in 0..10 %}
  762.                             {% if op and op|length >= i+1 %}
  763.                             {% if op[i]['name'] %}
  764.                             <div class="form-group row mt-2" style="border-bottom:1px solid rgba(0,0,0,.125)">
  765.                               <label class="col-4 col-form-label">{{ op[i]['name'] }}</label>
  766.                               <div class="col-8">
  767.                                 {{ op[i]['comment'] }}
  768.                                 <div class="form-group clearfix">
  769.                                   <div class="icheck-danger d-inline">
  770.                                     <input type="radio" name="op{{ i }}" id="op{{ i }}_1" value="{{ op[i]['on'] }}" {% if mitsumori_json and mitsumori_json.op[i] == op[i]['on'] %}checked{% endif %} onclick="mitsumori_simulation('op{{ i }}','op{{ i }}_1');"><label for="op{{ i }}_1">{{ op[i]['on'] }}</label>
  771.                                   </div>
  772.                                 </div>
  773.                                 <div class="form-group clearfix">
  774.                                   <div class="icheck-danger d-inline">
  775.                                     <input type="radio" name="op{{ i }}" id="op{{ i }}_2" value="{{ op[i]['off'] }}" {% if mitsumori_json and mitsumori_json.op[i] == op[i]['off'] %}checked{% endif %} onclick="mitsumori_simulation('op{{ i }}','op{{ i }}_2');"><label for="op{{ i }}_2">{{ op[i]['off'] }}</label>
  776.                                   </div>
  777.                                 </div>
  778.                               </div>
  779.                             </div>
  780.                             {% endif %}
  781.                             {% endif %}
  782.                         {% endfor %}
  783.                       </div>
  784.                       <!-- /.card-body -->
  785.                     </div>
  786.                     <form action="{{ url('product_add_cart', {id:Product.id}) }}" method="post" id="form1" name="form1">
  787.                         {% if Product.stock_find %}
  788.                             <div class="ec-productRole__actions">
  789.                                 {% if form.classcategory_id1 is defined %}
  790.                                     <div class="ec-select">
  791.                                         {{ form_row(form.classcategory_id1) }}
  792.                                         {{ form_errors(form.classcategory_id1) }}
  793.                                     </div>
  794.                                     {% if form.classcategory_id2 is defined %}
  795.                                         <div class="ec-select">
  796.                                             {{ form_row(form.classcategory_id2) }}
  797.                                             {{ form_errors(form.classcategory_id2) }}
  798.                                         </div>
  799.                                     {% endif %}
  800.                                 {% endif %}
  801.                                 <div class="ec-numberInput">
  802.                                     {{ form_widget(form.quantity, { type: 'hidden' }) }}
  803.                                     {{ form_errors(form.quantity) }}
  804.                                 </div>
  805.                             </div>
  806.                         {% else %}
  807.                             <div class="ec-productRole__btn">
  808.                                 <button type="button" class="ec-blockBtn--action" disabled="disabled">
  809.                                     {{ 'ただいま品切れ中です。'|trans }}
  810.                                 </button>
  811.                             </div>
  812.                         {% endif %}
  813.                         <div class="ec-productRole__btn mt-3">
  814.                            <button type="submit" id="cart_btn" class="ec-blockBtn--action add-cart">施工検討リストに入れる</button>
  815.                         </div>
  816.                         {{ form_rest(form) }}
  817.                     </form>
  818.                     <div class="ec-modal">
  819.                         <div class="ec-modal-overlay">
  820.                             <div class="ec-modal-wrap">
  821.                                 <span class="ec-modal-close"><span class="ec-icon"><img src="{{ asset('assets/icon/cross-dark.svg') }}" alt=""/></span></span>
  822.                                 <div id="ec-modal-header" class="text-center">{{ '施工検討リストに追加しました。'|trans }}</div>
  823.                                 <div class="ec-modal-box">
  824.                                     <div class="ec-role">
  825.                                         <span class="ec-inlineBtn--cancel">{{ '商品検索を続ける'|trans }}</span>
  826.                                         <a href="{{ url('cart') }}" class="ec-inlineBtn--action">{{ '施工検討リストへ進む'|trans }}</a>
  827.                                     </div>
  828.                                 </div>
  829.                             </div>
  830.                         </div>
  831.                     </div>
  832.                     <div class="ec-productRole__description">{{ Product.description_detail|raw|nl2br }}
  833.                     </div>
  834.                 </div>
  835.                 <div class="card col-12 collapsed-card sticky-top float-right">
  836.                     <div class="card-header">
  837.                       <h3 class="card-title">現在のお見積り額</h3>
  838.                       <div class="card-tools">
  839.                         <span class="float-left" id="mitsumori_message">395000円</span>
  840.                         <button type="button" class="btn btn-tool" data-card-widget="collapse">
  841.                           <i class="fas fa-plus"></i>
  842.                         </button>
  843.                       </div>
  844.                     </div>
  845.                     <div class="card-body p-0">
  846.                       <ul class="nav nav-pills flex-column">
  847.                         <li class="nav-item active">
  848.                           <a class="nav-link">
  849.                             <i class="far fa-file-alt"></i> 合計(工事費・税込)
  850.                             <span class="float-right" id="mitsumori_goukei">395,000円</span>
  851.                           </a>
  852.                         </li>
  853.                         <li class="nav-item active">
  854.                           <a class="nav-link">
  855.                             <i class="far fa-file-alt"></i> 商品価格
  856.                             <span class="float-right" id="mitsumori_price">307,008円</span>
  857.                           </a>
  858.                         </li>
  859.                         <li class="nav-item">
  860.                           <a class="nav-link">
  861.                             &nbsp;&nbsp;<i class="far fa-file-alt"></i> カタログ価格
  862.                             <span class="float-right" id="maker_price">479,700円</span>
  863.                           </a>
  864.                         </li>
  865.                         <li class="nav-item">
  866.                           <a class="nav-link">
  867.                             &nbsp;&nbsp;<i class="far fa-file-alt"></i> お値引き
  868.                             <span class="float-right" id="mitsumori_off">-172,692円</span>
  869.                           </a>
  870.                         </li>
  871.                         <li class="nav-item">
  872.                           <a class="nav-link">
  873.                             <i class="far fa-file-alt"></i> 基本工事費
  874.                             <span class="float-right" id="mitsumori_ct">53,250円</span>
  875.                           </a>
  876.                         </li>
  877.                         <li class="nav-item">
  878.                           <a class="nav-link">
  879.                             <i class="far fa-file-alt"></i> 施工オプション
  880.                             <span class="float-right"id="mitsumori_option">6,297円</span>
  881.                           </a>
  882.                         </li>
  883.                       </ul>
  884.                     </div>
  885.                     <div class="card-footer">
  886.                         <button type="button" id="mitsumori_btn" class="btn btn-info" data-toggle="modal" data-target="#modal-mitsumori">
  887.                           見積書表示
  888.                         </button>
  889.                         <button id="contact" class="btn btn-info" onclick="contact_form({{ Product.id }});">無料現地調査へ進む</button>
  890.                     </div>
  891.                 </div>
  892.             </div>
  893.         </div>
  894.     </div>
  895.   <div class="modal" id="modal-mitsumori">
  896.     <div class="modal-dialog modal-mitsumori" style="max-width:1000px">
  897.       <div class="modal-content">
  898.         <div class="modal-header">
  899.           <h4 class="modal-title">お見積書</h4>
  900.           <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  901.             <span aria-hidden="true">&times;</span>
  902.           </button>
  903.         </div>
  904.         <div class="modal-body">
  905.             <div class="invoice p-3 mb-5" style="max-width:1000px; margin:auto;">
  906.               <!-- title row -->
  907.               <div class="row">
  908.                 <div class="col-12">
  909.                   <h2>概算お見積書 
  910.                     <small class="float-right" style="font-size:14px;">発行日: 2025/03/14</small>
  911.                   </h2>
  912.                 </div>
  913.                 <!-- /.col -->
  914.               </div>
  915.               <!-- info row -->
  916.               <div class="row invoice-info">
  917.                 <div class="col-sm-8 invoice-col">
  918.                   <h3>お客様</h3>
  919.                   <span>下記の通り、お見積もり申し上げます。</span>
  920.                   <br />
  921.                   <br / >
  922.                   <br />
  923.                   <h2>お見積金額: <span id="mitsumori_kei">399,080円</span></h2>
  924.                   <span>
  925.                     <br/>
  926.                     <br/>
  927.                     <br/>
  928.                     <br/>
  929.                   </span>
  930.                 </div>
  931.                 <div class="col-sm-4 invoice-col">
  932.                   <p>
  933.                     <img alt="" src="/html/user_data/js/images/logo.png" style="width: 260px; max-width: 100%; max-height: 10mm;">
  934.                   </p>
  935.                   <p>有限会社プラス</p>
  936.                   <p>〒400-0334</p>
  937.                   <p>山梨県南アルプス市藤田1450番地2</p>
  938.                   <p>TEL: 055-284-6480</p>
  939.                   <img alt="" src="/html/user_data/js/images/seal.svg" style="z-index: 2; position: absolute; width: 21mm; left: 58mm; top: 36mm;">
  940.                 </div>
  941.                 <!-- /.col -->
  942.                 <!-- /.col -->
  943.               </div>
  944.               <!-- /.row -->
  945.               <!-- Table row -->
  946.               <div class="row">
  947.                 <div class="col-12 table-responsive">
  948.                   <table class="table table-striped">
  949.                     <thead>
  950.                       <tr>
  951.                         <th>項目</th>
  952.                         <th>数量</th>
  953.                         <th>単位</th>
  954.                         <th>単価</th>
  955.                         <th>小計</th>
  956.                       </tr>
  957.                     </thead>
  958.                     <tbody>
  959.                       <tr>
  960.                         <td>プレーンルーフ 600タイプ 1台用 単体セット</td>
  961.                         <td>1</td>
  962.                         <td>式</td>
  963.                         <td id="mitsumori_price_01">352,800</td>
  964.                         <td id="mitsumori_price_02">352,800</td>
  965.                       </tr>
  966.                       <tr>
  967.                         <td>基本工事費</td>
  968.                         <td>1</td>
  969.                         <td>式</td>
  970.                         <td id="mitsumori_ct_01">10,000</td>
  971.                         <td id="mitsumori_ct_02">10,000</td>
  972.                       </tr>
  973.                       <tr>
  974.                         <td>残土・ガラ処理</td>
  975.                         <td>1</td>
  976.                         <td>式</td>
  977.                         <td>0円</td>
  978.                         <td></td>
  979.                       </tr>
  980.                       <tr>
  981.                         <td> </td>
  982.                         <td></td>
  983.                         <td></td>
  984.                         <td></td>
  985.                         <td></td>
  986.                       </tr>
  987.                     </tbody>
  988.                   </table>
  989.                 </div>
  990.                 <!-- /.col -->
  991.               </div>
  992.               <!-- /.row -->
  993.               <div class="row">
  994.                 <!-- accepted payments column -->
  995.                 <div class="col-6">
  996.                   <p class="lead">お支払い方法</p>
  997.                   <p class="text-muted well well-sm shadow-none" style="margin-top: 10px;">銀行振込、クレジットカード決済、PAYPAY決済
  998.                     <br>銀行振込:山梨中央銀行 白根支店 普通口座 391402
  999.                     <br>※商品代金と工事代金の総額が金100万円(税込)を超える場合、着手金として代金の半額をご契約後お支払いいただきます。 
  1000.                   </p>
  1001.                 </div>
  1002.                 <!-- /.col -->
  1003.                 <div class="col-6">
  1004.                   <div class="table-responsive">
  1005.                     <table class="table">
  1006.                       <tbody>
  1007.                         <tr>
  1008.                           <th style="width:50%">小計:</th>
  1009.                           <td id="mitsumori_shoukei">362,800</td>
  1010.                         </tr>
  1011.                         <tr>
  1012.                           <th>消費税 (10%)</th>
  1013.                           <td id="mitsumori_tax">36,280</td>
  1014.                         </tr>
  1015.                         <tr>
  1016.                           <th>合計:</th>
  1017.                           <td id="mitsumori_goukei_02">399,080</td>
  1018.                         </tr>
  1019.                       </tbody>
  1020.                     </table>
  1021.                   </div>
  1022.                 </div>
  1023.                 <!-- /.col -->
  1024.               </div>
  1025.               <!-- /.row -->
  1026.             </div>
  1027.         </div>
  1028.         <div class="modal-footer justify-content-between">
  1029.                   <button type="button" class="btn btn-primary float-right" style="margin-right: 5px;">
  1030.                     <i class="fas fa-download"></i>PDF出力
  1031.                   </button>
  1032.           <button type="button" class="btn btn-info" onclick="contact_form({{ Product.id }});">無料現地調査へ進む</button>
  1033.         </div>
  1034.       </div>
  1035.       <!-- /.modal-content -->
  1036.     </div>
  1037.     <!-- /.modal-dialog -->
  1038.   </div>
  1039.   <!-- /.modal -->
  1040. {% endblock %}