src/Flexy/FrontBundle/templates/booking/singleOffer/_singleOffer.html.twig line 1

Open in your IDE?
  1.                                         
  2.   
  3.                                         <!-- single-product-wrap start -->
  4.                                         <div class="single-product-wrap">
  5.                                             <div class="menu-item product-image">
  6.                                                 <a href="{{path('single_offer',{id:singleOffer.id})}}">
  7.                                                 {% if singleOffer.image %}
  8.                                                     <img style="width: 250px;height: 200px;" src="{{ asset('uploads/' ~ singleOffer.image) | imagine_filter('my_thumb') }}" alt="{{singleOffer.name}}" />
  9.                                                     
  10.                                                 {% else %}
  11.                                                     <img height="136" src="{{asset("bundles/flexyfront/assets/images/picture.png")}}" alt="{{singleOffer.name}}">
  12.                                                 {% endif %}
  13.                                                 </a>
  14.                                                  {% if singleOffer.oldPrice %}  
  15.                                                 {% set factoryPercent = singleOffer.price / singleOffer.oldPrice %}
  16.                                                 {% set percent = 100 - (factoryPercent * 100 ) %}                                              
  17.                                                <!-- <span class="sticker"> <b> - {{ percent|number_format(0, ',', ' ') }} %</b></span>-->
  18.                                                 {% endif %}
  19.                                             </div>
  20.                                             <div class="product_desc">
  21.                                                 <div class="product_desc_info">
  22.                                                     <div class="product-review">
  23.                                                         {# 
  24.                                                         <h5 class="manufacturer menu-item">
  25.                                                             <a href="{{singleOffer.vendor ? path('single_vendor',{id:singleOffer.vendor.id}) : "#" }}">{{singleOffer.brand ? singleOffer.brand :""}}   <br>
  26.                                                             <small style="font-weight:200;">{{singleOffer.vendor ? "Par "~ singleOffer.vendor:""}}</small>
  27.                                                             </a>
  28.                                                             
  29.                                                         </h5>
  30.                                                         #}
  31.                                                        
  32.                                                     </div>
  33.                                                     <h4><a class="product_name" href="{{path('single_offer',{id:singleOffer.id})}}">{{singleOffer.name}}</a></h4>
  34.                                                     <div class="rating-box">
  35.                                                             <ul class="rating">
  36.                                                                 <li><i class="fa fa-star"></i></li>
  37.                                                                 <li><i class="fa fa-star"></i></li>
  38.                                                                 <li><i class="fa fa-star"></i></li>
  39.                                                                 <li class="no-star"><i class="fa fa-star"></i></li>
  40.                                                                 <li class="no-star"><i class="fa fa-star"></i></li>
  41.                                                             </ul>
  42.                                                         </div>
  43.                                                     <div class="price-box">
  44.                                                         <span class="new-price">{{singleOffer.formattedPrice}} MAD </span>
  45.                                                         {% if singleOffer.oldPrice %}
  46.                                                         <span class="old-price">{{singleOffer.oldPrice / 100}} MAD</span>
  47.                                                         {% endif %}
  48.                                                     </div>
  49.                                                     
  50.                                                     <!--<div class="countersection">
  51.                                                         <div data-endat="{{singleOffer.endAt|date("Y/m/d")}}" class="li-countdown"></div>
  52.                                                            
  53.                                                     </div>-->
  54.                                             
  55.                                              {% if singleOffer.oldPrice %}  
  56.                                                 {% set factoryPercent = singleOffer.price / singleOffer.oldPrice %}
  57.                                                 {% set percent = 100 - (factoryPercent * 100 ) %}  
  58.                                                     <label class="mt-5" style="background: #ea322e;font-size: 11px;border: 1px solid #ea322e;padding: 4px;border-radius: 4px;color: #ffffff;margin-right: 8px;">Réduction - {{ percent|number_format(0, ',', ' ') }} %</label>
  59.                                                 {% endif %}
  60.                                                 </div>
  61.                                              
  62.                                             </div>
  63.                                         </div>
  64.                                         <!-- single-product-wrap end -->
  65.                                         
  66.