src/Resources/views/Frontend/home/_sales_list.html.twig line 1

Open in your IDE?
  1. <div class="block-table03 clearfix">
  2.     <table class="table03 marginT30">
  3.         {% for currentSale in currentSales %}
  4.             {% set sale = currentSale.sale %}
  5.             <tr class="sale-item {{ sale.type|lower }} {{ sale.exclusive ? 'exclu' : 'nonexclu' }} {{ currentSale.count_active_vehicles == 0 ? 'disabled' : '' }}">
  6.                 <td>
  7.                     <div class="nom-vente">
  8.                         <a href="{{ path('frontend_search_by_sale', {'sale': sale.id}) }}" title="" class="inbl">
  9.                             {% if sale is defined and sale is not null and sale.type is constant('TYPE_ONLINE', sale) %}
  10.                                 <span><i class="icon-vente-web"></i></span>
  11.                                 <span>
  12.                                     <span class="txttransform bold">
  13.                                         {{ sale.displayedNameWithoutDate }}
  14.                                         {% include '/Frontend/pro/_flag.html.twig' with {'country': sale.country} %}
  15.                                         {% if sale.isTypePhysical %}
  16.                                             {{ sale.startDate|date('d/m/Y') }}
  17.                                         {% endif %}
  18.                                     </span>
  19.                                     <span class="marginR10 font14">{{ sale.salingType|trans }}</span>
  20.                                     <span>{{ currentSale.count_vehicles }} <i class="icon-nb-vehicules"></i></span>
  21.                                 </span>
  22.                             {% else %}
  23.                                 <span><i class="icon-vente-en-salle"></i></span>
  24.                                 <span>
  25.                                     <span class="txttransform bold">
  26.                                         {{ sale.displayedNameWithoutDate }}
  27.                                         {% include '/Frontend/pro/_flag.html.twig' with {'country': sale.country} %}
  28.                                         {% if sale.isTypePhysical %}
  29.                                             {{ sale.startDate|date('d/m/Y') }}
  30.                                         {% endif %}
  31.                                     </span>
  32.                                     <span
  33.                                         class="marginR10 font14">{{ "frontend.home_content.pro.sale.description"|trans }}</span>
  34.                                     <span>{{ currentSale.count_vehicles }} <i class="icon-nb-vehicules"></i></span>
  35.                                     <span class="block font14">
  36.                                         {% if sale.room is not null and sale.type is constant('TYPE_PHYSICAL', sale) and sale.status != constant('STATUS_CLOSED', sale) %}
  37.                                             {% if sale.hasPriorExposition or sale.dayExpositionTime is not null %}
  38.                                                 {{ 'frontend.home_content.pro.exposing.room'|trans }}
  39.                                                 {{ sale.expositionStartDate|date('d/m') }}
  40.                                                 {{ 'frontend.home_content.exposing.from'|trans }}
  41.                                                 {{ sale.expositionStartDate|date('H:i') }}
  42.                                                 {{ 'frontend.home_content.exposing.to'|trans }}
  43.                                                 {{ sale.expositionEndDate|date('H:i') }}
  44.                                                 {% if sale.dayExpositionTime is not null %}
  45.                                                     {{ 'frontend.home_content.exposing.and'|trans }}
  46.                                                     {{ sale.startDate|date('d/m') }}
  47.                                                     {{ 'frontend.home_content.exposing.and.from'|trans }}
  48.                                                     {{ sale.dayExpositionDateTime|date('H:i') }}
  49.                                                 {% endif %}
  50.                                             {% elseif sale.room.isInternet %}
  51.                                                 {% include '/Frontend/home/_internet_room.html.twig' with { 'room': sale.room, 'roomCode': sale.room.code|trim|lower, 'id': sale.id } %}
  52.                                             {% endif %}
  53.                                         {% endif %}
  54.                                     </span>
  55.                                 </span>
  56.                             {% endif %}
  57.                         </a>
  58.                     </div>
  59.                     <div class="marginT20">
  60.                         {% if sale.type is constant('TYPE_ONLINE', sale) %}
  61.                             {% if sale.startDate|date('U') > 'now'|date('U') %}
  62.                                 {% if sale.provider is defined and constant('App\\Api\\RMS\\SaleEventDataPersister::PROVIDER_NAME') == sale.provider %}
  63.                                     <p class="marginT20">
  64.                                         {{ 'frontend.home_content.pro.sale.opening'|trans({'%day%':sale.startDate|locale_date(pattern='dd/MM/yyyy'), '%time%' : sale.endDate|locale_date(pattern='HH:mm')}) }}
  65.                                     </p>
  66.                                 {% else %}
  67.                                     {% set hideDay = date('now').diff(sale.startDate)|date("%d") < 1 %}
  68.                                     {% set hideHours = date('now').diff(sale.startDate)|date("%d") < 1 and date('now').diff(sale.startDate)|date("%H") == 0 %}
  69.                                     <span
  70.                                         class="block marginB10">{{ 'frontend.home_content.pro.bid_opening'|trans }}<br>{{ 'frontend.home_content.pro.exposing.in_progress :'|trans }}</span>
  71.                                     <span class="inbl marginR10"><i class="icon-compteur-noir"></i></span>
  72.                                     <span
  73.                                         class="countdown-homepage-sale {{ hideDay ? 'hide-day':'hide-secondes' }} {{ hideHours ? 'hide-hours' }}"
  74.                                         data-lang="{{ app.request.locale }}"
  75.                                         data-target-date="{{ sale.startDate|date('Y/m/d H:i:s') }}"
  76.                                         data-server-date="{{ path('frontend_server_date') }}"></span>
  77.                                 {% endif %}
  78.                             {% else %}
  79.                                 {% set hideDay = date('now').diff(sale.endDate)|date("%d") < 1 %}
  80.                                 {% set hideHours = date('now').diff(sale.endDate)|date("%d") < 1 and date('now').diff(sale.endDate)|date("%H") == 0 %}
  81.                                 {% set hideMinutes = date('now').diff(sale.endDate)|date("%d") < 1 and date('now').diff(sale.endDate)|date("%H") == 0 and date('now').diff(sale.endDate)|date("%i") == 0 %}
  82.                                 {% if hideHours %}
  83.                                     <span
  84.                                         class="block texte01 marginB10">{{ 'frontend.home_content.pro.last_minutes :'|trans }}</span>
  85.                                 {% else %}
  86.                                     <span
  87.                                         class="block marginB10">{{ 'frontend.home_content.pro.logged_in.sale.auction_in_progress'|trans }}</span>
  88.                                 {% endif %}
  89.                                 {% if not (sale.provider is defined and constant('App\\Api\\RMS\\SaleEventDataPersister::PROVIDER_NAME') == sale.provider) %}
  90.                                     <span class="inbl marginR10"><i
  91.                                             class="icon-compteur-{{ hideHours ? 'orange':'noir' }}"></i></span>
  92.                                     <span
  93.                                         class="countdown-homepage-sale {{ hideDay ? 'hide-day' }} {{ hideHours ? 'hide-hours texte01' }} {{ hideMinutes ? 'hide-minutes texte01' }}"
  94.                                         data-lang="{{ app.request.locale }}"
  95.                                         data-target-date="{{ sale.endDate|date('Y/m/d H:i:s') }}"
  96.                                         data-server-date="{{ path('frontend_server_date') }}"></span>
  97.                                 {% endif %}
  98.                             {% endif %}
  99.                             {% if sale.provider is defined and constant('App\\Api\\RMS\\SaleEventDataPersister::PROVIDER_NAME') == sale.provider and datesForExternalSales[sale.id] is defined %}
  100.                                 {% set maxDate = datesForExternalSales[sale.id].max_closedAt %}
  101.                                 {% set minDate = datesForExternalSales[sale.id].min_closedAt %}
  102.                                 <p class="marginT20">
  103.                                     {{ 'frontend.home_content.pro.sale.closing'|trans ~ ' : ' ~ 'frontend.header_sale.label.from'|trans }}
  104.                                     {{ minDate|locale_date(pattern='dd MMMM yyyy', locale=app.request.locale) ~ ' ' ~ 'frontend.home_content.pro.logged_in.sale.to'|trans ~ ' ' ~ minDate|locale_date(pattern='HH:mm') }}
  105.                                     {{ 'frontend.header_sale.label.until'|trans }}
  106.                                     {{ maxDate|locale_date(pattern='dd MMMM yyyy', locale=app.request.locale) ~ ' ' ~ 'frontend.home_content.pro.logged_in.sale.to'|trans ~ ' ' ~ maxDate|locale_date(pattern='HH:mm') }}
  107.                                     <span class="bubule">?<span class="bul-cont">{{ 'frontend.home_content.pro.logged_in.sale.rms.date'|trans }}</span></span>
  108.                                 </p>
  109.                             {% else %}
  110.                                 <p class="marginT20">
  111.                                     {{ 'frontend.home_content.pro.sale.closing'|trans ~ ' : ' ~ sale.endDate|locale_date(pattern='dd MMMM yyyy', locale=app.request.locale) ~ ' ' ~ 'frontend.home_content.pro.logged_in.sale.to'|trans ~ ' ' ~ sale.endDate|locale_date(pattern='HH:mm') }}
  112.                                 </p>
  113.                             {% endif %}
  114.                             <p class="marginT20 block-btn">
  115.                                 {% if sale.startDate|date('U') > 'now'|date('U') %}
  116.                                     <a href="{{ path('frontend_search_by_sale', {'sale': sale.id}) }}"
  117.                                        class="lien12 {{ 'salle-' ~ sale.room.code|lower }}">{{ 'frontend.home_content.sale.button.show'|trans }}
  118.                                         <span>{{ 'frontend.home_content.pro.logged_in.sale.submit_order'|trans }}</span></a>
  119.                                 {% else %}
  120.                                     <a href="{{ path('frontend_search_by_sale', {'sale': sale.id}) }}"
  121.                                        class="lien12 {{ 'salle-' ~ sale.room.code|lower }} {% if app.user is null %}non-connecte{% endif %}">{{ 'frontend.home_content.sale.button.show'|trans }} {% if app.user is not null and app.user is pro %}
  122.                                             <span>{{ 'frontend.home_content.pro.logged_in.sale.bidder'|trans }}</span>{% endif %}
  123.                                     </a>
  124.                                 {% endif %}
  125.                             </p>
  126.                         {% elseif sale.type is constant('TYPE_PHYSICAL', sale) %}
  127.                             {% if sale.events|length < 1 %}
  128.                                 {% set hideDay = date('now').diff(sale.startDate)|date("%d") < 1 %}
  129.                                 {% set hideHours = date('now').diff(sale.startDate)|date("%d") < 1 and date('now').diff(sale.startDate)|date("%H") == 0 %}
  130.                                 <span
  131.                                     class="block marginB10">{{ 'frontend.home_content.pro.logged_in.sale.live_opening'|trans }}</span>
  132.                                 <span class="inbl marginR10"><i class="icon-compteur-noir"></i></span>
  133.                                 <span
  134.                                     class="countdown-homepage-sale {{ hideDay ? 'hide-day':'hide-secondes' }} {{ hideHours ? 'hide-hours' }}"
  135.                                     data-lang="{{ app.request.locale }}"
  136.                                     data-target-date="{{ sale.startDate|date('Y/m/d H:i:s') }}"
  137.                                     data-server-date="{{ path('frontend_server_date') }}"></span>
  138.                             {% elseif sale.events.first.startDateTime|date('U') > 'now'|date('U') %}
  139.                                 {% set hideDay = date('now').diff(sale.events.first.startDateTime)|date("%d") < 1 %}
  140.                                 {% set hideHours = date('now').diff(sale.events.first.startDateTime)|date("%d") < 1 and date('now').diff(sale.events.first.startDateTime)|date("%H") == 0 %}
  141.                                 <span
  142.                                     class="block marginB10">{{ 'frontend.home_content.pro.logged_in.sale.live_opening'|trans }}</span>
  143.                                 <span class="inbl marginR10"><i class="icon-compteur-noir"></i></span>
  144.                                 <span
  145.                                     class="countdown-homepage-sale {{ hideDay ? 'hide-day':'hide-secondes' }} {{ hideHours ? 'hide-hours' }}"
  146.                                     data-lang="{{ app.request.locale }}"
  147.                                     data-target-date="{{ sale.events.first.startDateTime|date('Y/m/d H:i:s') }}"
  148.                                     data-server-date="{{ path('frontend_server_date') }}"></span>
  149.                             {% else %}
  150.                                 {% set hideHours = date('now').diff(sale.endDate)|date("%d") < 1 and date('now').diff(sale.endDate)|date("%H") == 0 %}
  151.                                 {% if sale.status == constant('STATUS_CLOSED', sale) %}
  152.                                     <span
  153.                                         class="block {{ hideHours ? 'texte01' }} marginB10">{{ 'frontend.home_content.pro.logged_in.sale.last_lots.title'|trans }}</span>
  154.                                     <span class="inbl marginR10"><i
  155.                                             class="icon-compteur-{{ hideHours ? 'orange':'noir' }}"></i></span>
  156.                                     <span
  157.                                         class="countdown-homepage-sale hide-day {{ hideHours ? 'hide-hours texte01' }}"
  158.                                         data-lang="{{ app.request.locale }}"
  159.                                         data-target-date="{{ sale.endDate|date('Y/m/d H:i:s') }}"
  160.                                         data-server-date="{{ path('frontend_server_date') }}"></span>
  161.                                 {% else %}
  162.                                     {{ 'frontend.home_content.pro.logged_in.sale.live_in_progress'|trans }}
  163.                                 {% endif %}
  164.                             {% endif %}
  165.                         {% endif %}
  166.                     </div>
  167.                     {% if sale is defined and sale is not null and sale.type is constant('TYPE_PHYSICAL', sale) %}
  168.                         <ul class="horaires">
  169.                             {% for event in sale.events %}
  170.                                 <li>
  171.                                     <a href="{{ path('frontend_vehicle_list_by_event', {'event': event.id}) }}">
  172.                                         <span>{{ event.startTime|date('H:i') }}</span>
  173.                                         <span>{{ event.title.name }} ({{ attribute(currentSale.count_vehicles_by_event, event.id) }})</span>
  174.                                     </a>
  175.                                     {% if event.lotsImport %}
  176.                                         {% set country = sale.country %}
  177.                                         {% set room = sale.room.code %}
  178.                                         {% include 'Frontend/vehicle/_bubule_lot_imported.html.twig' with {'country': country, 'room': room, 'home': true} %}
  179.                                     {% endif %}
  180.                                 </li>
  181.                             {% endfor %}
  182.                         </ul>
  183.                         <div class="marginT20 block-btn">
  184.                             <span class="inbl marginB10"><a
  185.                                     href="{{ path('frontend_search_by_sale', {'sale': sale.id}) }}"
  186.                                     class="lien12 marginR20 {{ 'salle-' ~ sale.room.code|lower }}">{{ 'frontend.home_content.sale.button.show'|trans }} <span>{{ 'frontend.home_content.pro.logged_in.sale.submit_order'|trans }}</span></a></span>
  187.                             {% if nextLive is not null and nextLive.id == sale.id and this_sale_has_started(sale) and sale.status != constant('STATUS_CLOSED', sale) %}
  188.                                 <div class="inbl">
  189.                                     <span><i class="icon-live05 marginR10"></i></span>
  190.                                     <a href="{{ (app.user is null ) ? getADUrl() : path('vpauto_frontend_live', {'saleId': sale.id}) }}" class="lien04">{{ 'frontend.home_content.pro.logged_in.sale.bidder'|trans }}</a>
  191.                                 </div>
  192.                             {% endif %}
  193.                         </div>
  194.                     {% endif %}
  195.                 </td>
  196.                 <td>
  197.                     <ul class="elmt-liste-bloc m-hide">
  198.                         {% for vehicle in currentSale.highlight_vehicles.vehicles %}
  199.                             {% if vehicle.sale is not null %}
  200.                                 <li class="grid-33 tab-l-50 tab-p-100">
  201.                                     <article class="element">
  202.                                         <a href="{{ path('frontend_vehicle_view', { 'id': vehicle.id, 'slug': vehicle.slug, 'from': 'home' }) }}"
  203.                                            rel="nofollow"
  204.                                            class="{{ vehicle.sale.room.code|lower ~ '-' ~  vehicle.maker|replace({' ': ''})|lower }}">
  205.                                             <div class="elmt-content">
  206.                                                 <div class="elmt-photo">
  207.                                                     <img
  208.                                                         src="{{ asset(resizePhoto(vehicle.photos|main(sale=vehicle.sale),300, vehicle)|default('bundles/vpauto/frontend/images/photo-defaut-640.jpg')) }}"
  209.                                                         alt="{{ vehicle.modelGroup }}"
  210.                                                         loading="lazy"
  211.                                                         {% if vehicle.photos|main(sale=vehicle.sale) is null %}class="thumbdefault"{% endif %}>
  212.                                                     <div class="overlay01"></div>
  213.                                                 </div>
  214.                                                 <div class="elmt-marque">
  215.                                                     <h2>{{ vehicle.maker }}</h2>
  216.                                                 </div>
  217.                                                 {% if vehicle.sale.type is constant('TYPE_PHYSICAL', vehicle.sale) and vehicle.sale.country|lower == 'portugal'  %}
  218.                                                     <span class="elmt-ville setubal">
  219.                                                         {% include '/Frontend/pro/_location.html.twig' with {'country': vehicle.sale.country, 'dept': true} %}
  220.                                                     </span>
  221.                                                 {% endif %}
  222.                                             </div>
  223.                                             {% set userHighest = attribute(currentSale.highlight_vehicles.highest_offers, vehicle.id) %}
  224.                                             <div class="elmt-infos grid-container">
  225.                                                 <div class="elmt-modele">
  226.                                                     <h3>{{ vehicle.model }}</h3>
  227.                                                     {% if vehicle.broken == 1 %}({{ 'frontend.vehicle.list.vehicle_row.broken'|trans }})</h3>{% endif %}
  228.                                                     <div>
  229.                                                         <span>{{ vehicle.millesime|default('NC'|trans) }}</span> -
  230.                                                         <span>{{ vehicle.kilometers|default('NC'|trans) }} Km</span>
  231.                                                     </div>
  232.                                                 </div>
  233.                                                 <div class="elmt-prix">
  234.                                                     {% if vehicle.sale is onlineCompliant %}
  235.                                                         {% if app.user is not null %}
  236.                                                             <span
  237.                                                                 class="{% if vehicle.salingState == constant('SALING_STATE_ADJUGE', vehicle) %}hidden{% endif %}">
  238.                                                         {% if vehicle.sale.salingType != constant('SALING_STATE_BUYOUT', vehicle.sale) %}
  239.                                                             {% if vehicle.bidCount > 0 and not vehicle.auction.isBefore %}
  240.                                                                 <span>{{ 'frontend.vehicle.list.vehicle_row.runningAuctions'|trans|capitalize }}</span>
  241.                                                                 <span>{{ vehicle.finalAmount|number_format(0, '', '')|default('NC'|trans) }}&euro;</span>
  242.                                                             {% elseif vehicle.startingPriceAvailable or vehicle.sale.provider is defined %}
  243.                                                                 <span>{{ 'frontend.vehicle.list.vehicle_row.startingPrice'|trans|capitalize }}</span>
  244.                                                                 <span>{{ vehicle.startingPrice|default('NC'|trans) }}&euro;</span>
  245.                                                             {% elseif vehicle.photos|main(sale=vehicle.sale) is null or vehicle.estimationPriceMin is empty or 0 == vehicle.estimationPriceMin %}
  246.                                                                 <span>{{ 'frontend.vehicle.list.vehicle_row.under_estimation'|trans|capitalize }} </span>
  247.                                                             {% else %}
  248.                                                                 <span>{{ "frontend.vehicle.view.estimate"|trans|capitalize }}</span>
  249.                                                                 <span class="prix">{{ vehicle.estimationPriceMin|round(-2) }}&euro; - {{ vehicle.estimationPrice|round(-2) }}&euro;</span>
  250.                                                             {% endif %}
  251.                                                             {% if userHighest is not null %}
  252.                                                             <br>
  253.                                                             <span>{{ 'frontend.vehicle.list.vehicle_row.user.maxAmount'|trans|capitalize }}</span>
  254.                                                             <span>{{ userHighest.amount|number_format(0, '', '')|default('NC'|trans) }}&euro;</span>
  255.                                                         {% endif %}
  256.                                                         {% else %}
  257.                                                             {% if vehicle.buyoutPrice > 0 %}
  258.                                                                 <span>{{ 'frontend.vehicle.list.vehicle_row.buyout'|trans|lower|capitalize }}</span>
  259.                                                                 <span>{{ vehicle.buyoutPrice|default('NC'|trans) }}&euro;</span>
  260.                                                             {% elseif vehicle.photos|main(sale=vehicle.sale) is null or vehicle.estimationPriceMin is empty or 0 == vehicle.estimationPriceMin %}
  261.                                                                 <span>{{ "frontend.vehicle.list.vehicle_row.under_estimation"|trans|capitalize }} </span>
  262.                                                             {% else %}
  263.                                                                 <span>{{ "frontend.vehicle.view.estimate"|trans|capitalize }}</span>
  264.                                                                 <span class="prix">{{ vehicle.estimationPriceMin|round(-2) }}&euro; - {{ vehicle.estimationPrice|round(-2) }}&euro;</span>
  265.                                                             {% endif %}
  266.                                                         {% endif %}
  267.                                                         </span>
  268.                                                         {% endif %}
  269.                                                     {% else %}
  270.                                                         {% if vehicle.startingPriceAvailable %}
  271.                                                             <span>{{ 'frontend.vehicle.list.vehicle_row.startingPrice'|trans }}</span>
  272.                                                             <span class="prix">
  273.                                                             {% if vehicle.startingPrice > 0 %}
  274.                                                                 {{ vehicle.startingPrice|default('NC'|trans) }}&euro;
  275.                                                             {% else %}
  276.                                                                 {% if vehicle.estimationPrice > 0 %}
  277.                                                                     {{ vehicle.estimationPrice|default('NC'|trans) }}&euro;
  278.                                                                 {% else %}
  279.                                                                     NC
  280.                                                                 {% endif %}
  281.                                                             {% endif %}
  282.                                                         </span>
  283.                                                             {% if userHighest is not null and vehicle.sale.type is constant('TYPE_PHYSICAL', vehicle.sale) %}
  284.                                                                 <br>
  285.                                                                 <span>{{ 'frontend.vehicle.list.vehicle_row.user.maxAmount'|trans|capitalize }}</span>
  286.                                                                 <span>{{ userHighest.amount|number_format(0, '', '')|default('NC'|trans) }}&euro;</span>
  287.                                                             {% endif %}
  288.                                                             <span
  289.                                                                 class="fees-notice">({{ 'frontend.vehicle.list.vehicle_row.sale_fees_included'|trans }})</span>
  290.                                                         {% elseif vehicle.sale.salingType == constant('SALING_STATE_TENDER', vehicle.sale) %}
  291.                                                             <span>{{ 'frontend.vehicle.list.vehicle_row.startingPrice'|trans|capitalize }}</span>
  292.                                                             <span class="prix">
  293.                                                             {{ vehicle.startingPrice|default('NC'|trans) }}&euro;
  294.                                                         </span>
  295.                                                         {% elseif vehicle.photos|main(sale=vehicle.sale) is null or vehicle.estimationPriceMin is empty or 0 == vehicle.estimationPriceMin %}
  296.                                                             <span>{{ "frontend.vehicle.list.vehicle_row.under_estimation"|trans|capitalize }} </span>
  297.                                                         {% else %}
  298.                                                             <span>{{ "frontend.vehicle.view.estimate"|trans|capitalize }}</span>
  299.                                                             <span class="prix">{{ vehicle.estimationPriceMin|round(-2) }}&euro; - {{ vehicle.estimationPrice|round(-2) }}&euro;</span>
  300.                                                         {% endif %}
  301.                                                     {% endif %}
  302.                                                 </div>
  303.                                                 {% if sale.provider is defined and constant('App\\Api\\RMS\\SaleEventDataPersister::PROVIDER_NAME') == sale.provider %}
  304.                                                     <div class="elmt-temps">
  305.                                                         {{ 'frontend.home_content.pro.sale.closing'|trans ~ ' : ' ~ vehicle.auction.closedAt|locale_date(pattern='dd/MM', locale=app.request.locale) ~ ' ' ~ 'frontend.vehicle.list.vehicle_row.sale.to'|trans ~ ' ' ~ vehicle.auction.closedAt|locale_date(pattern='HH:mm') }}
  306.                                                     </div>
  307.                                                 {% endif %}
  308.                                             </div>
  309.                                         </a>
  310.                                     </article>
  311.                                 </li>
  312.                             {% endif %}
  313.                         {% endfor %}
  314.                     </ul>
  315.                 </td>
  316.             </tr>
  317.         {% endfor %}
  318.     </table>
  319. </div>
  320. {% if app.user is not null and is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  321.     <div class="block-table03 clearfix">
  322.         <h2 class="titre01-1 titre-content-table03">
  323.         <span>
  324.             <strong>{{ 'frontend.home_content.pro.logged_in.list.title.ended'|trans }}</strong>
  325.             <span class="fleche">
  326.                 <span class="ligne1"></span>
  327.                 <span class="ligne2"></span>
  328.             </span>
  329.         </span>
  330.         </h2>
  331.         <div class="content-table03 none">
  332.             <table class="table03 marginT30">
  333.                 {% for sale in afterSales %}
  334.                     {% if sale is defined and sale is not null and sale.type is constant('TYPE_ONLINE', sale) %}
  335.                         <tr>
  336.                             <td>
  337.                                 <div class="nom-vente">
  338.                                     <a href="{{ path('frontend_search_by_sale', {'sale': sale.id}) }}">
  339.                                         <span><i class="icon-vente-web"></i></span>
  340.                                         <span>
  341.                                         <span class="txttransform bold">{{ sale.displayedName }}</span>
  342.                                         <span>{{ sale.salingType|trans }}</span>
  343.                                     </span>
  344.                                     </a>
  345.                                 </div>
  346.                                 <p class="marginT20">
  347.                                     <span class="texte02">{{ 'frontend.home_content.pro.sale.closed'|trans }}</span>
  348.                                     {{ 'frontend.home_content.pro.sale.closed.since'|trans ~ ' ' ~ sale.endDate|locale_date(pattern='dd MMMM', locale=app.request.locale) ~ ' ' ~ 'frontend.home_content.pro.logged_in.sale.to'|trans ~ ' ' ~ sale.endDate|locale_date(pattern='HH:mm') }}
  349.                                 </p>
  350.                             </td>
  351.                             <td class="vente-cloturee">
  352.                                 <p><a href="{{ path('frontend_search_by_sale', {'sale': sale.id}) }}"
  353.                                       class="lien12 {{ 'salle-' ~ sale.room.code|lower }}">{{ 'frontend.home_content.sale.button.show'|trans }}</a>
  354.                                 </p>
  355.                             </td>
  356.                         </tr>
  357.                     {% endif %}
  358.                 {% endfor %}
  359.             </table>
  360.             {% if afterSales == null %}
  361.                 <p class="titre03 paddingLR10">
  362.                     <strong>{{ 'frontend.home_content.pro.logged_in.sale.ended.no_result'|trans }}</strong></p>
  363.             {% endif %}
  364.         </div>
  365.     </div>
  366. {% endif %}