request->uri->fragment === 'c-tab-1' ? ' checked' : ''; ?>>
request->uri->fragment === 'c-tab-2' ? ' checked' : ''; ?>>
= $this->data['attributeView']->render(
$equipment->attributes,
$this->data['attributeTypes'] ?? [],
$this->data['units'] ?? [],
'{/api}equipment/attribute?csrf={$CSRF}',
$equipment->id
);
?>
request->uri->fragment === 'c-tab-3' ? ' checked' : ''; ?>>
= $this->data['media-upload']->render('equipment-file', 'files', '', $equipment->files, '{/api}equipment/file?csrf={$CSRF}', (string) $equipment->id); ?>
request->uri->fragment === 'c-tab-4' ? ' checked' : ''; ?>>
= $this->data['equipment-notes']->render('equipment-notes', '', $equipment->notes, '{/api}equipment/note?csrf={$CSRF}', (string) $equipment->id); ?>
request->uri->fragment === 'c-tab-5' ? ' checked' : ''; ?>>
= $this->getHtml('Upcoming'); ?>
= $this->getHtml('Date'); ?>
= $this->getHtml('Type'); ?>
= $this->getHtml('Responsible'); ?>
data['inspections'] ?? []) as $inspection) :
// @todo handle old inspections in the past? maybe use a status?!
if ($inspection->next === null) {
continue;
}
?>
= $inspection->next->format('Y-m-d H:i'); ?>
= $this->printHtml($inspection->type->getL11n()); ?>
= $this->getHtml('History'); ?>
= $this->getHtml('Date'); ?>
= $this->getHtml('Type'); ?>
= $this->getHtml('Responsible'); ?>
data['inspections'] ?? []) as $inspection) : ?>
= $inspection->date->format('Y-m-d H:i'); ?>
= $this->printHtml($inspection->type->getL11n()); ?>
request->uri->fragment === 'c-tab-8' ? ' checked' : ''; ?>>