<?php

return [

    [
        'type' => 'section',
        'label' => 'Operations'
    ],

    [
        'title' => 'Dashboard',
        'icon'  => 'bi-speedometer2',
        'link'  => 'dashboard.php',
        'permission' => 'dashboard.view'
    ],

    [
        'title' => 'Fleet',
        'icon'  => 'bi-truck',
        'link'  => 'vehicles.php',
        'permission' => 'vehicle.view',
        'children' => [
            [
                'title' => 'Vehicles',
                'icon' => 'bi-truck',
                'link' => 'vehicles.php',
                'permission' => 'vehicle.view'
            ],
            [
                'title' => 'Drivers',
                'icon' => 'bi-person',
                'link' => 'drivers.php',
                'permission' => 'driver.view'
            ],
            [
                'title' => 'Driver Off-Duty',
                'icon' => 'bi-calendar-day',
                'link' => 'driver_off_duty.php',
                'permission' => 'driver.off_duty.view'
            ],
            [
                'title' => 'Insurance',
                'icon' => 'bi-shield-check',
                'link' => 'insurance.php',
                'permission' => 'insurance.view'
            ],
            [
                'title' => 'Incidents',
                'icon' => 'bi-exclamation-triangle',
                'link' => 'incidents.php',
                'permission' => 'incident.view'
            ],
            [
                'title' => 'GPS Tracking',
                'icon' => 'bi-geo-alt-fill',
                'link' => 'gps_tracking.php',
                'permission' => 'gps_tracking.view'
            ],
            [
                'title' => 'Vehicle Inspection',
                'icon' => 'bi-clipboard-check',
                'link' => 'vehicle_inspection.php',
                'permission' => 'vehicle_inspection.view'
            ]
        ]
    ],

    [
        'title' => 'Fuel',
        'icon'  => 'bi-fuel-pump',
        'link'  => 'fuel.php',
        'permission' => 'fuel.view',
        'children' => [
            [
                'title' => 'Fuel Vouchers',
                'icon' => 'bi-fuel-pump',
                'link' => 'fuel.php',
                'permission' => 'fuel.view'
            ],
            [
                'title' => 'Fuel Cards',
                'icon' => 'bi-credit-card-2-front',
                'link' => 'fuel_cards.php',
                'permission' => 'fuel_card.view'
            ]
        ]
    ],

    [
        'title' => 'Maintenance',
        'icon'  => 'bi-tools',
        'link'  => 'maintenance.php',
        'permission' => 'maintenance.view',
        'children' => [
            [
                'title' => 'Maintenance',
                'icon' => 'bi-tools',
                'link' => 'maintenance.php',
                'permission' => 'maintenance.view'
            ],
            [
                'title' => 'Service Schedules',
                'icon' => 'bi-calendar-check',
                'link' => 'service_schedules.php',
                'permission' => 'maintenance.create'
            ],
            [
                'title' => 'Workshop',
                'icon' => 'bi-building-up',
                'link' => 'workshop.php',
                'permission' => 'workshop.view'
            ],
            [
                'title' => 'Parts',
                'icon' => 'bi-box-seam',
                'link' => 'parts.php',
                'permission' => 'part.view'
            ],
            [
                'title' => 'Tyres',
                'icon' => 'bi-circle',
                'link' => 'tyres.php',
                'permission' => 'tyre.view'
            ]
        ]
    ],

    [
        'title' => 'Logistics',
        'icon'  => 'bi-signpost-2',
        'link'  => 'trips.php',
        'permission' => 'trip.view',
        'children' => [
            [
                'title' => 'Trips',
                'icon' => 'bi-signpost-2',
                'link' => 'trips.php',
                'permission' => 'trip.view'
            ],
            [
                'title' => 'Vehicle Requisition',
                'icon' => 'bi-file-earmark-text',
                'link' => 'vehicle_request.php',
                'permission' => 'vehicle_request.view'
            ],
            [
                'title' => 'Approvals',
                'icon' => 'bi-check2-square',
                'link' => 'workflow_approvals.php',
                'permission' => null
            ],
            [
                'title' => 'Expenses',
                'icon' => 'bi-cash-stack',
                'link' => 'expenses.php',
                'permission' => 'expense.view'
            ],
            [
                'title' => 'Compliance',
                'icon' => 'bi-shield-check',
                'link' => 'compliance.php',
                'permission' => 'compliance.view'
            ]
        ]
    ],

    [
        'title' => 'Intelligence',
        'icon'  => 'bi-robot',
        'link'  => 'ai_insights.php',
        'permission' => 'ai_insights.view',
        'children' => [
            [
                'title' => 'AI Insights',
                'icon' => 'bi-robot',
                'link' => 'ai_insights.php',
                'permission' => 'ai_insights.view'
            ]
        ]
    ],

    [
        'type' => 'section',
        'label' => 'Administration'
    ],

    [
        'title' => 'Settings',
        'icon'  => 'bi-gear',
        'link'  => 'settings.php',
        'permission' => null,
        'children' => [
            [
                'title' => 'Overview',
                'icon' => 'bi-sliders',
                'link' => 'settings.php',
                'permission' => null
            ],
            [
                'title' => 'Compliance Setup',
                'icon' => 'bi-diagram-3',
                'link' => 'compliance_setup.php',
                'permission' => 'compliance.view'
            ],
            [
                'title' => 'States',
                'icon' => 'bi-building',
                'link' => 'states.php',
                'permission' => 'compliance.view'
            ],
            [
                'title' => 'LGAs',
                'icon' => 'bi-map',
                'link' => 'lgas.php',
                'permission' => 'compliance.view'
            ],
            [
                'title' => 'Branches',
                'icon' => 'bi-diagram-2',
                'link' => 'branches.php',
                'permission' => 'compliance.view'
            ],
            [
                'title' => 'Departments',
                'icon' => 'bi-people',
                'link' => 'departments.php',
                'permission' => 'compliance.view'
            ],
            [
                'title' => 'Vehicle Types',
                'icon' => 'bi-truck',
                'link' => 'vehicle_types.php',
                'permission' => 'compliance.view'
            ],
            [
                'title' => 'Vehicle Models',
                'icon' => 'bi-tags',
                'link' => 'vehicle_models.php',
                'permission' => 'compliance.view'
            ],
            [
                'title' => 'Fuel Setup',
                'icon' => 'bi-fuel-pump',
                'link' => 'fuel_setup.php',
                'permission' => 'fuel.view'
            ],
            [
                'title' => 'Company Setup',
                'icon' => 'bi-building',
                'link' => 'company_setup.php',
                'permission' => 'user.manage'
            ],
            [
                'title' => 'Users',
                'icon' => 'bi-people',
                'link' => 'users.php',
                'permission' => 'user.view'
            ],
            [
                'title' => 'Permissions',
                'icon' => 'bi-lock',
                'link' => 'permissions.php',
                'permission' => 'user.manage'
            ],
            [
                'title' => 'Insurer Setup',
                'icon' => 'bi-building',
                'link' => 'insurers.php',
                'permission' => 'insurer.view'
            ],
            [
                'title' => 'Supplier Setup',
                'icon' => 'bi-truck',
                'link' => 'suppliers.php',
                'permission' => 'supplier.view'
            ],
            [
                'title' => 'Part Catalog Setup',
                'icon' => 'bi-box-seam',
                'link' => 'part_catalog.php',
                'permission' => 'part_catalog.view'
            ],
            [
                'title' => 'Bin Location Setup',
                'icon' => 'bi-geo-alt',
                'link' => 'bin_locations.php',
                'permission' => 'bin_location.view'
            ],
            [
                'title' => 'Tyre Brand Setup',
                'icon' => 'bi-tag',
                'link' => 'tyre_brands.php',
                'permission' => 'tyre_brand.view'
            ],
            [
                'title' => 'Tyre Model Setup',
                'icon' => 'bi-tags',
                'link' => 'tyre_models.php',
                'permission' => 'tyre_model.view'
            ],
            [
                'title' => 'Regions',
                'icon' => 'bi-globe2',
                'link' => 'regions.php',
                'permission' => 'compliance.view'
            ],
            [
                'title' => 'Cities',
                'icon' => 'bi-building',
                'link' => 'cities.php',
                'permission' => 'compliance.view'
            ],
            [
                'title' => 'Locations',
                'icon' => 'bi-geo-alt',
                'link' => 'locations.php',
                'permission' => 'compliance.view'
            ],
            [
                'title' => 'Issuing Authorities',
                'icon' => 'bi-building-gear',
                'link' => 'issuing_authorities.php',
                'permission' => 'compliance.view'
            ],
            [
                'title' => 'Issuing Offices',
                'icon' => 'bi-building',
                'link' => 'issuing_offices.php',
                'permission' => 'compliance.view'
            ],
            [
                'title' => 'Compliance Vendors',
                'icon' => 'bi-people',
                'link' => 'compliance_vendors.php',
                'permission' => 'compliance.view'
            ],
            [
                'title' => 'Projects',
                'icon' => 'bi-folder',
                'link' => 'projects.php',
                'permission' => 'compliance.view'
            ],
            [
                'title' => 'Contract Types',
                'icon' => 'bi-file-text',
                'link' => 'contract_types.php',
                'permission' => 'compliance.view'
            ],
            [
                'title' => 'Accounts',
                'icon' => 'bi-wallet2',
                'link' => 'accounts.php',
                'permission' => 'compliance.view'
            ],
            [
                'title' => 'Owners',
                'icon' => 'bi-person-badge',
                'link' => 'owners.php',
                'permission' => 'compliance.view'
            ],
            [
                'title' => 'Tracker Integrations',
                'icon' => 'bi-hdd-stack',
                'link' => 'tracker_integrations.php',
                'permission' => 'tracker_integration.view'
            ],
            [
                'title' => 'Alert Delivery',
                'icon' => 'bi-bell',
                'link' => 'alert_delivery.php',
                'permission' => 'user.manage'
            ],
            [
                'title' => 'Workflow Templates',
                'icon' => 'bi-diagram-3',
                'link' => 'workflow_setup.php',
                'permission' => 'workflow.templates.view'
            ]
        ]
    ],

    [
        'title' => 'Reports',
        'icon'  => 'bi-bar-chart',
        'link'  => 'reports.php',
        'permission' => null,
        'children' => [
            [
                'title' => 'Overview',
                'icon' => 'bi-grid',
                'link' => 'reports.php',
                'permission' => 'report.view'
            ],
            [
                'title' => 'Compliance Reports',
                'icon' => 'bi-shield-exclamation',
                'link' => 'reports.php?view=compliance',
                'permission' => 'compliance.view'
            ],
            [
                'title' => 'Vehicle Reports',
                'icon' => 'bi-truck',
                'link' => 'reports.php?view=vehicles',
                'permission' => 'vehicle.view'
            ],
            [
                'title' => 'Driver Reports',
                'icon' => 'bi-person-badge',
                'link' => 'reports.php?view=drivers',
                'permission' => 'driver.view'
            ],
            [
                'title' => 'Workshop Reports',
                'icon' => 'bi-building-gear',
                'link' => 'reports.php?view=workshop',
                'permission' => null
            ],
            [
                'title' => 'Maintenance Reports',
                'icon' => 'bi-tools',
                'link' => 'reports.php?view=maintenance',
                'permission' => 'maintenance.view'
            ],
            [
                'title' => 'Fuel Request Report',
                'icon' => 'bi-fuel-pump',
                'link' => 'fuel_request_report.php',
                'permission' => 'fuel.view'
            ],
            [
                'title' => 'TCO Report',
                'icon' => 'bi-cash-stack',
                'link' => 'tco_report.php',
                'permission' => 'report.view'
            ],
            [
                'title' => 'Data Import/Export',
                'icon' => 'bi-arrow-left-right',
                'link' => 'data_tools.php',
                'permission' => 'data.export'
            ],
            [
                'title' => 'Audit Logs',
                'icon' => 'bi-clock-history',
                'link' => 'audit_logs.php',
                'permission' => 'audit.view'
            ],
            [
                'title' => 'Driver Scorecard',
                'icon' => 'bi-person-badge',
                'link' => 'driver_scorecard.php',
                'permission' => 'driver_scorecard.view'
            ]
        ]
    ],

    [
        'title' => 'My Profile',
        'icon'  => 'bi-person-gear',
        'link'  => 'profile.php',
        'permission' => null
    ],

    [
        'title' => 'Logout',
        'icon'  => 'bi-box-arrow-right',
        'link'  => 'logout.php',
        'permission' => null
    ],

];
