request->uri->fragment === 'c-tab-1' ? ' checked' : ''; ?>>
= $this->printHtml($employee->profile->account->name2); ?>, = $this->printHtml($employee->profile->account->name1); ?>
| = $this->getHtml('Position'); ?>
| = $this->printHtml($recentHistory->position->name); ?>
|
| = $this->getHtml('Department'); ?>
| = $this->printHtml($recentHistory->department->name); ?>
|
| = $this->getHtml('Unit'); ?>
| = $this->printHtml($recentHistory->unit->name); ?>
|
| = $this->getHtml('Birthday'); ?>
| = $employee->profile->birthday?->format('Y-m-d'); ?>
|
| = $this->getHtml('Email'); ?>
| = $this->printHtml($employee->profile->account->getEmail()); ?>
|
| = $this->getHtml('Status'); ?>
| = $recentHistory->id > 0 ? $this->getHtml('Active') : $this->getHtml('Inactive'); ?>
|
= $this->getHtml('History'); ?>download
|
| = $this->getHtml('ID', '0', '0'); ?>
| = $this->getHtml('Start'); ?>expand_lessexpand_more
| = $this->getHtml('End'); ?>expand_lessexpand_more
| = $this->getHtml('Unit'); ?>expand_lessexpand_more
| = $this->getHtml('Department'); ?>expand_lessexpand_more
| = $this->getHtml('Position'); ?>expand_lessexpand_more
|
|
settings
| |
|
|
|
|
|
$value) : ++$c; ?>
|
settings
| = $value->id; ?>
| = $value->start->format('Y-m-d'); ?>
| = $value->end === null ? '' : $value->end->format('Y-m-d'); ?>
| = $this->printHtml($value->unit->name); ?>
| = $this->printHtml($value->department->name); ?>
| = $this->printHtml($value->position->name); ?>
|
| = $this->getHtml('Empty', '0', '0'); ?>
|
request->uri->fragment === 'c-tab-2' ? ' checked' : ''; ?>>
= $this->data['contact-component']->render('employee-contact', 'contacts', $employee->profile->account->contacts); ?>
= $this->data['address-component']->render('employee-address', 'addresses', $employee->profile->account->addresses); ?>
request->uri->fragment === 'c-tab-3' ? ' checked' : ''; ?>>
0,
'month' => 0,
'week' => 0,
];
$type = $this->data['lastSession'] !== null ? $this->data['lastSession']->type : ClockingType::OFFICE;
$status = $this->data['lastSession'] !== null ? $this->data['lastSession']->getStatus() : ClockingStatus::END;
$startMonth = new SmartDateTime('now');
$startMonth = $startMonth->getStartOfMonth();
$endMonth = $startMonth->createModify(0, 1, -1);
$startWeek = $endMonth->getStartOfWeek();
$endWeek = $startWeek->createModify(0, 0, 6);
$current = $startMonth->createModify(0, 1);
$end = $endMonth->createModify(-1);
?>
= $this->getHtml('Recordings', 'HumanResourceTimeRecording', 'Backend'); ?>download
| = $this->getHtml('Date', 'HumanResourceTimeRecording', 'Backend'); ?>
| = $this->getHtml('Type', 'HumanResourceTimeRecording', 'Backend'); ?>
| = $this->getHtml('Status', 'HumanResourceTimeRecording', 'Backend'); ?>
| = $this->getHtml('Start', 'HumanResourceTimeRecording', 'Backend'); ?>
| = $this->getHtml('Break', 'HumanResourceTimeRecording', 'Backend'); ?>
| = $this->getHtml('End', 'HumanResourceTimeRecording', 'Backend'); ?>
| = $this->getHtml('Total', 'HumanResourceTimeRecording', 'Backend'); ?>
|
data['sessions'];
$session = empty($sessions)
? new \Modules\HumanResourceTimeRecording\Models\NullSession()
: \reset($sessions);
while ($current->format('Y-m-d') !== $end->format('Y-m-d')) :
$current->smartModify(0, 0, -1);
if ($session->id !== 0 && $session->start->format('Y-m-d') === $current->format('Y-m-d')) :
$url = UriFactory::build('{/base}/private/timerecording/session?{?}&id=' . $session->id);
?>
|
data['lastSession'] !== null
&& $session->start->format('Y-m-d') === $this->data['lastSession']->start->format('Y-m-d')
) : ?>
Today
= $session->start->format('Y-m-d'); ?> - = $this->getHtml('D' . $session->start->format('w'), 'HumanResourceTimeRecording', 'Backend'); ?>
| = $this->getHtml('CT' . $session->type, 'HumanResourceTimeRecording', 'Backend'); ?>
| = $this->getHtml('CS' . $session->getStatus(), 'HumanResourceTimeRecording', 'Backend'); ?>
| = $session->start->format('H:i'); ?>
| = (int) ($session->getBreak() / 3600); ?>h = ((int) ($session->getBreak() / 60) % 60); ?>m
| = $session->end?->format('H:i'); ?>
| = (int) ($session->busy / 3600); ?>h = ((int) ($session->busy / 60) % 60); ?>m
busy;
$busy['month'] += $session->busy;
$session = \next($sessions);
if ($session === false) {
$session = new \Modules\HumanResourceTimeRecording\Models\NullSession();
}
// Required to handle multiple sessions in one day
if ($session->id !== 0 && $session->start->format('Y-m-d') === $current->format('Y-m-d')) {
$current->smartModify(0, 0, 1);
}
?>
|
| = $current->format('Y-m-d'); ?> - = $this->getHtml('D' . $current->format('w'), 'HumanResourceTimeRecording', 'Backend'); ?>
|
getTimestamp() <= $startWeek->getTimestamp()) : ?>
|
| = $startWeek->format('Y/m/d'); ?> - = $endWeek->format('Y/m/d'); ?>
| = (int) ($busy['week'] / 3600); ?>h = ((int) ($busy['week'] / 60) % 60); ?>m
createModify(0, 0, -1);
$startWeek = $startWeek->createModify(0, 0, -7);
$busy['week'] = 0;
endif;
?>
getTimestamp() <= $startMonth->getTimestamp()) : ?>
|
| = $startMonth->format('Y/m/d'); ?> - = $endMonth->format('Y/m/d'); ?>
| = (int) ($busy['month'] / 3600); ?>h = ((int) ($busy['month'] / 60) % 60); ?>m
createModify(0, 0, -1);
$startMonth = $startMonth->createModify(0, -1, 0);
$busy['month'] = 0;
endif;
?>
|
request->uri->fragment === 'c-tab-4' ? ' checked' : ''; ?>>
= $this->data['media-upload']->render('employee-file', 'files', '', $employee->files); ?>
request->uri->fragment === 'c-tab-5' ? ' checked' : ''; ?>>
= $this->data['employee-notes']->render('employee-notes', '', $employee->notes); ?>
request->uri->fragment === 'c-tab-7' ? ' checked' : ''; ?>>
request->uri->fragment === 'c-tab-7' ? ' checked' : ''; ?>>
= $this->getHtml('Education'); ?>download
|
| = $this->getHtml('ID', '0', '0'); ?>
| = $this->getHtml('Start'); ?>expand_lessexpand_more
| = $this->getHtml('End'); ?>expand_lessexpand_more
| = $this->getHtml('Title'); ?>expand_lessexpand_more
| = $this->getHtml('Address'); ?>expand_lessexpand_more
| = $this->getHtml('Score'); ?>expand_lessexpand_more
|
|
settings
| |
|
|
|
|
|
$value) : ++$c; ?>
|
settings
| = $value->id; ?>
| = $value->start->format('Y-m-d'); ?>
| = $value->end === null ? '' : $value->end->format('Y-m-d'); ?>
| = $this->printHtml($value->educationTitle); ?>
| = $this->printHtml($value->address->name); ?>
| = $this->printHtml($value->score); ?>
|
| = $this->getHtml('Empty', '0', '0'); ?>
|
request->uri->fragment === 'c-tab-8' ? ' checked' : ''; ?>>
= $this->getHtml('Work'); ?>download
|
| = $this->getHtml('ID', '0', '0'); ?>
| = $this->getHtml('Start'); ?>expand_lessexpand_more
| = $this->getHtml('End'); ?>expand_lessexpand_more
| = $this->getHtml('Title'); ?>expand_lessexpand_more
| = $this->getHtml('Address'); ?>expand_lessexpand_more
|
|
settings
| |
|
|
|
|
$value) : ++$c; ?>
|
settings
| = $value->id; ?>
| = $value->start->format('Y-m-d'); ?>
| = $value->end === null ? '' : $value->end->format('Y-m-d'); ?>
| = $this->printHtml($value->jobTitle); ?>
| = $this->printHtml($value->address->name); ?>
|
| = $this->getHtml('Empty', '0', '0'); ?>
|