templates/front/bookmark/wish_list.html.twig line 1

Open in your IDE?
  1. {% extends 'front/base_front.html.twig' %}
  2. {% block title %}{{ 'Pages.WishList.Title'|trans({} , 'messages_front') }}{% endblock %}
  3. {% block container %}
  4.     {% if responseHotels is not empty %}
  5.         <section id="explore_area" class="section_padding">
  6.         <div class="container">
  7.             <div class="row">
  8.                 {% for favoritehotel in responseHotels %}
  9.                     <div class="col-lg-3 col-md-6 col-sm-6 col-12">
  10.                         <div class="theme_common_box_two img_hover">
  11.                             <div class="theme_two_box_img">
  12.                                 <img src="{{ favoritehotel.thumbImage }}" style="height: 300px;" alt="{{ favoritehotel.name }}">
  13.                                 <p><i class="fas fa-map-marker-alt"></i>{{ favoritehotel.city }}
  14.                                     , {{ favoritehotel.country }}
  15.                                 </p>
  16.                             </div>
  17.                             <div class="theme_two_box_content">
  18.                                 <h4>
  19.                                     {{ favoritehotel.name }}
  20.                                 </h4>
  21.                                 <span class="review_star">
  22.                                   <span class="form-check-label" for="flexCheckDefault">
  23.                                          {% for i in 1..favoritehotel.starRating %}
  24.                                              <i class="fas fa-star color_theme"></i>
  25.                                          {% endfor %}
  26.                                   </span>
  27.                             </span>
  28.                                 <p></p>
  29.                                 <h3>
  30.                                     <a href="{{ path('hotel_detail', {id: favoritehotel.hotelId, country_label:  favoritehotel.country, city_label: favoritehotel.city, hotel_label: favoritehotel.name}) }}">
  31.                                         <center>
  32.                                             <button type="button" class="btn btn-primary">
  33.                                                 {{ 'Pages.WishList.Buttons.ShowHotel'|trans({}, 'messages_front') }}
  34.                                             </button>
  35.                                         </center>
  36.                                     </a>
  37.                                 </h3>
  38.                             </div>
  39.                         </div>
  40.                     </div>
  41.                 {% endfor %}
  42.             </div>
  43.         </div>
  44.         </section>
  45.     {% endif %}
  46.     {% if responseParties is not empty %}
  47.         <h1>{{ 'Pages.WishList.Fields.WishListParty'|trans({}, 'messages_front') }}</h1>
  48.         <div class="container">
  49.             <div class="row">
  50.                 {% for party in responseParties %}
  51.                     {% set hotel = party.hotelStayRequired == 1 ? party.hotelContract.hotel : "" %}
  52.                     {% set city = party.hotelStayRequired == 1 ? hotel.city : party.city %}
  53.                     {% set cityName =city|replace({' ': '-'}) %}
  54.                     {% set currency =  party.provider.currency %}
  55.                     <div class="col-lg-3 col-md-6 col-sm-6 col-12">
  56.                         <div class="theme_common_box_two img_hover">
  57.                             <div class="theme_two_box_img">
  58.                                 {% set primary_image = null %}
  59.                                 {% for image in party.images %}
  60.                                     {% if image.displayOrder == 1 %}
  61.                                         {% set primary_image = image %}
  62.                                     {% endif %}
  63.                                 {% endfor %}
  64.                                 <img class="img-party" loading="lazy"
  65.                                      src="{{ absolute_url(primary_image.url |default( asset('front/assets/img/tab-img/hotel1.png'))) }}"
  66.                                      alt="{{ party.title }}">
  67.                                 <p><i class="fas fa-map-marker-alt"></i>{{ city }}
  68.                                     , {{ city is not null ? city.country : '' }}</p>
  69.                                 {% if (party.hotelStayRequired == 1) %}
  70.                                     <div class="ribbon-party">
  71.                                         Séjour <br> obligatoire
  72.                                     </div>
  73.                                 {% endif %}
  74.                             </div>
  75.                             <div class="theme_two_box_content">
  76.                                 <a href="{{ path('app_front_party_detail' , {
  77.                                     id : party.id,
  78.                                     partyName:party.title|replace({' ': '-'}),
  79.                                     city:cityName,
  80.                                     hotelName: hotel is not empty? hotel.name|trim |replace({' ': '-'}) :  party.address|trim |replace({' ': '-'})
  81.                                 }) }}" target="_blank">
  82.                                     <h4>
  83.                                         {{ party.title }}
  84.                                     </h4>
  85.                                     <p class="text-nowrap">
  86.                                         {% if party.address is not empty %}
  87.                                             <i class="fas fa-map"></i> {{ party.address }}
  88.                                         {% endif %}
  89.                                         {% if hotel is not empty %}
  90.                                             <i class="fas fa-map"></i> {{ hotel }}
  91.                                         {% endif %}
  92.                                     </p>
  93.                                 </a>
  94.                                 <p class=p-date-party>
  95.                             <span class="date-party"> <i
  96.                                         class="bi bi-calendar3"></i> {{ party.date|date('d/m/Y') }}
  97.                             </span>
  98.                                     {% if hotel is not empty %}
  99.                                         <span class="star-hotel-party">
  100.                                             {% for _ in 0 .. hotel.starRating %}
  101.                                                 <i class="fas fa-star color_theme"></i>
  102.                                             {% endfor %}
  103.                                     </span>
  104.                                     {% endif %}
  105.                                 </p>
  106.                                 <h3>
  107.                                     <span>Price starts from</span>
  108.                                     {{ party.productElements|reduce( (lowest , partyZone) => min(lowest ??
  109.                                         partyZone.adultSalePrice  , partyZone.adultSalePrice )) |format_currency(
  110.                                         currency,
  111.                                         {rounding_mode: 'floor'} , locale='de'
  112.                                     ) }}
  113.                                     <sup>{{ currency }}</sup>
  114.                                 </h3>
  115.                             </div>
  116.                         </div>
  117.                     </div>
  118.                 {% endfor %}
  119.             </div>
  120.         </div>
  121.     {% endif %}
  122. {% endblock %}