getRepository()->getCredit($user);
$countOrders = $orderModule->getRepository()->countOrdersByUser($user);
$countUserMessages = $this->getUserMessageModule()->getRepository()->countUserMessagesByUser($user);
?>
= menu_navigation_item('view', 'Récapitulatif', $action, $user) ?>
= menu_navigation_item('update', 'Profil', $action, $user) ?>
= menu_navigation_item('credit', 'Cagnotte '.Price::format($credit).'', $action, $user) ?>
= menu_navigation_item('orders', 'Commandes '.$countOrders.'', $action, $user) ?>
getAuthorizationChecker()->isGrantedAsAdministrator($userCurrent)): ?>
= menu_navigation_item('messages', 'Messages '.$countUserMessages.'', $action, $user) ?>
urlManager->createUrl(['user/'.$action, 'id' => $user->id]);
return ''.$label.'';
}
?>