app/template/user_data/construction.twig line 1

Open in your IDE?
  1. {% extends 'default_frame.twig' %}
  2. {% form_theme form 'Form/form_div_layout.twig' %}
  3. {% block stylesheet %}
  4.     <style>
  5.         .form-check.flex{
  6.             display: flex; 
  7.             align-items: center; 
  8.             flex-wrap: wrap; 
  9.             gap: 5px;
  10.         }
  11.     </style>
  12. {% endblock %}
  13. {% block javascript %}
  14.     <script src="https://cdnjs.cloudflare.com/ajax/libs/numeral.js/2.0.6/numeral.min.js"></script>
  15.     <script>
  16.         var CountTatami = {
  17.             countType1: 0, //6-14
  18.             countType2: 0, //16-20
  19.             countType3: 0, //23-
  20.         };
  21.         var CountTatamiAll = {
  22.             countType1: 0, //6-14
  23.             countType2: 0, //16-20
  24.             countType3: 0, //23-
  25.         };
  26.         var CountTatamiLoan = {
  27.             countType1: 0, //6-14
  28.             countType2: 0, //16-20
  29.             countType3: 0, //23-
  30.         };
  31.         $(function() {
  32.             SetRequiredContent();
  33.             SetRequiredContent1();
  34.             SetRequiredContent2("construction_type_07", "交換", ".construction_type_07_02_v1");
  35.             SetRequiredContent2("construction_type_07", "新設工事に加えて移設工事も希望", ".construction_type_07_02_v2");
  36.             SetRequiredContent2("construction_type_07_02_v2", "分解洗浄を希望する", ".construction_type_07_03_v1");
  37.             SetRequiredContent2("construction_type_07_02_v2", "分解洗浄を希望しない", ".construction_type_07_03_v2");
  38.             SetRequiredContent2("construction_type_07_03_v1", "移設6~14畳(取外し含む)", ".construction_type_07_04_v1");
  39.             SetRequiredContent2("construction_type_07_03_v1", "移設16~20畳(取外し含む)", ".construction_type_07_04_v2");
  40.             SetRequiredContent2("construction_type_07_03_v1", "移設23畳~(取外し含む)", ".construction_type_07_04_v3");
  41.             SetRequiredContent2("electrical_outlet_07", "あり", ".electrical_outlet_07_02");
  42.             SetRequiredContent2("room_size_07", "なし", ".room_size_07_02");
  43.             SetRequiredContent2("room_size_07_02", "建物が2009年6月以降に着工した証明書あり", ".room_size_07_03_v1");
  44.             SetRequiredContent2("room_size_07_02", "建物が2009年6月以降に着工した証明書なし", ".room_size_07_03_v2");
  45.             SetRequiredContent2("piping_status_07", "隠蔽配管", ".piping_status_07_02");
  46.             SetRequiredContent2("outdoor_cover", "必要", ".outdoor_cover_02");
  47.             SetRequiredContent2("setting_install_method", "新規取付", ".construction_method_07_v1");
  48.             SetRequiredContent2("setting_install_method", "交換", ".construction_method_07_v2");
  49.             
  50.             $("input[name='desired_construction_work']").change(function() {
  51.                 SetRequiredContent();
  52.             });
  53.             $("input[name='desired_construction_work_02']").change(function() {
  54.                 SetRequiredContent1();
  55.                 CalcConstructionNumber();
  56.             });
  57.             $("input[name='construction_type_07']").change(function() {
  58.                 SetRequiredContent2("construction_type_07", "交換", ".construction_type_07_02_v1");
  59.                 SetRequiredContent2("construction_type_07", "新設工事に加えて移設工事も希望", ".construction_type_07_02_v2");
  60.                 SetRequiredContent2("construction_type_07_02_v2", "分解洗浄を希望する", ".construction_type_07_03_v1");
  61.                 SetRequiredContent2("construction_type_07_02_v2", "分解洗浄を希望しない", ".construction_type_07_03_v2");
  62.                 SetRequiredContent2("construction_type_07_03_v1", "移設6~14畳(取外し含む)", ".construction_type_07_04_v1");
  63.                 SetRequiredContent2("construction_type_07_03_v1", "移設16~20畳(取外し含む)", ".construction_type_07_04_v2");
  64.                 SetRequiredContent2("construction_type_07_03_v1", "移設23畳~(取外し含む)", ".construction_type_07_04_v3");
  65.             });
  66.             $("input[name='construction_type_07_02_v2']").change(function() {
  67.                 SetRequiredContent2("construction_type_07_02_v2", "分解洗浄を希望する", ".construction_type_07_03_v1");
  68.                 SetRequiredContent2("construction_type_07_02_v2", "分解洗浄を希望しない", ".construction_type_07_03_v2");
  69.                 SetRequiredContent2("construction_type_07_03_v1", "移設6~14畳(取外し含む)", ".construction_type_07_04_v1");
  70.                 SetRequiredContent2("construction_type_07_03_v1", "移設16~20畳(取外し含む)", ".construction_type_07_04_v2");
  71.                 SetRequiredContent2("construction_type_07_03_v1", "移設23畳~(取外し含む)", ".construction_type_07_04_v3");
  72.             });
  73.             $("input[name='construction_type_07_03_v1']").change(function() {
  74.                 SetRequiredContent2("construction_type_07_03_v1", "移設6~14畳(取外し含む)", ".construction_type_07_04_v1");
  75.                 SetRequiredContent2("construction_type_07_03_v1", "移設16~20畳(取外し含む)", ".construction_type_07_04_v2");
  76.                 SetRequiredContent2("construction_type_07_03_v1", "移設23畳~(取外し含む)", ".construction_type_07_04_v3");
  77.             });
  78.             $("input[name='electrical_outlet_07']").change(function() {
  79.                 SetRequiredContent2("electrical_outlet_07", "あり", ".electrical_outlet_07_02");
  80.             });
  81.             $("input[name='room_size_07']").change(function() {
  82.                 SetRequiredContent2("room_size_07", "なし", ".room_size_07_02"); 
  83.                 SetRequiredContent2("room_size_07_02", "建物が2009年6月以降に着工した証明書あり", ".room_size_07_03_v1");
  84.                 SetRequiredContent2("room_size_07_02", "建物が2009年6月以降に着工した証明書なし", ".room_size_07_03_v2");
  85.             });
  86.             $("input[name='room_size_07_02']").change(function() {
  87.                 SetRequiredContent2("room_size_07_02", "建物が2009年6月以降に着工した証明書あり", ".room_size_07_03_v1");
  88.                 SetRequiredContent2("room_size_07_02", "建物が2009年6月以降に着工した証明書なし", ".room_size_07_03_v2");
  89.             });
  90.             $("input[name='piping_status_07']").change(function() {
  91.                 SetRequiredContent2("piping_status_07", "隠蔽配管", ".piping_status_07_02");
  92.             });
  93.             $("input[name='outdoor_cover']").change(function() {
  94.                 SetRequiredContent2("outdoor_cover", "必要", ".outdoor_cover_02");
  95.             });
  96.             $("input[name='setting_install_method']").change(function() {
  97.                 SetRequiredContent2("setting_install_method", "新規取付", ".construction_method_07_v1");
  98.                 SetRequiredContent2("setting_install_method", "交換", ".construction_method_07_v2");
  99.             });
  100.             CalcConstructionNumber();
  101.             $('.construction_air').on('change', function() {
  102.                 // Loan thì không cho uncheck
  103.                 if ($(this).data('loan') == "1" && $(this).is(":checked") == false) {
  104.                     $(this).prop('checked', true);
  105.                 }
  106.                 if ($('.construction_air:checked').length > 0) {
  107.                     $('.construction_air').removeAttr('required');
  108.                 }
  109.                 else {
  110.                     $('.construction_air').attr('required', 'required');
  111.                 }
  112.                 CalcConstructionNumber();
  113.                 CalcPrice();
  114.             });
  115.             
  116.             CalcPrice();
  117.             $('input[type="radio"]').on('change', function() {
  118.                 CalcPrice();
  119.             });
  120.         });
  121.         function SetRequiredContent() {
  122.             {% if (checkCategory == 1) %}
  123.                 $("input[name='desired_construction_work'][value='エアコン本体と設置工事をご希望の方']").prop('checked', true);
  124.                 $(".ec-form-inquiry__group .table .list-item .item.active>table:first-child()").css('display', 'none');
  125.                 $("input[name='desired_construction_work_02'][value='最終金額算出']").prop('checked', true);
  126.             {% endif %}
  127.             var selectedValue = $("input[name='desired_construction_work']:checked").val();
  128.             
  129.             if (selectedValue === "エアコン本体と設置工事をご希望の方") {
  130.                 $("#tableUnderTop").css("display", "table");
  131.                 $("#tableThree").css("display", "none");
  132.                 $("#tableUnderTop input, #tableThree input").each(function(index, el) {
  133.                     if ($(this).attr('type') != 'hidden') {
  134.                         $(this).attr('required', 'required');
  135.                     }
  136.                 });
  137.             } 
  138.             else {
  139.                 $("#tableUnderTop").css("display", "none");
  140.                 $("#tableSecond").css("display", "none");
  141.                 $("#tableThree").css("display", "none");
  142.                 $("#tableUnderTop input, #tableSecond input, #tableThree input").each(function(index, el) {
  143.                     $(this).prop('checked', false).removeAttr('required');
  144.                 });
  145.             }
  146.             SetUnrequired();
  147.         }
  148.         function SetRequiredContent1() {
  149.             var selectedValue = $("input[name='desired_construction_work_02']:checked").val();
  150.             if (selectedValue === "最終金額算出") {
  151.                 $("#tableThree").css("display", "none");
  152.                 $("#tableThree input").each(function(index, el) {
  153.                     $(this).prop('checked', false).removeAttr('required');
  154.                 });
  155.                 $("#tableSecond").css("display", "table");
  156.                 $("#tableSecond .content-1 input").each(function(index, el) {
  157.                     if ($(this).attr('name') != 'construction_date_2' && $(this).attr('name') != 'construction_date_3' &&  $(this).attr('type') != 'hidden') {
  158.                         $(this).attr('required', 'required');
  159.                     }
  160.                 });
  161.             } 
  162.             else if (selectedValue === "新居等への引越しのため設置場所の詳細確認不可") {
  163.                 $("#tableSecond").css("display", "none");
  164.                 $("#tableSecond .content-1 input").each(function(index, el) {
  165.                     $(this).prop('checked', false).removeAttr('required');
  166.                 });
  167.                 $("#tableThree").css("display", "table");
  168.                 $("#tableThree input").each(function(index, el) {
  169.                     if ($(this).attr('type') != 'hidden') {
  170.                         $(this).attr('required', 'required');
  171.                     }
  172.                 });
  173.             }
  174.             else {
  175.                 $("#tableSecond").css("display", "none");
  176.                 $("#tableThree").css("display", "none");
  177.                 $("#tableSecond .content-1 input, #tableThree input").each(function(index, el) {
  178.                     $(this).prop('checked', false).removeAttr('required');
  179.                 });
  180.             }
  181.             SetUnrequired();
  182.         }
  183.         function SetRequiredContent2(nameInput, condition , classCheck) {
  184.             var selectedValue = $("input[name='"+ nameInput +"']:checked").val();
  185.             if (selectedValue === condition) {
  186.                 $(classCheck).css("display", "flex");
  187.                 $("#tableSecond " + classCheck + " input").each(function(index, el) {
  188.                     if ($(this).attr('type') != 'hidden') {
  189.                         $(this).attr('required', 'required');
  190.                     }
  191.                 });
  192.             } else {
  193.                 $(classCheck).css("display", "none");
  194.                 $("#tableSecond " + classCheck + " input").each(function(index, el) {
  195.                     $(this).prop('checked', false).removeAttr('required');
  196.                 });
  197.             }
  198.             SetUnrequired();
  199.         }
  200.         function SetUnrequired() {
  201.             $('input[name="outlet_earth"]').removeAttr('required');
  202.             $('input[name="electrical_outlet_07_02"]').removeAttr('required');
  203.         }
  204.         function CalcPrice() {
  205.             const basePriceType1 = 15980;
  206.             const basePriceType2 = 19980;
  207.             const basePriceType3 = 23980;
  208.             var product_total_price = Number($('#product_total_price').val());
  209.             var BasePrice = {
  210.                 type1: (CountTatami.countType1 - CountTatamiLoan.countType1) * basePriceType1,
  211.                 type2: (CountTatami.countType2 - CountTatamiLoan.countType2) * basePriceType2,
  212.                 type3: (CountTatami.countType3 - CountTatamiLoan.countType3) * basePriceType3,
  213.             };
  214.             var BasePriceAll = {
  215.                 type1: (CountTatamiAll.countType1 - CountTatamiLoan.countType1) * basePriceType1,
  216.                 type2: (CountTatamiAll.countType2 - CountTatamiLoan.countType2) * basePriceType2,
  217.                 type3: (CountTatamiAll.countType3 - CountTatamiLoan.countType3) * basePriceType3,
  218.             };
  219.             
  220.             var totalBasePriceSelect = BasePrice.type1 + BasePrice.type2 + BasePrice.type3;
  221.             var totalBasePriceAll = BasePriceAll.type1 + BasePriceAll.type2 + BasePriceAll.type3;
  222.             var totalBasePrice = 0;
  223.             if ($("input[name='desired_construction_work']:checked").val() != "エアコン本体と設置工事をご希望の方") {
  224.                 $('#construction_base_price_1').val(0);
  225.                 $('#construction_base_price_2').val(0);
  226.                 $('#construction_base_price_3').val(0);
  227.                 $('#construction_total_price').val(0);
  228.                 $('#construction_discount').val(0);
  229.                 $('#total-price').text(numeral(product_total_price).format('0,0') + "円");
  230.                 // $('.product_price').text(numeral(product_total_price).format('0,0'));
  231.                 $('.product_base_price').text(numeral(product_total_price + 0).format('0,0'));
  232.                 $('.base_price').text(0);
  233.                 $('.add_price').text(0);
  234.                 // console.log("----------------")
  235.                 // console.log(" base_price: " + $('.base_price').eq(0).text());
  236.                 // console.log("  add_price: " + $('.add_price').eq(0).text());
  237.                 // console.log("total-price: " + $('#total-price').text());
  238.             } 
  239.             else {
  240.                 $('input[type="radio"]').each(function() {                    
  241.                     let hidden_price = $(this).closest('div').find('input[type="hidden"]');
  242.                     if (hidden_price.length > 0) {
  243.                         hidden_price.val('');
  244.                     }
  245.                 });
  246.                 var construction_price = 0;       
  247.                 $('input[type="radio"]:checked').each(function() {                    
  248.                     let selectedPrice = $(this).data('price');
  249.                     construction_price += selectedPrice;
  250.                     let hidden_price = $(this).closest('div').find('input[type="hidden"]');
  251.                     if (hidden_price.length > 0) {
  252.                         hidden_price.val(selectedPrice);
  253.                     }
  254.                 });
  255.                 var number_install = 0;
  256.                 var construction_total_price = 0;
  257.                 var discountQuantity = 0;
  258.                 if ($("input[name='desired_construction_work_02']:checked").val() != "最終金額算出") {
  259.                     number_install = CountTatamiAll.countType1 + CountTatamiAll.countType2 + CountTatamiAll.countType3;
  260.                     totalBasePrice = totalBasePriceAll;
  261.                     construction_total_price = totalBasePrice;
  262.                 } 
  263.                 else {
  264.                     number_install = Number($('#number_install').val());
  265.                     totalBasePrice = totalBasePriceSelect;
  266.                     // phải trừ đi tiền thi công của loan
  267.                     let number_install_add = number_install - 
  268.                         (CountTatamiLoan.countType1 + CountTatamiLoan.countType2 + CountTatamiLoan.countType3);
  269.                     construction_total_price = totalBasePrice + construction_price * number_install_add;
  270.                 }
  271.                 switch (number_install) {
  272.                     case 1:
  273.                         discountQuantity = 0;
  274.                         break;
  275.                     case 2:
  276.                         discountQuantity = 0.05;
  277.                         break;
  278.                     case 3:
  279.                         discountQuantity = 0.1;
  280.                         break;
  281.                     default:
  282.                         discountQuantity = 0.15;
  283.                         break;
  284.                 }
  285.                 var total_price = product_total_price + construction_total_price;
  286.                 var discount_price = Math.round(total_price * discountQuantity);
  287.                 total_price = total_price - discount_price;
  288.                 
  289.                 if ($("input[name='desired_construction_work_02']:checked").val() != "最終金額算出") {
  290.                     $('#construction_base_price_1').val(BasePriceAll.type1);
  291.                     $('#construction_base_price_2').val(BasePriceAll.type2);
  292.                     $('#construction_base_price_3').val(BasePriceAll.type3);
  293.                 }
  294.                 else {
  295.                     $('#construction_base_price_1').val(BasePrice.type1);
  296.                     $('#construction_base_price_2').val(BasePrice.type2);
  297.                     $('#construction_base_price_3').val(BasePrice.type3);
  298.                 }
  299.                 
  300.                 $('#construction_total_price').val(construction_total_price);
  301.                 $('#construction_discount').val(discount_price);
  302.                 $('#total-price').text(numeral(total_price).format('0,0') + "円");
  303.                 // $('.product_price').text(numeral(product_total_price).format('0,0'));                
  304.                 // $('.base_price').text(numeral(totalBasePrice).format('0,0'));
  305.                 $('.product_base_price').text(numeral(product_total_price + totalBasePrice).format('0,0'));
  306.                 $('.add_price').text(numeral(construction_total_price - totalBasePrice).format('0,0'));
  307.                 // console.log("----------------")
  308.                 // console.log(" base_price: " + $('.base_price').eq(0).text());
  309.                 // console.log("  add_price: " + $('.add_price').eq(0).text());
  310.                 // console.log("total-price: " + $('#total-price').text());
  311.             }
  312.         }
  313.         /**
  314.          * Đếm số lượng cần thi công
  315.          */
  316.         function CalcConstructionNumber() {
  317.             CountTatami.countType1 = 0;
  318.             CountTatami.countType2 = 0;
  319.             CountTatami.countType3 = 0;
  320.             CountTatamiAll.countType1 = 0;
  321.             CountTatamiAll.countType2 = 0;
  322.             CountTatamiAll.countType3 = 0;
  323.             CountTatamiLoan.countType1 = 0;
  324.             CountTatamiLoan.countType2 = 0;
  325.             CountTatamiLoan.countType3 = 0;
  326.             var construction_air = []
  327.             $('.construction_air').each(function(index, el) {
  328.                 // Loan thì mặc định là check
  329.                 if ($(this).data('loan') == "1" && $(this).is(":checked") == false) {
  330.                     $(this).prop('checked', true);
  331.                 }
  332.                 let quantity = $(this).data('quantity');
  333.                 let tatami = $(this).data('tatami');
  334.                 let loan = $(this).data('loan');
  335.                 if (tatami >= 6 && tatami <= 14) {
  336.                     CountTatamiAll.countType1 += quantity;
  337.                     if (loan == 1) {
  338.                         CountTatamiLoan.countType1 += quantity;
  339.                     }
  340.                 } else if (tatami >= 16 && tatami <= 20) {
  341.                     CountTatamiAll.countType2 += quantity;
  342.                     if (loan == 1) {
  343.                         CountTatamiLoan.countType2 += quantity;
  344.                     }
  345.                 } else if (tatami >= 23) {
  346.                     CountTatamiAll.countType3 += quantity;
  347.                     if (loan == 1) {
  348.                         CountTatamiLoan.countType3 += quantity;
  349.                     }
  350.                 }
  351.                 if ($(this).is(':checked')) {
  352.                     if (tatami >= 6 && tatami <= 14) {
  353.                         CountTatami.countType1 += quantity;
  354.                     } else if (tatami >= 16 && tatami <= 20) {
  355.                         CountTatami.countType2 += quantity;
  356.                         
  357.                     } else if (tatami >= 23) {
  358.                         CountTatami.countType3 += quantity;
  359.                     }
  360.                     construction_air.push($(this).val());
  361.                 }                
  362.             });
  363.             $('#construction_air').val(construction_air.toString());
  364.             $('#number_install').val(CountTatami.countType1 + CountTatami.countType2 + CountTatami.countType3);
  365.         }
  366.     </script>
  367.     <script src="//yubinbango.github.io/yubinbango/yubinbango.js" charset="UTF-8"></script>
  368.     <script>
  369.         $(document).ready(function() {           
  370.             $("#btn-confirm").click(function(event) {
  371.                 var has_error = false;
  372.                 $("span.error-empty").remove();
  373.                 $("input[required], textarea[required]").each(function() {
  374.                     var input = $(this);
  375.                     var input_empty = $("<span>").addClass("error-empty").text("※この項目は必須項目です");                
  376.                     if (input.attr('type') == 'radio' || input.attr('type') == 'checkbox') {
  377.                         var radio_name = input.attr('name');
  378.                         if ($('input[name="' + radio_name + '"]:checked').length == 0) {
  379.                             input.before(input_empty);
  380.                             has_error = true;
  381.                         }
  382.                     }
  383.                     else if (input.val() == ""){
  384.                         input.before(input_empty);
  385.                         has_error = true;
  386.                     }
  387.                     else {
  388.                         input_empty.remove();
  389.                     }
  390.                     input.on("change", function() {
  391.                         if (input.attr('type') == 'radio' || input.attr('type') == 'checkbox') {
  392.                             input.closest('td').find('.error-empty').remove();
  393.                         }
  394.                         else {
  395.                             input_empty.remove();
  396.                         }
  397.                     });
  398.                 });
  399.                 if (has_error) {
  400.                     var speed = 300;
  401.                     var position = $(".error-empty").eq(0).offset().top - 250;
  402.                     $('body,html').animate({
  403.                         scrollTop: position
  404.                     }, speed, 'swing');
  405.                     return false;
  406.                 }
  407.                 else {
  408.                     // Vì không upload được file nên phải sử dụng submit thông thường
  409.                     // $form = $('#form1');
  410.                     // $.ajax({
  411.                     //     url: $form.attr('action'),
  412.                     //     type: $form.attr('method'),
  413.                     //     data: $form.serialize(),
  414.                     //     dataType: 'json',
  415.                     //     beforeSend: function(xhr, settings) {
  416.                     //         // Buttonを無効にする
  417.                     //         $('.add-cart').prop('disabled', true);
  418.                     //     }
  419.                     // }).done(function(data) {
  420.                     //     if ($('.add-cart').hasClass('cart-express')) {
  421.                     //         location.href = "{{ url('shopping') }}";
  422.                     //     }
  423.                     // }).fail(function(data) {
  424.                     //     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  425.                     // });
  426.                 }
  427.             });
  428.         });
  429.         $(document).ready(function(){
  430.             $(".custom-file input[type='file']").change(function(){
  431.                 var filePath = $(this).val();
  432.                 var fileName = filePath.split('\\').pop();
  433.                 var label = $(this).parent().find("label");
  434.                 label.text(fileName);
  435.                 var hiddenInputId = $(this).attr("id") + "-filename";
  436.                 $("#" + hiddenInputId).val(fileName);
  437.                 $(this).parent().find("label").css("color", "rgba(0, 0, 0, 1)");
  438.             });
  439.         });
  440.     </script>
  441. {% endblock %}
  442. {% block main %}
  443.     {% set countProductBasic = 0 %}
  444.     {% set countProductLoan = 0 %}
  445.     {% if listCatProduct %}
  446.         {% for list in listCatProduct %}
  447.             {% if list == 118 %}
  448.                 {% set countProductLoan = countProductLoan + 1 %}
  449.             {% else %}
  450.                 {% set countProductBasic = countProductBasic + 1 %}
  451.             {% endif %}
  452.         {% endfor %}
  453.     {% endif %}
  454.     <input type="hidden" id="product_total_price" name="product_total_price" value="{{ productTotalPrice }}">
  455.     <div class="ec-inquiry-page">
  456.     
  457.         <div class="ec-banner">
  458.             <div class="ec-banner__inner">
  459.                 <div class="inner">
  460.                     <h2>
  461.                         工事内容の最終確認
  462.                     </h2>
  463.                 </div>
  464.             </div>
  465.             <div class="ec-breadcrumb">
  466.                 <ul class="ec-breadcrumb__menu">
  467.                     <li class="ec-breadcrumb__item"><a href="{{ url('homepage') }}">TOP</a></li>
  468.                     <li class="ec-breadcrumb__item"><span>></span></li>
  469.                     <li class="ec-breadcrumb__item"><p>工事内容の最終確認</p></li>
  470.                 </ul>
  471.             </div>
  472.         </div>
  473.         <div class="ec-form-inquiry-main">
  474.             <div class="ec-form-inquiry__inner">
  475.                 <div class="inner">
  476.                     <div class="ec-form-inquiry__group">
  477.                         <div class="text">
  478.                             <p>下記フォームの各項目にご記入いただttき、決済にお進みください。なお、不明の項目がある場合には、工事当日に追加費用が発生する可能性があります。</p>                                
  479.                             <div class="ec-setting__group">
  480.                                 <div class="title-main">
  481.                                     <p>ご購入内容の確認</p>
  482.                                 </div>
  483.                                 <div class="list-steps v2 vip">
  484.                                     <div class="step">
  485.                                         <div class="step__contact">
  486.                                             <p class="step__contact__num">STEP1</p>
  487.                                             <p class="step__contact__ttl">お客様</p>
  488.                                             <img class="step__contact__img" src="{{ asset('assets/img/setting-0y/s0-contact-1.png') }}" alt="">
  489.                                             <p class="step__contact__desc">工事内容の最終確認送信</p>
  490.                                         </div>
  491.                                     </div>
  492.                                     <div class="dbar">
  493.                                         <span></span>
  494.                                     </div>
  495.                                     <div class="step">
  496.                                         <div class="step__contact">
  497.                                             <p class="step__contact__num">STEP2</p>
  498.                                             <p class="step__contact__ttl">お客様</p>
  499.                                             <img class="step__contact__img" src="{{ asset('assets/img/setting-0y/s0-contact-3.png') }}" alt="">
  500.                                             <p class="step__contact__desc">工事最終金額のご確認</p>
  501.                                         </div>
  502.                                     </div>
  503.                                     <div class="dbar">
  504.                                         <span></span>
  505.                                     </div>
  506.                                     <div class="step">
  507.                                         <div class="step__contact">
  508.                                             <p class="step__contact__num">STEP3</p>
  509.                                             <p class="step__contact__ttl">お客様</p>
  510.                                             <img class="step__contact__img" src="{{ asset('assets/img/setting-0y/s0-contact-4.png') }}" alt="">
  511.                                             <p class="step__contact__desc">決済</p>
  512.                                         </div>
  513.                                     </div>
  514.                                 </div>
  515.                             </div>
  516.                             <div class="ec-product__group">
  517.                                 <div class="list-btn">
  518.                                     <a href="https://lin.ee/5FbNJH7s" target="_blank" class="btn"><span>LINE</span></a>
  519.                                     <a href="{{ url('contact') }}" class="btn"><span>通常お問合せ</span></a>
  520.                                     <span class="btn pc" style="opacity: 1!important; cursor: default;"><span>TEL: 080-0222-4466</span></span>
  521.                                     <a href="tel:080-0222-4466" class="btn sp"><span>TEL: 080-0222-4466</span></a>
  522.                                 </div>
  523.                             </div>
  524.                         </div>
  525.                         <form action="{{ url('product_add_cart', {id:Product.id}) }}" method="post" id="form1" name="form1" enctype="multipart/form-data">
  526.                             {{ form_widget(form._token) }}
  527.                             <div class="table">
  528.                                 <div class="list-item">
  529.                                     <div class="item active">
  530.                                         <table>
  531.                                             <tr>
  532.                                                 <td><p>購入種別</p></td>
  533.                                                 <td>
  534.                                                     <div class="fill v4">
  535.                                                         {% for key,val in form.desired_construction_work.vars.choices %}
  536.                                                             <div>
  537.                                                                 <label class="form-check">
  538.                                                                     <input type="radio" name="{{ form.desired_construction_work.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.desired_construction_work.vars.data == val.value %}checked{% endif %} required /> 
  539.                                                                     {{ val.label | trans }}                                       
  540.                                                                 </label>
  541.                                                             </div>
  542.                                                         {% endfor %}
  543.                                                         <p style="padding-left: 2rem;font-size: 0.8em;line-height: 1.3; flex: 1;">※後日、追加工事費が発生しないようにお分かりの範囲で<br> 下記フォームにご入力お願いします。</p>
  544.                                                     </div>
  545.                                                     {{ form_errors(form.desired_construction_work) }}
  546.                                                 </td>
  547.                                             </tr> 
  548.                                         </table>
  549.                                         <table id="tableUnderTop" style="padding: 0;">
  550.                                             <tr class="desired_construction_work_02">
  551.                                                 <td>
  552.                                                     <p>希望する工事</p>
  553.                                                     {# <small>2段階目</small> #}
  554.                                                 </td>
  555.                                                 <td>
  556.                                                     <div class="fill v4">
  557.                                                         {% for key,val in form.desired_construction_work_02.vars.choices %}
  558.                                                             <label class="form-check flex">
  559.                                                                 <input type="radio" name="{{ form.desired_construction_work_02.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.desired_construction_work_02.vars.data == val.value %}checked{% endif %} />
  560.                                                                 {{ val.label | trans }} 
  561.                                                                 {% if val.value == "新居等への引越しのため設置場所の詳細確認不可" %}
  562.                                                                     <p style="padding-left: 2rem;font-size: 0.8em;line-height: 1.3; flex: 1;">※工事当日に追加費用が発生する場合があります。</p>
  563.                                                                 {% endif %}
  564.                                                             </label>
  565.                                                         {% endfor %}                    
  566.                                                     </div>
  567.                                                     {{ form_errors(form.desired_construction_work_02) }}
  568.                                                 </td>
  569.                                             </tr> 
  570.                                         </table>
  571.                                         <table id="tableSecond" style="padding: 0;">
  572.                                             {% if (countProductBasic != 0)  %}
  573.                                             <tr class="content-1">
  574.                                                 <td><p>特急券の購入</p></td>
  575.                                                 <td>
  576.                                                     <div class="fill v4">
  577.                                                         {% for key,val in form.express_tickets.vars.choices %}
  578.                                                             <label class="form-check">
  579.                                                                 <input type="radio" name="{{ form.express_tickets.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.express_tickets.vars.data == val.value %}checked{% endif %} />
  580.                                                                 {{ val.label | trans }} 
  581.                                                             </label>
  582.                                                         {% endfor %}     
  583.                                                         {{ form_widget(form.express_tickets_price) }}               
  584.                                                     </div>
  585.                                                     {{ form_errors(form.express_tickets) }}                                                    
  586.                                                 </td>
  587.                                             </tr> 
  588.                                             {% endif %}
  589.                                             <tr class="content-1">
  590.                                                 <td><p>お住まい</p></td>
  591.                                                 <td>
  592.                                                     <div class="fill v4">
  593.                                                         {% for key,val in form.osumai.vars.choices %}
  594.                                                             <label class="form-check">
  595.                                                                 <input type="radio" name="{{ form.osumai.vars.full_name }}" data-percent="{{ val.attr['percent'] | default(0) }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.osumai.vars.data == val.value %}checked{% endif %} />
  596.                                                                 {{ val.label | trans }} 
  597.                                                             </label>
  598.                                                         {% endfor %}
  599.                                                     </div>
  600.                                                     {{ form_errors(form.osumai) }}
  601.                                                 </td>
  602.                                             </tr>
  603.                                             <tr class="content-1">
  604.                                                 <td><p>建物の所有</p></td>
  605.                                                 <td>
  606.                                                     <div class="fill v4">
  607.                                                         {% for key,val in form.building_ownership.vars.choices %}
  608.                                                             <label class="form-check flex">
  609.                                                                 <input type="radio" name="{{ form.building_ownership.vars.full_name }}" data-percent="{{ val.attr['percent'] | default(0) }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.building_ownership.vars.data == val.value %}checked{% endif %} />
  610.                                                                 {{ val.label | trans }} 
  611.                                                                 {% if val.value == "賃貸" %}
  612.                                                                     <p style="padding-left: 2rem;font-size: 0.8em;line-height: 1.3; flex: 1;">※工事内容によっては受付出来ない可能性もございます。</p>
  613.                                                                 {% endif %}
  614.                                                             </label>
  615.                                                         {% endfor %}
  616.                                                     </div>
  617.                                                     {{ form_errors(form.building_ownership) }}
  618.                                                 </td>
  619.                                             </tr>
  620.                                             <tr class="content-1">
  621.                                                 <td><p>構造</p></td>
  622.                                                 <td>
  623.                                                     <div class="fill v4">
  624.                                                         {% for key,val in form.structure.vars.choices %}
  625.                                                             <label class="form-check">
  626.                                                                 <input type="radio" name="{{ form.structure.vars.full_name }}" data-percent="{{ val.attr['percent'] | default(0) }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.structure.vars.data == val.value %}checked{% endif %} />
  627.                                                                 {{ val.label | trans }} 
  628.                                                             </label>
  629.                                                         {% endfor %}
  630.                                                     </div>
  631.                                                     {{ form_errors(form.structure) }}
  632.                                                 </td>
  633.                                             </tr>
  634.                                             <tr class="content-1">
  635.                                                 <td><p>設置台数</p></td>
  636.                                                 <td>
  637.                                                     <div class="fill v4">
  638.                                                         {% for key,val in form.construction_airs.vars.choices %}
  639.                                                             {% set has_checked = false %}
  640.                                                             {% for key2,val2 in form.construction_airs.vars.data %}
  641.                                                                 {% if val.value == val2 %}
  642.                                                                     {% set has_checked = true %}
  643.                                                                     <label class="form-check">
  644.                                                                         <input type="checkbox" name="{{ form.construction_airs.vars.full_name }}" class="construction_air" data-tatami="{{ val.attr['data-tatami'] | default(0) }}" data-quantity="{{ val.attr['data-quantity'] | default(0) }}" data-loan="{{ val.attr['data-loan'] | default(0) }}" value="{{ val.value }}" checked />
  645.                                                                         {{ val.data | trans }} 
  646.                                                                     </label>
  647.                                                                 {% endif %}
  648.                                                             {% endfor %}
  649.                                                             {% if has_checked == false %}
  650.                                                                 <label class="form-check">
  651.                                                                     <input type="checkbox" name="{{ form.construction_airs.vars.full_name }}" class="construction_air" data-tatami="{{ val.attr['data-tatami'] | default(0) }}" data-quantity="{{ val.attr['data-quantity'] | default(0) }}" data-loan="{{ val.attr['data-loan'] | default(0) }}" value="{{ val.value }}"/>
  652.                                                                     {{ val.data | trans }} 
  653.                                                                 </label>
  654.                                                             {% endif %}
  655.                                                         {% endfor %}
  656.                                                         {{ form_widget(form.construction_air) }}
  657.                                                         {{ form_widget(form.number_install) }}
  658.                                                         {{ form_widget(form.number_install_price) }}
  659.                                                     </div>
  660.                                                     {{ form_errors(form.construction_airs) }}
  661.                                                 </td>
  662.                                             </tr>
  663.                                             <tr class="content-1">
  664.                                                 <td><p>設置工事希望日</p></td>
  665.                                                 <td>
  666.                                                     <div class="fill v3">
  667.                                                         <label class="label v3 date vip">
  668.                                                             第一希望日  
  669.                                                             {{ form_widget(form.construction_date_1) }}
  670.                                                             {{ form_errors(form.construction_date_1) }}
  671.                                                             <span class="pc"> </span>希望時間帯 
  672.                                                             <select name="time_slot_1" id="time_slot_1">
  673.                                                                 {% for key,val in form.time_slot_1.vars.choices %}
  674.                                                                     <option value="{{ val.value }}">{{ val.label | trans }} </option>
  675.                                                                 {% endfor %}
  676.                                                             </select>
  677.                                                         </label>
  678.                                                         <label class="label v3 date">
  679.                                                             第二希望日  
  680.                                                             {{ form_widget(form.construction_date_2) }}
  681.                                                             {{ form_errors(form.construction_date_2) }}
  682.                                                             <span class="pc"> </span>希望時間帯 
  683.                                                             <select name="time_slot_2" id="time_slot_2">
  684.                                                                 {% for key,val in form.time_slot_2.vars.choices %}
  685.                                                                     <option value="{{ val.value }}">{{ val.label | trans }} </option>
  686.                                                                 {% endfor %}
  687.                                                             </select>
  688.                                                         </label>
  689.                                                         <label class="label v3 date">
  690.                                                             第三希望日  
  691.                                                             {{ form_widget(form.construction_date_3) }}
  692.                                                             {{ form_errors(form.construction_date_3) }}
  693.                                                             <span class="pc"> </span>希望時間帯 
  694.                                                             <select name="time_slot_3" id="time_slot_3">
  695.                                                                 {% for key,val in form.time_slot_3.vars.choices %}
  696.                                                                     <option value="{{ val.value }}">{{ val.label | trans }} </option>
  697.                                                                 {% endfor %}
  698.                                                             </select>
  699.                                                         </label>
  700.                                                         {{ form_widget(form.contents, {'attr': { 'placeholder': 'その他希望等あればご記入ください。' }}) }}
  701.                                                         {{ form_errors(form.contents) }}
  702.                                                     </div>
  703.                                                 </td>
  704.                                             </tr>
  705.                                             <tr class="content-1">
  706.                                                 <td><p>工事内訳</p></td>
  707.                                                 <td>
  708.                                                     <div class="fill v4">
  709.                                                         {% for key,val in form.construction_type_07.vars.choices %}
  710.                                                             <label class="form-check">
  711.                                                                 <input type="radio" name="{{ form.construction_type_07.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.construction_type_07.vars.data == val.value %}checked{% endif %} />
  712.                                                                 {{ val.label | trans }} 
  713.                                                                 {% if val.value == "新設工事に加えて移設工事も希望" %}
  714.                                                                     <p style="padding-left: 2rem;font-size: 0.8em;margin-bottom: 0.5rem;line-height: 1.2;">※エアコン本体の移動はお客様ご自身でお願いいたします。</p>
  715.                                                                 {% endif %}
  716.                                                             </label>
  717.                                                         {% endfor %}                    
  718.                                                     </div>
  719.                                                     {{ form_errors(form.construction_type_07) }}
  720.                                                 </td>
  721.                                             </tr> 
  722.                                             <tr class="construction_type_07_02_v1">
  723.                                                 <td>
  724.                                                     <p>工事内訳</p>
  725.                                                     {# <small>2段階目</small> #}
  726.                                                 </td>
  727.                                                 <td>
  728.                                                     <div class="fill v4">
  729.                                                         {% for key,val in form.construction_type_07_02_v1.vars.choices %}
  730.                                                             <label class="form-check">
  731.                                                                 <input type="radio" name="{{ form.construction_type_07_02_v1.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.construction_type_07_02_v1.vars.data == val.value %}checked{% endif %} />
  732.                                                                 {{ val.label | trans }} 
  733.                                                             </label>
  734.                                                         {% endfor %}   
  735.                                                         {{ form_widget(form.construction_type_07_02_v1_price) }}                 
  736.                                                     </div>
  737.                                                     {{ form_errors(form.construction_type_07_02_v1) }}
  738.                                                 </td>
  739.                                             </tr> 
  740.                                             <tr class="construction_type_07_02_v2">
  741.                                                 <td><p>工事内訳</p><small>2段階目</small></td>
  742.                                                 <td>
  743.                                                     <div class="fill v4">
  744.                                                         {% for key,val in form.construction_type_07_02_v2.vars.choices %}
  745.                                                             <label class="form-check">
  746.                                                                 <input type="radio" name="{{ form.construction_type_07_02_v2.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.construction_type_07_02_v2.vars.data == val.value %}checked{% endif %} />
  747.                                                                 {{ val.label | trans }}
  748.                                                             </label>
  749.                                                         {% endfor %}                    
  750.                                                     </div>
  751.                                                     {{ form_errors(form.construction_type_07_02_v2) }}
  752.                                                 </td>
  753.                                             </tr> 
  754.                                             <tr class="construction_type_07_03_v1">
  755.                                                 <td><p>工事内訳</p><small>3段階目</small></td>
  756.                                                 <td>
  757.                                                     <div class="fill v4">
  758.                                                         {% for key,val in form.construction_type_07_03_v1.vars.choices %}
  759.                                                             <label class="form-check">
  760.                                                                 <input type="radio" name="{{ form.construction_type_07_03_v1.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.construction_type_07_03_v1.vars.data == val.value %}checked{% endif %} />
  761.                                                                 {{ val.label | trans }} 
  762.                                                             </label>
  763.                                                         {% endfor %}                    
  764.                                                     </div>
  765.                                                     {{ form_errors(form.construction_type_07_03_v1) }}
  766.                                                 </td>
  767.                                             </tr> 
  768.                                             <tr class="construction_type_07_03_v2">
  769.                                                 <td><p>工事内訳</p><small>3段階目</small></td>
  770.                                                 <td>
  771.                                                     <div class="fill v4">
  772.                                                         {% for key,val in form.construction_type_07_03_v2.vars.choices %}
  773.                                                             <label class="form-check">
  774.                                                                 <input type="radio" name="{{ form.construction_type_07_03_v2.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.construction_type_07_03_v2.vars.data == val.value %}checked{% endif %} />
  775.                                                                 {{ val.label | trans }} 
  776.                                                             </label>
  777.                                                         {% endfor %}         
  778.                                                         {{ form_widget(form.construction_type_07_03_v2_price) }}           
  779.                                                     </div>
  780.                                                     {{ form_errors(form.construction_type_07_03_v2) }}
  781.                                                 </td>
  782.                                             </tr> 
  783.                                             <tr class="construction_type_07_04_v1">
  784.                                                 <td><p>工事内訳</p><small>4段階目</small></td>
  785.                                                 <td>
  786.                                                     <div class="fill v4">
  787.                                                         {% for key,val in form.construction_type_07_04_v1.vars.choices %}
  788.                                                             <label class="form-check">
  789.                                                                 <input type="radio" name="{{ form.construction_type_07_04_v1.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.construction_type_07_04_v1.vars.data == val.value %}checked{% endif %} />
  790.                                                                 {{ val.label | trans }} 
  791.                                                             </label>
  792.                                                         {% endfor %}            
  793.                                                         {{ form_widget(form.construction_type_07_04_v1_price) }}        
  794.                                                     </div>
  795.                                                     {{ form_errors(form.construction_type_07_04_v1) }}
  796.                                                 </td>
  797.                                             </tr> 
  798.                                             <tr class="construction_type_07_04_v2">
  799.                                                 <td><p>工事内訳</p><small>4段階目</small></td>
  800.                                                 <td>
  801.                                                     <div class="fill v4">
  802.                                                         {% for key,val in form.construction_type_07_04_v2.vars.choices %}
  803.                                                             <label class="form-check">
  804.                                                                 <input type="radio" name="{{ form.construction_type_07_04_v2.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.construction_type_07_04_v2.vars.data == val.value %}checked{% endif %} />
  805.                                                                 {{ val.label | trans }} 
  806.                                                             </label>
  807.                                                         {% endfor %}     
  808.                                                         {{ form_widget(form.construction_type_07_04_v2_price) }}               
  809.                                                     </div>
  810.                                                     {{ form_errors(form.construction_type_07_04_v2) }}
  811.                                                 </td>
  812.                                             </tr> 
  813.                                             <tr class="construction_type_07_04_v3">
  814.                                                 <td><p>工事内訳</p><small>4段階目</small></td>
  815.                                                 <td>
  816.                                                     <div class="fill v4">
  817.                                                         {% for key,val in form.construction_type_07_04_v3.vars.choices %}
  818.                                                             <label class="form-check">
  819.                                                                 <input type="radio" name="{{ form.construction_type_07_04_v3.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.construction_type_07_04_v3.vars.data == val.value %}checked{% endif %} />
  820.                                                                 {{ val.label | trans }} 
  821.                                                             </label>
  822.                                                         {% endfor %}
  823.                                                         {{ form_widget(form.construction_type_07_04_v3_price) }}
  824.                                                     </div>
  825.                                                     {{ form_errors(form.construction_type_07_04_v3) }}
  826.                                                 </td>
  827.                                             </tr> 
  828.                                             <tr class="content-1">
  829.                                                 <td><p>エアコン設置場所</p></td>
  830.                                                  <td>
  831.                                                     <div class="fill v4">
  832.                                                         {% for key,val in form.construction_floor_07.vars.choices %}
  833.                                                             <label class="form-check">
  834.                                                                 <input type="radio" name="{{ form.construction_floor_07.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.construction_floor_07.vars.data == val.value %}checked{% endif %} />
  835.                                                                 {{ val.label | trans }} 
  836.                                                             </label>
  837.                                                         {% endfor %}
  838.                                                     </div>
  839.                                                     {{ form_errors(form.construction_floor_07) }}
  840.                                                 </td>
  841.                                             </tr> 
  842.                                             <tr class="content-1">
  843.                                                 <td><p>エレベーターの有無</p><small>※3階以上の場合</small></td>
  844.                                                 <td>
  845.                                                     <div class="fill v4">
  846.                                                         {% for key,val in form.elevator_07.vars.choices %}
  847.                                                             <label class="form-check">
  848.                                                                 <input type="radio" name="{{ form.elevator_07.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.elevator_07.vars.data == val.value %}checked{% endif %} />
  849.                                                                 {{ val.label | trans }} 
  850.                                                             </label>
  851.                                                         {% endfor %}
  852.                                                         {{ form_errors(form.elevator_07) }}
  853.                                                         {{ form_widget(form.elevator_07_price) }}
  854.                                                     </div>
  855.                                                 </td>
  856.                                             </tr> 
  857.                                             <tr class="content-1">
  858.                                                 <td><p>コンセントの有無</p></td>
  859.                                                 <td>
  860.                                                     <div class="fill v4">
  861.                                                         {% for key,val in form.electrical_outlet_07.vars.choices %}
  862.                                                             <label class="form-check flex" style="display: flex; align-items: center;flex-wrap: wrap;">
  863.                                                                 <input type="radio" name="{{ form.electrical_outlet_07.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.electrical_outlet_07.vars.data == val.value %}checked{% endif %} />
  864.                                                                 {{ val.label | trans }} 
  865.                                                                 {% if val.value == "なし(別途工事が必要になります)" %}
  866.                                                                     <p style="padding-left: 2rem;font-size: 0.8em;line-height: 1.2;">※10m以上の方は別途お見積りさせていただきます。</p>
  867.                                                                 {% endif %}
  868.                                                                 {% if val.value == "不明" %}
  869.                                                                     <p style="padding-left: 2rem;font-size: 0.8em;line-height: 1.2;">※工事当日に追加費用が発生する場合があります。</p>
  870.                                                                 {% endif %}
  871.                                                             </label>
  872.                                                         {% endfor %}
  873.                                                         {{ form_errors(form.electrical_outlet_07) }}
  874.                                                         {{ form_widget(form.electrical_outlet_07_price) }}
  875.                                                     </div>
  876.                                                 </td>
  877.                                             </tr> 
  878.                                             <tr class="electrical_outlet_07_02">
  879.                                                 <td>
  880.                                                     <p>コンセントの有無</p>
  881.                                                     {# <small>2段階目</small> #}
  882.                                                 </td>
  883.                                                 <td>
  884.                                                     <div class="fill v4">
  885.                                                         {% for key,val in form.electrical_outlet_07_02.vars.choices %}
  886.                                                             <label class="form-check flex" style="display: flex; align-items: center;flex-wrap: wrap;">
  887.                                                                 <input type="radio" name="{{ form.electrical_outlet_07_02.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.electrical_outlet_07_02.vars.data == val.value %}checked{% endif %} />
  888.                                                                 {{ val.label | trans }} 
  889.                                                             </label>
  890.                                                         {% endfor %}
  891.                                                         {{ form_errors(form.electrical_outlet_07_02) }}
  892.                                                         {{ form_widget(form.electrical_outlet_07_02_price) }}
  893.                                                     </div>
  894.                                                 </td>
  895.                                             </tr>    
  896.                                             <tr class="content-1">
  897.                                                 <td><p>建物の契約アンペア</p></td>
  898.                                                 <td>
  899.                                                     <div class="fill v4">
  900.                                                         {% for key,val in form.contract_amp.vars.choices %}
  901.                                                             <label class="form-check flex">
  902.                                                                 <input type="radio" name="{{ form.contract_amp.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.contract_amp.vars.data == val.value %}checked{% endif %}/>
  903.                                                                 {{ val.label | trans }} 
  904.                                                             </label>
  905.                                                         {% endfor %}
  906.                                                     </div>
  907.                                                     {{ form_errors(form.contract_amp) }}
  908.                                                 </td>
  909.                                             </tr> 
  910.                                             <tr class="content-1">
  911.                                                 <td><p>コンセントアース端子</p></td>
  912.                                                 <td>
  913.                                                     <div class="fill v4">
  914.                                                         {% for key,val in form.outlet_earth.vars.choices %}
  915.                                                             <label class="form-check flex">
  916.                                                                 <input type="radio" name="{{ form.outlet_earth.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.outlet_earth.vars.data == val.value %}checked{% endif %}/>
  917.                                                                 {{ val.label | trans }} 
  918.                                                                 {% if val.value == "なし" %}
  919.                                                                     <p style="padding-left: 2rem;font-size: 0.8em;line-height: 1.3; flex: 1;">*工事当日に追加費用がかかる場合があります。</p>
  920.                                                                 {% endif %}
  921.                                                                 {% if val.value == "不明" %}
  922.                                                                     <p style="padding-left: 2rem;font-size: 0.8em;line-height: 1.3; flex: 1;">*工事当日に追加費用がかかる場合があります。</p>
  923.                                                                 {% endif %}
  924.                                                             </label>
  925.                                                         {% endfor %}
  926.                                                     </div>
  927.                                                     {{ form_errors(form.outlet_earth) }}
  928.                                                 </td>
  929.                                             </tr>  
  930.                                             <tr class="content-1">
  931.                                                 <td><p>配管穴の有無</p></td>
  932.                                                 <td>
  933.                                                     <div class="fill v4 vip">
  934.                                                         {% for key,val in form.room_size_07.vars.choices %}
  935.                                                             <label class="form-check flex">
  936.                                                                 <input type="radio" name="{{ form.room_size_07.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.room_size_07.vars.data == val.value %}checked{% endif %}/>
  937.                                                                 {{ val.label | trans }} 
  938.                                                                 {% if val.value == "不明" %}
  939.                                                                     <p style="padding-left: 2rem;font-size: 0.8em;line-height: 1.3; flex: 1;">※工事当日に追加費用が発生する場合があります。別途エアココからご連絡させていただきます。</p>
  940.                                                                 {% endif %}
  941.                                                             </label>
  942.                                                         {% endfor %}
  943.                                                     </div>
  944.                                                     {{ form_errors(form.room_size_07) }}
  945.                                                     <img style="margin-left: auto;" src="{{ asset('assets/img/contact/') }}hole-sample.jpg" alt="配管穴の有無">
  946.                                                 </td>
  947.                                             </tr> 
  948.                                             
  949.                                             {% if (countProductBasic != 0)  %}
  950.                                             <tr class="room_size_07_02">
  951.                                                 <td><p>配管穴の有無</p><small>2段階目</small></td>
  952.                                                 <td>
  953.                                                     <div class="fill v4">
  954.                                                         {% for key,val in form.room_size_07_02.vars.choices %}
  955.                                                             <label class="form-check flex">
  956.                                                                 <input type="radio" name="{{ form.room_size_07_02.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.room_size_07_02.vars.data == val.value %}checked{% endif %}/>
  957.                                                                 {{ val.label | trans }} 
  958.                                                             </label>
  959.                                                         {% endfor %}
  960.                                                     </div>
  961.                                                     {{ form_errors(form.room_size_07_02) }}
  962.                                                 </td>
  963.                                             </tr> 
  964.                                             {% endif %}
  965.                                             <tr class="room_size_07_03_v1">
  966.                                                 <td><p>建物の材質</p><small>(穴あけ&貫通スリーブ費)</small></td>
  967.                                                 <td>
  968.                                                     <div class="fill v4">
  969.                                                         {% for key,val in form.room_size_07_03_v1.vars.choices %}
  970.                                                             <label class="form-check flex">
  971.                                                                 <input type="radio" name="{{ form.room_size_07_03_v1.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.room_size_07_03_v1.vars.data == val.value %}checked{% endif %}/>
  972.                                                                 {{ val.label | trans }} 
  973.                                                                 {% if val.value == "その他" %}
  974.                                                                     <p style="padding-left: 2rem;font-size: 0.8em;line-height: 1.3; flex: 1;">※工事当日に追加費用が発生する場合があります。</p>
  975.                                                                 {% endif %}
  976.                                                                 {% if val.value == "不明" %}
  977.                                                                     <p style="padding-left: 2rem;font-size: 0.8em;line-height: 1.3; flex: 1;">※工事当日に追加費用が発生する場合があります。</p>
  978.                                                                 {% endif %}
  979.                                                             </label>
  980.                                                         {% endfor %}
  981.                                                         {{ form_widget(form.room_size_07_03_v1_price) }}
  982.                                                     </div>
  983.                                                     {{ form_errors(form.room_size_07_03_v1) }}                                                    
  984.                                                 </td>
  985.                                             </tr> 
  986.                                             <tr class="room_size_07_03_v2">
  987.                                                 <td><p>建物の材質</p><small>(穴あけ&貫通スリーブ&アスベストみなし工事、対策費と調査報告書作成費)</small></td>
  988.                                                 <td>
  989.                                                     <div class="fill v4">
  990.                                                         {% for key,val in form.room_size_07_03_v2.vars.choices %}
  991.                                                             <label class="form-check flex">
  992.                                                                 <input type="radio" name="{{ form.room_size_07_03_v2.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.room_size_07_03_v2.vars.data == val.value %}checked{% endif %}/>
  993.                                                                 {{ val.label | trans }} 
  994.                                                                 {% if val.value == "その他" %}
  995.                                                                     <p style="padding-left: 2rem;font-size: 0.8em;line-height: 1.3; flex: 1;">※工事当日に追加費用が発生する場合があります。</p>
  996.                                                                 {% endif %}
  997.                                                                 {% if val.value == "不明" %}
  998.                                                                     <p style="padding-left: 2rem;font-size: 0.8em;line-height: 1.3; flex: 1;">※工事当日に追加費用が発生する場合があります。</p>
  999.                                                                 {% endif %}
  1000.                                                             </label>
  1001.                                                         {% endfor %}
  1002.                                                         {{ form_widget(form.room_size_07_03_v2_price) }}
  1003.                                                     </div>
  1004.                                                     {{ form_errors(form.room_size_07_03_v2) }}                                                    
  1005.                                                 </td>
  1006.                                             </tr> 
  1007.                                             <tr class="content-1">
  1008.                                                 <td><p>設置予定場所の<br class="pc" />配管の状態</p></td>
  1009.                                                 <td style="flex-direction: column;">
  1010.                                                     <div class="fill v5 up">
  1011.                                                         {% set idx = 0 %}
  1012.                                                         {% for key,val in form.piping_status_07.vars.choices %}
  1013.                                                             {% set idx = idx + 1 %}
  1014.                                                             {% if idx <= 2 %}
  1015.                                                                 <div class="group">
  1016.                                                                     <label class="form-check v2">
  1017.                                                                         <input type="radio" name="{{ form.piping_status_07.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.piping_status_07.vars.data == val.value %}checked{% endif %} />
  1018.                                                                         {{ val.label | trans }} 
  1019.                                                                     </label>
  1020.                                                                     <img src="{{ asset('assets/img/form-0y/') }}line-option-0{{ idx }}.jpg" alt="">
  1021.                                                                 </div>
  1022.                                                             {% endif %}
  1023.                                                         {% endfor %}
  1024.                                                     </div>
  1025.                                                     <div class="fill v5">
  1026.                                                         {% set idx = 0 %}
  1027.                                                         {% for key,val in form.piping_status_07.vars.choices %}
  1028.                                                             {% set idx = idx + 1 %}
  1029.                                                             {% if idx > 2 %}
  1030.                                                                 <label class="form-check">
  1031.                                                                     <input type="radio" name="{{ form.piping_status_07.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.piping_status_07.vars.data == val.value %}checked{% endif %} />
  1032.                                                                     {{ val.label | trans }} 
  1033.                                                                 </label>
  1034.                                                             {% endif %}
  1035.                                                         {% endfor %}
  1036.                                                     </div>
  1037.                                                     {{ form_errors(form.piping_status_07) }}
  1038.                                                 </td>
  1039.                                             </tr>
  1040.                                             <tr class="piping_status_07_02">
  1041.                                                 <td><p>設置予定場所の<br class="pc" />配管の状態</p><small>2段階目</small></td>
  1042.                                                 <td>
  1043.                                                     <div class="fill v4">
  1044.                                                         {% for key,val in form.piping_status_07_02.vars.choices %}
  1045.                                                             <label class="form-check flex">
  1046.                                                                 <input type="radio" name="{{ form.piping_status_07_02.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.piping_status_07_02.vars.data == val.value %}checked{% endif %}/>
  1047.                                                                 {{ val.label | trans }} 
  1048.                                                             </label>
  1049.                                                         {% endfor %}
  1050.                                                         {{ form_widget(form.piping_status_07_02_price) }}
  1051.                                                     </div>
  1052.                                                     {{ form_errors(form.piping_status_07_02) }}
  1053.                                                 </td>
  1054.                                             </tr> 
  1055.                                             {% if (countProductBasic != 0)  %}
  1056.                                             <tr class="content-1">
  1057.                                                 <td><p>室内化粧カバーの<br class="pc" />希望の有無</p></td>
  1058.                                                 <td>
  1059.                                                     <div class="fill v4" style="order: 2;">
  1060.                                                         {% for key,val in form.indoor_cover_07.vars.choices %}
  1061.                                                             <label class="form-check flex">
  1062.                                                                 <input type="radio" name="{{ form.indoor_cover_07.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.indoor_cover_07.vars.data == val.value %}checked{% endif %} />
  1063.                                                                 {{ val.label | trans }} 
  1064.                                                                 {% if val.value == "必要(2m以内)" %}
  1065.                                                                     <p style="padding-left: 2rem;font-size: 0.8em;line-height: 1.3; flex: 1;">※2mを超える場合は追加費用がかかります。</p>
  1066.                                                                 {% endif %}
  1067.                                                                 {% if val.value == "未定" %}
  1068.                                                                     <p style="padding-left: 2rem;font-size: 0.8em;line-height: 1.3; flex: 1;">※化粧カバーが必要になった場合は追加費用がかかります。</p>
  1069.                                                                 {% endif %}
  1070.                                                             </label>
  1071.                                                         {% endfor %}                    
  1072.                                                         {{ form_widget(form.indoor_cover_07_price) }}
  1073.                                                     </div>
  1074.                                                     {{ form_errors(form.indoor_cover_07) }}
  1075.                                                     <img style="margin-left: auto; order: 3;" src="{{ asset('assets/img/contact/') }}item-1.jpg" alt="室内化粧カバー">
  1076.                                                 </td>
  1077.                                             </tr> 
  1078.                                             <tr class="content-1">
  1079.                                                 <td><p>室外化粧カバーの<br class="pc" />希望の有無</p></td>
  1080.                                                 <td>                
  1081.                                                     <div class="fill v4">
  1082.                                                         {% for key,val in form.outdoor_cover.vars.choices %}
  1083.                                                             <label class="form-check flex">
  1084.                                                                 <input type="radio" name="{{ form.outdoor_cover.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.outdoor_cover.vars.data == val.value %}checked{% endif %} />
  1085.                                                                 {{ val.label | trans }} 
  1086.                                                                 {% if val.value == "その他" %}
  1087.                                                                     <p style="padding-left: 2rem;font-size: 0.8em;line-height: 1.3; flex: 1;">※工事当日に必要になった場合、追加費用が発生する場合があります。</p>
  1088.                                                                 {% endif %}
  1089.                                                             </label>
  1090.                                                         {% endfor %}                    
  1091.                                                     </div>
  1092.                                                     {{ form_errors(form.outdoor_cover) }}
  1093.                                                     <img style="margin-left: auto;" src="{{ asset('assets/img/contact/') }}item-2.jpg" alt="室外化粧カバー">
  1094.                                                 </td>
  1095.                                             </tr> 
  1096.                                             <tr class="outdoor_cover_02">
  1097.                                                 <td><p>室外化粧カバーの<br class="pc" />希望の有無</p><small>2段階目</small></td>
  1098.                                                 <td>                
  1099.                                                     <div class="fill v4">
  1100.                                                         {% for key,val in form.outdoor_cover_02.vars.choices %}
  1101.                                                             <label class="form-check" >
  1102.                                                                 <input type="radio" name="{{ form.outdoor_cover_02.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.outdoor_cover_02.vars.data == val.value %}checked{% endif %} />
  1103.                                                                 {{ val.label | trans }} 
  1104.                                                                 {% if val.value == "再使用(交換)同階" %}
  1105.                                                                     <p style="padding-left: 2rem;font-size: 0.8em;line-height: 1.3; flex: 1;">※交換にはすでにスリムダクトが付いている方も含みます。</p>
  1106.                                                                 {% endif %}
  1107.                                                                 {% if val.value == "再使用(交換)異階" %}
  1108.                                                                     <p style="padding-left: 2rem;font-size: 0.8em;line-height: 1.3; flex: 1;">※交換にはすでにスリムダクトが付いている方も含みます。</p>
  1109.                                                                 {% endif %}
  1110.                                                             </label>
  1111.                                                         {% endfor %}                    
  1112.                                                         {{ form_widget(form.outdoor_cover_02_price) }}
  1113.                                                     </div>
  1114.                                                     {{ form_errors(form.outdoor_cover_02) }}
  1115.                                                 </td>
  1116.                                             </tr>
  1117.                                             <tr class="content-1">
  1118.                                                 <td><p>室外機の設置場所(既設場所・希望設置場所)</p></td>
  1119.                                                 <td>                
  1120.                                                     <div class="fill v4">
  1121.                                                         {% for key,val in form.construction_outdoor_07.vars.choices %}
  1122.                                                             <label class="form-check flex">
  1123.                                                                 <input type="radio" name="{{ form.construction_outdoor_07.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.construction_outdoor_07.vars.data == val.value %}checked{% endif %} />
  1124.                                                                 {{ val.label | trans }} 
  1125.                                                                 {% if val.value == "その他" %}
  1126.                                                                     <p style="padding-left: 2rem;font-size: 0.8em;line-height: 1.3; flex: 1;">※工事当日に必要になった場合、追加費用が発生する場合があります。</p>
  1127.                                                                 {% endif %}
  1128.                                                             </label>
  1129.                                                         {% endfor %}
  1130.                                                         {{ form_widget(form.construction_outdoor_07_price) }}
  1131.                                                     </div>
  1132.                                                     {{ form_errors(form.construction_outdoor_07) }}
  1133.                                                 </td>
  1134.                                             </tr>
  1135.                                             {% endif %}
  1136.                                             <tr class="content-1">
  1137.                                                 <td><p>室外機の設置方法(既設方法・希望設置方法)</p></td>
  1138.                                                 <td>
  1139.                                                     <div class="fill v4">
  1140.                                                         {% for key,val in form.setting_install_method.vars.choices %}
  1141.                                                             <label class="form-check">
  1142.                                                                 <input type="radio" name="{{ form.setting_install_method.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.setting_install_method.vars.data == val.value %}checked{% endif %} />
  1143.                                                                 {{ val.label | trans }} 
  1144.                                                             </label>
  1145.                                                         {% endfor %}
  1146.                                                     </div>
  1147.                                                     {{ form_errors(form.setting_install_method) }}
  1148.                                                     <div class="fill v4 construction_method_07_v1" style="margin-left: 2rem; flex-direction: column;">
  1149.                                                         {% for key,val in form.construction_method_07_v1.vars.choices %}
  1150.                                                             <label class="form-check flex">
  1151.                                                                 <input type="radio" name="{{ form.construction_method_07_v1.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.construction_method_07_v1.vars.data == val.value %}checked{% endif %} />
  1152.                                                                 {{ val.label | trans }} 
  1153.                                                                 {% if val.value == "⑧不明(記載)" %}
  1154.                                                                     <p style="padding-left: 2rem;font-size: 0.8em;line-height: 1.3; flex: 1;">※工事当日に必要になった場合、追加費用が発生する場合があります。</p>
  1155.                                                                 {% endif %}
  1156.                                                             </label>
  1157.                                                         {% endfor %}
  1158.                                                         <img style="margin-top: 3rem;" src="{{ asset('assets/img/form-0y/install-option.jpg') }}" alt="">
  1159.                                                         {{ form_widget(form.construction_method_07_v1_price) }}            
  1160.                                                     </div>
  1161.                                                     {{ form_errors(form.construction_method_07_v1) }}
  1162.                                                     <div class="fill v4 construction_method_07_v2" style="margin-left: 2rem; flex-direction: column;">
  1163.                                                         {% for key,val in form.construction_method_07_v2.vars.choices %}
  1164.                                                             <label class="form-check flex">
  1165.                                                                 <input type="radio" name="{{ form.construction_method_07_v2.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.construction_method_07_v2.vars.data == val.value %}checked{% endif %} />
  1166.                                                                 {{ val.label | trans }} 
  1167.                                                                 {% if val.value == "⑧不明(記載)" %}
  1168.                                                                     <p style="padding-left: 2rem;font-size: 0.8em;line-height: 1.3; flex: 1;">※工事当日に必要になった場合、追加費用が発生する場合があります。</p>
  1169.                                                                 {% endif %}
  1170.                                                             </label>
  1171.                                                         {% endfor %}
  1172.                                                         <img style="margin-top: 3rem;" src="{{ asset('assets/img/form-0y/install-option.jpg') }}" alt="">     
  1173.                                                         {{ form_widget(form.construction_method_07_v2_price) }}               
  1174.                                                     </div>
  1175.                                                     {{ form_errors(form.construction_method_07_v2) }}                                                    
  1176.                                                 </td>
  1177.                                             </tr>
  1178.                                             
  1179.                                             <tr>
  1180.                                                 <td><p>ファイル添付</p></td>
  1181.                                                 <td>
  1182.                                                     <div class="fill v6">
  1183.                                                         <div class="group">
  1184.                                                             <p>詳細お見積りに際し、下記の写真を撮影し添付してください。<br>※夜間に撮影する際はフラッシュを使用してください。</p>
  1185.                                                         </div>
  1186.                                                         <div class="group add">
  1187.                                                             <div class="group-content">
  1188.                                                                 <label for=""><p>①室内機設置場所(屋内) <span style="color: #2881c3;">※</span></p></label>
  1189.                                                                 <div class="custom-file">
  1190.                                                                     {% if form.filename_image_1.vars.data != '' %}
  1191.                                                                     {{ form_widget(form.image_1) }}
  1192.                                                                     <label for="contact_image_1">選択してください</label>
  1193.                                                                     <img src="{{ asset(form.filename_image_1.vars.data, 'save_image') }}" style="width: 150px !important;" />
  1194.                                                                     {% else %}
  1195.                                                                         {{ form_widget(form.image_1, {'attr': { 'required': 'required' }}) }}
  1196.                                                                         <label for="contact_image_1">選択してください</label>
  1197.                                                                         <img src="" style="width: 150px !important;" />
  1198.                                                                     {% endif %}
  1199.                                                                     {{ form_errors(form.image_1) }}
  1200.                                                                     {{ form_widget(form.filename_image_1) }}
  1201.                                                                 </div>
  1202.                                                             </div>
  1203.                                                             <div class="image">
  1204.                                                                 <div class="gr">
  1205.                                                                     <img src="{{ asset('assets/img/construction/') }}item-3.jpg" alt="">     
  1206.                                                                     <span>撮影例</span>  
  1207.                                                                 </div>             
  1208.                                                             </div>
  1209.                                                         </div>
  1210.                                                         <div class="group add">
  1211.                                                             <div class="group-content">
  1212.                                                                 <label for=""><p>②室外機・配管・配管穴が分かる全体写真 <span style="color: #2881c3;">※</span></p></label>
  1213.                                                                 <div class="custom-file">
  1214.                                                                     {% if form.filename_image_2.vars.data != '' %}
  1215.                                                                     {{ form_widget(form.image_2) }}
  1216.                                                                     <label for="contact_image_2">選択してください</label>
  1217.                                                                     <img src="{{ asset(form.filename_image_2.vars.data, 'save_image') }}" style="width: 150px !important;" />
  1218.                                                                     {% else %}
  1219.                                                                         {{ form_widget(form.image_2, {'attr': { 'required': 'required' }}) }}
  1220.                                                                         <label for="contact_image_2">選択してください</label>
  1221.                                                                         <img src="" style="width: 150px !important;" />
  1222.                                                                     {% endif %}
  1223.                                                                     {{ form_errors(form.image_2) }}
  1224.                                                                     {{ form_widget(form.filename_image_2) }}
  1225.                                                                 </div>
  1226.                                                             </div>
  1227.                                                             <div class="image">
  1228.                                                                 <div class="gr">
  1229.                                                                     <img src="{{ asset('assets/img/construction/') }}contact-00-attach-02.jpg" alt="">     
  1230.                                                                     <span>撮影例</span>  
  1231.                                                                 </div>             
  1232.                                                             </div>
  1233.                                                         </div>
  1234.                                                         <div class="group add">
  1235.                                                             <div class="group-content">
  1236.                                                                 <label for=""><p>③室外機設置場所<br>(②の写真で室外機設置場所が分かる方は不要)</p></label>
  1237.                                                                 <div class="custom-file">
  1238.                                                                     {% if form.filename_image_3.vars.data != '' %}
  1239.                                                                     {{ form_widget(form.image_3) }}
  1240.                                                                     <label for="contact_image_3">選択してください</label>
  1241.                                                                     <img src="{{ asset(form.filename_image_3.vars.data, 'save_image') }}" style="width: 150px !important;" />
  1242.                                                                     {% else %}
  1243.                                                                         {{ form_widget(form.image_3) }}
  1244.                                                                         <label for="contact_image_3">選択してください</label>
  1245.                                                                         <img src="" style="width: 150px !important;" />
  1246.                                                                     {% endif %}
  1247.                                                                     {{ form_errors(form.image_3) }}
  1248.                                                                     {{ form_widget(form.filename_image_3) }}
  1249.                                                                 </div>
  1250.                                                             </div>
  1251.                                                             <div class="image">
  1252.                                                                 <div class="gr">
  1253.                                                                     <img src="{{ asset('assets/img/construction/') }}item-5-1.jpg" alt="">     
  1254.                                                                     <span>1階撮影例</span>  
  1255.                                                                 </div>
  1256.                                                                 <div class="gr">
  1257.                                                                     <img src="{{ asset('assets/img/construction/') }}item-5-2.jpg" alt="">     
  1258.                                                                     <span>2階撮影例</span>  
  1259.                                                                 </div>                
  1260.                                                             </div>
  1261.                                                         </div>
  1262.                                                     </div>
  1263.                                                 </td>
  1264.                                             </tr>
  1265.                                         </table>
  1266.                                         <table id="tableThree" style="padding: 0;">
  1267.                                             <tr>
  1268.                                                 <td>
  1269.                                                     <p>新居の所在地(必須)</p>
  1270.                                                 </td>
  1271.                                                 <td>
  1272.                                                     <div class="fill v4">
  1273.                                                         {{ form_widget(form.location, {'attr': { 'style': 'width: 120px;' }}) }}
  1274.                                                         {{ form_errors(form.location) }}
  1275.                                                     </div>
  1276.                                                 </td>
  1277.                                             </tr> 
  1278.                                             {# <tr>
  1279.                                                 <td>
  1280.                                                     <p>新居の情報(任意)</p>
  1281.                                                     TODO: 作業中 (nhớ bỏ required)
  1282.                                                 </td>
  1283.                                                 <td>
  1284.                                                     <div class="fill v4">
  1285.                                                         {% for key,val in form.desired_construction_work_02.vars.choices %}
  1286.                                                             <label class="form-check flex">
  1287.                                                                 <input type="radio" name="{{ form.desired_construction_work_02.vars.full_name }}" data-price="{{ val.attr['price'] | default(0) }}" value="{{ val.value }}" {% if form.desired_construction_work_02.vars.data == val.value %}checked{% endif %} />
  1288.                                                                 {{ val.label | trans }} 
  1289.                                                                 {% if val.value == "新居等への引越しのため設置場所の詳細確認不可" %}
  1290.                                                                     <p style="padding-left: 2rem;font-size: 0.8em;line-height: 1.3; flex: 1;">※工事当日に追加費用が発生する場合があります。</p>
  1291.                                                                 {% endif %}
  1292.                                                             </label>
  1293.                                                         {% endfor %}                    
  1294.                                                     </div>
  1295.                                                     {{ form_errors(form.desired_construction_work_02) }}
  1296.                                                 </td>
  1297.                                             </tr>  #}
  1298.                                         </table>
  1299.                                         <div class="result">
  1300.                                             <p>概算合計金額</p>
  1301.                                             <p id="total-price">00,000円</p>
  1302.                                             {{ form_widget(form.construction_base_price_1) }}
  1303.                                             {{ form_widget(form.construction_base_price_2) }}
  1304.                                             {{ form_widget(form.construction_base_price_3) }}
  1305.                                             {{ form_widget(form.construction_total_price) }}
  1306.                                             {{ form_widget(form.construction_discount) }}
  1307.                                         </div>
  1308.                                         <div style="text-align: right;" class="pc">
  1309.                                             「
  1310.                                             {# 本体価格 <span class="product_price"></span>円、 #}
  1311.                                             {# 標準工事 <span class="base_price"></span>円、 #}
  1312.                                             本体価格+標準工事費 <span class="product_base_price"></span>円、
  1313.                                             追加工事 <span class="add_price"></span>円
  1314.                                             」
  1315.                                         </div>
  1316.                                         <div style="text-align: right;" class="sp">
  1317.                                             {# 本体価格 <span class="product_price" style="display: inline-block; width: 100px; text-align: right;"></span>円<br> #}
  1318.                                             {# 標準工事 <span class="base_price" style="display: inline-block; width: 100px; text-align: right;"></span>円<br> #}
  1319.                                             本体価格+標準工事費 <span class="product_base_price" style="display: inline-block; width: 100px; text-align: right;"></span>円<br>
  1320.                                             追加工事 <span class="add_price" style="display: inline-block; width: 100px; text-align: right;"></span>円
  1321.                                         </div> 
  1322.                                     </div>
  1323.                                 </div>                            
  1324.                             </div>
  1325.                             <div class="ec-productRole__actions" style="display: none;">
  1326.                                 {% if form.classcategory_id1 is defined %}
  1327.                                     <div class="ec-select">
  1328.                                         {{ form_row(form.classcategory_id1) }}
  1329.                                         {{ form_errors(form.classcategory_id1) }}
  1330.                                     </div>
  1331.                                     {% if form.classcategory_id2 is defined %}
  1332.                                         <div class="ec-select">
  1333.                                             {{ form_row(form.classcategory_id2) }}
  1334.                                             {{ form_errors(form.classcategory_id2) }}
  1335.                                         </div>
  1336.                                     {% endif %}
  1337.                                 {% endif %}
  1338.                                 <div class="ec-numberInput">
  1339.                                     {{ form_widget(form.product_id) }}
  1340.                                     {{ form_widget(form.ProductClass) }}
  1341.                                     {{ form_widget(form.quantity) }}
  1342.                                     {{ form_errors(form.quantity) }}
  1343.                                 </div>
  1344.                             </div>
  1345.                             
  1346.                             <div class="ec-product-detail__group">
  1347.                                 <div class="list-btn">
  1348.                                     <a href="{{ url('cart') }}" class="btn btn-sd btn-back" style="display: block;"><span>戻る</span></a>
  1349.                                     <button type="submit" class="btn btn-sd add-cart cart-express" id="btn-confirm">
  1350.                                         <span>{{ '購入にすすむ'|trans }}</span>
  1351.                                     </button>
  1352.                                 </div>
  1353.                             </div>
  1354.                         </form>
  1355.                     </div>
  1356.                 </div>
  1357.             </div>
  1358.         </div>
  1359.     </div>
  1360. {% endblock %}