app/template/bravers/Block/contact_product.twig line 1

Open in your IDE?
  1. {% if Contacts is defined %}
  2. <div class="topBlocks replyBlock">
  3.     <div class="titleBlock">
  4.         <div class="titleBlock__name">
  5.             <img class="titleBlock__name__icon" src="{{ asset('assets/img/top/hatena.svg') }}" alt="CONTACT" width="32" height="32" loading="lazy">
  6.             <h2 class="titleBlock__name__title">新着の質問</h2>
  7.         </div>
  8.     </div>
  9.     <ul class="reply">
  10.         {% for Contact in Contacts %}
  11.             <li class="reply__list">
  12.                 <div class="reply__list__image">
  13.                     <div class="reply__list__image__block">
  14.                         {% if Contact.Product %}
  15.                             <img src="{{ asset(Contact.Product.main_list_image|no_image_product, 'save_image') }}" alt="">
  16.                         {% else %}
  17.                             <img src="{{ asset('no_image_product.png', 'save_image') }}" alt="">
  18.                         {% endif %}
  19.                     </div>
  20.                 </div>
  21.                 <div class="reply__list__content">
  22.                     <p class="reply__list__date">
  23.                         質問日: {{Contact.create_date|date_day}}
  24.                     </p>
  25.                      {% if Contact.Product %}
  26.                         <a class="reply__list__title" href="{{ url('product_detail', {'id': Contact.Product.id}) }}">
  27.                             <strong>{{Contact.Product.name}}</strong>
  28.                         </a>
  29.                     {% endif %}
  30.                     <p class="reply__list__detail">
  31.                         {{ Contact.contents|raw|nl2br }}
  32.                     </p>
  33.                     <div class="accrodion-list reply__list__answer">
  34.                         <button class="accordion-btn reply__list__answer__btn"><span>サイトより回答</span><p class="mark"></p></button>
  35.                         <div class="accordion__content reply__list__answer__content">
  36.                                 <p class="reply__list__answer__date">回答日時:{{Contact.reply_date|date_day}}</p>
  37.                                 <p class="reply__list__answer__detail">
  38.                                     {{ Contact.reply|raw|nl2br }}
  39.                                 </p>
  40.                         </div>
  41.                     </div>
  42.                 </div>
  43.             </li>
  44.         {% endfor %}
  45.     </ul>
  46.     <a href="{{ url('product_contact') }}" class="more-btn reply__btn">
  47.         <span class="more-btn__text">詳しく見る</span>
  48.         <img class="arrow" src="{{ asset('assets/img/common/arrow-black.svg') }}" alt="詳しく見る" width="7.91" height="12.36" loading="lazy">
  49.     </a>
  50. </div>
  51. {% endif %}