|
- <?php
-
- use common\helpers\AdminLTE;
- use common\helpers\Image;
- use yii\helpers\Html;
-
- $this->setTitle('Tableau de bord');
- $this->setMetaRefresh(true);
-
- ?>
-
- <div class="dashboard-admin-index">
- <div class="row">
- <div class="col-lg-6 col-xs-6">
- <?= AdminLTE::smallBox(
- $countUsersOnline,
- 'En ligne',
- $countUsersOnline ? 'green' : 'blue',
- 'wifi',
- Yii::$app->urlManager->createUrl('online-admin/index')
- ) ?>
- </div>
- <div class="col-lg-6 col-xs-6" id="producers-online">
- <!--<h3>Producteurs en ligne :</h3>-->
- <?php if($usersWithStatusProducerOnlineArray && count($usersWithStatusProducerOnlineArray) > 0): ?>
- <?php foreach ($usersWithStatusProducerOnlineArray as $userWithStatusProducerOnline): ?>
- <?php $producer = $userWithStatusProducerOnline->producer; ?>
- <?php if($producer): ?>
- <a class="btn btn-default" title="Aller sur le compte de ce producteur" href="<?= $this->getUrlManagerBackend()->createUrl(['site/switch-producer', 'id' => $producer->id]); ?>">
- <?= $producer->name; ?>
- </a>
- <?php endif; ?>
- <?php endforeach; ?>
- <div class="clr"></div>
- <?php else: ?>
- <div class="alert alert-info">Aucun producteur en ligne actuellement.</div>
- <?php endif; ?>
- </div>
- </div>
- <div class="row">
- <div class="col-lg-6 col-xs-6">
- <?= AdminLTE::smallBox(
- $supportOnline ? 'Oui' : 'Non',
- 'Support activé',
- $supportOnline ? 'green' : 'blue',
- 'phone',
- Yii::$app->urlManager->createUrl(['dashboard-admin/support-online-toggle', 'active' => $supportOnline ? 0 : 1]),
- $supportOnline ? 'Désactiver' : 'Activer'
- ) ?>
- </div>
- <div class="col-lg-6 col-xs-6">
- <?= AdminLTE::smallBox(
- $countTicketsAdminOpen,
- 'Tickets',
- $countTicketsAdminUnread ? 'green' : 'blue',
- 'comments',
- Yii::$app->urlManager->createUrl('support-admin/index')
- ) ?>
- </div>
- </div>
-
- <div id="dashboard-admin-statistics-html">
- <a class="btn btn-default btn-load" href="javascript:void(0);">Charger les statistiques</a>
- </div>
- </div>
|