data['sessions']; $sessionCount = \count($sessions); /** @var \Modules\HumanResourceTimeRecording\Models\Session $lastOpenSession */ $lastOpenSession = $this->data['lastSession']; $current_type = $lastOpenSession !== null ? $lastOpenSession->type : null; $status = $lastOpenSession !== null ? $lastOpenSession->getStatus() : ClockingStatus::END; $types = $this->data['session_types'] ?? []; /** @var \phpOMS\Stdlib\Base\SmartDateTime $startWeek */ $startWeek = new SmartDateTime('now'); $startWeek = $startWeek->getStartOfWeek(); $endWeek = $startWeek->createModify(0, 0, 6); $startMonth = new SmartDateTime('now'); $startMonth = $startMonth->getStartOfMonth(); $endMonth = $startMonth->createModify(0, 1, -1); $busy = [ 'total' => 0, 'month' => 0, 'week' => 0, ]; echo $this->data['nav']->render(); ?>
Work
This month
Last month
This year
Vacation
Used Vacation
Last Vacation
Next Vacation
getHtml('Recordings', 'HumanResourceTimeRecording', 'Backend'); ?>download
data['sessions'] as $session) : ++$count; $url = UriFactory::build('{/base}/private/timerecording/session?{?}&id=' . $session->id); ?>
getHtml('Date', 'HumanResourceTimeRecording', 'Backend'); ?> getHtml('Type', 'HumanResourceTimeRecording', 'Backend'); ?> getHtml('Status', 'HumanResourceTimeRecording', 'Backend'); ?> getHtml('Start', 'HumanResourceTimeRecording', 'Backend'); ?> getHtml('Break', 'HumanResourceTimeRecording', 'Backend'); ?> getHtml('End', 'HumanResourceTimeRecording', 'Backend'); ?> getHtml('Total', 'HumanResourceTimeRecording', 'Backend'); ?>
data['lastSession'] !== null && $session->start->format('Y-m-d') === $this->data['lastSession']->start->format('Y-m-d') ) : ?> Today start->format('Y-m-d'); ?> - getHtml(':D' . $session->start->format('w'), 'HumanResourceTimeRecording', 'Backend'); ?> getHtml(':CT' . $session->type, 'HumanResourceTimeRecording', 'Backend'); ?> getHtml(':CS' . $session->getStatus(), 'HumanResourceTimeRecording', 'Backend'); ?> start->format('H:i'); ?> getBreak() / 3600); ?>h getBreak() / 60) % 60); ?>m end?->format('H:i'); ?> busy / 3600); ?>h busy / 60) % 60); ?>m busy; if ($session->start->getTimestamp() < $startWeek->getTimestamp() || $count === $sessionCount ) : ?>
format('Y/m/d'); ?> - format('Y/m/d'); ?> h m createModify(0, 0, -1); $startWeek = $startWeek->createModify(0, 0, -7); $busy['week'] = 0; endif; ?> busy; if ($session->start->getTimestamp() < $startMonth->getTimestamp() || $count === $sessionCount ) : ?>
format('Y/m/d'); ?> - format('Y/m/d'); ?> h m createModify(0, 0, -1); $startMonth = $startMonth->createModify(0, -1, 0); $busy['month'] = 0; endif; ?>
getHtml('Empty', '0', '0'); ?>