templates/partials/bestsales.html.twig line 1

Open in your IDE?
  1. <section class="image-blocks image-blocks-header">
  2.     <div class="section-header best_sale_header" style="background-image:url({{ asset('HotelImages/179891.jpg') }})">
  3.         <div class="container">
  4.             <h2 class="title"><span>{{ 'Our'|trans }}</span> {{ 'Best apartments'|trans }} <a href="{{ url('rooms') }}" class="btn btn-sm btn-clean-dark">{{ 'View all'|trans }}</a></h2>
  5.             <p> {{ 'Comfort and coziness.'|trans}} </p>
  6.         </div>
  7.     </div>
  8.     <div class="container">
  9.         {% for key, room in specialRooms %}
  10.             <div class="blocks blocks-{% if loop.index is divisible by(2) %}right{% else %}left{% endif %}">
  11.                 <div class="item">
  12.                     <div class="text">
  13.                         <!-- === room info === -->
  14.                         <h2 class="title">{{ room.name|trans }}</h2>
  15.                         <p>
  16.                             {{ room.description|slice(0, 200) ~ '...' }}
  17.                         </p>
  18.                         <!-- === room facilities === -->
  19.                         <div class="room-facilities clearfix">
  20.                             {% if room.properties.air_conditioning %}
  21.                                 <div class="col-xs-6 col-sm-2">
  22.                                     <figure>
  23.                                         <figcaption>
  24.                                             <span class="hotelicon hotelicon-air-condition"></span>
  25.                                             <p>{{ 'Aircondition'|trans }}</p>
  26.                                         </figcaption>
  27.                                     </figure>
  28.                                 </div>
  29.                             {% endif %}
  30.                             {% if room.properties.king_size_bed %}
  31.                                 <div class="col-xs-6 col-sm-2">
  32.                                     <figure>
  33.                                         <figcaption>
  34.                                             <span class="hotelicon hotelicon-king-bed"></span>
  35.                                             <p>{{ 'Kingsize bed'|trans }}</p>
  36.                                         </figcaption>
  37.                                     </figure>
  38.                                 </div>
  39.                             {% endif %}
  40.                             {% if room.properties.breakfast %}
  41.                                 <div class="col-xs-6 col-sm-2">
  42.                                     <figure>
  43.                                         <figcaption>
  44.                                             <span class="hotelicon hotelicon-dining"></span>
  45.                                             <p>{{ 'Breakfast'|trans }}</p>
  46.                                         </figcaption>
  47.                                     </figure>
  48.                                 </div>
  49.                             {% endif %}
  50.                             <div class="col-xs-6 col-sm-2">
  51.                                 <figure>
  52.                                     <figcaption>
  53.                                         <span class="hotelicon hotelicon-guest"></span>
  54.                                         {% if room.properties.persons == 1 %}
  55.                                             <p>{{ room.properties.persons }} {{ 'Person'|trans }}</p>
  56.                                         {% elseif room.properties.persons  in  [2,3,4]  %}
  57.                                             <p>{{ room.properties.persons }} {{ 'Peoples'|trans }}</p>
  58.                                         {% else %}
  59.                                             <p>{{ room.properties.persons }} {{ 'People'|trans }}</p>
  60.                                         {% endif %}
  61.                                     </figcaption>
  62.                                 </figure>
  63.                             </div>
  64.                             {% if room.properties.wi_fi %}
  65.                                 <div class="col-xs-6 col-sm-2">
  66.                                     <figure>
  67.                                         <figcaption>
  68.                                             <span class="hotelicon hotelicon-wifi"></span>
  69.                                             <p>{{ 'Internet'|trans }}</p>
  70.                                         </figcaption>
  71.                                     </figure>
  72.                                 </div>
  73.                             {% endif %}
  74.                             {% if room.properties.tv %}
  75.                                 <div class="col-xs-6 col-sm-2">
  76.                                     <figure>
  77.                                         <figcaption>
  78.                                             <span class="hotelicon hotelicon-tv"></span>
  79.                                             <p>TV</p>
  80.                                         </figcaption>
  81.                                     </figure>
  82.                                 </div>
  83.                             {% endif %}
  84.                             {% if room.properties.swimming_pool %}
  85.                                 <div class="col-xs-6 col-sm-2">
  86.                                     <figure>
  87.                                         <figcaption>
  88.                                             <span class="hotelicon hotelicon-pool"></span>
  89.                                             <p>{{ 'Swimming pool'|trans }}</p>
  90.                                         </figcaption>
  91.                                     </figure>
  92.                                 </div>
  93.                             {% endif %}
  94.                             {% if room.properties.room_service %}
  95.                                 <div class="col-xs-6 col-sm-2">
  96.                                     <figure>
  97.                                         <figcaption>
  98.                                             <span class="hotelicon hotelicon-roomservice"></span>
  99.                                             <p>{{ 'Room service'|trans }}</p>
  100.                                         </figcaption>
  101.                                     </figure>
  102.                                 </div>
  103.                             {% endif %}
  104.                             <div class="col-xs-6 col-sm-2">
  105.                                 <figure>
  106.                                     <figcaption>
  107.                                         <span class="hotelicon hotelicon-parking"></span>
  108.                                         <p>{{ 'Free parking'|trans }}</p>
  109.                                     </figcaption>
  110.                                 </figure>
  111.                             </div>
  112.                         </div>
  113.                         <!-- === booking === -->
  114.                         <div class="book">
  115.                             <div>
  116.                                 <a href="#" class="btn btn-danger btn-lg">{{ 'Book'|trans }}</a>
  117.                             </div>
  118.                             <div>
  119.                                 <span class="price h2">{{ room.formated_price }}</span>
  120.                                 {% if room.min_rental_days > 1 %}
  121.                                     <span>{{ 'per'|trans }} {{ room.min_rental_days }} {{ 'nights'|trans }}</span>
  122.                                 {% else %}
  123.                                     <span>{{ 'per'|trans }} {{ room.min_rental_days }} {{ 'night'|trans }}</span>
  124.                                 {% endif %}
  125.                             </div>
  126.                         </div> <!--/booking-->
  127.                     </div><!--/text-->
  128.                 </div> <!--/item-->
  129.                 <div class="image" style="background-image:url({{ asset(room.photo) }})">
  130.                     <img src="{{ asset(room.photo) }}" alt="{{ room.name }}" />
  131.                 </div>
  132.             </div>
  133.         {% endfor %}
  134.     </div> <!--/container-->
  135. </section>