<?php

return [
    [
        'key' => '',
        'label' => 'Dashboard',
        'route_name' => 'dashboard.index',
        'route_prefix' => 'dashboard.',
        'permission_key' => null,
        'children' => [
            [
                'key' => 'dept_executive',
                'label' => 'Executive Dashboard',
                'route_name' => 'dashboard.executive',
                'permission_key' => 'dashboard.executive.view',
            ],
            [
                'key' => 'dept_sales',
                'label' => 'Sales Dashboard',
                'route_name' => 'dashboard.sales',
                'permission_key' => 'dashboard.sales.view',
            ],
            [
                'key' => 'dept_buyers',
                'label' => 'Buyers Dashboard',
                'route_name' => 'dashboard.buyers',
                'permission_key' => 'dashboard.buyers.view',
            ],
            [
                'key' => 'dept_financial',
                'label' => 'Financial Dashboard',
                'route_name' => 'dashboard.financial',
                'permission_key' => 'dashboard.financial.view',
            ],
            [
                'key' => 'dept_recon',
                'label' => 'Recon Dashboard',
                'route_name' => 'dashboard.recon_department',
                'permission_key' => 'dashboard.recon_department.view',
            ],
            [
                'key' => 'dept_marketing',
                'label' => 'Marketing Dashboard',
                'route_name' => 'dashboard.marketing_department',
                'permission_key' => 'dashboard.marketing_department.view',
            ],
            [
                'key' => 'dept_fi',
                'label' => 'F&I Dashboard',
                'route_name' => 'dashboard.fi_department',
                'permission_key' => 'dashboard.fi_department.view',
            ],
            [
                'key' => 'dept_inventory',
                'label' => 'Inventory Dashboard',
                'route_name' => 'dashboard.inventory_department',
                'permission_key' => 'dashboard.inventory_department.view',
            ],
            [
                'key' => 'dept_operations',
                'label' => 'Operations Dashboard',
                'route_name' => 'dashboard.operations',
                'permission_key' => 'dashboard.operations.view',
            ],
        ],
    ],
    [
        'key' => 'company_documents',
        'label' => 'Company & Documents',
        'route_prefix' => 'dashboard.company_documents.',
        'is_group' => true,
        'permission_key' => null,
        'children' => [
            [
                'key' => 'employees_meet_team',
                'label' => 'Employees & Meet the Team',
                'route_name' => 'dashboard.company_documents.employees_meet_team',
                'permission_key' => 'dashboard.company_documents.employees_meet_team.view',
            ],
            [
                'key' => 'my_documents',
                'label' => 'My Documents',
                'route_name' => 'dashboard.company_documents.my_documents',
                'permission_key' => 'dashboard.company_documents.my_documents.view',
            ],
            [
                'key' => 'company_documents',
                'label' => 'Company Documents',
                'route_prefix' => 'dashboard.company_documents.company_documents.',
                'is_group' => true,
                'permission_key' => null,
                'children' => [
                    [
                        'key' => 'policies_and_procedures',
                        'label' => 'Policies & Procedures',
                        'route_name' => 'dashboard.company_documents.company_documents.policies_and_procedures',
                        'permission_key' => 'dashboard.company_documents.company_documents.policies_and_procedures.view',
                    ],
                    [
                        'key' => 'templates_and_forms',
                        'label' => 'Templates & Forms',
                        'route_name' => 'dashboard.company_documents.company_documents.templates_and_forms',
                        'permission_key' => 'dashboard.company_documents.company_documents.templates_and_forms.view',
                    ],
                    [
                        'key' => 'finance_and_insurance',
                        'label' => 'Finance & Insurance',
                        'route_name' => 'dashboard.company_documents.company_documents.finance_and_insurance',
                        'permission_key' => 'dashboard.company_documents.company_documents.finance_and_insurance.view',
                    ],
                    [
                        'key' => 'deal_files',
                        'label' => 'Deal Files',
                        'route_name' => 'dashboard.company_documents.company_documents.deal_files',
                        'permission_key' => 'dashboard.company_documents.company_documents.deal_files.view',
                    ],
                ],
            ],
            [
                'key' => 'performance_stats',
                'label' => 'Performance Stats',
                'route_prefix' => 'dashboard.company_documents.performance_stats.',
                'is_group' => true,
                'permission_key' => null,
                'children' => [
                    [
                        'key' => 'sales',
                        'label' => 'Sales',
                        'route_prefix' => 'dashboard.company_documents.performance_stats.sales.',
                        'is_group' => true,
                        'permission_key' => null,
                        'children' => [
                            ['key' => 'units_mtd', 'label' => 'Units MTD', 'route_name' => 'dashboard.company_documents.performance_stats.sales.units_mtd', 'permission_key' => 'dashboard.company_documents.performance_stats.sales.units_mtd.view'],
                            ['key' => 'gross_profit_mtd', 'label' => 'Gross Profit MTD', 'route_name' => 'dashboard.company_documents.performance_stats.sales.gross_profit_mtd', 'permission_key' => 'dashboard.company_documents.performance_stats.sales.gross_profit_mtd.view'],
                            ['key' => 'forecast_vs_actual_units_and_gp', 'label' => 'Forecast vs Actual Units and GP', 'route_name' => 'dashboard.company_documents.performance_stats.sales.forecast_vs_actual_units_and_gp', 'permission_key' => 'dashboard.company_documents.performance_stats.sales.forecast_vs_actual_units_and_gp.view'],
                            ['key' => 'prospecting', 'label' => 'Prospecting', 'route_name' => 'dashboard.company_documents.performance_stats.sales.prospecting', 'permission_key' => 'dashboard.company_documents.performance_stats.sales.prospecting.view'],
                            ['key' => 'exhibitions', 'label' => 'Exhibitions', 'route_name' => 'dashboard.company_documents.performance_stats.sales.exhibitions', 'permission_key' => 'dashboard.company_documents.performance_stats.sales.exhibitions.view'],
                            ['key' => 'calls_quotes_apps_and_sales_vs_target_tracking', 'label' => 'Calls Quotes Apps and Sales vs Target Tracking', 'route_name' => 'dashboard.company_documents.performance_stats.sales.calls_quotes_apps_and_sales_vs_target_tracking', 'permission_key' => 'dashboard.company_documents.performance_stats.sales.calls_quotes_apps_and_sales_vs_target_tracking.view'],
                            ['key' => 'appraisals', 'label' => 'Appraisals', 'route_name' => 'dashboard.company_documents.performance_stats.sales.appraisals', 'permission_key' => 'dashboard.company_documents.performance_stats.sales.appraisals.view'],
                            ['key' => 'comebacks_aftersales', 'label' => 'Comebacks Aftersales', 'route_name' => 'dashboard.company_documents.performance_stats.sales.comebacks_aftersales', 'permission_key' => 'dashboard.company_documents.performance_stats.sales.comebacks_aftersales.view'],
                            ['key' => 'commission_current_month_and_historic', 'label' => 'Commission Current Month and Historic', 'route_name' => 'dashboard.company_documents.performance_stats.sales.commission_current_month_and_historic', 'permission_key' => 'dashboard.company_documents.performance_stats.sales.commission_current_month_and_historic.view'],
                        ],
                    ],
                    [
                        'key' => 'fi',
                        'label' => 'F&I',
                        'route_prefix' => 'dashboard.company_documents.performance_stats.fi.',
                        'is_group' => true,
                        'permission_key' => null,
                        'children' => [
                            ['key' => 'target_vs_actual_2nd_gross', 'label' => 'Target vs Actual 2nd Gross', 'route_name' => 'dashboard.company_documents.performance_stats.fi.target_vs_actual_2nd_gross', 'permission_key' => 'dashboard.company_documents.performance_stats.fi.target_vs_actual_2nd_gross.view'],
                            ['key' => 'vaps_penetration', 'label' => 'VAPS Penetration', 'route_name' => 'dashboard.company_documents.performance_stats.fi.vaps_penetration', 'permission_key' => 'dashboard.company_documents.performance_stats.fi.vaps_penetration.view'],
                            ['key' => 'rand_per_1000_per_bank', 'label' => 'Rand per 1000 per Bank', 'route_name' => 'dashboard.company_documents.performance_stats.fi.rand_per_1000_per_bank', 'permission_key' => 'dashboard.company_documents.performance_stats.fi.rand_per_1000_per_bank.view'],
                            ['key' => 'finance_vs_cash_vs_self_finance_deals', 'label' => 'Finance vs Cash vs Self Finance Deals', 'route_name' => 'dashboard.company_documents.performance_stats.fi.finance_vs_cash_vs_self_finance_deals', 'permission_key' => 'dashboard.company_documents.performance_stats.fi.finance_vs_cash_vs_self_finance_deals.view'],
                            ['key' => 'commission_current_month_and_historic', 'label' => 'Commission Current Month and Historic', 'route_name' => 'dashboard.company_documents.performance_stats.fi.commission_current_month_and_historic', 'permission_key' => 'dashboard.company_documents.performance_stats.fi.commission_current_month_and_historic.view'],
                        ],
                    ],
                    [
                        'key' => 'manager',
                        'label' => 'Manager',
                        'route_prefix' => 'dashboard.company_documents.performance_stats.manager.',
                        'is_group' => true,
                        'permission_key' => null,
                        'children' => [
                            ['key' => 'total_1st_gross', 'label' => 'Total 1st Gross', 'route_name' => 'dashboard.company_documents.performance_stats.manager.total_1st_gross', 'permission_key' => 'dashboard.company_documents.performance_stats.manager.total_1st_gross.view'],
                            ['key' => 'total_2nd_gross', 'label' => 'Total 2nd Gross', 'route_name' => 'dashboard.company_documents.performance_stats.manager.total_2nd_gross', 'permission_key' => 'dashboard.company_documents.performance_stats.manager.total_2nd_gross.view'],
                            ['key' => 'total_gross_profit_mtd', 'label' => 'Total Gross Profit MTD', 'route_name' => 'dashboard.company_documents.performance_stats.manager.total_gross_profit_mtd', 'permission_key' => 'dashboard.company_documents.performance_stats.manager.total_gross_profit_mtd.view'],
                            ['key' => 'total_forecast_vs_actual_units_and_gp', 'label' => 'Total Forecast vs Actual Units and GP', 'route_name' => 'dashboard.company_documents.performance_stats.manager.total_forecast_vs_actual_units_and_gp', 'permission_key' => 'dashboard.company_documents.performance_stats.manager.total_forecast_vs_actual_units_and_gp.view'],
                            ['key' => 'expenses_and_nett_profit', 'label' => 'Expenses and Nett Profit', 'route_name' => 'dashboard.company_documents.performance_stats.manager.expenses_and_nett_profit', 'permission_key' => 'dashboard.company_documents.performance_stats.manager.expenses_and_nett_profit.view'],
                            ['key' => 'commission_current_month_and_historic', 'label' => 'Commission Current Month and Historic', 'route_name' => 'dashboard.company_documents.performance_stats.manager.commission_current_month_and_historic', 'permission_key' => 'dashboard.company_documents.performance_stats.manager.commission_current_month_and_historic.view'],
                        ],
                    ],
                ],
            ],
            [
                'key' => 'calendar',
                'label' => 'Calendar',
                'route_prefix' => 'dashboard.company_documents.calendar.',
                'is_group' => true,
                'permission_key' => null,
                'children' => [
                    ['key' => 'birthdays', 'label' => 'Birthdays', 'route_name' => 'dashboard.company_documents.calendar.birthdays', 'permission_key' => 'dashboard.company_documents.calendar.birthdays.view'],
                    ['key' => 'events', 'label' => 'Events', 'route_name' => 'dashboard.company_documents.calendar.events', 'permission_key' => 'dashboard.company_documents.calendar.events.view'],
                    ['key' => 'tasks_due', 'label' => 'Tasks Due', 'route_name' => 'dashboard.company_documents.calendar.tasks_due', 'permission_key' => 'dashboard.company_documents.calendar.tasks_due.view'],
                    ['key' => 'reminders', 'label' => 'Reminders', 'route_name' => 'dashboard.company_documents.calendar.reminders', 'permission_key' => 'dashboard.company_documents.calendar.reminders.view'],
                ],
            ],
            [
                'key' => 'quick_actions',
                'label' => 'Quick Actions',
                'route_prefix' => 'dashboard.company_documents.quick_actions.',
                'is_group' => true,
                'permission_key' => null,
                'children' => [
                    ['key' => 'new_lead', 'label' => 'New Lead', 'route_name' => 'dashboard.company_documents.quick_actions.new_lead', 'permission_key' => 'dashboard.company_documents.quick_actions.new_lead.view'],
                    ['key' => 'log_a_comeback_after_sale', 'label' => 'Log a Comeback After Sale', 'route_name' => 'dashboard.company_documents.quick_actions.log_a_comeback_after_sale', 'permission_key' => 'dashboard.company_documents.quick_actions.log_a_comeback_after_sale.view'],
                    ['key' => 'create_task', 'label' => 'Create Task', 'route_name' => 'dashboard.company_documents.quick_actions.create_task', 'permission_key' => 'dashboard.company_documents.quick_actions.create_task.view'],
                    ['key' => 'request_valuation', 'label' => 'Request Valuation', 'route_name' => 'dashboard.company_documents.quick_actions.request_valuation', 'permission_key' => 'dashboard.company_documents.quick_actions.request_valuation.view'],
                    ['key' => 'check_stock', 'label' => 'Check Stock', 'route_name' => 'dashboard.company_documents.quick_actions.check_stock', 'permission_key' => 'dashboard.company_documents.quick_actions.check_stock.view'],
                    ['key' => 'request_a_payment', 'label' => 'Request a Payment', 'route_name' => 'dashboard.company_documents.quick_actions.request_a_payment', 'permission_key' => 'dashboard.company_documents.quick_actions.request_a_payment.view'],
                ],
            ],
            [
                'key' => 'tasks',
                'label' => 'Tasks',
                'route_prefix' => 'dashboard.company_documents.tasks.',
                'is_group' => true,
                'permission_key' => null,
                'children' => [
                    ['key' => 'announcements', 'label' => 'Announcements', 'route_name' => 'dashboard.company_documents.tasks.announcements', 'permission_key' => 'dashboard.company_documents.tasks.announcements.view'],
                    ['key' => 'quick_links', 'label' => 'Quick Links', 'route_name' => 'dashboard.company_documents.tasks.quick_links', 'permission_key' => 'dashboard.company_documents.tasks.quick_links.view'],
                    ['key' => 'pending_docs', 'label' => 'Pending Docs', 'route_name' => 'dashboard.company_documents.tasks.pending_docs', 'permission_key' => 'dashboard.company_documents.tasks.pending_docs.view'],
                    ['key' => 'task_delegation', 'label' => 'Task Delegation', 'route_name' => 'dashboard.company_documents.tasks.task_delegation', 'permission_key' => 'dashboard.company_documents.tasks.task_delegation.view'],
                    ['key' => 'manager_messages', 'label' => 'Manager Messages', 'route_name' => 'dashboard.company_documents.tasks.manager_messages', 'permission_key' => 'dashboard.company_documents.tasks.manager_messages.view'],
                ],
            ],
            [
                'key' => 'duties',
                'label' => 'Duties',
                'route_prefix' => 'dashboard.company_documents.duties.',
                'is_group' => true,
                'permission_key' => null,
                'children' => [
                    ['key' => 'daily', 'label' => 'Daily', 'route_name' => 'dashboard.company_documents.duties.daily', 'permission_key' => 'dashboard.company_documents.duties.daily.view'],
                    ['key' => 'weekly', 'label' => 'Weekly', 'route_name' => 'dashboard.company_documents.duties.weekly', 'permission_key' => 'dashboard.company_documents.duties.weekly.view'],
                    ['key' => 'monthly', 'label' => 'Monthly', 'route_name' => 'dashboard.company_documents.duties.monthly', 'permission_key' => 'dashboard.company_documents.duties.monthly.view'],
                ],
            ],
            [
                'key' => 'hr_payroll',
                'label' => 'HR & Payroll',
                'route_prefix' => 'dashboard.company_documents.hr_payroll.',
                'is_group' => true,
                'permission_key' => null,
                'children' => [
                    ['key' => 'offer_letter', 'label' => 'Offer Letter', 'route_name' => 'dashboard.company_documents.hr_payroll.offer_letter', 'permission_key' => 'dashboard.company_documents.hr_payroll.offer_letter.view'],
                    ['key' => 'signed_contract_duty_list_etc', 'label' => 'Signed Contract Duty List', 'route_name' => 'dashboard.company_documents.hr_payroll.signed_contract_duty_list_etc', 'permission_key' => 'dashboard.company_documents.hr_payroll.signed_contract_duty_list_etc.view'],
                    ['key' => 'payslips', 'label' => 'Payslips', 'route_name' => 'dashboard.company_documents.hr_payroll.payslips', 'permission_key' => 'dashboard.company_documents.hr_payroll.payslips.view'],
                    ['key' => 'leave', 'label' => 'Leave', 'route_name' => 'dashboard.company_documents.hr_payroll.leave', 'permission_key' => 'dashboard.company_documents.hr_payroll.leave.view'],
                    ['key' => 'performance_reviews', 'label' => 'Performance Reviews', 'route_name' => 'dashboard.company_documents.hr_payroll.performance_reviews', 'permission_key' => 'dashboard.company_documents.hr_payroll.performance_reviews.view'],
                    ['key' => 'disciplinary', 'label' => 'Disciplinary', 'route_name' => 'dashboard.company_documents.hr_payroll.disciplinary', 'permission_key' => 'dashboard.company_documents.hr_payroll.disciplinary.view'],
                ],
            ],
        ],
    ],
    [
        'key' => 'duties_tasks',
        'label' => 'Duties & Tasks',
        'route_prefix' => 'dashboard.duties_tasks.',
        'is_group' => true,
        'permission_key' => null,
        'children' => [
            ['key' => 'reminders_due', 'label' => 'Reminders Due', 'route_name' => 'dashboard.duties_tasks.reminders_due', 'permission_key' => null],
            ['key' => 'daily_duties', 'label' => 'Daily Duties', 'route_name' => 'dashboard.duties_tasks.daily_duties', 'permission_key' => null],
            ['key' => 'weekly_duties', 'label' => 'Weekly Duties', 'route_name' => 'dashboard.duties_tasks.weekly_duties', 'permission_key' => null],
            ['key' => 'monthly_duties', 'label' => 'Monthly Duties', 'route_name' => 'dashboard.duties_tasks.monthly_duties', 'permission_key' => null],
        ],
    ],
    [
        'key' => 'training',
        'label' => 'Training',
        'route_prefix' => 'dashboard.training.',
        'is_group' => true,
        'permission_key' => null,
        'children' => [
            ['key' => 'mission_vision', 'label' => 'Mission & Vision', 'route_name' => 'dashboard.training.mission_vision', 'permission_key' => null],
        ],
    ],
    [
        'key' => 'stock',
        'label' => 'Stock',
        'route_name' => 'dashboard.stock',
        'route_prefix' => 'dashboard.stock.',
        'permission_key' => 'dashboard.stock.view',
        'children' => [
            ['key' => 'zero_tolerance', 'label' => 'Zero Tolerance', 'route_name' => 'dashboard.stock.zero_tolerance', 'permission_key' => 'dashboard.stock.zero_tolerance.view'],
            ['key' => 'sales', 'label' => 'Sales', 'route_name' => 'dashboard.stock.sales', 'permission_key' => 'dashboard.stock.sales.view'],
            ['key' => 'purchases', 'label' => 'Purchases', 'route_name' => 'dashboard.stock.purchases', 'permission_key' => 'dashboard.stock.purchases.view'],
            ['key' => 'recon', 'label' => 'Recon', 'route_name' => 'dashboard.stock.recon', 'permission_key' => 'dashboard.stock.recon.view'],
            ['key' => 'admin', 'label' => 'Admin', 'route_name' => 'dashboard.stock.admin', 'permission_key' => 'dashboard.stock.admin.view'],
            ['key' => 'driver', 'label' => 'Driver', 'route_name' => 'dashboard.stock.driver', 'permission_key' => 'dashboard.stock.driver.view'],
            ['key' => 'cleaner', 'label' => 'Cleaner', 'route_name' => 'dashboard.stock.cleaner', 'permission_key' => 'dashboard.stock.cleaner.view'],
            ['key' => 'stock_list', 'label' => 'Stock List', 'route_name' => 'dashboard.stock.stock_list', 'permission_key' => 'dashboard.stock.stock_list.view'],
            ['key' => 'stock_take', 'label' => 'Stock Take', 'route_name' => 'dashboard.stock.stock_take', 'permission_key' => 'dashboard.stock.stock_take.view'],
            ['key' => 'stock_reports', 'label' => 'Stock Reports', 'route_name' => 'dashboard.stock.stock_reports', 'permission_key' => 'dashboard.stock.stock_reports.view'],
            ['key' => 'whatsapp_share_stock_list', 'label' => 'WhatsApp Share Stock List', 'route_name' => 'dashboard.stock.whatsapp_share_stock_list', 'permission_key' => 'dashboard.stock.whatsapp_share_stock_list.view'],
            ['key' => 'attach_vcard_to_stock', 'label' => 'Attach Vcard to Stock', 'route_name' => 'dashboard.stock.attach_vcard_to_stock', 'permission_key' => 'dashboard.stock.attach_vcard_to_stock.view'],
        ],
    ],
    [
        'key' => 'crm_leads',
        'label' => 'CRM / Leads',
        'route_name' => 'dashboard.crm_leads',
        'route_prefix' => 'dashboard.crm_leads.',
        'permission_key' => 'dashboard.crm_leads.view',
        'children' => [
            [
                'key' => 'vehicle_sale_leads',
                'label' => 'Vehicle Sale Leads',
                'route_prefix' => 'dashboard.crm_leads.vehicle_sale_leads.',
                'is_group' => true,
                'permission_key' => null,
                'children' => [
                    ['key' => 'my_leads', 'label' => 'My Leads', 'route_name' => 'dashboard.crm_leads.vehicle_sale_leads.my_leads', 'permission_key' => 'dashboard.crm_leads.vehicle_sale_leads.my_leads.view'],
                    ['key' => 'new_leads', 'label' => 'New Leads', 'route_name' => 'dashboard.crm_leads.vehicle_sale_leads.new_leads', 'permission_key' => 'dashboard.crm_leads.vehicle_sale_leads.new_leads.view'],
                    ['key' => 'affiliate_leads', 'label' => 'Affiliate Leads', 'route_name' => 'dashboard.crm_leads.vehicle_sale_leads.affiliate_leads', 'permission_key' => 'dashboard.crm_leads.vehicle_sale_leads.affiliate_leads.view'],
                    ['key' => 'reminders', 'label' => 'Reminders', 'route_name' => 'dashboard.crm_leads.vehicle_sale_leads.reminders', 'permission_key' => 'dashboard.crm_leads.vehicle_sale_leads.reminders.view'],
                    ['key' => 'hot_list', 'label' => 'Hot List', 'route_name' => 'dashboard.crm_leads.vehicle_sale_leads.hot_list', 'permission_key' => 'dashboard.crm_leads.vehicle_sale_leads.hot_list.view'],
                    ['key' => 'lead_source_report', 'label' => 'Lead Source Report', 'route_name' => 'dashboard.crm_leads.vehicle_sale_leads.lead_source_report', 'permission_key' => 'dashboard.crm_leads.vehicle_sale_leads.lead_source_report.view'],
                    ['key' => 'marketing_tools_prospecting', 'label' => 'Marketing Tools Prospecting', 'route_name' => 'dashboard.crm_leads.vehicle_sale_leads.marketing_tools_prospecting', 'permission_key' => 'dashboard.crm_leads.vehicle_sale_leads.marketing_tools_prospecting.view'],
                    ['key' => 'prospecting', 'label' => 'Prospecting', 'route_name' => 'dashboard.crm_leads.vehicle_sale_leads.prospecting', 'permission_key' => 'dashboard.crm_leads.vehicle_sale_leads.prospecting.view'],
                    ['key' => 'communication_history', 'label' => 'Communication History', 'route_name' => 'dashboard.crm_leads.vehicle_sale_leads.communication_history', 'permission_key' => 'dashboard.crm_leads.vehicle_sale_leads.communication_history.view'],
                    ['key' => 'calendar', 'label' => 'Calendar', 'route_name' => 'dashboard.crm_leads.vehicle_sale_leads.calendar', 'permission_key' => 'dashboard.crm_leads.vehicle_sale_leads.calendar.view'],
                    ['key' => 'customer_follow_ups', 'label' => 'Customer Follow Ups', 'route_name' => 'dashboard.crm_leads.vehicle_sale_leads.customer_follow_ups', 'permission_key' => 'dashboard.crm_leads.vehicle_sale_leads.customer_follow_ups.view'],
                    ['key' => 'parked_customers', 'label' => 'Parked Customers', 'route_name' => 'dashboard.crm_leads.vehicle_sale_leads.parked_customers', 'permission_key' => 'dashboard.crm_leads.vehicle_sale_leads.parked_customers.view'],
                    ['key' => 'finance_calculator', 'label' => 'Finance Calculator', 'route_name' => 'dashboard.crm_leads.vehicle_sale_leads.finance_calculator', 'permission_key' => 'dashboard.crm_leads.vehicle_sale_leads.finance_calculator.view'],
                    ['key' => 'deal_builder', 'label' => 'Deal Builder', 'route_name' => 'dashboard.crm_leads.vehicle_sale_leads.deal_builder', 'permission_key' => 'dashboard.crm_leads.vehicle_sale_leads.deal_builder.view'],
                ],
            ],
            [
                'key' => 'vehicle_purchase_leads',
                'label' => 'Vehicle Purchase Leads',
                'route_prefix' => 'dashboard.crm_leads.vehicle_purchase_leads.',
                'is_group' => true,
                'permission_key' => null,
                'children' => [
                    ['key' => 'sell_my_car_leads', 'label' => 'Sell My Car Leads', 'route_name' => 'dashboard.crm_leads.vehicle_purchase_leads.sell_my_car_leads', 'permission_key' => 'dashboard.crm_leads.vehicle_purchase_leads.sell_my_car_leads.view'],
                ],
            ],
        ],
    ],
    [
        'key' => 'valuations',
        'label' => 'Valuations',
        'route_name' => 'dashboard.valuations',
        'route_prefix' => 'dashboard.valuations.',
        'permission_key' => 'dashboard.valuations.view',
        'children' => [
            ['key' => 'new_evaluation', 'label' => 'New Evaluation', 'route_name' => 'dashboard.valuations.new_evaluation', 'permission_key' => 'dashboard.valuations.new_evaluation.view'],
            ['key' => 'new_vehicle_pre_inspection', 'label' => 'New Vehicle Pre Inspection', 'route_name' => 'dashboard.valuations.new_vehicle_pre_inspection', 'permission_key' => 'dashboard.valuations.new_vehicle_pre_inspection.view'],
            ['key' => 'valuations_subject_to_view_prices', 'label' => 'Valuations Subject to View Prices', 'route_name' => 'dashboard.valuations.valuations_subject_to_view_prices', 'permission_key' => 'dashboard.valuations.valuations_subject_to_view_prices.view'],
            ['key' => 'transunion_values', 'label' => 'Transunion Values', 'route_name' => 'dashboard.valuations.transunion_values', 'permission_key' => 'dashboard.valuations.transunion_values.view'],
            ['key' => 'pricing_on_vehicles', 'label' => 'Pricing on Vehicles', 'route_name' => 'dashboard.valuations.pricing_on_vehicles', 'permission_key' => 'dashboard.valuations.pricing_on_vehicles.view'],
            ['key' => 'validate_vehicle', 'label' => 'Validate Vehicle', 'route_name' => 'dashboard.valuations.validate_vehicle', 'permission_key' => 'dashboard.valuations.validate_vehicle.view'],
            ['key' => 'accident_history_report', 'label' => 'Accident History Report', 'route_name' => 'dashboard.valuations.accident_history_report', 'permission_key' => 'dashboard.valuations.accident_history_report.view'],
        ],
    ],
    [
        'key' => 'performance_stats',
        'label' => 'Performance Stats',
        'route_name' => 'dashboard.performance_stats',
        'route_prefix' => 'dashboard.performance_stats.',
        'permission_key' => 'dashboard.performance_stats.view',
        'children' => [
            [
                'key' => 'targets',
                'label' => 'Targets',
                'route_prefix' => 'dashboard.performance_stats.targets.',
                'is_group' => true,
                'permission_key' => null,
                'children' => [
                    ['key' => 'sales', 'label' => 'Sales', 'route_name' => 'dashboard.performance_stats.targets.sales', 'permission_key' => 'dashboard.performance_stats.targets.sales.view'],
                    ['key' => 'fi', 'label' => 'F&I', 'route_name' => 'dashboard.performance_stats.targets.fi', 'permission_key' => 'dashboard.performance_stats.targets.fi.view'],
                    ['key' => 'manager', 'label' => 'Manager', 'route_name' => 'dashboard.performance_stats.targets.manager', 'permission_key' => 'dashboard.performance_stats.targets.manager.view'],
                    ['key' => 'consolidated', 'label' => 'Consolidated', 'route_name' => 'dashboard.performance_stats.targets.consolidated', 'permission_key' => 'dashboard.performance_stats.targets.consolidated.view'],
                ],
            ],
            [
                'key' => 'actuals',
                'label' => 'Actuals',
                'route_prefix' => 'dashboard.performance_stats.actuals.',
                'is_group' => true,
                'permission_key' => null,
                'children' => [
                    ['key' => 'sales', 'label' => 'Sales', 'route_name' => 'dashboard.performance_stats.actuals.sales', 'permission_key' => 'dashboard.performance_stats.actuals.sales.view'],
                    ['key' => 'fi', 'label' => 'F&I', 'route_name' => 'dashboard.performance_stats.actuals.fi', 'permission_key' => 'dashboard.performance_stats.actuals.fi.view'],
                    ['key' => 'manager', 'label' => 'Manager', 'route_name' => 'dashboard.performance_stats.actuals.manager', 'permission_key' => 'dashboard.performance_stats.actuals.manager.view'],
                    ['key' => 'consolidated', 'label' => 'Consolidated', 'route_name' => 'dashboard.performance_stats.actuals.consolidated', 'permission_key' => 'dashboard.performance_stats.actuals.consolidated.view'],
                ],
            ],
            [
                'key' => 'targets_vs_actuals',
                'label' => 'Targets vs Actuals',
                'route_prefix' => 'dashboard.performance_stats.targets_vs_actuals.',
                'is_group' => true,
                'permission_key' => null,
                'children' => [
                    ['key' => 'sales', 'label' => 'Sales', 'route_name' => 'dashboard.performance_stats.targets_vs_actuals.sales', 'permission_key' => 'dashboard.performance_stats.targets_vs_actuals.sales.view'],
                    ['key' => 'fi', 'label' => 'F&I', 'route_name' => 'dashboard.performance_stats.targets_vs_actuals.fi', 'permission_key' => 'dashboard.performance_stats.targets_vs_actuals.fi.view'],
                    ['key' => 'manager', 'label' => 'Manager', 'route_name' => 'dashboard.performance_stats.targets_vs_actuals.manager', 'permission_key' => 'dashboard.performance_stats.targets_vs_actuals.manager.view'],
                    ['key' => 'consolidated', 'label' => 'Consolidated', 'route_name' => 'dashboard.performance_stats.targets_vs_actuals.consolidated', 'permission_key' => 'dashboard.performance_stats.targets_vs_actuals.consolidated.view'],
                ],
            ],
            [
                'key' => 'commission',
                'label' => 'Commission',
                'route_prefix' => 'dashboard.performance_stats.commission.',
                'is_group' => true,
                'permission_key' => null,
                'children' => [
                    ['key' => 'current_month', 'label' => 'Current month', 'route_name' => 'dashboard.performance_stats.commission.current_month', 'permission_key' => 'dashboard.performance_stats.commission.current_month.view'],
                    ['key' => 'historic', 'label' => 'Historic', 'route_name' => 'dashboard.performance_stats.commission.historic', 'permission_key' => 'dashboard.performance_stats.commission.historic.view'],
                ],
            ],
        ],
    ],
    [
        'key' => 'leader_board',
        'label' => 'Leaderboard',
        'route_name' => 'dashboard.leader_board',
        'route_prefix' => 'dashboard.leader_board.',
        'permission_key' => 'dashboard.leader_board.view',
        'children' => [
            ['key' => 'individual', 'label' => 'Individual', 'route_name' => 'dashboard.leader_board.individual', 'permission_key' => 'dashboard.leader_board.individual.view'],
            ['key' => 'combined', 'label' => 'Combined', 'route_name' => 'dashboard.leader_board.combined', 'permission_key' => 'dashboard.leader_board.combined.view'],
        ],
    ],
    [
        'key' => 'reports',
        'label' => 'Reports',
        'route_name' => 'dashboard.reports',
        'route_prefix' => 'dashboard.reports.',
        'permission_key' => 'dashboard.reports.view',
        'children' => [
            [
                'key' => 'sales',
                'label' => 'Sales',
                'route_prefix' => 'dashboard.reports.sales.',
                'is_group' => true,
                'permission_key' => null,
                'children' => [
                    ['key' => 'stock', 'label' => 'Stock', 'route_name' => 'dashboard.reports.sales.stock', 'permission_key' => 'dashboard.reports.sales.stock.view'],
                    ['key' => 'gp', 'label' => 'GP', 'route_name' => 'dashboard.reports.sales.gp', 'permission_key' => 'dashboard.reports.sales.gp.view'],
                    ['key' => 'licence_registration', 'label' => 'Licence & Registration', 'route_name' => 'dashboard.reports.sales.licence_registration', 'permission_key' => 'dashboard.reports.sales.licence_registration.view'],
                    ['key' => 'comebacks_aftersales', 'label' => 'Comebacks Aftersales', 'route_name' => 'dashboard.reports.sales.comebacks_aftersales', 'permission_key' => 'dashboard.reports.sales.comebacks_aftersales.view'],
                ],
            ],
            [
                'key' => 'fi',
                'label' => 'F&I',
                'route_prefix' => 'dashboard.reports.fi.',
                'is_group' => true,
                'permission_key' => null,
                'children' => [
                    ['key' => 'second_gp', 'label' => '2nd GP', 'route_name' => 'dashboard.reports.fi.second_gp', 'permission_key' => 'dashboard.reports.fi.second_gp.view'],
                    ['key' => 'vaps_penetration', 'label' => 'VAPS Penetration', 'route_name' => 'dashboard.reports.fi.vaps_penetration', 'permission_key' => 'dashboard.reports.fi.vaps_penetration.view'],
                    ['key' => 'rand_per_1000_per_bank', 'label' => 'Rand per 1000 per Bank', 'route_name' => 'dashboard.reports.fi.rand_per_1000_per_bank', 'permission_key' => 'dashboard.reports.fi.rand_per_1000_per_bank.view'],
                    ['key' => 'applications_per_day', 'label' => 'Applications per Day', 'route_name' => 'dashboard.reports.fi.applications_per_day', 'permission_key' => 'dashboard.reports.fi.applications_per_day.view'],
                    ['key' => 'approved_vs_declined_ratio', 'label' => 'Approved vs Declined Ratio', 'route_name' => 'dashboard.reports.fi.approved_vs_declined_ratio', 'permission_key' => 'dashboard.reports.fi.approved_vs_declined_ratio.view'],
                    ['key' => 'approved_non_taken_up_follow_up', 'label' => 'Approved Non Taken Up Follow Up', 'route_name' => 'dashboard.reports.fi.approved_non_taken_up_follow_up', 'permission_key' => 'dashboard.reports.fi.approved_non_taken_up_follow_up.view'],
                ],
            ],
            [
                'key' => 'marketing',
                'label' => 'Marketing',
                'route_prefix' => 'dashboard.reports.marketing.',
                'is_group' => true,
                'permission_key' => null,
                'children' => [
                    ['key' => 'actual_vs_budget_spend', 'label' => 'Actual vs Budget Spend', 'route_name' => 'dashboard.reports.marketing.actual_vs_budget_spend', 'permission_key' => 'dashboard.reports.marketing.actual_vs_budget_spend.view'],
                    ['key' => 'lead_source_report_from_all_platforms', 'label' => 'Lead Source Report from All Platforms', 'route_name' => 'dashboard.reports.marketing.lead_source_report_from_all_platforms', 'permission_key' => 'dashboard.reports.marketing.lead_source_report_from_all_platforms.view'],
                ],
            ],
            [
                'key' => 'fm',
                'label' => 'FM',
                'route_prefix' => 'dashboard.reports.fm.',
                'is_group' => true,
                'permission_key' => null,
                'children' => [
                    ['key' => 'financial', 'label' => 'Financial', 'route_name' => 'dashboard.reports.fm.financial', 'permission_key' => 'dashboard.reports.fm.financial.view'],
                    ['key' => 'expenses', 'label' => 'Expenses', 'route_name' => 'dashboard.reports.fm.expenses', 'permission_key' => 'dashboard.reports.fm.expenses.view'],
                    ['key' => 'hr_payroll', 'label' => 'Hr & Payroll', 'route_name' => 'dashboard.reports.fm.hr_payroll', 'permission_key' => 'dashboard.reports.fm.hr_payroll.view'],
                    ['key' => 'contracts', 'label' => 'Contracts', 'route_name' => 'dashboard.reports.fm.contracts', 'permission_key' => 'dashboard.reports.fm.contracts.view'],
                ],
            ],
            [
                'key' => 'buyer',
                'label' => 'Buyer',
                'route_prefix' => 'dashboard.reports.buyer.',
                'is_group' => true,
                'permission_key' => null,
                'children' => [
                    ['key' => 'forecast_vs_actual', 'label' => 'Forecast vs Actual', 'route_name' => 'dashboard.reports.buyer.forecast_vs_actual', 'permission_key' => 'dashboard.reports.buyer.forecast_vs_actual.view'],
                    ['key' => 'units_mtd', 'label' => 'Units MTD', 'route_name' => 'dashboard.reports.buyer.units_mtd', 'permission_key' => 'dashboard.reports.buyer.units_mtd.view'],
                    ['key' => 'average_valuation_variance', 'label' => 'Average Valuation Variance', 'route_name' => 'dashboard.reports.buyer.average_valuation_variance', 'permission_key' => 'dashboard.reports.buyer.average_valuation_variance.view'],
                    ['key' => 'appoints_due_screen', 'label' => 'Appointments Due Screen', 'route_name' => 'dashboard.reports.buyer.appoints_due_screen', 'permission_key' => 'dashboard.reports.buyer.appoints_due_screen.view'],
                    ['key' => 'tasks_inspections', 'label' => 'Tasks Inspections', 'route_name' => 'dashboard.reports.buyer.tasks_inspections', 'permission_key' => 'dashboard.reports.buyer.tasks_inspections.view'],
                ],
            ],
            [
                'key' => 'recon',
                'label' => 'Recon',
                'route_prefix' => 'dashboard.reports.recon.',
                'is_group' => true,
                'permission_key' => null,
                'children' => [
                    ['key' => 'recon_workflow', 'label' => 'Recon Workflow', 'route_name' => 'dashboard.reports.recon.recon_workflow', 'permission_key' => 'dashboard.reports.recon.recon_workflow.view'],
                    ['key' => 'supplier_orders', 'label' => 'Supplier Orders', 'route_name' => 'dashboard.reports.recon.supplier_orders', 'permission_key' => 'dashboard.reports.recon.supplier_orders.view'],
                    ['key' => 'parts_requested', 'label' => 'Parts Requested', 'route_name' => 'dashboard.reports.recon.parts_requested', 'permission_key' => 'dashboard.reports.recon.parts_requested.view'],
                    ['key' => 'stock_takes', 'label' => 'Stock Takes', 'route_name' => 'dashboard.reports.recon.stock_takes', 'permission_key' => 'dashboard.reports.recon.stock_takes.view'],
                    ['key' => 'job_cards', 'label' => 'Job Cards', 'route_name' => 'dashboard.reports.recon.job_cards', 'permission_key' => 'dashboard.reports.recon.job_cards.view'],
                    ['key' => 'vehicle_overdue_in_recon_process_auto_reminder', 'label' => 'Vehicle Overdue in Recon Process Auto Reminder', 'route_name' => 'dashboard.reports.recon.vehicle_overdue_in_recon_process_auto_reminder', 'permission_key' => 'dashboard.reports.recon.vehicle_overdue_in_recon_process_auto_reminder.view'],
                    ['key' => 'status_new_in_progress_done', 'label' => 'Status New in Progress Done', 'route_name' => 'dashboard.reports.recon.status_new_in_progress_done', 'permission_key' => 'dashboard.reports.recon.status_new_in_progress_done.view'],
                ],
            ],
        ],
    ],
    [
        'key' => 'suppliers',
        'label' => 'Suppliers & Trade Contacts',
        'route_name' => 'dashboard.suppliers',
        'route_prefix' => 'dashboard.suppliers.',
        'permission_key' => 'dashboard.suppliers.view',
        'children' => [
            [
                'key' => 'company_suppliers',
                'label' => 'Company Suppliers',
                'route_prefix' => 'dashboard.suppliers.company_suppliers.',
                'is_group' => true,
                'permission_key' => null,
                'children' => [
                    ['key' => 'vehicle_order', 'label' => 'Vehicle Order', 'route_name' => 'dashboard.suppliers.company_suppliers.vehicle_order', 'permission_key' => 'dashboard.suppliers.company_suppliers.vehicle_order.view'],
                    ['key' => 'expense_order', 'label' => 'Expense Order', 'route_name' => 'dashboard.suppliers.company_suppliers.expense_order', 'permission_key' => 'dashboard.suppliers.company_suppliers.expense_order.view'],
                ],
            ],
            [
                'key' => 'new_vehicle_suppliers',
                'label' => 'New Vehicle Suppliers',
                'route_prefix' => 'dashboard.suppliers.new_vehicle_suppliers.',
                'is_group' => true,
                'permission_key' => null,
                'children' => [
                    ['key' => 'list_with_contact_info', 'label' => 'List with Contact Info', 'route_name' => 'dashboard.suppliers.new_vehicle_suppliers.list_with_contact_info', 'permission_key' => 'dashboard.suppliers.new_vehicle_suppliers.list_with_contact_info.view'],
                ],
            ],
            [
                'key' => 'used_trade_cover_suppliers',
                'label' => 'Used Trade Cover Suppliers',
                'route_prefix' => 'dashboard.suppliers.used_trade_cover_suppliers.',
                'is_group' => true,
                'permission_key' => null,
                'children' => [
                    ['key' => 'list_with_contact_info', 'label' => 'List with Contact Info', 'route_name' => 'dashboard.suppliers.used_trade_cover_suppliers.list_with_contact_info', 'permission_key' => 'dashboard.suppliers.used_trade_cover_suppliers.list_with_contact_info.view'],
                ],
            ],
        ],
    ],
    [
        'key' => 'lic_reg',
        'label' => 'Lic & Reg',
        'route_name' => 'dashboard.lic_reg',
        'route_prefix' => 'dashboard.lic_reg.',
        'permission_key' => 'dashboard.lic_reg.view',
        'children' => [
            [
                'key' => 'vehicle_sold',
                'label' => 'Vehicle Sold',
                'route_prefix' => 'dashboard.lic_reg.vehicle_sold.',
                'is_group' => true,
                'permission_key' => null,
                'children' => [
                    ['key' => 'request_registration_licence', 'label' => 'Request Registration Licence', 'route_name' => 'dashboard.lic_reg.vehicle_sold.request_registration_licence', 'permission_key' => 'dashboard.lic_reg.vehicle_sold.request_registration_licence.view'],
                    ['key' => 'third_party_supplier_to_be_used', 'label' => '3rd Party Supplier to Be Used', 'route_name' => 'dashboard.lic_reg.vehicle_sold.third_party_supplier_to_be_used', 'permission_key' => 'dashboard.lic_reg.vehicle_sold.third_party_supplier_to_be_used.view'],
                    ['key' => 'number_plates_required', 'label' => 'Number Plates Required', 'route_name' => 'dashboard.lic_reg.vehicle_sold.number_plates_required', 'permission_key' => 'dashboard.lic_reg.vehicle_sold.number_plates_required.view'],
                    ['key' => 'upload_copy_when_complete', 'label' => 'Upload Copy When Complete', 'route_name' => 'dashboard.lic_reg.vehicle_sold.upload_copy_when_complete', 'permission_key' => 'dashboard.lic_reg.vehicle_sold.upload_copy_when_complete.view'],
                    ['key' => 'create_task_assign', 'label' => 'Create Task Assign', 'route_name' => 'dashboard.lic_reg.vehicle_sold.create_task_assign', 'permission_key' => 'dashboard.lic_reg.vehicle_sold.create_task_assign.view'],
                ],
            ],
            [
                'key' => 'vehicle_purchase',
                'label' => 'Vehicle Purchase',
                'route_prefix' => 'dashboard.lic_reg.vehicle_purchase.',
                'is_group' => true,
                'permission_key' => null,
                'children' => [
                    ['key' => 'original_natis', 'label' => 'Original Natis', 'route_name' => 'dashboard.lic_reg.vehicle_purchase.original_natis', 'permission_key' => 'dashboard.lic_reg.vehicle_purchase.original_natis.view'],
                    ['key' => 'settlement_bank_to_send_natis', 'label' => 'Settlement Bank to Send Natis', 'route_name' => 'dashboard.lic_reg.vehicle_purchase.settlement_bank_to_send_natis', 'permission_key' => 'dashboard.lic_reg.vehicle_purchase.settlement_bank_to_send_natis.view'],
                    ['key' => 'create_task_assign', 'label' => 'Create Task Assign', 'route_name' => 'dashboard.lic_reg.vehicle_purchase.create_task_assign', 'permission_key' => 'dashboard.lic_reg.vehicle_purchase.create_task_assign.view'],
                    ['key' => 'upload_copy_when_complete', 'label' => 'Upload Copy When Complete', 'route_name' => 'dashboard.lic_reg.vehicle_purchase.upload_copy_when_complete', 'permission_key' => 'dashboard.lic_reg.vehicle_purchase.upload_copy_when_complete.view'],
                ],
            ],
        ],
    ],
    [
        'key' => 'affiliate_program',
        'label' => 'Affiliate Program',
        'route_name' => 'dashboard.affiliate_program',
        'route_prefix' => 'dashboard.affiliate_program.',
        'permission_key' => 'dashboard.affiliate_program.view',
        'children' => [
            [
                'key' => 'external',
                'label' => 'External',
                'route_prefix' => 'dashboard.affiliate_program.external.',
                'is_group' => true,
                'permission_key' => null,
                'children' => [
                    ['key' => 'unique_link_per_spotter', 'label' => 'Unique Link per Spotter', 'route_name' => 'dashboard.affiliate_program.external.unique_link_per_spotter', 'permission_key' => 'dashboard.affiliate_program.external.unique_link_per_spotter.view'],
                    ['key' => 'earnings_dashboard', 'label' => 'Earnings Dashboard', 'route_name' => 'dashboard.affiliate_program.external.earnings_dashboard', 'permission_key' => 'dashboard.affiliate_program.external.earnings_dashboard.view'],
                    ['key' => 'mega_theron_marketing', 'label' => 'Mega Theron Marketing', 'route_name' => 'dashboard.affiliate_program.external.mega_theron_marketing', 'permission_key' => 'dashboard.affiliate_program.external.mega_theron_marketing.view'],
                ],
            ],
            [
                'key' => 'internal',
                'label' => 'Internal',
                'route_prefix' => 'dashboard.affiliate_program.internal.',
                'is_group' => true,
                'permission_key' => null,
                'children' => [
                    ['key' => 'list_of_affiliates', 'label' => 'List of Affiliates', 'route_name' => 'dashboard.affiliate_program.internal.list_of_affiliates', 'permission_key' => 'dashboard.affiliate_program.internal.list_of_affiliates.view'],
                    ['key' => 'load_new_affiliate', 'label' => 'Load New Affiliate', 'route_name' => 'dashboard.affiliate_program.internal.load_new_affiliate', 'permission_key' => 'dashboard.affiliate_program.internal.load_new_affiliate.view'],
                    ['key' => 'tracker', 'label' => 'Tracker', 'route_name' => 'dashboard.affiliate_program.internal.tracker', 'permission_key' => 'dashboard.affiliate_program.internal.tracker.view'],
                ],
            ],
        ],
    ],
    [
        'key' => 'marketing',
        'label' => 'Marketing',
        'route_name' => 'dashboard.marketing',
        'route_prefix' => 'dashboard.marketing.',
        'permission_key' => 'dashboard.marketing.view',
        'children' => [
            [
                'key' => 'tools',
                'label' => 'Tools',
                'route_prefix' => 'dashboard.marketing.tools.',
                'is_group' => true,
                'permission_key' => null,
                'children' => [
                    ['key' => 'create_campaigns', 'label' => 'Create Campaigns', 'route_name' => 'dashboard.marketing.tools.create_campaigns', 'permission_key' => 'dashboard.marketing.tools.create_campaigns.view'],
                    ['key' => 'whatsapp_broadcasts', 'label' => 'WhatsApp Broadcasts', 'route_name' => 'dashboard.marketing.tools.whatsapp_broadcasts', 'permission_key' => 'dashboard.marketing.tools.whatsapp_broadcasts.view'],
                    ['key' => 'bulk_email', 'label' => 'Bulk Email', 'route_name' => 'dashboard.marketing.tools.bulk_email', 'permission_key' => 'dashboard.marketing.tools.bulk_email.view'],
                    ['key' => 'templates', 'label' => 'Templates', 'route_name' => 'dashboard.marketing.tools.templates', 'permission_key' => 'dashboard.marketing.tools.templates.view'],
                ],
            ],
            [
                'key' => 'whatsapp_bots',
                'label' => 'WhatsApp Bots',
                'route_prefix' => 'dashboard.marketing.whatsapp_bots.',
                'is_group' => true,
                'permission_key' => null,
                'children' => [
                    ['key' => 'auto_reply', 'label' => 'Auto Reply', 'route_name' => 'dashboard.marketing.whatsapp_bots.auto_reply', 'permission_key' => 'dashboard.marketing.whatsapp_bots.auto_reply.view'],
                    ['key' => 'lead_ingestion', 'label' => 'Lead Ingestion', 'route_name' => 'dashboard.marketing.whatsapp_bots.lead_ingestion', 'permission_key' => 'dashboard.marketing.whatsapp_bots.lead_ingestion.view'],
                    ['key' => 'stock_search_via_whatsapp', 'label' => 'Stock Search via WhatsApp', 'route_name' => 'dashboard.marketing.whatsapp_bots.stock_search_via_whatsapp', 'permission_key' => 'dashboard.marketing.whatsapp_bots.stock_search_via_whatsapp.view'],
                    ['key' => 'collect_store_customer_documents', 'label' => 'Collect & Store Customer Documents', 'route_name' => 'dashboard.marketing.whatsapp_bots.collect_store_customer_documents', 'permission_key' => 'dashboard.marketing.whatsapp_bots.collect_store_customer_documents.view'],
                ],
            ],
            [
                'key' => 'physical_marketing_equipment',
                'label' => 'Physical Marketing Equipment',
                'route_prefix' => 'dashboard.marketing.physical_marketing_equipment.',
                'is_group' => true,
                'permission_key' => null,
                'children' => [
                    ['key' => 'checklist_and_inspection', 'label' => 'Checklist and Inspection', 'route_name' => 'dashboard.marketing.physical_marketing_equipment.checklist_and_inspection', 'permission_key' => 'dashboard.marketing.physical_marketing_equipment.checklist_and_inspection.view'],
                ],
            ],
        ],
    ],
    [
        'key' => 'recon',
        'label' => 'Recon',
        'route_name' => 'dashboard.recon',
        'route_prefix' => 'dashboard.recon.',
        'permission_key' => 'dashboard.recon.view',
        'children' => [
            [
                'key' => 'dashboard',
                'label' => 'Dashboard',
                'route_prefix' => 'dashboard.recon.dashboard.',
                'route_name' => 'dashboard.recon.dashboard',
                'is_group' => false,
                'permission_key' => 'dashboard.recon.dashboard.view',
                'children' => [
                    ['key' => 'new_vehicles_added_to_que', 'label' => 'New Vehicles Added to Queue', 'route_name' => 'dashboard.recon.dashboard.new_vehicles_added_to_que', 'permission_key' => 'dashboard.recon.dashboard.new_vehicles_added_to_que.view'],
                    ['key' => 'progress_of_vehicles_in_recon', 'label' => 'Progress of Vehicles in Recon', 'route_name' => 'dashboard.recon.dashboard.progress_of_vehicles_in_recon', 'permission_key' => 'dashboard.recon.dashboard.progress_of_vehicles_in_recon.view'],
                    ['key' => 'report_for_per_location', 'label' => 'Report for Per Location', 'route_name' => 'dashboard.recon.dashboard.report_for_per_location', 'permission_key' => 'dashboard.recon.dashboard.report_for_per_location.view'],
                    ['key' => 'ready_for_floor', 'label' => 'Ready for Floor', 'route_name' => 'dashboard.recon.dashboard.ready_for_floor', 'permission_key' => 'dashboard.recon.dashboard.ready_for_floor.view'],
                    ['key' => 'tracking_unit_fitted', 'label' => 'Tracking Unit Fitted', 'route_name' => 'dashboard.recon.dashboard.tracking_unit_fitted', 'permission_key' => 'dashboard.recon.dashboard.tracking_unit_fitted.view'],
                    ['key' => 'vehicle_check_in', 'label' => 'Vehicle Check In', 'route_name' => 'dashboard.recon.dashboard.vehicle_check_in', 'permission_key' => 'dashboard.recon.dashboard.vehicle_check_in.view'],
                    ['key' => 'open_orders_linked_from_approved_supplier_list', 'label' => 'Open Orders Linked from Approved Supplier List', 'route_name' => 'dashboard.recon.dashboard.open_orders_linked_from_approved_supplier_list', 'permission_key' => 'dashboard.recon.dashboard.open_orders_linked_from_approved_supplier_list.view'],
                ],
            ],
        ],
    ],
    [
        'key' => 'business_intelligence',
        'label' => 'Business Intelligence',
        'route_name' => 'dashboard.business_intelligence',
        'route_prefix' => 'dashboard.business_intelligence.',
        'permission_key' => 'dashboard.business_intelligence.view',
        'children' => [
            ['key' => 'funnel_reporting', 'label' => 'Funnel Reporting', 'route_name' => 'dashboard.business_intelligence.funnel_reporting', 'permission_key' => 'dashboard.business_intelligence.funnel_reporting.view'],
            ['key' => 'dealer_comparisons', 'label' => 'Dealer Comparisons', 'route_name' => 'dashboard.business_intelligence.dealer_comparisons', 'permission_key' => 'dashboard.business_intelligence.dealer_comparisons.view'],
            ['key' => 'recon_analytics', 'label' => 'Recon Analytics', 'route_name' => 'dashboard.business_intelligence.recon_analytics', 'permission_key' => 'dashboard.business_intelligence.recon_analytics.view'],
            ['key' => 'sales_overview', 'label' => 'Sales Overview', 'route_name' => 'dashboard.business_intelligence.sales_overview', 'permission_key' => 'dashboard.business_intelligence.sales_overview.view'],
            ['key' => 'financial_overview', 'label' => 'Financial Overview', 'route_name' => 'dashboard.business_intelligence.financial_overview', 'permission_key' => 'dashboard.business_intelligence.financial_overview.view'],
            ['key' => 'fi_overview', 'label' => 'F&I Overview', 'route_name' => 'dashboard.business_intelligence.fi_overview', 'permission_key' => 'dashboard.business_intelligence.fi_overview.view'],
            ['key' => 'recon_overview', 'label' => 'Recon Overview', 'route_name' => 'dashboard.business_intelligence.recon_overview', 'permission_key' => 'dashboard.business_intelligence.recon_overview.view'],
            ['key' => 'month_end_packs', 'label' => 'Month End Packs', 'route_name' => 'dashboard.business_intelligence.month_end_packs', 'permission_key' => 'dashboard.business_intelligence.month_end_packs.view'],
        ],
    ],
    ['key' => 'backend_access', 'label' => 'Back End Access to System', 'route_name' => 'dashboard.backend_access', 'permission_key' => 'dashboard.backend_access.view', 'default_dealer_only' => true],
    [
        'key' => 'external_customers',
        'label' => 'External Customers',
        'route_prefix' => 'dashboard.external_customers.',
        'is_group' => true,
        'permission_key' => null,
        'default_dealer_only' => true,
        'children' => [
            [
                'key' => 'system_to_be_used_by_other_dealership',
                'label' => 'System to Be Used by Other Dealership',
                'route_prefix' => 'dashboard.external_customers.system_to_be_used_by_other_dealership.',
                'is_group' => true,
                'permission_key' => null,
                'children' => [
                    [
                        'key' => 'set_up_per_module_department',
                        'label' => 'Set Up per Module Department',
                        'route_name' => 'dashboard.external_customers.system_to_be_used_by_other_dealership.set_up_per_module_department',
                        'permission_key' => 'dashboard.external_customers.system_to_be_used_by_other_dealership.set_up_per_module_department.view',
                        'default_dealer_only' => true,
                    ],
                ],
            ],
        ],
    ],
    [
        'key' => 'settings',
        'label' => 'Settings',
        'route_name' => 'dashboard.settings',
        'permission_key' => 'dashboard.settings.view',
        'children' => [
            [
                'key' => 'users',
                'label' => 'Users',
                'route_name' => 'settings.users.index',
                'permission_key' => 'settings.users.view',
            ],
            [
                'key' => 'branding',
                'label' => 'Branding',
                'route_name' => 'settings.branding.edit',
                'permission_key' => 'settings.branding.manage',
            ],
            [
                'key' => 'departments',
                'label' => 'Departments',
                'route_name' => 'settings.departments.index',
                'permission_key' => 'settings.departments.manage',
            ],
            [
                'key' => 'branches',
                'label' => 'Branches',
                'route_name' => 'settings.branches.index',
                'permission_key' => 'settings.branches.manage',
            ],
            [
                'key' => 'dealers',
                'label' => 'Dealers',
                'route_name' => 'settings.dealers.index',
                'permission_key' => 'settings.dealers.view',
                'default_dealer_only' => true,
            ],
        ],
    ],
];
