request->uri->fragment === 'c-tab-1' ? ' checked' : ''; ?>>
data['hasBilling'] ?? false) || ($this->data['hasAccounting'] ?? false))) : ?>
= $this->getHtml('Contact'); ?>
mail
= $this->getHtml('Address'); ?>
notes) && ($warning = $client->getEditorDocByTypeName('client_backend_warning'))->id !== 0) : ?>
= $this->printHtml($warning->plain); ?>
data['hasBilling'] ?? false) : ?>
= $this->getHtml('YTDSales'); ?>:
= SalesBillMapper::getClientNetSales($client->id, SmartDateTime::startOfYear($this->data['business_start']), new \DateTime('now'))->getAmount(); ?>
= $this->getHtml('MTDSales'); ?>:
= SalesBillMapper::getClientNetSales($client->id, SmartDateTime::startOfMonth(), new \DateTime('now'))->getAmount(); ?>
= $this->getHtml('CLV'); ?>:
= SalesBillMapper::getCLVHistoric($client->id)->getAmount(); ?>
= $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'); ?>
= $this->getHtml('Title'); ?>
= $this->getHtml('CreatedAt'); ?>
files as $file) :
++$count;
$url = UriFactory::build('{/base}/media/view?{?}&id=' . $file->id);
$extensionType = FileUtils::getExtensionType($file->extension);
?>
id . '&type=html&csrf={$CSRF}') . '"' : ''; ?>>
= $file->name; ?>
= $file->extension; ?>
= $file->createdAt->format('Y-m-d'); ?>
= $this->getHtml('Empty', '0', '0'); ?>
data['hasBilling'] ?? false) : ?>
= $this->getHtml('RecentInvoices'); ?>
data['hasBilling'] ?? false) :
$monthlySalesCosts = SalesBillMapper::getClientMonthlySalesCosts($client->id, (new SmartDateTime('now'))->createModify(-1), new SmartDateTime('now'));
if (!empty($monthlySalesCosts)) :
?>
id, 'segment', 'en', (new SmartDateTime('now'))->createModify(-1), new SmartDateTime('now')); ?>
= $this->getHtml('Segments'); ?>
= '"' . \implode('", "', $temp) . '"'; ?>
],
"datasets": [
{
"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",
"ticks": {
"precision": 0
}
}
},
"plugins": {
"legend": {
"display": false
}
}
}
}'>
= $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",
"ticks": {
"precision": 0
}
},
"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-2' ? ' checked' : ''; ?>>
= $this->data['contact-component']->render('client-contact', 'contacts', $client->account->contacts); ?>
= $this->data['address-component']->render('client-address', 'addresses', $client->account->addresses); ?>
request->uri->fragment === 'c-tab-3' ? ' checked' : ''; ?>>
= $this->getHtml('Payment'); ?>
request->uri->fragment === 'c-tab-4' ? ' checked' : ''; ?>>
= $this->getHtml('Prices'); ?>download
= $this->getHtml('ID', '0', '0'); ?>expand_less expand_more
= $this->getHtml('Name'); ?>expand_less expand_more
= $this->getHtml('Promocode'); ?>
= $this->getHtml('Price'); ?>
= $this->getHtml('Quantity'); ?>
= $this->getHtml('Discount'); ?>
= $this->getHtml('DiscountP'); ?>
= $this->getHtml('Bonus'); ?>
= $this->getHtml('Item'); ?>
= $this->getHtml('ItemSegment'); ?>
= $this->getHtml('ItemSection'); ?>
= $this->getHtml('ItemSalesGroup'); ?>
= $this->getHtml('ItemProductGroup'); ?>
= $this->getHtml('ItemType'); ?>
= $this->getHtml('ClientSegment'); ?>
= $this->getHtml('ClientSection'); ?>
= $this->getHtml('ClientGroup'); ?>
= $this->getHtml('ClientType'); ?>
= $this->getHtml('Region'); ?>
= $this->getHtml('Start'); ?>
= $this->getHtml('End'); ?>
settings
close
= $this->getHtml('Cancel', '0', '0'); ?>
= $this->getHtml('Delete', '0', '0'); ?>
data['prices'];
foreach ($prices as $key => $value) : ++$c;
?>
settings
name !== 'default') : ?>
close
= $this->getHtml('Cancel', '0', '0'); ?>
= $this->getHtml('Delete', '0', '0'); ?>
= $value->id; ?>
= $this->printHtml($value->name); ?>
= $this->printHtml($value->promocode); ?>
= $value->price->getAmount(); ?>
= $this->printHtml($value->currency); ?>
= $value->quantity->getAmount(); ?>
= $value->discount->getAmount(); ?>
= $this->getPercentage($value->discountPercentage); ?>
= $value->bonus->getAmount(); ?>
= $this->printHtml((string) $value->item->id); ?>
= $this->printHtml((string) $value->itemsegment->getL11n()); ?>
= $this->printHtml((string) $value->itemsection->getL11n()); ?>
= $this->printHtml((string) $value->itemsalesgroup->getL11n()); ?>
= $this->printHtml((string) $value->itemproductgroup->getL11n()); ?>
= $this->printHtml((string) $value->itemtype->getL11n()); ?>
= $this->printHtml((string) $value->clientsegment->getL11n()); ?>
= $this->printHtml((string) $value->clientsection->getL11n()); ?>
= $this->printHtml((string) $value->clientgroup->getL11n()); ?>
= $this->printHtml((string) $value->clienttype->getL11n()); ?>
= $this->printHtml((string) $value->clientcountry); ?>
= $value->start?->format('Y-m-d'); ?>
= $value->end?->format('Y-m-d'); ?>
= $this->getHtml('Empty', '0', '0'); ?>
request->uri->fragment === 'c-tab-5' ? ' checked' : ''; ?>>
= $this->data['attributeView']->render(
$client->attributes,
$this->data['attributeTypes'] ?? [],
$this->data['units'] ?? [],
'{/api}client/attribute?csrf={$CSRF}',
$client->id
);
?>
request->uri->fragment === 'c-tab-8' ? ' checked' : ''; ?>>
= $this->data['media-upload']->render('client-file', 'files', '', $client->files, '{/api}client/file?csrf={$CSRF}', (string) $client->id); ?>
request->uri->fragment === 'c-tab-9' ? ' checked' : ''; ?>>
= $this->getHtml('RecentInvoices'); ?>
request->uri->fragment === 'c-tab-6' ? ' checked' : ''; ?>>
id, SmartDateTime::startOfYear($this->data['business_start']), new SmartDateTime('now')); ?>
= $this->getHtml('Items'); ?>download
= $this->data['note']->render('client-note', 'notes', $client->notes, '{/api}client/note?csrf={$CSRF}', (string) $client->id); ?>
= $this->getHtml('Logs', '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'); ?>
id . '&ptype=p#{\#}';
$next = empty($logs) ? HttpHeader::getAllHeaders()['Referer'] ?? 'admin/module/settings?id={?id}#{\#}' : 'admin/module/settings?{?}&audit=' . \end($logs)->id . '&ptype=n#{\#}';
foreach ($logs as $key => $audit) : ++$count;
$url = UriFactory::build('{/base}/admin/audit/view?{?}&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'); ?>