<?php /** * @var \App\View\AppView $this * @var \App\Model\Entity\Stat $stat */ ?> <nav class="large-3 medium-4 columns" id="actions-sidebar"> <ul class="side-nav"> <li class="heading"><?= __('Actions') ?></li> <li><?= $this->Html->link(__('Edit Stat'), ['action' => 'edit', $stat->year,$stat->user_id]) ?> </li> <li><?= $this->Form->postLink(__('Delete Stat'), ['action' => 'delete', $stat->year,$stat->user_id], ['confirm' => __('Are you sure you want to delete # {0}?', $stat->year)]) ?> </li> <li><?= $this->Html->link(__('List Stats'), ['action' => 'index']) ?> </li> <li><?= $this->Html->link(__('New Stat'), ['action' => 'add']) ?> </li> <li><?= $this->Html->link(__('List Users'), ['controller' => 'Users', 'action' => 'index']) ?> </li> <li><?= $this->Html->link(__('New User'), ['controller' => 'Users', 'action' => 'add']) ?> </li> </ul> </nav> <div class="stats view large-9 medium-8 columns content"> <h3><?= h($stat->year) ?></h3> <table class="vertical-table"> <tr> <th scope="row"><?= __('Year') ?></th> <td><?= h($stat->year) ?></td> </tr> <tr> <th scope="row"><?= __('User') ?></th> <td><?= $stat->has('user') ? $this->Html->link($stat->user->nom, ['controller' => 'Users', 'action' => 'view', $stat->user->id]) : '' ?></td> </tr> <tr> <th scope="row"><?= __('Connex Nb') ?></th> <td><?= $this->Number->format($stat->connex_nb) ?></td> </tr> <tr> <th scope="row"><?= __('Connex Dur') ?></th> <td><?= $this->Number->format($stat->connex_dur) ?></td> </tr> <tr> <th scope="row"><?= __('Last Login Time') ?></th> <td><?= h($stat->last_login_time) ?></td> </tr> <tr> <th scope="row"><?= __('Last Logout Time') ?></th> <td><?= h($stat->last_logout_time) ?></td> </tr> </table> </div>