templates/home/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}{{ setting.siteName }} : bienvenue !{% endblock %}
  3. {% block body %}
  4. <div id="fb-root"></div>
  5. <script async defer crossorigin="anonymous" src="https://connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v14.0"
  6.     nonce="IxquDTXZ"></script>
  7. <script src="https://platform.linkedin.com/badges/js/profile.js" async defer type="text/javascript"></script>
  8. {% for home in homes %}
  9. <section class="container mt-5 pt-3 overflow-hidden">
  10.     {# HERO #}
  11.     <div class="row">
  12.         <div class="col text-center">
  13.             <h1 class="color1 fw-700 h2" data-aos="fade-down" data-aos-duration="1500">
  14.                 {{ home.heroText1 }}
  15.                 <br>
  16.                 <span class="color2" data-aos="fade-down" data-aos-duration="2000">{{ home.heroText2 }}</span>
  17.             </h1>
  18.         </div>
  19.     </div>
  20.     <div class="row mt-5">
  21.         <div class="col">
  22.             {#<img src="{{ asset('assets/img/' ~ home.heroImage)|imagine_filter('heroaccueil') }}" alt="{{ setting.siteName }}" class="img-fluid">#}
  23.             <img src="{{ asset('assets/img/' ~ home.heroImage) }}" alt="{{ setting.siteName }}" class="img-fluid">
  24.         </div>
  25.     </div>
  26.     {# NOTRE DIFFERENCE + SLIDER #}
  27.     <div class="row mt-5 pt-5">
  28.         <div class="col-lg-8 col-sm-12">
  29.             <!-- Slider main container -->
  30.             <div class="swiper">
  31.                 <!-- Additional required wrapper -->
  32.                 <div class="swiper-wrapper">
  33.                 <!-- Slides -->
  34.                 <div class="swiper-slide"><img src="{{ asset('assets/img/difference/' ~ home.diffImage1 )|imagine_filter('slideraccueil') }}" alt="{{ setting.siteName }}"
  35.                     class="img-fluid mb-3"></div>
  36.                 <div class="swiper-slide"><img src="{{ asset('assets/img/difference/' ~ home.diffImage2 )|imagine_filter('slideraccueil') }}" alt="{{ setting.siteName }}"
  37.                     class="img-fluid mb-3"></div>
  38.                 <div class="swiper-slide"><img src="{{ asset('assets/img/difference/' ~ home.diffImage3 )|imagine_filter('slideraccueil') }}" alt="{{ setting.siteName }}"
  39.                     class="img-fluid mb-3"></div>
  40.                 </div>
  41.                 <!-- If we need pagination -->
  42.                 <div class="swiper-pagination"></div>
  43.                 <!-- If we need navigation buttons -->
  44.                 {# <div class="swiper-button-prev"></div>
  45.                 <div class="swiper-button-next"></div> #}
  46.                 <!-- If we need scrollbar -->
  47.                 {# <div class="swiper-scrollbar"></div> #}
  48.             </div>
  49.         </div>
  50.         <div class="col-lg-4 col-sm-12">
  51.             <h2 class="color1 text-uppercase fw-700" data-aos="fade-left" data-aos-duration="2000">{{ home.diffTitre1 }}</h2>
  52.             <h2 class="color2 text-uppercase" data-aos="fade-left" data-aos-duration="2500">{{ home.diffTitre2 }}</h2>
  53.             <p class="mt-5">
  54.                 {{ home.diffText|replace({
  55.                     '<div>' : '<span>',
  56.                     '</div>' : '</span>'
  57.                 })|raw  }}
  58.             </p>
  59.             <p>
  60.                 <a href="{{ path('app_difference') }}" class="text-decoration-none">
  61.                     <span class="button-difference text-uppercase">{{ home.diffButtontext }}</span>
  62.                 </a>
  63.             </p>
  64.         </div>
  65.     </div>
  66. </section>
  67. <section class="container-fluid pb-5">
  68.         {# LES OFFICES #}
  69.         <div class="row mt-5 py-5">
  70.             <div class="col text-center">
  71.                 <h2 class="color1 text-uppercase fw-700" data-aos="fade-down" data-aos-duration="2000">{{ home.officesTitre1 }}</h2>
  72.                 <h2 class="color2 text-uppercase" data-aos="fade-down" data-aos-duration="2500">{{ home.officesTitre2 }}</h2>
  73.             </div>
  74.         </div>
  75.     {# PARIS #}
  76.     <div class="hoverimage" style="position: relative;">
  77.         <div class="offices-color img-crop" style="background-image: url('{{ asset('assets/img/offices/' ~ home.officesImage1bleu)|imagine_filter('officesaccueil') }}')">
  78.         </div>
  79.         <div class="offices-color nodisplay img-crop" style="background-image: url('{{ asset('assets/img/offices/' ~ home.officesImage1)|imagine_filter('officesaccueil') }}')">
  80.         </div>
  81.         {# <img src="{{ asset('assets/img/offices/' ~ home.officesImage1 ) }}" alt="{{ setting.siteName }}" class="img-fluid"> #}
  82.         <div class="d-flex flex-column justify-content-end h-100 position-relative">
  83.             <p class="text-uppercase offices-paris-text">
  84.                 {{ home.officesImagetext1 }}
  85.             </p>
  86.             <p>
  87.                 <a href="{{ path('app_office') }}" class="text-decoration-none">
  88.                     <span class="text-uppercase button-offices h5">{{ home.officesButtontext1 }}</span>
  89.                 </a>
  90.             </p>
  91.         </div>
  92.     </div>
  93.     {# MELUN #}
  94.     <div class="hoverimage mt-4" style="position: relative;">
  95.         <div class="offices-color img-crop" style="background-image: url('{{ asset('assets/img/offices/' ~ home.officesImage2bleu)|imagine_filter('officesaccueil') }}')">
  96.         </div>
  97.         <div class="offices-color nodisplay img-crop" style="background-image: url('{{ asset('assets/img/offices/' ~ home.officesImage2)|imagine_filter('officesaccueil') }}')">
  98.         </div>
  99.         {# <img src="{{ asset('assets/img/offices/' ~ home.officesImage1 ) }}" alt="{{ setting.siteName }}" class="img-fluid"> #}
  100.         <div class="d-flex flex-column justify-content-end align-items-end h-100 position-relative">
  101.             <p class="text-uppercase offices-melun-text">
  102.                 {{ home.officesImagetext2 }}
  103.             </p>
  104.         </div>
  105.     </div>
  106.     {# SENART #}
  107.     <div class="hoverimage mt-4" style="position: relative;">
  108.         <div class="offices-color img-crop" style="background-image: url('{{ asset('assets/img/offices/' ~ home.officesImage3bleu)|imagine_filter('officesaccueil') }}')">
  109.         </div>
  110.         <div class="offices-color nodisplay img-crop" style="background-image: url('{{ asset('assets/img/offices/' ~ home.officesImage3)|imagine_filter('officesaccueil') }}')">
  111.         </div>
  112.         <div class="d-flex flex-column justify-content-end h-100 position-relative">
  113.             <p class="text-uppercase offices-senart-text">
  114.                 {{ home.officesImagetext3 }}
  115.             </p>
  116.         </div>
  117.     </div>
  118. </section>
  119. {# NOS DERNIERES ACTUS #}
  120. <section class="container pb-5 mt-5">
  121.     <div class="row mb-5">
  122.         <div class="col text-center">
  123.             <h2 class="color1 text-uppercase fw-700" data-aos="fade-down" data-aos-duration="2000">{{ home.actuTitre1 }}</h2>
  124.             <h2 class="color2 text-uppercase" data-aos="fade-down" data-aos-duration="2500">{{ home.actuTitre2 }}</h2>
  125.         </div>
  126.     </div>
  127.     <div class="row">
  128.         {# <div class="col-lg-2 col-sm-12"></div> #}
  129.         {# <div class="col-lg-4 col-sm-12">
  130.             <!--LinkedIn-->
  131.             <div class="badge-base LI-profile-badge" data-locale="fr_FR" data-size="large" data-theme="light"
  132.                 data-type="HORIZONTAL" data-vanity="{{ home.actuLinkedin }}" data-version="v1">
  133.                 <a class="badge-base__link LI-simple-link" href="{{ home.actuLinkedin }}">{{ setting.siteName }}</a>
  134.             </div>
  135.         </div> #}
  136.         <div class="col text-center">
  137.             {# Facebook #}
  138.             {# <div class="fb-page" data-href="{{ home.actuFacebook }}" data-tabs="timeline" data-width="" data-height=""
  139.                 data-small-header="false" data-adapt-container-width="true" data-hide-cover="false"
  140.                 data-show-facepile="true">
  141.                 <blockquote cite="{{ home.actuFacebook }}" class="fb-xfbml-parse-ignore"><a href="{{ home.actuFacebook }}">Facebook</a></blockquote>
  142.             </div> #}
  143.             {# LinkedIn #}
  144.             <script type="text/javascript" src="https://platform.linkedin.com/badges/js/profile.js" async defer></script>
  145.             <div class="" data-version="v1" data-size="large" data-locale="fr_FR" data-type="horizontal" data-theme="light" data-vanity="#">
  146.                 <a class="btn btn-primary" href="https://www.linkedin.com/company/laroche-associ%C3%A9s-notaires?trk=profile-badge">
  147.                     Laroche et AssociĆ©s
  148.                 </a>
  149.             </div>
  150.         </div>
  151.     </div>
  152. </section>
  153. <div class="img-bg">
  154.     <img src="{{ asset('assets/img/logo-laroche-02.png') }}" alt="{{ setting.siteName }}">
  155. </div>
  156. {# LES AVIS #}
  157. <section class="container pt-5 pb-5">
  158.     <div class="row mb-5">
  159.         <div class="col text-center">
  160.             <h2 class="color1 text-uppercase fw-700" data-aos="fade-down" data-aos-duration="2000">{{ home.avisTitre1 }}</h2>
  161.             <h2 class="color2 text-uppercase" data-aos="fade-down" data-aos-duration="2500">{{ home.avisTitre2 }}</h2>
  162.         </div>
  163.     </div>
  164.     {% set avis5 =
  165.         '<svg style="color: rgb(255, 187, 0);" xmlns="http://www.w3.org/2000/svg"
  166.                                     xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
  167.                                     class="iconify iconify--ic" width="17" height="17"
  168.                                     preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
  169.                                     <path fill="currentColor"
  170.                                         d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27z">
  171.                                     </path>
  172.                                 </svg>
  173.                                 <svg style="color: rgb(255, 187, 0);" xmlns="http://www.w3.org/2000/svg"
  174.                                     xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
  175.                                     class="iconify iconify--ic" width="17" height="17"
  176.                                     preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
  177.                                     <path fill="currentColor"
  178.                                         d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27z">
  179.                                     </path>
  180.                                 </svg>
  181.                                 <svg style="color: rgb(255, 187, 0);" xmlns="http://www.w3.org/2000/svg"
  182.                                     xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
  183.                                     class="iconify iconify--ic" width="17" height="17"
  184.                                     preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
  185.                                     <path fill="currentColor"
  186.                                         d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27z">
  187.                                     </path>
  188.                                 </svg>
  189.                                 <svg style="color: rgb(255, 187, 0);" xmlns="http://www.w3.org/2000/svg"
  190.                                     xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
  191.                                     class="iconify iconify--ic" width="17" height="17"
  192.                                     preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
  193.                                     <path fill="currentColor"
  194.                                         d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27z">
  195.                                     </path>
  196.                                 </svg>
  197.                                 <svg style="color: rgb(255, 187, 0);" xmlns="http://www.w3.org/2000/svg"
  198.                                     xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
  199.                                     class="iconify iconify--ic" width="17" height="17"
  200.                                     preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
  201.                                     <path fill="currentColor"
  202.                                         d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27z">
  203.                                     </path>
  204.                                 </svg>'
  205.     %}
  206.     {% set avis4 =
  207.         '<svg style="color: rgb(255, 187, 0);" xmlns="http://www.w3.org/2000/svg"
  208.                                     xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
  209.                                     class="iconify iconify--ic" width="17" height="17"
  210.                                     preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
  211.                                     <path fill="currentColor"
  212.                                         d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27z">
  213.                                     </path>
  214.                                 </svg>
  215.                                 <svg style="color: rgb(255, 187, 0);" xmlns="http://www.w3.org/2000/svg"
  216.                                     xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
  217.                                     class="iconify iconify--ic" width="17" height="17"
  218.                                     preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
  219.                                     <path fill="currentColor"
  220.                                         d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27z">
  221.                                     </path>
  222.                                 </svg>
  223.                                 <svg style="color: rgb(255, 187, 0);" xmlns="http://www.w3.org/2000/svg"
  224.                                     xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
  225.                                     class="iconify iconify--ic" width="17" height="17"
  226.                                     preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
  227.                                     <path fill="currentColor"
  228.                                         d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27z">
  229.                                     </path>
  230.                                 </svg>
  231.                                 <svg style="color: rgb(255, 187, 0);" xmlns="http://www.w3.org/2000/svg"
  232.                                     xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
  233.                                     class="iconify iconify--ic" width="17" height="17"
  234.                                     preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
  235.                                     <path fill="currentColor"
  236.                                         d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27z">
  237.                                     </path>
  238.                                 </svg>
  239.                                 <svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24"><path fill="currentColor" d="m22 9.24l-7.19-.62L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27L18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27l1-4.28l-3.32-2.88l4.38-.38L12 6.1l1.71 4.04l4.38.38l-3.32 2.88l1 4.28L12 15.4z"/></svg>
  240.                                 '
  241.     %}
  242.     {% set avis3 =
  243.         '<svg style="color: rgb(255, 187, 0);" xmlns="http://www.w3.org/2000/svg"
  244.                                     xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
  245.                                     class="iconify iconify--ic" width="17" height="17"
  246.                                     preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
  247.                                     <path fill="currentColor"
  248.                                         d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27z">
  249.                                     </path>
  250.                                 </svg>
  251.                                 <svg style="color: rgb(255, 187, 0);" xmlns="http://www.w3.org/2000/svg"
  252.                                     xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
  253.                                     class="iconify iconify--ic" width="17" height="17"
  254.                                     preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
  255.                                     <path fill="currentColor"
  256.                                         d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27z">
  257.                                     </path>
  258.                                 </svg>
  259.                                 <svg style="color: rgb(255, 187, 0);" xmlns="http://www.w3.org/2000/svg"
  260.                                     xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
  261.                                     class="iconify iconify--ic" width="17" height="17"
  262.                                     preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
  263.                                     <path fill="currentColor"
  264.                                         d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27z">
  265.                                     </path>
  266.                                 </svg>
  267.                                 <svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24"><path fill="currentColor" d="m22 9.24l-7.19-.62L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27L18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27l1-4.28l-3.32-2.88l4.38-.38L12 6.1l1.71 4.04l4.38.38l-3.32 2.88l1 4.28L12 15.4z"/></svg>
  268.                                 <svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24"><path fill="currentColor" d="m22 9.24l-7.19-.62L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27L18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27l1-4.28l-3.32-2.88l4.38-.38L12 6.1l1.71 4.04l4.38.38l-3.32 2.88l1 4.28L12 15.4z"/></svg>
  269.                                 '
  270.     %}
  271.     {% set avis2 =
  272.         '<svg style="color: rgb(255, 187, 0);" xmlns="http://www.w3.org/2000/svg"
  273.                                     xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
  274.                                     class="iconify iconify--ic" width="17" height="17"
  275.                                     preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
  276.                                     <path fill="currentColor"
  277.                                         d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27z">
  278.                                     </path>
  279.                                 </svg>
  280.                                 <svg style="color: rgb(255, 187, 0);" xmlns="http://www.w3.org/2000/svg"
  281.                                     xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
  282.                                     class="iconify iconify--ic" width="17" height="17"
  283.                                     preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
  284.                                     <path fill="currentColor"
  285.                                         d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27z">
  286.                                     </path>
  287.                                 </svg>
  288.                                 <svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24"><path fill="currentColor" d="m22 9.24l-7.19-.62L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27L18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27l1-4.28l-3.32-2.88l4.38-.38L12 6.1l1.71 4.04l4.38.38l-3.32 2.88l1 4.28L12 15.4z"/></svg>
  289.                                 <svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24"><path fill="currentColor" d="m22 9.24l-7.19-.62L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27L18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27l1-4.28l-3.32-2.88l4.38-.38L12 6.1l1.71 4.04l4.38.38l-3.32 2.88l1 4.28L12 15.4z"/></svg>
  290.                                 <svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24"><path fill="currentColor" d="m22 9.24l-7.19-.62L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27L18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27l1-4.28l-3.32-2.88l4.38-.38L12 6.1l1.71 4.04l4.38.38l-3.32 2.88l1 4.28L12 15.4z"/></svg>
  291.                                 '
  292.     %}
  293.     {% set avis1 =
  294.         '<svg style="color: rgb(255, 187, 0);" xmlns="http://www.w3.org/2000/svg"
  295.                                     xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
  296.                                     class="iconify iconify--ic" width="17" height="17"
  297.                                     preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
  298.                                     <path fill="currentColor"
  299.                                         d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27z">
  300.                                     </path>
  301.                                 </svg>
  302.                                 <svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24"><path fill="currentColor" d="m22 9.24l-7.19-.62L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27L18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27l1-4.28l-3.32-2.88l4.38-.38L12 6.1l1.71 4.04l4.38.38l-3.32 2.88l1 4.28L12 15.4z"/></svg>
  303.                                 <svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24"><path fill="currentColor" d="m22 9.24l-7.19-.62L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27L18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27l1-4.28l-3.32-2.88l4.38-.38L12 6.1l1.71 4.04l4.38.38l-3.32 2.88l1 4.28L12 15.4z"/></svg>
  304.                                 <svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24"><path fill="currentColor" d="m22 9.24l-7.19-.62L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27L18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27l1-4.28l-3.32-2.88l4.38-.38L12 6.1l1.71 4.04l4.38.38l-3.32 2.88l1 4.28L12 15.4z"/></svg>
  305.                                 <svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24"><path fill="currentColor" d="m22 9.24l-7.19-.62L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27L18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27l1-4.28l-3.32-2.88l4.38-.38L12 6.1l1.71 4.04l4.38.38l-3.32 2.88l1 4.28L12 15.4z"/></svg>
  306.                                 '
  307.     %}
  308.     <div class="row row-cols-1 row-cols-md-4 g-4 avis-cards">
  309.         {% for avis in avis %}
  310.             <div class="col">
  311.                 <a class="text-decoration-none text-dark" href="{{ path('app_office_show', {'slug': avis.office.slug}) }}">
  312.                     <div class="card h-100">
  313.                         <div class="card-body">
  314.                             {# <h5 class="color1 text-uppercase text-center card-title" data-aos="fade-down" data-aos-duration="1000">Office de Melun</h5> #}
  315.                                 {# {% dump(avis.office.slug) %} #}
  316.                                 <p class="card-text">
  317.                                     <div class="row mt-4">
  318.                                         <div class="col-3">
  319.                                             <img src="{{ asset('assets/img/avis/' ~ avis.image ) }}"
  320.                                             class="rounded-circle img-fluid" alt="Avis" style="max-width: 100px; width: 100%;">
  321.                                         </div>
  322.                                         <div class="col small">
  323.                                             <span class="fw-bold">{{ avis.firstname }} {{ avis.lastname }}</span>
  324.                                             <br>
  325.                                             {% if avis.eval == 5 %}
  326.                                                 {{ avis5|raw }}
  327.                                             {% elseif avis.eval == 4 %}
  328.                                                 {{ avis4|raw }}
  329.                                             {% elseif avis.eval == 3 %}
  330.                                                 {{ avis3|raw }}
  331.                                             {% elseif avis.eval == 2 %}
  332.                                                 {{ avis2|raw }}
  333.                                             {% elseif avis.eval == 1 %}
  334.                                                 {{ avis1|raw }}
  335.                                             {% endif %}
  336.                                             <span class="text-xxsmall">
  337.                                                 {{ avis.createdAt|ago }}
  338.                                             </span>
  339.                                         </div>
  340.                                     </div>
  341.                                     <div class="row">
  342.                                         <div class="col">
  343.                                             <p class="mt-3 small">
  344.                                                 <span class="small text-muted">Office : {{ avis.office.titre }}</span>
  345.                                                 <br>
  346.                                                 {{ avis.content|replace({'<div>': '', '</div>': '',})|raw }}
  347.                                             </p>
  348.                                         </div>
  349.                                     </div>
  350.                                 </p>
  351.                         </div>
  352.                     </div>
  353.                 </a>
  354.             </div>
  355.         {% endfor %}
  356.     </div>
  357. </section>
  358. <script>
  359. let imageContainer = document.querySelectorAll('.hoverimage');
  360. imageContainer.forEach(container => {
  361.     container.addEventListener('mouseover', function() {
  362.         let bgImage = container.children[1];
  363.         if (bgImage.classList.contains('nodisplay') != false)
  364.         {
  365.             bgImage.classList.remove('nodisplay');
  366.         }
  367.     })
  368.     container.addEventListener('mouseleave', function() {
  369.         let bgImage = container.children[1];
  370.         if (bgImage.classList.contains('nodisplay') == false)
  371.         {
  372.             bgImage.classList.add('nodisplay');
  373.         }
  374.     })
  375. })
  376. </script>
  377. {% endfor %}
  378. {% endblock %}