{% extends 'bo/base.html.twig' %}
{% block title %}Bo - Home{% endblock %}
{% set pageTitle = 'Home' %}
{% block stylesheets %}{% endblock %}
{% block body %}
{% include "bo/layout/_page_header.html.twig" with {'pageTitle' : 'Home'} %}
<!-- Start::row-1 -->
<div>
<div class="row">
<p>Utilisateurs</p>
{% include 'bo/home/_widget_card.html.twig' with { 'widgetTitle' : "Utilisateurs", 'widgetRouteQuery' : '', 'widgetNumber' : statistics.usersCount, 'widgetRouteLink' : 'bo_user_index', 'widgetIncrease' : '', 'bootstrapIconName' : 'people-fill', 'bootstrapIconColor' : 'success'} %}
</div>
<div class="row">
<p>Entreprises</p>
{% include 'bo/home/_widget_card.html.twig' with { 'widgetTitle' : "Nouvelles entreprises", 'widgetRouteQuery' : constant('App\\Entity\\Company::STATUS_NEW'), 'widgetNumber' : statistics.newCompaniesCount, 'widgetRouteLink' : 'bo_company_index', 'widgetIncrease' : '', 'bootstrapIconName' : 'bookmark-fill', 'bootstrapIconColor' : 'info'} %}
{% include 'bo/home/_widget_card.html.twig' with { 'widgetTitle' : "Entreprises revendiquées", 'widgetRouteQuery' : constant('App\\Entity\\Company::STATUS_CLAIMED'), 'widgetNumber' : statistics.claimedCompaniesCount, 'widgetRouteLink' : 'bo_company_index', 'widgetIncrease' : '', 'bootstrapIconName' : 'bookmark-plus-fill', 'bootstrapIconColor' : 'primary'} %}
{% include 'bo/home/_widget_card.html.twig' with { 'widgetTitle' : "Entreprises validées", 'widgetRouteQuery' : constant('App\\Entity\\Company::STATUS_VALIDATED'), 'widgetNumber' : statistics.validatedCompaniesCount, 'widgetRouteLink' : 'bo_company_index', 'widgetIncrease' : '', 'bootstrapIconName' : 'bookmark-check-fill', 'bootstrapIconColor' : 'success'} %}
</div>
<div class="row">
<p>Alertes</p>
{% include 'bo/home/_widget_card.html.twig' with { 'widgetTitle' : "Alertes actives", 'widgetRouteQuery' : constant('App\\Entity\\Alert::ALERT_STATUS_VALIDATED'), 'widgetNumber' : statistics.activeAlertsCount, 'widgetRouteLink' : 'bo_alert_index', 'widgetIncrease' : '', 'bootstrapIconName' : 'chat-square-dots-fill', 'bootstrapIconColor' : 'success'} %}
{% include 'bo/home/_widget_card.html.twig' with { 'widgetTitle' : "Alertes à valider", 'widgetRouteQuery' : constant('App\\Entity\\Alert::ALERT_STATUS_NEW'), 'widgetNumber' : statistics.newAlertsCount, 'widgetRouteLink' : 'bo_alert_index', 'widgetIncrease' : '', 'bootstrapIconName' : 'chat-square-dots-fill', 'bootstrapIconColor' : 'info'} %}
</div>
<div class="row">
<p>Posts</p>
{% include 'bo/home/_widget_card.html.twig' with { 'widgetTitle' : "Articles en ligne", 'widgetRouteQuery' : constant('App\\Entity\\Post::TYPE_ARTICLE'), 'widgetNumber' : statistics.activeArticlesCount, 'widgetRouteLink' : 'bo_post_index', 'widgetIncrease' : '', 'bootstrapIconName' : 'file-text-fill', 'bootstrapIconColor' : 'success'} %}
{% include 'bo/home/_widget_card.html.twig' with { 'widgetTitle' : "Evènements en ligne", 'widgetRouteQuery' : constant('App\\Entity\\Post::TYPE_EVENT'), 'widgetNumber' : statistics.activeEventsCount, 'widgetRouteLink' : 'bo_post_index', 'widgetIncrease' : '', 'bootstrapIconName' : 'calendar-date-fill', 'bootstrapIconColor' : 'success'} %}
</div>
</div>
<!--End::row-1 -->
{% endblock %}
{% block javascripts %}
{% endblock %}