var/cache/dev/twig/13/136ef3500474118ed099c63d3811eea92c90915ded1ad97618c62bf37227ae68.php line 16

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @user_data/loan.twig */
  14. class __TwigTemplate_2b2af53d187aa150283f28fd7f1f43169d90223fb21d69767771b12effe110de extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'stylesheet' => [$this'block_stylesheet'],
  24.             'javascript' => [$this'block_javascript'],
  25.             'main' => [$this'block_main'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "default_frame.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@user_data/loan.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@user_data/loan.twig"));
  40.         $this->parent $this->loadTemplate("default_frame.twig""@user_data/loan.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 3
  48.     public function block_stylesheet($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  55.         // line 4
  56.         echo "    <style>
  57.         .ec-loan_sec.v3 .list-product{
  58.             flex-wrap: wrap;
  59.             gap: 3rem;
  60.             justify-content: flex-start;
  61.         }
  62.         .ec-loan_sec.v3 .list-product .product .costs {
  63.             justify-content: flex-start;
  64.             gap: 5rem;
  65.         }
  66.         @media screen and (min-width: 768px) {
  67.             .ec-loan_sec.v3 .list-product .product{
  68.                 width: calc((100% - 6rem) / 3);
  69.                 max-width: 100%;
  70.             }
  71.         }
  72.     </style>
  73. ";
  74.         
  75.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  76.         
  77.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  78.     }
  79.     // line 23
  80.     public function block_javascript($context, array $blocks = [])
  81.     {
  82.         $macros $this->macros;
  83.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  84.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  85.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  86.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  87.         // line 24
  88.         echo "    <script>
  89.         eccube.productsClassCategories = {
  90.             ";
  91.         // line 26
  92.         $context['_parent'] = $context;
  93.         $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'26$this->source); })()));
  94.         $context['loop'] = [
  95.           'parent' => $context['_parent'],
  96.           'index0' => 0,
  97.           'index'  => 1,
  98.           'first'  => true,
  99.         ];
  100.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  101.             $length count($context['_seq']);
  102.             $context['loop']['revindex0'] = $length 1;
  103.             $context['loop']['revindex'] = $length;
  104.             $context['loop']['length'] = $length;
  105.             $context['loop']['last'] = === $length;
  106.         }
  107.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  108.             // line 27
  109.             echo "            \"";
  110.             echo twig_escape_filter($this->envtwig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse27), "js"), "html"nulltrue);
  111.             echo "\": ";
  112.             echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($context["Product"]);
  113.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse27) == false)) {
  114.                 echo ", ";
  115.             }
  116.             // line 28
  117.             echo "            ";
  118.             ++$context['loop']['index0'];
  119.             ++$context['loop']['index'];
  120.             $context['loop']['first'] = false;
  121.             if (isset($context['loop']['length'])) {
  122.                 --$context['loop']['revindex0'];
  123.                 --$context['loop']['revindex'];
  124.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  125.             }
  126.         }
  127.         $_parent $context['_parent'];
  128.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  129.         $context array_intersect_key($context$_parent) + $_parent;
  130.         // line 29
  131.         echo "        };
  132.         \$(function() {
  133.             // 検索条件を追加
  134.             \$('.btn-condition').click(function() {
  135.                 \$('#active_idx').val(\$(this).index());
  136.             });
  137.             \$('.form-check-input').change(function() {
  138.                 \$(\"#form1\").submit();
  139.             });
  140.             // 表示件数を変更
  141.             \$('.disp-number').change(function() {
  142.                 var dispNumber = \$(this).val();
  143.                 \$('#disp_number').val(dispNumber);
  144.                 \$('#pageno').val(1);
  145.                 \$(\"#form1\").submit();
  146.             });
  147.             // 並び順を変更
  148.             \$('.order-by').change(function() {
  149.                 var orderBy = \$(this).val();
  150.                 \$('#orderby').val(orderBy);
  151.                 \$('#pageno').val(1);
  152.                 \$(\"#form1\").submit();
  153.             });
  154.             \$('.add-cart').on('click', function(e) {
  155.                 var \$form = \$(this).parents('li').find('form');
  156.                 // TODO: test 修正要
  157.                 // 規格1フォームの必須チェック
  158.                 var \$form_select = \$form.parent().find('.form-select');
  159.                 if (\$form_select.val() == '__unselected' || \$form_select.val() == '') {
  160.                     \$form_select[0].setCustomValidity('";
  161.         // line 63
  162.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("項目が選択されていません"), "html"nulltrue);
  163.         echo "');
  164.                     setTimeout(function() {
  165.                         loadingOverlay('hide');
  166.                     }, 100);
  167.                     return true;
  168.                 } else {
  169.                     \$form_select[0].setCustomValidity('');
  170.                 }
  171.                 // 個数フォームのチェック
  172.                 var \$quantity = \$form.parent().find('.quantity');
  173.                 if (\$quantity.val() < 1) {
  174.                     \$quantity[0].setCustomValidity('";
  175.         // line 75
  176.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html"nulltrue);
  177.         echo "');
  178.                     setTimeout(function() {
  179.                         loadingOverlay('hide');
  180.                     }, 100);
  181.                     return true;
  182.                 } else {
  183.                     \$quantity[0].setCustomValidity('');
  184.                 }
  185.                 e.preventDefault();
  186.                 \$.ajax({
  187.                     url: \$form.attr('action'),
  188.                     type: \$form.attr('method'),
  189.                     data: \$form.serialize(),
  190.                     dataType: 'json',
  191.                     beforeSend: function(xhr, settings) {
  192.                         // Buttonを無効にする
  193.                         \$('.add-cart').prop('disabled', true);
  194.                     }
  195.                 }).done(function(data) {
  196.                     // レスポンス内のメッセージをalertで表示
  197.                     \$.each(data.messages, function() {
  198.                         \$('#ec-modal-header').text(this);
  199.                     });
  200.                     \$('.ec-modal').show()
  201.                     // カートブロックを更新する
  202.                     \$.ajax({
  203.                         url: '";
  204.         // line 104
  205.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  206.         echo "',
  207.                         type: 'GET',
  208.                         dataType: 'html'
  209.                     }).done(function(html) {
  210.                         \$('.ec-headerRole__cart').html(html);
  211.                     });
  212.                 }).fail(function(data) {
  213.                     alert('";
  214.         // line 111
  215.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  216.         echo "');
  217.                 }).always(function(data) {
  218.                     // Buttonを有効にする
  219.                     \$('.add-cart').prop('disabled', false);
  220.                 });
  221.             });
  222.             \$('.favorite').click(function(event) {
  223.                 if (\$(this).attr('disabled') != 'disabled') {
  224.                     \$(this).closest('li.product').find('.list-add-favorite').submit();
  225.                 }
  226.             });
  227.         });
  228.         \$('.ec-modal-wrap').on('click', function(e) {
  229.             // モーダル内の処理は外側にバブリングさせない
  230.             e.stopPropagation();
  231.         });
  232.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  233.             \$('.ec-modal').hide()
  234.         });
  235.     </script>
  236.     <script>
  237.         \$(document).ready(function(){
  238.             //チェックボックス処理
  239.             \$(\".left .list-btn .btn-condition\").eq(\$('#active_idx').val()).addClass('active');
  240.             \$(\".right .item\").eq(\$('#active_idx').val()).addClass('active');
  241.             \$(\".right .item\").each(function(index, el) {
  242.                 var chk_cnt = \$(this).find(\"input[type='checkbox']:checked\").length;
  243.                 \$('.btn-condition').eq(index).find('.chk-cnt').text(chk_cnt);
  244.                 if (chk_cnt > 0) {
  245.                     \$('.btn-condition').eq(index).find('.chk-cnt').show();
  246.                 }
  247.                 else {
  248.                     \$('.btn-condition').eq(index).find('.chk-cnt').hide();
  249.                 }
  250.             });
  251.             \$(\".left .list-btn .btn-condition\").click(function(e){
  252.                 if (!\$(this).hasClass(\"active\")) {
  253.                     var tabNum = \$(this).index();
  254.                     var nthChild = tabNum+1;
  255.                     \$(\".left .list-btn .btn-condition.active\").removeClass(\"active\");
  256.                     \$(this).addClass(\"active\");
  257.                     \$(\".right .item.active\").removeClass(\"active\");
  258.                     \$(\".right .item:nth-child(\"+nthChild+\")\").addClass(\"active\");
  259.                 }
  260.             });
  261.             \$(\".reset\").click(function(e){
  262.                 \$(\".item input[type='checkbox']:checked\").prop('checked', false);
  263.                 \$(\"#form1\").submit();
  264.             });
  265.         });
  266.     </script>
  267. ";
  268.         
  269.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  270.         
  271.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  272.     }
  273.     // line 171
  274.     public function block_main($context, array $blocks = [])
  275.     {
  276.         $macros $this->macros;
  277.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  278.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  279.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  280.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  281.         // line 172
  282.         echo "
  283. <div class=\"ec-loan-page\">
  284.     <div class=\"ec-banner\">
  285.         <div class=\"ec-banner__inner\">
  286.             <div class=\"inner\">
  287.                 <h2>
  288.                     エアココ自社ローンについて
  289.                 </h2>
  290.             </div>
  291.         </div>
  292.         <div class=\"ec-breadcrumb\">
  293.             <ul class=\"ec-breadcrumb__menu\">
  294.                 <li class=\"ec-breadcrumb__item\"><a href=\"";
  295.         // line 184
  296.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  297.         echo "\">TOP</a></li>
  298.                 <li class=\"ec-breadcrumb__item\"><span>></span></li>
  299.                 <li class=\"ec-breadcrumb__item\"><p>エアココ自社ローンについて</p></li>
  300.             </ul>
  301.         </div>
  302.     </div>
  303.     <div class=\"ec-loan-main\">
  304.         <div class=\"ec-loan__inner\">
  305.             <div class=\"inner\">
  306.                 <div class=\"ec-loan_sec\">
  307.                     <div class=\"group-top\">
  308.                         <div class=\"title\">
  309.                             <p>こんなことでお困りではありませんか?</p>
  310.                         </div>
  311.                         <div class=\"image\">
  312.                             <img src=\"";
  313.         // line 199
  314.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/loan/img.png"), "html"nulltrue);
  315.         echo "\" alt=\"\">
  316.                         </div>
  317.                     </div>
  318.                 </div>
  319.                 <div class=\"ec-loan_sec v2\">
  320.                     <div class=\"title\">
  321.                         <p>でも安心してください!<br />
  322.                             エアココ自社ローンなら大丈夫!</p>
  323.                     </div>
  324.                     <div class=\"text\">
  325.                         <p>エアコンを購入したいのにローン審査が通らなかったというお話を聞きます。エアココでは一般のファイナンスで審査が通らなかったお客様も安心してエアコンを設置できるようにエアココローン(自社ローン)のサービスを始めました。ローンの審査に不安がある方は、まず審査をしてみてください。</p>
  326.                     </div>
  327.                     <div class=\"group\">
  328.                         <div class=\"title sm\">
  329.                             <p>自社ローンの特徴</p>
  330.                         </div>
  331.                         <div class=\"list\">
  332.                             <div class=\"item\">
  333.                                 <div class=\"num\">
  334.                                     <p>1</p>
  335.                                 </div>
  336.                                 <div class=\"text\">
  337.                                     <p>金融機関や<br />
  338.                                         ファイナンス会社の</p>
  339.                                 </div>
  340.                                 <div class=\"title\">
  341.                                     <p>審査は不要</p>
  342.                                 </div>
  343.                                 <div class=\"text\">
  344.                                     <p>(エアココの審査のみ)</p>
  345.                                 </div>
  346.                             </div>
  347.                             <div class=\"item\">
  348.                                 <div class=\"num\">
  349.                                     <p>2</p>
  350.                                 </div>
  351.                                 <div class=\"text\">
  352.                                     <p>過去の</p>
  353.                                 </div>
  354.                                 <div class=\"title\">
  355.                                     <p>個人情報の<br />
  356.                                         提出不要</p>
  357.                                 </div>
  358.                             </div>
  359.                             <div class=\"item\">
  360.                                 <div class=\"num\">
  361.                                     <p>3</p>
  362.                                 </div>
  363.                                 <div class=\"title\">
  364.                                     <p>24回払い</p>
  365.                                 </div>
  366.                             </div>
  367.                             <div class=\"item\">
  368.                                 <div class=\"num\">
  369.                                     <p>4</p>
  370.                                 </div>
  371.                                 <div class=\"title\">
  372.                                     <p>金利<span>0</span>%</p>
  373.                                 </div>
  374.                             </div>
  375.                         </div>
  376.                     </div>
  377.                     <div class=\"list-btn\">
  378.                         <a href=\"";
  379.         // line 262
  380.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("loan_examination");
  381.         echo "\" class=\"btn btn-sd\">
  382.                             エアココ自社ローンのお申し込みはこちら
  383.                         </a>
  384.                     </div>
  385.                 </div>
  386.                 <div class=\"ec-loan_sec v3 ec-product__group\">
  387.                     <div class=\"title\">
  388.                         <p>エアココ自社ローン対象商品</p>
  389.                     </div>
  390.                     <ul class=\"list-product\">
  391.                         ";
  392.         // line 272
  393.         if ((twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'272$this->source); })()), "totalItemCount", [], "any"falsefalsefalse272) > 0)) {
  394.             // line 273
  395.             echo "                            ";
  396.             $context['_parent'] = $context;
  397.             $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'273$this->source); })()));
  398.             $context['loop'] = [
  399.               'parent' => $context['_parent'],
  400.               'index0' => 0,
  401.               'index'  => 1,
  402.               'first'  => true,
  403.             ];
  404.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  405.                 $length count($context['_seq']);
  406.                 $context['loop']['revindex0'] = $length 1;
  407.                 $context['loop']['revindex'] = $length;
  408.                 $context['loop']['length'] = $length;
  409.                 $context['loop']['last'] = === $length;
  410.             }
  411.             foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  412.                 // line 274
  413.                 echo "                                <li class=\"product\">
  414.                                     <a href=\"";
  415.                 // line 275
  416.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse275)]), "html"nulltrue);
  417.                 echo "\" class=\"image\">
  418.                                         <img src=\"";
  419.                 // line 276
  420.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(twig_get_attribute($this->env$this->source$context["Product"], "main_list_image", [], "any"falsefalsefalse276)), "save_image"), "html"nulltrue);
  421.                 echo "\" alt=\"";
  422.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse276), "html"nulltrue);
  423.                 echo "\" ";
  424.                 if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse276) > 5)) {
  425.                     echo " loading=\"lazy\"";
  426.                 }
  427.                 echo ">
  428.                                     </a>
  429.                                     <a href=\"";
  430.                 // line 278
  431.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse278)]), "html"nulltrue);
  432.                 echo "\" class=\"name\">
  433.                                         <p>";
  434.                 // line 279
  435.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse279), "html"nulltrue);
  436.                 echo "</p>
  437.                                     </a>
  438.                                     <div class=\"info\">
  439.                                         <div class=\"costs\">
  440.                                             <div class=\"cost\">
  441.                                                 ";
  442.                 // line 284
  443.                 if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsefalse284)) {
  444.                     // line 285
  445.                     echo "                                                    ";
  446.                     if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsefalse285) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsefalse285))) {
  447.                         // line 286
  448.                         echo "                                                        <p>";
  449.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse286)), "html"nulltrue);
  450.                         echo "</p>
  451.                                                         <span>(税込)</span>
  452.                                                     ";
  453.                     } else {
  454.                         // line 289
  455.                         echo "                                                        <p>";
  456.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse289)), "html"nulltrue);
  457.                         echo " ~ ";
  458.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsefalse289)), "html"nulltrue);
  459.                         echo "</p>
  460.                                                         <span>(税込)</span>
  461.                                                     ";
  462.                     }
  463.                     // line 292
  464.                     echo "                                                ";
  465.                 } else {
  466.                     // line 293
  467.                     echo "                                                    <p>";
  468.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse293)), "html"nulltrue);
  469.                     echo "</p>
  470.                                                     <span>(税込)</span>
  471.                                                 ";
  472.                 }
  473.                 // line 296
  474.                 echo "                                            </div>
  475.                                             ";
  476.                 // line 298
  477.                 if (twig_get_attribute($this->env$this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo"$context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.'298$this->source); })()), "option_favorite_product", [], "any"falsefalsefalse298)) {
  478.                     // line 299
  479.                     echo "                                                ";
  480.                     $context["is_favorite"] = false;
  481.                     // line 300
  482.                     echo "                                                ";
  483.                     if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  484.                         // line 301
  485.                         echo "                                                    ";
  486.                         $context["is_favorite"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("\\Eccube\\Entity\\CustomerFavoriteProduct"), "isFavorite", [=> (isset($context["Customer"]) || array_key_exists("Customer"$context) ? $context["Customer"] : (function () { throw new RuntimeError('Variable "Customer" does not exist.'301$this->source); })()), => $context["Product"]], "method"falsefalsefalse301);
  487.                         // line 302
  488.                         echo "                                                ";
  489.                     }
  490.                     // line 303
  491.                     echo "                                                ";
  492.                     if (((isset($context["is_favorite"]) || array_key_exists("is_favorite"$context) ? $context["is_favorite"] : (function () { throw new RuntimeError('Variable "is_favorite" does not exist.'303$this->source); })()) == false)) {
  493.                         // line 304
  494.                         echo "                                                    <div class=\"group\" style=\"margin-top: 0;\">
  495.                                                         <div class=\"list-btn\" style=\"margin-top: 0;\">
  496.                                                             <a href=\"javascript:void(0);\" class=\"favorite\">
  497.                                                                 <span></span> 
  498.                                                             </a>
  499.                                                         </div>
  500.                                                     </div>
  501.                                                 ";
  502.                     } else {
  503.                         // line 311
  504.                         echo "                                                            
  505.                                                     <div class=\"group\" style=\"margin-top: 0;\">
  506.                                                         <div class=\"list-btn\" style=\"margin-top: 0;\">
  507.                                                             <a href=\"javascript:void(0);\" class=\"favorite active\" disabled=\"disabled\">
  508.                                                                 <span></span> 
  509.                                                             </a>
  510.                                                         </div>
  511.                                                     </div>
  512.                                                 ";
  513.                     }
  514.                     // line 320
  515.                     echo "                                            ";
  516.                 }
  517.                 // line 321
  518.                 echo "
  519.                                             ";
  520.                 // line 322
  521.                 if (twig_get_attribute($this->env$this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo"$context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.'322$this->source); })()), "option_favorite_product", [], "any"falsefalsefalse322)) {
  522.                     // line 323
  523.                     echo "                                                <div style=\"display: none;\">
  524.                                                     <form class=\"list-add-favorite\" action=\"";
  525.                     // line 324
  526.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_favorite", ["id" => twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse324)]), "html"nulltrue);
  527.                     echo "\" method=\"post\">
  528.                                                         <div class=\"ec-productRole__btn\">
  529.                                                             <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\">
  530.                                                                 ";
  531.                     // line 327
  532.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お気に入りに追加"), "html"nulltrue);
  533.                     echo "
  534.                                                             </button>
  535.                                                         </div>
  536.                                                     </form>
  537.                                                 </div>
  538.                                             ";
  539.                 }
  540.                 // line 333
  541.                 echo "                                        </div>
  542.                                         <div class=\"cate\">
  543.                                             ";
  544.                 // line 335
  545.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["Product"], "ProductCategories", [], "any"falsefalsefalse335))) {
  546.                     // line 336
  547.                     echo "                                                ";
  548.                     $context['_parent'] = $context;
  549.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Product"], "ProductCategories", [], "any"falsefalsefalse336));
  550.                     foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
  551.                         // line 337
  552.                         echo "                                                    ";
  553.                         if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse337), "Parent", [], "any"falsefalsefalse337))) {
  554.                             // line 338
  555.                             echo "                                                        ";
  556.                             $context["parentCat"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse338), "Parent", [], "any"falsefalsefalse338);
  557.                             // line 339
  558.                             echo "                                                        ";
  559.                             if ((twig_get_attribute($this->env$this->source, (isset($context["parentCat"]) || array_key_exists("parentCat"$context) ? $context["parentCat"] : (function () { throw new RuntimeError('Variable "parentCat" does not exist.'339$this->source); })()), "id", [], "any"falsefalsefalse339) == 20)) {
  560.                                 // line 340
  561.                                 echo "                                                            <span>";
  562.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse340), "name", [], "any"falsefalsefalse340), "html"nulltrue);
  563.                                 echo "</span>
  564.                                                         ";
  565.                             }
  566.                             // line 342
  567.                             echo "                                                    ";
  568.                         }
  569.                         // line 343
  570.                         echo "                                                ";
  571.                     }
  572.                     $_parent $context['_parent'];
  573.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
  574.                     $context array_intersect_key($context$_parent) + $_parent;
  575.                     // line 344
  576.                     echo "                                            ";
  577.                 }
  578.                 // line 345
  579.                 echo "                                            ";
  580.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["Product"], "ProductCategories", [], "any"falsefalsefalse345))) {
  581.                     // line 346
  582.                     echo "                                                ";
  583.                     $context['_parent'] = $context;
  584.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Product"], "ProductCategories", [], "any"falsefalsefalse346));
  585.                     foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
  586.                         // line 347
  587.                         echo "                                                    ";
  588.                         if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse347), "Parent", [], "any"falsefalsefalse347))) {
  589.                             // line 348
  590.                             echo "                                                        ";
  591.                             $context["parentCat"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse348), "Parent", [], "any"falsefalsefalse348);
  592.                             // line 349
  593.                             echo "                                                        ";
  594.                             if ((twig_get_attribute($this->env$this->source, (isset($context["parentCat"]) || array_key_exists("parentCat"$context) ? $context["parentCat"] : (function () { throw new RuntimeError('Variable "parentCat" does not exist.'349$this->source); })()), "id", [], "any"falsefalsefalse349) == 19)) {
  595.                                 // line 350
  596.                                 echo "                                                            <span>";
  597.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse350), "name", [], "any"falsefalsefalse350), "html"nulltrue);
  598.                                 echo "</span>
  599.                                                         ";
  600.                             }
  601.                             // line 352
  602.                             echo "                                                    ";
  603.                         }
  604.                         // line 353
  605.                         echo "                                                ";
  606.                     }
  607.                     $_parent $context['_parent'];
  608.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
  609.                     $context array_intersect_key($context$_parent) + $_parent;
  610.                     // line 354
  611.                     echo "                                            ";
  612.                 }
  613.                 // line 355
  614.                 echo "                                        </div>
  615.                                         ";
  616.                 // line 356
  617.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["Product"], "code_min", [], "any"falsefalsefalse356))) {
  618.                     // line 357
  619.                     echo "                                            <div class=\"des\">
  620.                                                 <p>品番 ";
  621.                     // line 358
  622.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "code_min", [], "any"falsefalsefalse358), "html"nulltrue);
  623.                     if ((twig_get_attribute($this->env$this->source$context["Product"], "code_min", [], "any"falsefalsefalse358) != twig_get_attribute($this->env$this->source$context["Product"], "code_max", [], "any"falsefalsefalse358))) {
  624.                         echo " ~ ";
  625.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "code_max", [], "any"falsefalsefalse358), "html"nulltrue);
  626.                     }
  627.                     echo "</p>
  628.                                             </div>
  629.                                         ";
  630.                 }
  631.                 // line 360
  632.                 echo "                                        
  633.                                     </div>
  634.                                 </li>
  635.                             ";
  636.                 ++$context['loop']['index0'];
  637.                 ++$context['loop']['index'];
  638.                 $context['loop']['first'] = false;
  639.                 if (isset($context['loop']['length'])) {
  640.                     --$context['loop']['revindex0'];
  641.                     --$context['loop']['revindex'];
  642.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  643.                 }
  644.             }
  645.             $_parent $context['_parent'];
  646.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  647.             $context array_intersect_key($context$_parent) + $_parent;
  648.             // line 364
  649.             echo "                        ";
  650.         }
  651.         // line 365
  652.         echo "                    </ul>
  653.                 </div>
  654.                 
  655.             </div>
  656.             <div class=\"ec-loan_sec v4\">
  657.                 <div class=\"inner\">
  658.                     <div class=\"title\">
  659.                         <p>手続きの流れ</p>
  660.                     </div>
  661.                     <div class=\"text\">
  662.                         <p>審査フォームに必要事項を記載していただいて送信していただければ、最短で翌日にメールでご回答させていただきます。その後、エアココローン対象商品からエアコンを選んでいただき、設置工事が必要な方は設置工事費も含めてご契約をさせていただきます。</p>
  663.                     </div>
  664.                     <div class=\"list-item\">
  665.                         <div class=\"item\">
  666.                             <div class=\"num\">
  667.                                 <p>STEP</p>
  668.                                 <span>1</span>
  669.                             </div>
  670.                             <div class=\"image\">
  671.                                 <img src=\"";
  672.         // line 384
  673.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/loan"), "html"nulltrue);
  674.         echo "/step-1.png\" alt=\"\">
  675.                             </div>
  676.                             <div class=\"text-item\">
  677.                                 <p>審査フォーム送信</p>
  678.                             </div>
  679.                         </div>
  680.                         <div class=\"arr\">
  681.                             <img src=\"";
  682.         // line 391
  683.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/tel_service"), "html"nulltrue);
  684.         echo "/double_arrow.png\" alt=\"\">
  685.                         </div>
  686.                         <div class=\"item\">
  687.                             <div class=\"num\">
  688.                                 <p>STEP</p>
  689.                                 <span>2</span>
  690.                             </div>
  691.                             <div class=\"image\">
  692.                                 <img src=\"";
  693.         // line 399
  694.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/loan"), "html"nulltrue);
  695.         echo "/step-2.png\" alt=\"\">
  696.                             </div>
  697.                             <div class=\"text-item\">
  698.                                 <p>審査結果のご連絡</p>
  699.                             </div>
  700.                         </div>
  701.                         <div class=\"arr\">
  702.                             <img src=\"";
  703.         // line 406
  704.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/tel_service"), "html"nulltrue);
  705.         echo "/double_arrow.png\" alt=\"\">
  706.                         </div>
  707.                         <div class=\"item\">
  708.                             <div class=\"num\">
  709.                                 <p>STEP</p>
  710.                                 <span>3</span>
  711.                             </div>
  712.                             <div class=\"image\">
  713.                                 <img src=\"";
  714.         // line 414
  715.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/loan"), "html"nulltrue);
  716.         echo "/step-3.png\" alt=\"\">
  717.                             </div>
  718.                             <div class=\"text-item\">
  719.                                 <p>商品・工事費の算出</p>
  720.                             </div>
  721.                         </div>
  722.                         <div class=\"arr\">
  723.                             <img src=\"";
  724.         // line 421
  725.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/tel_service"), "html"nulltrue);
  726.         echo "/double_arrow.png\" alt=\"\">
  727.                         </div>
  728.                         <div class=\"item\">
  729.                             <div class=\"num\">
  730.                                 <p>STEP</p>
  731.                                 <span>4</span>
  732.                             </div>
  733.                             <div class=\"image\">
  734.                                 <img src=\"";
  735.         // line 429
  736.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/loan"), "html"nulltrue);
  737.         echo "/step-4.png\" alt=\"\">
  738.                             </div>
  739.                             <div class=\"text-item\">
  740.                                 <p>ご契約・ご購入</p>
  741.                             </div>
  742.                         </div>
  743.                     </div>
  744.                     <div class=\"list-btn\">
  745.                         <a href=\"";
  746.         // line 437
  747.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("loan_examination");
  748.         echo "\" class=\"btn btn-sd\">
  749.                             エアココ自社ローンのお申し込みはこちら
  750.                         </a>
  751.                     </div>
  752.                 </div>
  753.             </div>
  754.         </div>
  755.     </div>
  756. </div>
  757. ";
  758.         
  759.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  760.         
  761.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  762.     }
  763.     public function getTemplateName()
  764.     {
  765.         return "@user_data/loan.twig";
  766.     }
  767.     public function isTraitable()
  768.     {
  769.         return false;
  770.     }
  771.     public function getDebugInfo()
  772.     {
  773.         return array (  788 => 437,  777 => 429,  766 => 421,  756 => 414,  745 => 406,  735 => 399,  724 => 391,  714 => 384,  693 => 365,  690 => 364,  673 => 360,  663 => 358,  660 => 357,  658 => 356,  655 => 355,  652 => 354,  646 => 353,  643 => 352,  637 => 350,  634 => 349,  631 => 348,  628 => 347,  623 => 346,  620 => 345,  617 => 344,  611 => 343,  608 => 342,  602 => 340,  599 => 339,  596 => 338,  593 => 337,  588 => 336,  586 => 335,  582 => 333,  573 => 327,  567 => 324,  564 => 323,  562 => 322,  559 => 321,  556 => 320,  545 => 311,  535 => 304,  532 => 303,  529 => 302,  526 => 301,  523 => 300,  520 => 299,  518 => 298,  514 => 296,  507 => 293,  504 => 292,  495 => 289,  488 => 286,  485 => 285,  483 => 284,  475 => 279,  471 => 278,  460 => 276,  456 => 275,  453 => 274,  435 => 273,  433 => 272,  420 => 262,  354 => 199,  336 => 184,  322 => 172,  312 => 171,  243 => 111,  233 => 104,  201 => 75,  186 => 63,  150 => 29,  136 => 28,  128 => 27,  111 => 26,  107 => 24,  97 => 23,  70 => 4,  60 => 3,  37 => 1,);
  774.     }
  775.     public function getSourceContext()
  776.     {
  777.         return new Source("{% extends 'default_frame.twig' %}
  778. {% block stylesheet %}
  779.     <style>
  780.         .ec-loan_sec.v3 .list-product{
  781.             flex-wrap: wrap;
  782.             gap: 3rem;
  783.             justify-content: flex-start;
  784.         }
  785.         .ec-loan_sec.v3 .list-product .product .costs {
  786.             justify-content: flex-start;
  787.             gap: 5rem;
  788.         }
  789.         @media screen and (min-width: 768px) {
  790.             .ec-loan_sec.v3 .list-product .product{
  791.                 width: calc((100% - 6rem) / 3);
  792.                 max-width: 100%;
  793.             }
  794.         }
  795.     </style>
  796. {% endblock %}
  797. {% block javascript %}
  798.     <script>
  799.         eccube.productsClassCategories = {
  800.             {% for Product in pagination %}
  801.             \"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
  802.             {% endfor %}
  803.         };
  804.         \$(function() {
  805.             // 検索条件を追加
  806.             \$('.btn-condition').click(function() {
  807.                 \$('#active_idx').val(\$(this).index());
  808.             });
  809.             \$('.form-check-input').change(function() {
  810.                 \$(\"#form1\").submit();
  811.             });
  812.             // 表示件数を変更
  813.             \$('.disp-number').change(function() {
  814.                 var dispNumber = \$(this).val();
  815.                 \$('#disp_number').val(dispNumber);
  816.                 \$('#pageno').val(1);
  817.                 \$(\"#form1\").submit();
  818.             });
  819.             // 並び順を変更
  820.             \$('.order-by').change(function() {
  821.                 var orderBy = \$(this).val();
  822.                 \$('#orderby').val(orderBy);
  823.                 \$('#pageno').val(1);
  824.                 \$(\"#form1\").submit();
  825.             });
  826.             \$('.add-cart').on('click', function(e) {
  827.                 var \$form = \$(this).parents('li').find('form');
  828.                 // TODO: test 修正要
  829.                 // 規格1フォームの必須チェック
  830.                 var \$form_select = \$form.parent().find('.form-select');
  831.                 if (\$form_select.val() == '__unselected' || \$form_select.val() == '') {
  832.                     \$form_select[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
  833.                     setTimeout(function() {
  834.                         loadingOverlay('hide');
  835.                     }, 100);
  836.                     return true;
  837.                 } else {
  838.                     \$form_select[0].setCustomValidity('');
  839.                 }
  840.                 // 個数フォームのチェック
  841.                 var \$quantity = \$form.parent().find('.quantity');
  842.                 if (\$quantity.val() < 1) {
  843.                     \$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  844.                     setTimeout(function() {
  845.                         loadingOverlay('hide');
  846.                     }, 100);
  847.                     return true;
  848.                 } else {
  849.                     \$quantity[0].setCustomValidity('');
  850.                 }
  851.                 e.preventDefault();
  852.                 \$.ajax({
  853.                     url: \$form.attr('action'),
  854.                     type: \$form.attr('method'),
  855.                     data: \$form.serialize(),
  856.                     dataType: 'json',
  857.                     beforeSend: function(xhr, settings) {
  858.                         // Buttonを無効にする
  859.                         \$('.add-cart').prop('disabled', true);
  860.                     }
  861.                 }).done(function(data) {
  862.                     // レスポンス内のメッセージをalertで表示
  863.                     \$.each(data.messages, function() {
  864.                         \$('#ec-modal-header').text(this);
  865.                     });
  866.                     \$('.ec-modal').show()
  867.                     // カートブロックを更新する
  868.                     \$.ajax({
  869.                         url: '{{ url('block_cart') }}',
  870.                         type: 'GET',
  871.                         dataType: 'html'
  872.                     }).done(function(html) {
  873.                         \$('.ec-headerRole__cart').html(html);
  874.                     });
  875.                 }).fail(function(data) {
  876.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  877.                 }).always(function(data) {
  878.                     // Buttonを有効にする
  879.                     \$('.add-cart').prop('disabled', false);
  880.                 });
  881.             });
  882.             \$('.favorite').click(function(event) {
  883.                 if (\$(this).attr('disabled') != 'disabled') {
  884.                     \$(this).closest('li.product').find('.list-add-favorite').submit();
  885.                 }
  886.             });
  887.         });
  888.         \$('.ec-modal-wrap').on('click', function(e) {
  889.             // モーダル内の処理は外側にバブリングさせない
  890.             e.stopPropagation();
  891.         });
  892.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  893.             \$('.ec-modal').hide()
  894.         });
  895.     </script>
  896.     <script>
  897.         \$(document).ready(function(){
  898.             //チェックボックス処理
  899.             \$(\".left .list-btn .btn-condition\").eq(\$('#active_idx').val()).addClass('active');
  900.             \$(\".right .item\").eq(\$('#active_idx').val()).addClass('active');
  901.             \$(\".right .item\").each(function(index, el) {
  902.                 var chk_cnt = \$(this).find(\"input[type='checkbox']:checked\").length;
  903.                 \$('.btn-condition').eq(index).find('.chk-cnt').text(chk_cnt);
  904.                 if (chk_cnt > 0) {
  905.                     \$('.btn-condition').eq(index).find('.chk-cnt').show();
  906.                 }
  907.                 else {
  908.                     \$('.btn-condition').eq(index).find('.chk-cnt').hide();
  909.                 }
  910.             });
  911.             \$(\".left .list-btn .btn-condition\").click(function(e){
  912.                 if (!\$(this).hasClass(\"active\")) {
  913.                     var tabNum = \$(this).index();
  914.                     var nthChild = tabNum+1;
  915.                     \$(\".left .list-btn .btn-condition.active\").removeClass(\"active\");
  916.                     \$(this).addClass(\"active\");
  917.                     \$(\".right .item.active\").removeClass(\"active\");
  918.                     \$(\".right .item:nth-child(\"+nthChild+\")\").addClass(\"active\");
  919.                 }
  920.             });
  921.             \$(\".reset\").click(function(e){
  922.                 \$(\".item input[type='checkbox']:checked\").prop('checked', false);
  923.                 \$(\"#form1\").submit();
  924.             });
  925.         });
  926.     </script>
  927. {% endblock %}
  928. {% block main %}
  929. <div class=\"ec-loan-page\">
  930.     <div class=\"ec-banner\">
  931.         <div class=\"ec-banner__inner\">
  932.             <div class=\"inner\">
  933.                 <h2>
  934.                     エアココ自社ローンについて
  935.                 </h2>
  936.             </div>
  937.         </div>
  938.         <div class=\"ec-breadcrumb\">
  939.             <ul class=\"ec-breadcrumb__menu\">
  940.                 <li class=\"ec-breadcrumb__item\"><a href=\"{{ url('homepage') }}\">TOP</a></li>
  941.                 <li class=\"ec-breadcrumb__item\"><span>></span></li>
  942.                 <li class=\"ec-breadcrumb__item\"><p>エアココ自社ローンについて</p></li>
  943.             </ul>
  944.         </div>
  945.     </div>
  946.     <div class=\"ec-loan-main\">
  947.         <div class=\"ec-loan__inner\">
  948.             <div class=\"inner\">
  949.                 <div class=\"ec-loan_sec\">
  950.                     <div class=\"group-top\">
  951.                         <div class=\"title\">
  952.                             <p>こんなことでお困りではありませんか?</p>
  953.                         </div>
  954.                         <div class=\"image\">
  955.                             <img src=\"{{ asset('assets/img/loan/img.png') }}\" alt=\"\">
  956.                         </div>
  957.                     </div>
  958.                 </div>
  959.                 <div class=\"ec-loan_sec v2\">
  960.                     <div class=\"title\">
  961.                         <p>でも安心してください!<br />
  962.                             エアココ自社ローンなら大丈夫!</p>
  963.                     </div>
  964.                     <div class=\"text\">
  965.                         <p>エアコンを購入したいのにローン審査が通らなかったというお話を聞きます。エアココでは一般のファイナンスで審査が通らなかったお客様も安心してエアコンを設置できるようにエアココローン(自社ローン)のサービスを始めました。ローンの審査に不安がある方は、まず審査をしてみてください。</p>
  966.                     </div>
  967.                     <div class=\"group\">
  968.                         <div class=\"title sm\">
  969.                             <p>自社ローンの特徴</p>
  970.                         </div>
  971.                         <div class=\"list\">
  972.                             <div class=\"item\">
  973.                                 <div class=\"num\">
  974.                                     <p>1</p>
  975.                                 </div>
  976.                                 <div class=\"text\">
  977.                                     <p>金融機関や<br />
  978.                                         ファイナンス会社の</p>
  979.                                 </div>
  980.                                 <div class=\"title\">
  981.                                     <p>審査は不要</p>
  982.                                 </div>
  983.                                 <div class=\"text\">
  984.                                     <p>(エアココの審査のみ)</p>
  985.                                 </div>
  986.                             </div>
  987.                             <div class=\"item\">
  988.                                 <div class=\"num\">
  989.                                     <p>2</p>
  990.                                 </div>
  991.                                 <div class=\"text\">
  992.                                     <p>過去の</p>
  993.                                 </div>
  994.                                 <div class=\"title\">
  995.                                     <p>個人情報の<br />
  996.                                         提出不要</p>
  997.                                 </div>
  998.                             </div>
  999.                             <div class=\"item\">
  1000.                                 <div class=\"num\">
  1001.                                     <p>3</p>
  1002.                                 </div>
  1003.                                 <div class=\"title\">
  1004.                                     <p>24回払い</p>
  1005.                                 </div>
  1006.                             </div>
  1007.                             <div class=\"item\">
  1008.                                 <div class=\"num\">
  1009.                                     <p>4</p>
  1010.                                 </div>
  1011.                                 <div class=\"title\">
  1012.                                     <p>金利<span>0</span>%</p>
  1013.                                 </div>
  1014.                             </div>
  1015.                         </div>
  1016.                     </div>
  1017.                     <div class=\"list-btn\">
  1018.                         <a href=\"{{ url('loan_examination') }}\" class=\"btn btn-sd\">
  1019.                             エアココ自社ローンのお申し込みはこちら
  1020.                         </a>
  1021.                     </div>
  1022.                 </div>
  1023.                 <div class=\"ec-loan_sec v3 ec-product__group\">
  1024.                     <div class=\"title\">
  1025.                         <p>エアココ自社ローン対象商品</p>
  1026.                     </div>
  1027.                     <ul class=\"list-product\">
  1028.                         {% if pagination.totalItemCount > 0 %}
  1029.                             {% for Product in pagination %}
  1030.                                 <li class=\"product\">
  1031.                                     <a href=\"{{ url('product_detail', {'id': Product.id}) }}\" class=\"image\">
  1032.                                         <img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
  1033.                                     </a>
  1034.                                     <a href=\"{{ url('product_detail', {'id': Product.id}) }}\" class=\"name\">
  1035.                                         <p>{{ Product.name }}</p>
  1036.                                     </a>
  1037.                                     <div class=\"info\">
  1038.                                         <div class=\"costs\">
  1039.                                             <div class=\"cost\">
  1040.                                                 {% if Product.hasProductClass %}
  1041.                                                     {% if Product.getPrice02Min == Product.getPrice02Max %}
  1042.                                                         <p>{{ Product.getPrice02IncTaxMin|price }}</p>
  1043.                                                         <span>(税込)</span>
  1044.                                                     {% else %}
  1045.                                                         <p>{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}</p>
  1046.                                                         <span>(税込)</span>
  1047.                                                     {% endif %}
  1048.                                                 {% else %}
  1049.                                                     <p>{{ Product.getPrice02IncTaxMin|price }}</p>
  1050.                                                     <span>(税込)</span>
  1051.                                                 {% endif %}
  1052.                                             </div>
  1053.                                             {% if BaseInfo.option_favorite_product %}
  1054.                                                 {% set is_favorite = false %}
  1055.                                                 {% if is_granted('ROLE_USER') %}
  1056.                                                     {% set is_favorite = repository('\\\\Eccube\\\\Entity\\\\CustomerFavoriteProduct').isFavorite(Customer, Product) %}
  1057.                                                 {% endif %}
  1058.                                                 {% if is_favorite == false %}
  1059.                                                     <div class=\"group\" style=\"margin-top: 0;\">
  1060.                                                         <div class=\"list-btn\" style=\"margin-top: 0;\">
  1061.                                                             <a href=\"javascript:void(0);\" class=\"favorite\">
  1062.                                                                 <span></span> 
  1063.                                                             </a>
  1064.                                                         </div>
  1065.                                                     </div>
  1066.                                                 {% else %}                                                            
  1067.                                                     <div class=\"group\" style=\"margin-top: 0;\">
  1068.                                                         <div class=\"list-btn\" style=\"margin-top: 0;\">
  1069.                                                             <a href=\"javascript:void(0);\" class=\"favorite active\" disabled=\"disabled\">
  1070.                                                                 <span></span> 
  1071.                                                             </a>
  1072.                                                         </div>
  1073.                                                     </div>
  1074.                                                 {% endif %}
  1075.                                             {% endif %}
  1076.                                             {% if BaseInfo.option_favorite_product %}
  1077.                                                 <div style=\"display: none;\">
  1078.                                                     <form class=\"list-add-favorite\" action=\"{{ url('product_add_favorite', {id:Product.id}) }}\" method=\"post\">
  1079.                                                         <div class=\"ec-productRole__btn\">
  1080.                                                             <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\">
  1081.                                                                 {{ 'お気に入りに追加'|trans }}
  1082.                                                             </button>
  1083.                                                         </div>
  1084.                                                     </form>
  1085.                                                 </div>
  1086.                                             {% endif %}
  1087.                                         </div>
  1088.                                         <div class=\"cate\">
  1089.                                             {% if Product.ProductCategories is not empty %}
  1090.                                                 {% for ProductCategory in Product.ProductCategories %}
  1091.                                                     {% if ProductCategory.Category.Parent is not empty %}
  1092.                                                         {% set parentCat = ProductCategory.Category.Parent %}
  1093.                                                         {% if parentCat.id == 20 %}
  1094.                                                             <span>{{ ProductCategory.Category.name }}</span>
  1095.                                                         {% endif %}
  1096.                                                     {% endif %}
  1097.                                                 {% endfor %}
  1098.                                             {% endif %}
  1099.                                             {% if Product.ProductCategories is not empty %}
  1100.                                                 {% for ProductCategory in Product.ProductCategories %}
  1101.                                                     {% if ProductCategory.Category.Parent is not empty %}
  1102.                                                         {% set parentCat = ProductCategory.Category.Parent %}
  1103.                                                         {% if parentCat.id == 19 %}
  1104.                                                             <span>{{ ProductCategory.Category.name }}</span>
  1105.                                                         {% endif %}
  1106.                                                     {% endif %}
  1107.                                                 {% endfor %}
  1108.                                             {% endif %}
  1109.                                         </div>
  1110.                                         {% if Product.code_min is not empty %}
  1111.                                             <div class=\"des\">
  1112.                                                 <p>品番 {{ Product.code_min }}{% if Product.code_min != Product.code_max %} ~ {{ Product.code_max }}{% endif %}</p>
  1113.                                             </div>
  1114.                                         {% endif %}                                        
  1115.                                     </div>
  1116.                                 </li>
  1117.                             {% endfor %}
  1118.                         {% endif %}
  1119.                     </ul>
  1120.                 </div>
  1121.                 
  1122.             </div>
  1123.             <div class=\"ec-loan_sec v4\">
  1124.                 <div class=\"inner\">
  1125.                     <div class=\"title\">
  1126.                         <p>手続きの流れ</p>
  1127.                     </div>
  1128.                     <div class=\"text\">
  1129.                         <p>審査フォームに必要事項を記載していただいて送信していただければ、最短で翌日にメールでご回答させていただきます。その後、エアココローン対象商品からエアコンを選んでいただき、設置工事が必要な方は設置工事費も含めてご契約をさせていただきます。</p>
  1130.                     </div>
  1131.                     <div class=\"list-item\">
  1132.                         <div class=\"item\">
  1133.                             <div class=\"num\">
  1134.                                 <p>STEP</p>
  1135.                                 <span>1</span>
  1136.                             </div>
  1137.                             <div class=\"image\">
  1138.                                 <img src=\"{{ asset('assets/img/loan') }}/step-1.png\" alt=\"\">
  1139.                             </div>
  1140.                             <div class=\"text-item\">
  1141.                                 <p>審査フォーム送信</p>
  1142.                             </div>
  1143.                         </div>
  1144.                         <div class=\"arr\">
  1145.                             <img src=\"{{ asset('assets/img/tel_service') }}/double_arrow.png\" alt=\"\">
  1146.                         </div>
  1147.                         <div class=\"item\">
  1148.                             <div class=\"num\">
  1149.                                 <p>STEP</p>
  1150.                                 <span>2</span>
  1151.                             </div>
  1152.                             <div class=\"image\">
  1153.                                 <img src=\"{{ asset('assets/img/loan') }}/step-2.png\" alt=\"\">
  1154.                             </div>
  1155.                             <div class=\"text-item\">
  1156.                                 <p>審査結果のご連絡</p>
  1157.                             </div>
  1158.                         </div>
  1159.                         <div class=\"arr\">
  1160.                             <img src=\"{{ asset('assets/img/tel_service') }}/double_arrow.png\" alt=\"\">
  1161.                         </div>
  1162.                         <div class=\"item\">
  1163.                             <div class=\"num\">
  1164.                                 <p>STEP</p>
  1165.                                 <span>3</span>
  1166.                             </div>
  1167.                             <div class=\"image\">
  1168.                                 <img src=\"{{ asset('assets/img/loan') }}/step-3.png\" alt=\"\">
  1169.                             </div>
  1170.                             <div class=\"text-item\">
  1171.                                 <p>商品・工事費の算出</p>
  1172.                             </div>
  1173.                         </div>
  1174.                         <div class=\"arr\">
  1175.                             <img src=\"{{ asset('assets/img/tel_service') }}/double_arrow.png\" alt=\"\">
  1176.                         </div>
  1177.                         <div class=\"item\">
  1178.                             <div class=\"num\">
  1179.                                 <p>STEP</p>
  1180.                                 <span>4</span>
  1181.                             </div>
  1182.                             <div class=\"image\">
  1183.                                 <img src=\"{{ asset('assets/img/loan') }}/step-4.png\" alt=\"\">
  1184.                             </div>
  1185.                             <div class=\"text-item\">
  1186.                                 <p>ご契約・ご購入</p>
  1187.                             </div>
  1188.                         </div>
  1189.                     </div>
  1190.                     <div class=\"list-btn\">
  1191.                         <a href=\"{{ url('loan_examination') }}\" class=\"btn btn-sd\">
  1192.                             エアココ自社ローンのお申し込みはこちら
  1193.                         </a>
  1194.                     </div>
  1195.                 </div>
  1196.             </div>
  1197.         </div>
  1198.     </div>
  1199. </div>
  1200. {% endblock %}""@user_data/loan.twig""/home/gogo002/gogo002.xbiz.jp/public_html/rintec/app/template/user_data/loan.twig");
  1201.     }
  1202. }