src/Aqarmap/Bundle/ListingBundle/Resources/views/Listing/sellerInfo.html.twig line 1
{# toggles #}{% set isTopSellersEnabled = isEnabledFeature('web.topsellers.enable') %}{% set isRTL = app.request.get('_locale') == 'ar' %}{% set sellerName = '' %}{% set listingUser = listing.user %}{% set userLogo = listingUser.logo ? listingUser.logo : null %}{% set logo = listing.validUserLogo %}{% set sellerLogo = logo ? logo : userLogo %}{% set sellerName = listingUser.fullName %}{% set sellerId = listingUser.id %}{% set sellerUrl = path('aqarmap_user_listings', {'id': sellerId}) ~ '?source=seller-listings'%}{% set iconSize = 24 %}<div class="seller-info seller-card__info-container d-flex w-100">{% set sellerURl = path('aqarmap_user_listings', {'id': sellerId})%}<a href="{{ sellerUrl}}"class="seller-card__img-container seller-card__img-container_ml-0 rounded-circle seller-card__img-container_img-lg ">{% if sellerLogo %}<img class="seller-card__img lazyload"src="{{ asset('images/placeholder.svg') }}"data-src="{{ custom_vich_uploader_asset(sellerLogo, 'file') | thumbnail('logo')}}"alt="company-logo" width="{{iconSize}}" height="{{iconSize}}">{% else %}<img class="seller-card__logo lazyload rounded-circle " width="{{iconSize}}" height="{{iconSize}}"src="" data-src="{{ asset('images/Navbar/ic_profile.svg') }}" alt="compound-logo">{% endif %}</a><div class="seller-card__data seller-card__data_p-md w-80 np-border"ng-controller="sellerDataController"ng-init="setSellersData({{sellerId}} , {'propertyType':'{{propertyTypeId}}','section':'{{sectionId}}','location': '{{locationId}}','user': '{{sellerId}}'});setIsTopSellersEnabled('{{isTopSellersEnabled}}')"><div class="seller-card__name seller-card__item" ng-content-loaded callback="initIsTopSellers('{{sellerId}}')"><b class="seller-card__name-text seller-card__name_lg" title="{{ sellerName }}">{{ sellerName }}<span class="seller-card__badge" ng-show="IsTopSeller()"> {{'top_sellers.title'|trans}} </span></b></div><div class="seller-card__stat seller-card__item"><span class="seller-card__info w-100">{% if activeListingsCount > 0 %}{{ activeListingsCount|number_format }} {{ 'labels.listings'|trans }}{% endif %}{% if leadsCount > 0 %}, {{leadsCount|number_format}} {{ 'labels.clients_served'|trans }}{% endif %}</span></div><a class="seller-card__link" href="{{ sellerUrl}}">{{'labels.all_listings'|trans}}{% if isRTL %}<i class="fa fa-chevron-left seller-card__redirect-arrow"></i>{% else %}<i class="fa fa-chevron-right seller-card__redirect-arrow"></i>{% endif %}</a></div></div>