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