src/Aqarmap/Bundle/NeighborhoodBundle/Resources/views/neighborhoodStatistics.html.twig line 1

  1. <div id="neighborhood-statistics-percentage">
  2. <div class="container">
  3. {% for statistic in location_statistics %}
  4. {% if statistic.demandHeat or statistic.growth %}
  5. <div class="page-header">
  6. <h2 class="custom-header">
  7. {{ 'neighborhoods.statistics_section_headline'|trans({'%location%': location.title}, 'messages') }} - {{ statistic.propertyType.title }}
  8. </h2>
  9. </div>
  10. <div class="row">
  11. {% if statistic.demandHeat %}
  12. <div class="col-xs-12 col-sm-6 col-md-4">
  13. <div class="analytics-card">
  14. <p class="card-number" >
  15. {{ statistic.demandHeat }}%
  16. </p>
  17. <p class="card-title">
  18. {{ "neighborhoods.demand_level"|trans }}
  19. </p>
  20. {% if statistic.demandHeat <= 10 %}
  21. <small class="estimation">
  22. ({{ "neighborhoods.heat.very_low"|trans }})</small>
  23. {% elseif statistic.demandHeat > 10 and statistic.demandHeat < 40 %}
  24. <small class="estimation">({{ "neighborhoods.heat.low"|trans }})</small>
  25. {% elseif statistic.demandHeat >= 40 and statistic.demandHeat < 70 %}
  26. <small class="estimation">({{ "neighborhoods.heat.average"|trans }})</small>
  27. {% elseif statistic.demandHeat >= 70 and statistic.demandHeat < 90 %}
  28. <small class="estimation">({{ "neighborhoods.heat.good"|trans }})</small>
  29. {% elseif statistic.demandHeat >= 90 %}
  30. <small class="estimation">({{ "neighborhoods.heat.very_good"|trans }})</small>
  31. {% endif %}
  32. </div>
  33. </div>
  34. {% endif %}
  35. {% if statistic.growth %}
  36. <div class="col-xs-12 col-sm-6 col-md-4">
  37. <div class="analytics-card">
  38. {% if isEnabledFeature('web.disable.price.change') %}
  39. <p class="card-number">N/A</p>
  40. {% else %}
  41. <p class="card-number">{{ statistic.growth > 0 ? '+' : ''}}{{ statistic.growth }}%</p>
  42. {% endif %}
  43. <p class="card-title" >
  44. {{ "neighborhoods.price_increase"|trans }}
  45. </p>
  46. </div>
  47. </div>
  48. {% endif %}
  49. </div>
  50. {% endif %}
  51. {% endfor %}
  52. </div>
  53. </div>