update
This commit is contained in:
@@ -127,8 +127,23 @@
|
||||
<a class="sidebar__sublink<?= $currentMenu === 'settings' && $currentSettings === 'printing' ? ' is-active' : '' ?>" href="/settings/printing">
|
||||
Drukowanie
|
||||
</a>
|
||||
<?php
|
||||
$dsmUnmappedCount = 0;
|
||||
try {
|
||||
$appInstance = \App\Core\Application::instance();
|
||||
if ($appInstance !== null) {
|
||||
$dsmRepo = new \App\Modules\Shipments\DeliveryStatusMappingRepository($appInstance->db());
|
||||
$dsmUnmappedCount = $dsmRepo->countAllUnmappedForBadge();
|
||||
}
|
||||
} catch (\Throwable) {
|
||||
$dsmUnmappedCount = 0;
|
||||
}
|
||||
?>
|
||||
<a class="sidebar__sublink<?= $currentMenu === 'settings' && $currentSettings === 'delivery-status-mappings' ? ' is-active' : '' ?>" href="/settings/delivery-status-mappings">
|
||||
Mapowanie statusów dostawy
|
||||
<?php if ($dsmUnmappedCount > 0): ?>
|
||||
<span class="sidebar__badge" title="Niezmapowane statusy"><?= (int) $dsmUnmappedCount ?></span>
|
||||
<?php endif; ?>
|
||||
</a>
|
||||
<a class="sidebar__sublink<?= $currentMenu === 'settings' && $currentSettings === 'project-mappings' ? ' is-active' : '' ?>" href="/settings/project-mappings">
|
||||
<?= $e($t('navigation.project_mapping')) ?>
|
||||
|
||||
Reference in New Issue
Block a user