src/Resources/views/Live/Portal/next_sales.html.twig line 136

Open in your IDE?
  1. {% extends 'base_portal.html.twig' %}
  2. {% block meta_robot %}
  3.     {{ parent() }}
  4.     <link rel="canonical" href="{{ url('live_portal_next_sales') }}"/>
  5.     {{ source('stubs/seo/robots_noindex_nofollow.html.twig') }}
  6. {% endblock %}
  7. {% block meta_title %}{{ 'seo.live.nextSales.title'|trans({}, "seo") }}{% endblock %}
  8. {% block meta_desc %}{{ 'seo.live.nextSales.desc'|trans({}, "seo") }}{% endblock %}
  9. {% block body_content %}
  10.     <div class="live-prochaines-vente">
  11.         <div class="landing-header">
  12.             <h1 class="titre05">
  13.             <span class="block">
  14.                 {% if app.request.locale == constant('App\\Twig\\Extension\\CountryExtension::LOCALE_PORTUGUESE') %}
  15.                     <img src="{{ asset('bundles/vpauto/frontend/images/icones/icon-live-pt.webp') }}" alt="">
  16.                 {% else %}
  17.                     <img src="{{ asset('bundles/vpauto/frontend/images/icones/icon-live-fr.webp') }}" alt="">
  18.                 {% endif %}
  19.             </span>
  20.                 {{ 'frontend.live.next-sales.header.subtitle'|trans }}
  21.             </h1>
  22.         </div>
  23.         <div class="landing-content">
  24.             <div>
  25.                 {% for item in todaysLive %}
  26.                     <div class="block01">
  27.                         <p class="titre01"><strong>{{ 'frontend.live.next-sales.content.sale_ended'|trans }}</strong>
  28.                         </p>
  29.                         <p class="titre03 marginT10"><strong>{{ item.room.code|upper }}
  30.                                 - {{ item.startDate|locale_date(pattern='EEEE d LLLL', locale=app.request.locale)|capitalize }}</strong>
  31.                         </p>
  32.                     </div>
  33.                     <div class="separateur"></div>
  34.                 {% endfor %}
  35.                 <div>
  36.                     <div>
  37.                         {% for sale in sales %}
  38.                             {% if loop.first %}
  39.                                 {% set firstDate = sale.startDate %}
  40.                             {% endif %}
  41.                             <div class="txtcenter">
  42.                                 <h2 class="titre01">
  43.                                     <strong>{{ sale.room.code|upper }}
  44.                                         - {{ sale.activeVehicles|length }} {{ 'frontend.live.next-sales.content.vehicles'|trans }}</strong>
  45.                                 </h2>
  46.                                 <h2 class="date">{{ sale.startDate|locale_date(pattern='EEEE d LLLL yyyy', locale=app.request.locale) }}</h2>
  47.                                 <div class="block01">
  48.                                     <p class="titre04 opening-in">{{ 'frontend.live.next-sales.content.open_in'|trans }}</p>
  49.                                     <div class="counter must-fade fade-title clearfix"
  50.                                          data-end="{{ get_real_starting_hour(sale)|date('Y/m/d H:i:s') }}">
  51.                                         <ul class="counter-block">
  52.                                             <li class="m-hide"><i class="icon-chrono01"></i></li>
  53.                                             <li>
  54.                                                 <span class="number days">00</span>
  55.                                                 <span>{{ 'frontend.live.next-sales.content.timer.days'|trans }}</span>
  56.                                             </li>
  57.                                             <li>
  58.                                                 <span class="number hours">00</span>
  59.                                                 <span>{{ 'frontend.live.next-sales.content.timer.hours'|trans }}</span>
  60.                                             </li>
  61.                                             <li>
  62.                                                 <span class="number minutes">00</span>
  63.                                                 <span>{{ 'frontend.live.next-sales.content.timer.minutes'|trans }}</span>
  64.                                             </li>
  65.                                         </ul>
  66.                                     </div>
  67.                                 </div>
  68.                                 <div class="marginT30">
  69.                                     {% if sale.noVehicles != true %}
  70.                                         <a href="{{ path('frontend_search_by_sale', {'sale': sale.room.code|lower}) }}"
  71.                                            class="lien09" title="">
  72.                                             <i class="icon-liste"></i> {{ 'frontend.live.next-sales.content.button.list'|trans }}
  73.                                         </a>
  74.                                     {% endif %}
  75.                                     {% if todaysLive is null and firstDate == sale.startDate %}
  76.                                         {% if is_suscribed_to(app.user, sale) %}
  77.                                             <a href="{{ path('live_portal_sale_hours', {'saleId': sale.id}) }}"
  78.                                                class="lien09" title="">
  79.                                                 <i class="icon-sinscrire"></i> {{ 'frontend.live.next-sales.content.button.already_registered'|trans }}
  80.                                             </a>
  81.                                         {% else %}
  82.                                             <span data-o="{{ base64_encode(path('vpauto_frontend_live', {'saleId': sale.id})) }}" class="obflink lien09" role="link">
  83.                                                 <i class="icon-sinscrire"></i> {{ 'frontend.live.next-sales.content.button.registration'|trans }}
  84.                                             </span>
  85.                                         {% endif %}
  86.                                     {% endif %}
  87.                                     {% if sale.endDate|date('U') > 'now'|date('U') and get_real_starting_hour(sale)|date('U') < 'now'|date('U') %}
  88.                                         <a href="{{ path('live_portal_sale_hours', {'saleId': sale.id}) }}"
  89.                                            class="lien07" title="">
  90.                                             {% if app.request.locale == constant('App\\Twig\\Extension\\CountryExtension::LOCALE_PORTUGUESE') %}
  91.                                                 <img
  92.                                                     src="{{ asset('bundles/vpauto/frontend/images/icones/icon-live-pt.webp') }}"
  93.                                                     class="icon-live w-26" alt="">
  94.                                             {% else %}
  95.                                                 <img
  96.                                                     src="{{ asset('bundles/vpauto/frontend/images/icones/icon-live-fr.webp') }}"
  97.                                                     class="icon-live w-26" alt="">
  98.                                             {% endif %}
  99.                                             {{ 'frontend.live.next-sales.content.button.running'|trans }}
  100.                                         </a>
  101.                                     {% else %}
  102.                                         <a href="{{ path('live_portal_sale_hours', {'saleId': sale.id}) }}"
  103.                                            class="lien09" title="">
  104.                                             <i class="icon-horaires-live"></i> {{ 'frontend.live.next-sales.content.button.hours'|trans }}
  105.                                         </a>
  106.                                     {% endif %}
  107.                                 </div>
  108.                             </div>
  109.                             <div class="separateur"></div>
  110.                         {% endfor %}
  111.                     </div>
  112.                     <div>
  113.                         <div class="txtcenter">
  114.                             {% if is_suscribed_to(app.user, next_live()) == false %}
  115.                                 <a href="{{ path('live_portal_access') }}" class="lien04" title="">
  116.                                     <i class="icon-asses-seconnecter"></i> {{ 'frontend.live.next-sales.content.button.choose_access'|trans }}
  117.                                 </a>
  118.                             {% endif %}
  119.                             <a href="{{ guideUrl }}" target="_blank" class="lien08" title="">
  120.                                 <i class="icon-mode-emploi"></i> {{ 'frontend.live.next-sales.content.button.guide'|trans }}
  121.                             </a>
  122.                         </div>
  123.                         <div class="txtcenter marginT20">
  124.                             <img src="{{ asset('bundles/vpauto/frontend/images/logo_BNP.jpg') }}" alt="BNP Paribas">
  125.                         </div>
  126.                     </div>
  127.                     <div class="clearfix"></div>
  128.                 </div>
  129.             </div>
  130.         </div>
  131.     </div>
  132.     <!--Footer -->
  133.     {% include 'frontend/footer.html.twig' %}
  134.     <!-- FIN Footer -->
  135. {% endblock %}