Files
arrr-erp/app/ui/templates/components/client_navigation_v2.html
T
2026-07-11 07:43:36 +05:30

62 lines
1.9 KiB
HTML

{% if navigation_render_location_v2|default('page') == 'global-host' or not global_role_navigation_host_v2|default(false) %}
{#
UI/UX V2 Phase 1C — Client pilot navigation
This component preserves the existing client portal URLs and visibility.
It changes presentation only and does not grant access, change routes, or
replace the client dashboard's existing AJAX content tabs.
#}
{% set _client_path = request.url.path %}
{% set navigation_aria_label_v2 = 'Client workspace navigation' %}
{% set navigation_items_v2 = [
{
'label': 'Dashboard',
'url': '/client/dashboard',
'visible': true,
'active': _client_path == '/client/dashboard'
},
{
'label': 'Compliance',
'url': '/client/compliance',
'visible': true,
'active': _client_path.startswith('/client/compliance') or _client_path.startswith('/client/engagements')
},
{
'label': 'Documents',
'url': '/client/documents',
'visible': true,
'active': _client_path.startswith('/client/documents')
},
{
'label': 'Messages',
'url': '/client/messages',
'visible': true,
'active': _client_path.startswith('/client/messages')
},
{
'label': 'Bills & Payments',
'url': '/client/billing',
'visible': true,
'active': _client_path.startswith('/client/billing')
},
{
'label': 'Profile',
'url': '/client/profile',
'visible': true,
'active': _client_path.startswith('/client/profile')
},
{
'label': 'Alerts',
'url': '/alerts',
'visible': true,
'active': _client_path.startswith('/alerts'),
'badge': unread_alert_count if unread_alert_count is defined and unread_alert_count > 0 else none
}
] %}
<div class="mb-6 overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-soft" data-uiux-v2-pilot="client">
{% include "ui/templates/components/navigation_v2.html" %}
{% include "ui/templates/components/mobile_navigation_v2.html" %}
</div>
{% endif %}