Browse Source

[Administration] Support admin : correctif count tickets

feature/rotating_product
Guillaume Bourgeois 6 months ago
parent
commit
7ccc0ddef9
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      backend/views/layouts/left.php

+ 4
- 4
backend/views/layouts/left.php View File

} }


$countTicketsLabel = ''; $countTicketsLabel = '';
$countTicketsAdminOpen = $ticketModule->getRepository()->countTicketsAdminStatusOpen();
$countTicketsAdminUnread = $ticketModule->getRepository()->countTicketsAdminUnreadByUser($this->getUserCurrent()); $countTicketsAdminUnread = $ticketModule->getRepository()->countTicketsAdminUnreadByUser($this->getUserCurrent());

if ($countTicketsAdminUnread && $isUserCurrentGrantedAsAdministrator) { if ($countTicketsAdminUnread && $isUserCurrentGrantedAsAdministrator) {
$countTicketsLabel = '<span class="pull-right-container"><small class="label pull-right bg-green">' . $countTicketsAdminUnread . '</small></span>';
$countTicketsLabel = '<span class="pull-right-container"><small class="label pull-right bg-green">' . $countTicketsAdminOpen . '</small></span>';
} else { } else {
$countTicketsAdminOpen = $ticketModule->getRepository()->countTicketsAdminStatusOpen();
if ($countTicketsAdminOpen) {
if($countTicketsAdminOpen) {
$countTicketsLabel = '<span class="pull-right-container"><small class="label pull-right bg-blue">' . $countTicketsAdminOpen . '</small></span>'; $countTicketsLabel = '<span class="pull-right-container"><small class="label pull-right bg-blue">' . $countTicketsAdminOpen . '</small></span>';
} }
} }
$sumUserProducerCreditsLabel = ''; $sumUserProducerCreditsLabel = '';
//$sumUserProducerCreditsLabel = '<span class="pull-right-container"><small class="label pull-right '.($sumUserProducerCredits >= 0 ? 'bg-green' : 'bg-red') .'">'.number_format($sumUserProducerCredits, 2).' €</small></span>'; //$sumUserProducerCreditsLabel = '<span class="pull-right-container"><small class="label pull-right '.($sumUserProducerCredits >= 0 ? 'bg-green' : 'bg-red') .'">'.number_format($sumUserProducerCredits, 2).' €</small></span>';



$countUsersWithStatusProducerOnline = $userModule->getRepository()->countUsersStatusProducerOnline(); $countUsersWithStatusProducerOnline = $userModule->getRepository()->countUsersStatusProducerOnline();
$countUsersWithStatusUserOnline = $userModule->getRepository()->countUsersStatusUserOnline(); $countUsersWithStatusUserOnline = $userModule->getRepository()->countUsersStatusUserOnline();
$countUsersProducersOnlineLabel = ''; $countUsersProducersOnlineLabel = '';

Loading…
Cancel
Save