{% if navigation_render_location_v2|default('page') == 'global-host' or not global_role_navigation_host_v2|default(false) %} {# UI/UX V2 Phase 1C.2 — Unified Client navigation. Presentation only. Existing routes and route-level permissions remain authoritative. #} {% set _client_path = request.url.path %} {% set _client_tab = request.query_params.get('tab', 'overview') %} {% set navigation_aria_label_v2 = 'Client workspace navigation' %} {% set navigation_items_v2 = [ { 'label': 'Dashboard', 'visible': true, 'active': _client_path.startswith('/client/dashboard'), 'children': [ {'label': 'Overview', 'url': '/client/dashboard?tab=overview', 'active': _client_path.startswith('/client/dashboard') and _client_tab == 'overview'}, {'label': 'Action Centre', 'url': '/client/dashboard?tab=action-centre', 'active': _client_path.startswith('/client/dashboard') and _client_tab == 'action-centre'}, {'label': 'Services & Documents', 'url': '/client/dashboard?tab=services-documents', 'active': _client_path.startswith('/client/dashboard') and _client_tab == 'services-documents'}, {'label': 'Billing & Messages', 'url': '/client/dashboard?tab=billing-messages', 'active': _client_path.startswith('/client/dashboard') and _client_tab == 'billing-messages'}, {'label': 'Reports', 'url': '/client/dashboard?tab=reports', 'active': _client_path.startswith('/client/dashboard') and _client_tab == 'reports'} ] }, { '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 } ] %}