getUserModule(); $this->setTitle('Crédit'); ?>
Somme totale en crédit

Clients avec un crédit négatif

$dataProviderUsersWithNegativeCredit, 'summary' => '', 'columns' => [ [ 'label' => 'Client', 'value' => function ($user) use ($userModule) { return $userModule->getUsernameFromArray($user, true); } ], [ 'label' => 'Email', 'format' => 'raw', 'headerOptions' => ['class' => 'column-hide-on-mobile'], 'filterOptions' => ['class' => 'column-hide-on-mobile'], 'contentOptions' => ['class' => 'column-hide-on-mobile'], 'value' => function ($user) { return $user['email']; } ], [ 'label' => 'Téléphone', 'format' => 'raw', 'headerOptions' => ['class' => 'column-hide-on-mobile'], 'filterOptions' => ['class' => 'column-hide-on-mobile'], 'contentOptions' => ['class' => 'column-hide-on-mobile'], 'value' => function ($user) { return $user['phone']; } ], [ 'label' => 'Crédit', 'format' => 'raw', 'value' => function ($user) { return Price::format($user['credit']); } ] ] ]); ?>