request->uri->fragment === 'c-tab-1' ? ' checked' : ''; ?>>
= $this->getHtml('Contact'); ?>
mail
= $this->getHtml('Address'); ?>
getEditorDocByTypeName('client_backend_warning'))->id !== 0) : ?>
= $this->printHtml($warning->plain); ?>
data['hasBilling']) : ?>
= $this->getHtml('YTDSales'); ?>:
= $this->getCurrency(SalesBillMapper::getClientNetSales($client->id, SmartDateTime::startOfYear($this->data['business_start']), new \DateTime('now')), format: 'medium'); ?>
= $this->getHtml('MTDSales'); ?>:
= $this->getCurrency(SalesBillMapper::getClientNetSales($client->id, SmartDateTime::startOfMonth(), new \DateTime('now')), format: 'medium'); ?>
= $this->getHtml('CLV'); ?>:
= $this->getCurrency(SalesBillMapper::getCLVHistoric($client->id), format: 'medium'); ?>
= $this->getHtml('LastContact'); ?>:
= SalesBillMapper::getClientLastOrder($client->id)?->format('Y-m-d'); ?>
= $this->getHtml('LastOrder'); ?>:
= SalesBillMapper::getClientLastOrder($client->id)?->format('Y-m-d'); ?>
= $this->getHtml('Created'); ?>:
= $client->createdAt->format('Y-m-d H:i'); ?>
= $this->getHtml('DSO'); ?>:
TBD
= $this->getHtml('Due'); ?>:
TBD
= $this->getHtml('Balance'); ?>:
TBD
= $this->getHtml('Notes'); ?>
= $this->getHtml('Documents'); ?>
data['hasBilling']) : ?>
= $this->getHtml('RecentInvoices'); ?>
data['hasBilling']) :
$monthlySalesCosts = SalesBillMapper::getClientMonthlySalesCosts($client->id, (new SmartDateTime('now'))->createModify(-1), new SmartDateTime('now'));
?>
= $this->getHtml('Segments'); ?>
= $this->getHtml('Sales'); ?>
= '"' . \implode('", "', $temp) . '"'; ?>
],
"datasets": [
{
"label": "= $this->getHtml('Margin'); ?>",
"type": "line",
"data": [
= \implode(',', $temp); ?>
],
"yAxisID": "axis2",
"fill": false,
"borderColor": "rgb(255, 99, 132)",
"backgroundColor": "rgb(255, 99, 132)"
},
{
"label": "= $this->getHtml('Sales'); ?>",
"type": "bar",
"data": [
= \implode(',', $temp); ?>
],
"yAxisID": "axis1",
"backgroundColor": "rgb(54, 162, 235)"
}
]
},
"options": {
"responsive": true,
"scales": {
"axis1": {
"id": "axis1",
"display": true,
"position": "left"
},
"axis2": {
"id": "axis2",
"display": true,
"position": "right",
"title": {
"display": true,
"text": "= $this->getHtml('Margin'); ?> %"
},
"grid": {
"display": false
},
"beginAtZero": true,
"ticks": {
"min": 0,
"max": 100,
"stepSize": 10
}
}
}
}
}'>
request->uri->fragment === 'c-tab-3' ? ' checked' : ''; ?>>
= $this->getHtml('Address'); ?>
= $this->getHtml('Contact'); ?>
request->uri->fragment === 'c-tab-5' ? ' checked' : ''; ?>>
= $this->getHtml('Payment'); ?>
= $this->getHtml('PaymentTerm'); ?>
request->uri->fragment === 'c-tab-6' ? ' checked' : ''; ?>>
= $this->getHtml('Prices'); ?>download
request->uri->fragment === 'c-tab-7' ? ' checked' : ''; ?>>
= $attributeView->render(
$client->attributes,
$this->data['attributeTypes'] ?? [],
$this->data['units'] ?? [],
'{/api}client/attribute',
$client->id
);
?>
request->uri->fragment === 'c-tab-8' ? ' checked' : ''; ?>>
= $this->data['media-upload']->render('client-file', 'files', '', $client->files); ?>
request->uri->fragment === 'c-tab-9' ? ' checked' : ''; ?>>
= $this->getHtml('RecentInvoices'); ?>
request->uri->fragment === 'c-tab-9' ? ' checked' : ''; ?>>
= $this->data['note']->render('client-note', 'notes', $client->notes); ?>
= $this->getHtml('Audits', 'Auditor'); ?>download
= $this->getHtml('ID', '0', '0'); ?>
= $this->getHtml('Module', 'Auditor'); ?>
= $this->getHtml('Type', 'Auditor'); ?>
= $this->getHtml('Trigger', 'Auditor'); ?>
= $this->getHtml('Content', 'Auditor'); ?>
= $this->getHtml('By', 'Auditor'); ?>
= $this->getHtml('Ref', 'Auditor'); ?>
= $this->getHtml('Date', 'Auditor'); ?>
data['audits'] ?? [];
$previous = empty($audits) ? HttpHeader::getAllHeaders()['Referer'] ?? 'admin/module/settings?id={?id}#{\#}' : 'admin/module/settings?{?}&audit=' . \reset($audits)->id . '&ptype=p#{\#}';
$next = empty($audits) ? HttpHeader::getAllHeaders()['Referer'] ?? 'admin/module/settings?id={?id}#{\#}' : 'admin/module/settings?{?}&audit=' . \end($audits)->id . '&ptype=n#{\#}';
foreach ($audits as $key => $audit) : ++$count;
$url = UriFactory::build('{/base}/admin/audit/single?{?}&id=' . $audit->id); ?>
= $audit->id; ?>
= $this->printHtml($audit->module); ?>
= $audit->type; ?>
= $this->printHtml($audit->trigger); ?>
= $this->printHtml((string) $audit->content); ?>
= $this->printHtml($audit->createdBy->login); ?>
= $this->printHtml((string) $audit->ref); ?>
= $audit->createdAt->format('Y-m-d H:i'); ?>
= $this->getHtml('Empty', '0', '0'); ?>