app/template/default/index.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE
  3. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  4. http://www.ec-cube.co.jp/
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. #}
  8. {% extends 'default_frame.twig' %}
  9. {% set body_class = 'front_page' %}
  10. {% block stylesheet %}
  11.     <link rel="stylesheet" href="{{ asset('assets/css/news-list.css') }}">
  12.     <link rel="stylesheet" href="{{ asset('assets/css/product-list.css') }}">
  13.     <link rel="stylesheet" href="{{ asset('assets/css/home.css') }}">
  14.     <link rel="stylesheet" href="{{ asset('assets/css/swiper-bundle.min.css') }}" defer>
  15. {% endblock %}
  16. {% block javascript %}
  17.     <script>
  18.     </script>
  19. {% endblock javascript %}
  20. {% block main %}
  21.     {# home #}
  22.     <!-- home page -->
  23.     <div class="banner-section-ui">
  24.         <div class="swiper banner-swiper">
  25.         <div class="swiper-wrapper" id="banner-slide-id">
  26.         {% for item in range(1, 4) %}
  27.             <div class="swiper-slide">
  28.                 <div class="banner-slide">
  29.                 <div class="banner-slide__content">
  30.                     <div class="banner-slide__text">
  31.                     <h2 class="banner-slide__heading">
  32.                         <span class="banner-slide__heading-line1">あの備長炭が</span>
  33.                         <span class="banner-slide__heading-line2">買えてしまう。</span>
  34.                     </h2>
  35.                     <p class="banner-slide__description">
  36.                         木こりがいない時代だからこそ、テクノロジーで森を守る。<br>
  37.                         植林が未来の町を守り、地域を豊かにする。<br>
  38.                         WoodTechは"木と人と地域の循環"を取り戻す挑戦を続けます。
  39.                     </p>
  40.                     <button class="btn_primary banner-slide__button" type="button" onclick="window.location.href='{{ url('help_about') }}'">
  41.                         <span class="btn_primary-text">WoodTechとは</span>
  42.                         <img class="btn_primary-icon" src="{{ asset('assets/img/default/icons/icon-arrow-nav.svg') }}" alt="" width="24" height="24" />
  43.                     </button>
  44.                     </div>
  45.                 </div>
  46.                 <div class="banner-slide__image banner-slide__image-right">
  47.                     <img src=" {% if loop.index % 2 == 1 %} {{ asset('assets/img/default/image/image_banner.png') }} {% else %} {{ asset('assets/img/default/image/image_banner_2.png') }} {% endif %}" alt="" />
  48.                 </div>
  49.                 </div>
  50.             </div>
  51.         {% endfor %}
  52.         </div>
  53.         <!-- Pagination -->
  54.         <div class="swiper-pagination banner-pagination"></div>
  55.         <!-- Navigation -->
  56.         <div class="swiper-button-next banner-button-next"></div>
  57.         <div class="swiper-button-prev banner-button-prev"></div>
  58.         </div>
  59.         <!-- product section -->
  60.         <div class="container-1200-fix product-section desktop-only-890">
  61.         <div class="product-section__wrapper">
  62.             <!-- title -->
  63.             <div class="base-title-wrapper">
  64.             <div class="base-title">
  65.                 <img class="base-title__icon" src="{{ asset('assets/img/default/icons/icon-title.png') }}" alt="" width="48" height="48" />
  66.                 <h2 class="base-title__text-heading">売れ筋ランキング</h2>
  67.             </div>
  68.             <button onclick="window.location.href='{{ url('product_list') }}'" class="btn_primary btn_primary--outline base-title__button" type="button">
  69.                 <span class="btn_primary-text">商品一覧</span>
  70.                 <img class="btn_primary-icon" src="{{ asset('assets/img/default/icons/icon-arrow-nav.svg') }}" alt="" width="24" height="24" />
  71.             </button>
  72.             </div>
  73.             <!-- product list -->
  74.             <div class="product-list" id="home-product-list">
  75.                 {% for Product in topRankingProducts %}
  76.                 <article class="product-card product-card--ranking">
  77.                     <a href="{{ url('product_detail', {'id': Product.id}) }}" class="product-card__link">
  78.                     <div class="product-card__image relative">
  79.                         <img src="{{ asset(Product.main_list_image|no_image_product, 'save_image') }}" alt="{{ Product.name }}" />
  80.                         <div class="ranking-badge">{{ loop.index }}位</div>
  81.                     </div>
  82.                     <div class="product-card__info">
  83.                         <div class="product-card__badge">{{ Product.name }}</div>
  84.                         <div class="product-card__details">
  85.                         <p class="product-card__price">
  86.                             <span class="product-card__price-main">
  87.                                 {% if Product.getPrice02Min == Product.getPrice02Max %}
  88.                                     {{ Product.getPrice02IncTaxMin|price }}
  89.                                 {% else %}
  90.                                     {{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
  91.                                 {% endif %}
  92.                             </span>
  93.                             <span class="product-card__price-tax">(税抜 {{ Product.getPrice02Min|price }}円)</span>
  94.                         </p>
  95.                         <img class="product-card__arrow" src="{{ asset('assets/img/default/icons/icon-product-arrow.svg') }}" alt="" width="24" height="24" />
  96.                         </div>
  97.                     </div>
  98.                     </a>
  99.                 </article>
  100.                 {% endfor %}
  101.             </div>
  102.         </div>
  103.         </div>
  104.         <!-- product slide mobile only -->
  105.         <div class="mobile-only-890 mobile_slider_wrapper product-section">
  106.         <!-- title -->
  107.         <div class="base-title pl-16">
  108.             <img class="base-title__icon" src="{{ asset('assets/img/default/icons/icon-title.png') }}" alt="" width="48" height="48" />
  109.             <h2 class="base-title__text-heading">売れ筋ランキング</h2>
  110.         </div>
  111.         <!-- slider -->
  112.         <div class="swiper product-swiper">
  113.             <div class="swiper-wrapper product-swiper__wrapper" id="product-slide-id">
  114.                 {% for Product in topRankingProducts %}
  115.                 <div class="swiper-slide">
  116.                     <article class="product-card product-card--ranking product-card--ranking-mobile">
  117.                         <a href="{{ url('product_detail', {'id': Product.id}) }}" class="product-card__link">
  118.                         <div class="product-card__image relative">
  119.                             <img src="{{ asset(Product.main_list_image|no_image_product, 'save_image') }}" alt="{{ Product.name }}" />
  120.                             <div class="ranking-badge">{{ loop.index }}位</div>
  121.                         </div>
  122.                         <div class="product-card__info">
  123.                             <div class="product-card__badge">{{ Product.name }}</div>
  124.                             <div class="product-card__details">
  125.                             <p class="product-card__price">
  126.                                 <span class="product-card__price-main">
  127.                                     {% if Product.getPrice02Min == Product.getPrice02Max %}
  128.                                         {{ Product.getPrice02IncTaxMin|price }}
  129.                                     {% else %}
  130.                                         {{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
  131.                                     {% endif %}
  132.                                 </span>
  133.                                 <span class="product-card__price-tax">(税抜 {{ Product.getPrice02Min|price }}円)</span>
  134.                             </p>
  135.                             <img class="product-card__arrow" src="{{ asset('assets/img/default/icons/icon-product-arrow.svg') }}" alt="" width="24" height="24" />
  136.                             </div>
  137.                         </div>
  138.                         </a>
  139.                     </article>
  140.                 </div>
  141.                 {% endfor %}
  142.             </div>
  143.             <!-- Pagination -->
  144.             <div class="swiper-pagination banner-pagination"></div>
  145.             <!-- Navigation -->
  146.             <div class="swiper-button-next banner-button-next"></div>
  147.             <div class="swiper-button-prev banner-button-prev"></div>
  148.         </div>
  149.         <!-- button mobile only -->
  150.         <div class="pl-16">
  151.             <button onclick="window.location.href='{{ url('product_list') }}'" class="btn_primary btn_primary--outline base-title__button" type="button">
  152.             <span class="btn_primary-text">商品一覧</span>
  153.             <img class="btn_primary-icon" src="{{ asset('assets/img/default/icons/icon-arrow-nav.svg') }}" alt="" width="24" height="24" />
  154.             </button>
  155.         </div>
  156.         </div>
  157.         <!-- about section -->
  158.         <div class="container-1200-fix about-section">
  159.         <div class="section__content_wrapper">
  160.             <div class="section__left about_left_image_wrapper">
  161.             <img class="about_left_image" src="{{ asset('assets/img/default/image/image_about.png') }}" alt="WoodTechについて" />
  162.             </div>
  163.             <!-- about section text -->
  164.             <div class="section__right">
  165.             <div class="about-section__content">
  166.                 <div>
  167.                 <div class="about-section__section-header">
  168.                     <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  169.                     <circle cx="10" cy="10" r="8" stroke="#828282" stroke-width="2" />
  170.                     <path
  171.                         d="M7.12671 8.30348C6.93657 6.66853 8.03012 5.17139 10.1251 5.17139C12.0661 5.17139 13.5076 6.63983 13.1489 8.17661C12.6279 10.4089 10.2424 9.78737 9.92637 12.143"
  172.                         stroke="#828282" stroke-width="2" stroke-linecap="round" />
  173.                     <circle cx="10" cy="15.0176" r="1.30469" fill="#828282" />
  174.                     </svg>
  175.                     <h3 class="about-section__section-title">WoodTechとは</h3>
  176.                 </div>
  177.                 <h4 class="about-section__heading">炭にこだわりがあるって?</h4>
  178.                 <p class="about-section__subheading">スミにおけないわね。</p>
  179.                 </div>
  180.                 <p class="about-section__description">
  181.                 WoodTechは、木こりの減少で荒れてしまった森をテクノロジーで守り、次世代へつなぐことを目指します。
  182.                 </p>
  183.                 <p class="about-section__description">
  184.                 木こりがいない時代だからこそ、テクノロジーで森を守る。<br>
  185.                 植林が未来の町を守り、地域を豊かにする。<br>
  186.                 WoodTechは“木と人と地域の循環”を取り戻す挑戦を続けます。
  187.                 </p>
  188.                 <button class="btn_primary about-section__button" type="button" onclick="window.location.href='{{ url('help_about') }}'">
  189.                 <span class="btn_primary-text">運営について</span>
  190.                 <img class="btn_primary-icon" src="{{ asset('assets/img/default/icons/icon-arrow-nav.svg') }}" alt="" width="24" height="24" />
  191.                 </button>
  192.             </div>
  193.             </div>
  194.         </div>
  195.         </div>
  196.         <!-- detail section -->
  197.         <div class="container-1200-fix">
  198.         <div class="section__content_wrapper">
  199.             <div class="section__left section__left-detail">
  200.             <div class="detail-section__content">
  201.                 <!-- Store Info -->
  202.                 <div class="detail-section__info">
  203.                 <!-- title section -->
  204.                 <div class="base-title m-0">
  205.                     <img class="base-title__icon" src="{{ asset('assets/img/default/icons/icon-title.png') }}" alt="" width="48" height="48" />
  206.                     <h2 class="base-title__text-heading">導入事例</h2>
  207.                 </div>
  208.                 <div class="detail-section__info-row">
  209.                     <div class="detail-section__badge">店舗名/業種</div>
  210.                     <div class="detail-section__value">炭火焼専門店「ほの家」/焼鳥・居酒屋業態</div>
  211.                 </div>
  212.                 <div class="detail-section__info-row">
  213.                     <div class="detail-section__badge">利用規模</div>
  214.                     <div class="detail-section__value">120kg / 月</div>
  215.                 </div>
  216.                 </div>
  217.                 <!-- Before Introduction -->
  218.                 <div class="detail-section__before">
  219.                 <div class="detail-section__section-header">
  220.                     <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
  221.                     <g opacity="0.4">
  222.                     <circle cx="12" cy="12" r="9" stroke="#353535" stroke-width="2"/>
  223.                     <path d="M7.60156 11.6567L11.1371 15.1923L16.794 9.53542" stroke="#353535" stroke-width="2"/>
  224.                     </g>
  225.                     </svg>
  226.                     <h4 class="detail-section__section-title">導入前の課題</h4>
  227.                 </div>
  228.                 <div class="detail-section__list">
  229.                     <div class="detail-section__list-item">
  230.                     <svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
  231.                         <circle cx="5" cy="5" r="5" fill="#828282" />
  232.                     </svg>
  233.                     <p class="detail-section__text">従来は国産炭と輸入炭を混在利用していたが、火力が不安定で焼きムラが発生。</p>
  234.                     </div>
  235.                     <div class="detail-section__list-item">
  236.                     <svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
  237.                         <circle cx="5" cy="5" r="5" fill="#828282" />
  238.                     </svg>
  239.                     <p class="detail-section__text">高温維持のために常に追加が必要で、ピーク時の作業負担が大きかった</p>
  240.                     </div>
  241.                 </div>
  242.                 </div>
  243.                 <!-- After Introduction -->
  244.                 <div class="detail-section__after">
  245.                 <div class="detail-section__section-header detail-section__section-header--after">
  246.                     <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
  247.                     <circle cx="12" cy="12" r="9" stroke="white" stroke-width="2"/>
  248.                     <path d="M7.60156 11.6567L11.1371 15.1923L16.794 9.53542" stroke="white" stroke-width="2"/>
  249.                     </svg>
  250.                     <h4 class="detail-section__section-title detail-section__section-title--after">導入後の効果</h4>
  251.                 </div>
  252.                 <div class="detail-section__list">
  253.                     <div class="detail-section__list-item">
  254.                     <svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
  255.                         <circle cx="5" cy="5" r="5" fill="#8B6E00" />
  256.                     </svg>
  257.                     <p class="detail-section__text">火持ちが安定し、1回の火入れで営業終了まで持続。</p>
  258.                     </div>
  259.                     <div class="detail-section__list-item">
  260.                     <svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
  261.                         <circle cx="5" cy="5" r="5" fill="#8B6E00" />
  262.                     </svg>
  263.                     <p class="detail-section__text">スタッフの炭追加回数が半減し、仕込み時間も短縮。</p>
  264.                     </div>
  265.                     <div class="detail-section__list-item">
  266.                     <svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
  267.                         <circle cx="5" cy="5" r="5" fill="#8B6E00" />
  268.                     </svg>
  269.                     <p class="detail-section__text">結果: 焼き品質の均一化・人件費10%削減を実現。</p>
  270.                     </div>
  271.                 </div>
  272.                 </div>
  273.             </div>
  274.             </div>
  275.             <!-- about section text -->
  276.             <div class="section__right section__right-detail">
  277.             <img src="{{ asset('assets/img/default/image/image_detail.png') }}" alt="WoodTechについて" />
  278.             </div>
  279.         </div>
  280.         </div>
  281.         <!-- guide section -->
  282.         <div class="container-1200-fix">
  283.         <div class="section__content_wrapper guide-section-wrapper">
  284.             <div class="section__left guide-section__image-wrapper">
  285.             <img class="guide-section__image" src="{{ asset('assets/img/default/image/image_guide.png') }}" alt="WoodTechについて" />
  286.             </div>
  287.             <!-- guide section text -->
  288.             <div class="section__right">
  289.             <div class="guide-section__content">
  290.                 <!-- Header -->
  291.                 <div class="guide-section__header">
  292.                 <div class="guide-section__icon-wrapper">
  293.                     <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  294.                     <g clip-path="url(#clip0_207_428)">
  295.                     <mask id="path-1-inside-1_207_428" fill="white">
  296.                     <path d="M10 1.31445C15.8212 1.31445 19.2227 3.34052 19.2227 9C19.2227 14.6595 15.8212 16.6855 10 16.6855C9.42351 16.6855 8.87085 16.6644 8.34277 16.623L2.93359 19.7471V14.7422C1.53023 13.5206 0.777344 11.6624 0.777344 9C0.777344 3.34052 4.17882 1.31445 10 1.31445Z"/>
  297.                     </mask>
  298.                     <path d="M10 1.31445V-0.685547V1.31445ZM19.2227 9L21.2227 9V9H19.2227ZM10 16.6855L10 18.6855L10 16.6855ZM8.34277 16.623L8.49873 14.6291L7.87997 14.5807L7.34253 14.8911L8.34277 16.623ZM2.93359 19.7471H0.933594V23.2117L3.93384 21.479L2.93359 19.7471ZM2.93359 14.7422H4.93359V13.8315L4.2467 13.2336L2.93359 14.7422ZM0.777344 9L-1.22266 9L0.777344 9ZM10 1.31445L10 3.31445C12.7486 3.31445 14.517 3.80636 15.5748 4.62012C16.5208 5.34785 17.2227 6.5903 17.2227 9H19.2227H21.2227C21.2227 5.75022 20.2238 3.1499 18.0138 1.44972C15.9155 -0.164421 13.0726 -0.685547 10 -0.685547L10 1.31445ZM19.2227 9L17.2227 9C17.2227 11.4097 16.5208 12.6522 15.5748 13.3799C14.517 14.1936 12.7486 14.6855 10 14.6855L10 16.6855L10 18.6855C13.0726 18.6855 15.9155 18.1644 18.0138 16.5503C20.2238 14.8501 21.2227 12.2498 21.2227 9L19.2227 9ZM10 16.6855V14.6855C9.47238 14.6855 8.97185 14.6661 8.49873 14.6291L8.34277 16.623L8.18682 18.617C8.76985 18.6626 9.37464 18.6855 10 18.6855V16.6855ZM8.34277 16.623L7.34253 14.8911L1.93335 18.0152L2.93359 19.7471L3.93384 21.479L9.34302 18.355L8.34277 16.623ZM2.93359 19.7471H4.93359V14.7422H2.93359H0.933594V19.7471H2.93359ZM2.93359 14.7422L4.2467 13.2336C3.40679 12.5025 2.77734 11.2769 2.77734 9L0.777344 9L-1.22266 9C-1.22266 12.048 -0.346328 14.5387 1.62048 16.2507L2.93359 14.7422ZM0.777344 9H2.77734C2.77734 6.5903 3.47924 5.34785 4.42521 4.62012C5.48302 3.80636 7.25143 3.31445 10 3.31445V1.31445V-0.685547C6.92739 -0.685547 4.08447 -0.164421 1.98625 1.44972C-0.223815 3.1499 -1.22266 5.75022 -1.22266 9H0.777344Z" fill="#828282" mask="url(#path-1-inside-1_207_428)"/>
  299.                     <circle cx="6.1875" cy="9" r="1.25" fill="#828282"/>
  300.                     <circle cx="10" cy="9" r="1.25" fill="#828282"/>
  301.                     <circle cx="13.8125" cy="9" r="1.25" fill="#828282"/>
  302.                     </g>
  303.                     <defs>
  304.                     <clipPath id="clip0_207_428">
  305.                     <rect width="20" height="20" fill="white"/>
  306.                     </clipPath>
  307.                     </defs>
  308.                     </svg>
  309.                 </div>
  310.                 <h3 class="guide-section__title">利用者の声</h3>
  311.                 </div>
  312.                 <!-- Quote Content -->
  313.                 <div class="guide-section__quote">
  314.                 <svg class="guide-section__quote-start" width="22" height="16" viewBox="0 0 22 16" fill="none" xmlns="http://www.w3.org/2000/svg">
  315.                     <path d="M10.4071 10.903C10.4558 13.324 8.8776 15.4373 5.94852 15.4373C3.01943 15.4373 0.898404 13.6863 0.765623 10.5573C0.768124 5.66795 2.9792 2.45827 4.48439 0.146973L7.75796 1.43551C7.07892 3.00802 6.45348 4.52693 6.32187 6.66694C8.54391 6.66694 10.3576 8.44455 10.4023 10.6661L10.4071 10.903Z" fill="#D9D9D9"/>
  316.                     <path d="M21.2352 10.903C21.2839 13.324 19.7057 15.4373 16.7766 15.4373C13.8476 15.4373 11.7265 13.6863 11.5937 10.5573C11.5962 5.66795 13.8073 2.45827 15.3125 0.146973L18.5861 1.43551C17.907 3.00802 17.2816 4.52693 17.15 6.66694C19.372 6.66694 21.1858 8.44455 21.2304 10.6661L21.2352 10.903Z" fill="#D9D9D9"/>
  317.                 </svg>
  318.                 <svg class="guide-section__quote-bottom" width="96" height="38" viewBox="0 0 96 38" fill="none" xmlns="http://www.w3.org/2000/svg">
  319.                     <path d="M1.5 0V16C1.5 20.4183 5.08172 24 9.5 24H14.5V34L30 24H96" stroke="#D9D9D9" stroke-width="3"/>
  320.                 </svg>
  321.                 <div class="guide-section__quote-content">
  322.                     <h4 class="guide-section__quote-heading">炭にこだわりがあるって?</h4>
  323.                     <p class="guide-section__quote-subheading">スミにおけないわね。</p>
  324.                 </div>
  325.                 <svg class="guide-section__quote-end" width="22" height="16" viewBox="0 0 22 16" fill="none" xmlns="http://www.w3.org/2000/svg">
  326.                     <path d="M11.5929 5.09701C11.5442 2.67595 13.1224 0.562695 16.0515 0.562695C18.9806 0.562695 21.1016 2.31372 21.2344 5.44266C21.2319 10.332 19.0208 13.5417 17.5156 15.853L14.242 14.5645C14.9211 12.992 15.5465 11.4731 15.6781 9.33306C13.4561 9.33306 11.6424 7.55545 11.5977 5.33387L11.5929 5.09701Z" fill="#D9D9D9"/>
  327.                     <path d="M0.7648 5.09701C0.716104 2.67595 2.29427 0.562695 5.22336 0.562695C8.15244 0.562695 10.2735 2.31372 10.4063 5.44266C10.4038 10.332 8.19268 13.5417 6.68748 15.853L3.41392 14.5645C4.09296 12.992 4.71839 11.4731 4.85 9.33306C2.62797 9.33306 0.814248 7.55545 0.769565 5.33387L0.7648 5.09701Z" fill="#D9D9D9"/>
  328.                 </svg>
  329.         </div>
  330.                 <!-- Description -->
  331.                 <p class="guide-section__description">
  332.                 ユーザーの不明点を解決して信頼性を得る文章を書きます。<br>
  333.                 信頼性を得る文章を書きます。ユーザーの不明点を解決して信頼性を得る文章を書きます。木こりがいない時代だからこそ、テクノロジーで森を守る。<br>
  334.                 植林が未来の町を守り、地域を豊かにする。WoodTechは"木と人と地域の循環"を取り戻す挑戦を続けます。
  335.                 </p>
  336.             </div>
  337.             </div>
  338.         </div>
  339.         </div>
  340.         <!-- news section -->
  341.         <div class="container-1200-fix">
  342.         <div class="news-section-wrapper">
  343.             <div class="news-section__left">
  344.             <div class="news-section__content">
  345.                 <!-- Header -->
  346.                 <div class="news-section__header">
  347.                 <img class="news-section__icon" src="{{ asset('assets/img/default/icons/icon-title.png') }}" alt="" width="64" height="64" />
  348.                 <h3 class="news-section__title">お知らせ</h3>
  349.                 </div>
  350.                 <!-- Description -->
  351.                 <p class="news-section__description">
  352.                 営業時間の情報や備長炭についての情報をお知らせいたします。
  353.                 </p>
  354.                 <!-- Button -->
  355.                 <button class="btn_primary news-section__button" onclick="window.location.href='{{ url('news_list') }}'" type="button">
  356.                     <span class="btn_primary-text">お知らせ一覧</span>
  357.                     <img class="btn_primary-icon" src="{{ asset('assets/img/default/icons/icon-arrow-nav.svg') }}" alt="" width="24" height="24" />
  358.                 </button>
  359.             </div>
  360.             </div>
  361.             <div class="news-section__right">
  362.             <div class="news-list" id="news-list-id">
  363.                 {% if latestNews|length > 0 %}
  364.                     {% for News in latestNews %}
  365.                         <article class="news-list__item">
  366.                             <hr class="news-list__separator" />
  367.                             {% if News.url %}
  368.                                 {% if News.isLinkMethod %}
  369.                                     <a href="{{ News.url }}" target="_blank" rel="noopener noreferrer" class="news-list__link">
  370.                                 {% else %}
  371.                                     <a href="{{ News.url }}" class="news-list__link">
  372.                                 {% endif %}
  373.                             {% else %}
  374.                                 <a href="{{ url('news_detail', {'id': News.id}) }}" class="news-list__link">
  375.                             {% endif %}
  376.                                 <div class="news-list__content">
  377.                                     <img class="news-list__image" src="{{ asset('assets/img/default/image/news-image.png') }}" alt="{{ News.title }}" />
  378.                                     <div class="news-list__info">
  379.                                         <div class="news-list__text">
  380.                                             <time class="news-list__date">{{ News.publishDate|date('Y.m.d') }}</time>
  381.                                             <h2 class="news-list__title">{{ News.title }}</h2>
  382.                                         </div>
  383.                                         <img class="news-list__arrow" src="{{ asset('assets/img/default/icons/icon-arrow-news-list.svg') }}" alt="" width="24" height="24" />
  384.                                     </div>
  385.                                 </div>
  386.                             </a>
  387.                         </article>
  388.                     {% endfor %}
  389.                 {% else %}
  390.                     <!-- Fallback nếu không có tin tức -->
  391.                     <p>お知らせがありません。</p>
  392.                 {% endif %}
  393.             </div>
  394.             </div>
  395.         </div>
  396.         </div>
  397.     </div>
  398.     <!-- Swiper JS cdn -->
  399.     <script src="{{ asset('assets/js/swiper-bundle.min.js') }}"></script>
  400.     <script>
  401.     document.addEventListener('DOMContentLoaded', function () {
  402.       const swiper = new Swiper('.banner-swiper', {
  403.         slidesPerView: 1.32,
  404.         spaceBetween: 8,
  405.         centeredSlides: true,
  406.         loop: true,
  407.         // autoplay: {
  408.         //   delay: 5000,
  409.         //   disableOnInteraction: false,
  410.         // },
  411.         pagination: {
  412.           el: '.banner-pagination',
  413.           clickable: true,
  414.           renderBullet: function (index, className) {
  415.             return '<div class="' + className + ' banner-pagination__bar"></div>';
  416.           },
  417.         },
  418.         navigation: {
  419.           nextEl: '.banner-button-next',
  420.           prevEl: '.banner-button-prev',
  421.         },
  422.         breakpoints: {
  423.           1200: {
  424.             slidesPerView: 1.32,
  425.           },
  426.           890: {
  427.             slidesPerView: 1.1,
  428.           },
  429.           0: {
  430.             slidesPerView: 1.18,
  431.           },
  432.         },
  433.       });
  434.       // swiper product mobile only
  435.       const productSwiper = new Swiper('.product-swiper', {
  436.         slidesPerView: 1.2,
  437.         spaceBetween: 16,
  438.         loop: true,
  439.          pagination: {
  440.           el: '.banner-pagination',
  441.           clickable: true,
  442.           renderBullet: function (index, className) {
  443.             return '<div class="' + className + ' banner-pagination__bar"></div>';
  444.           },
  445.         },
  446.         navigation: {
  447.           nextEl: '.banner-button-next',
  448.           prevEl: '.banner-button-prev',
  449.         },
  450.         breakpoints: {
  451.           600: {
  452.             slidesPerView: 2.2,
  453.           },
  454.           0: {
  455.             slidesPerView: 1.2,
  456.           },
  457.         },
  458.       });
  459.     });
  460.     </script>
  461. {% endblock %}