{
    "name": "reports",
    "label_en": "Reports & Dashboards",
    "label_ar": "التقارير ولوحات المعلومات",
    "version": "1.0.0",
    "description": "Comprehensive reporting, KPI dashboards, custom report builder, and scheduled reports",
    "sort_order": 120,
    "icon": "fas fa-chart-bar",
    "routes_file": "routes.php",
    "css_files": ["css/reports.css"],
    "js_files": ["js/reports.js"],
    "menu": [
        {
            "label_en": "Reports",
            "label_ar": "التقارير",
            "icon": "fas fa-chart-bar",
            "permission": "reports.view",
            "sort_order": 120,
            "children": [
                {
                    "label_en": "Report Browser",
                    "label_ar": "تصفح التقارير",
                    "route": "/reports",
                    "permission": "reports.view",
                    "sort_order": 1
                },
                {
                    "label_en": "KPI Dashboard",
                    "label_ar": "لوحة المؤشرات",
                    "route": "/reports/kpis",
                    "permission": "reports.view",
                    "sort_order": 2
                },
                {
                    "label_en": "Custom Report Builder",
                    "label_ar": "منشئ التقارير",
                    "route": "/reports/custom",
                    "permission": "reports.custom",
                    "sort_order": 3
                },
                {
                    "label_en": "Scheduled Reports",
                    "label_ar": "التقارير المجدولة",
                    "route": "/reports/schedules",
                    "permission": "reports.schedule",
                    "sort_order": 4
                },
                {
                    "label_en": "Dashboard Config",
                    "label_ar": "إعدادات لوحة التحكم",
                    "route": "/reports/dashboard-config",
                    "permission": "reports.view",
                    "sort_order": 5
                }
            ]
        }
    ],
    "dashboard_widgets": [
        {
            "widget_id": "kpi_summary",
            "label_en": "KPI Summary",
            "label_ar": "ملخص المؤشرات",
            "permission": "reports.view",
            "partial": "views/widgets/kpi_summary.php",
            "size": "col-12",
            "sort_order": 1
        },
        {
            "widget_id": "revenue_chart",
            "label_en": "Revenue Trend",
            "label_ar": "اتجاه الإيرادات",
            "permission": "reports.view",
            "partial": "views/widgets/revenue_chart.php",
            "size": "col-md-8",
            "sort_order": 5
        },
        {
            "widget_id": "member_growth",
            "label_en": "Member Growth",
            "label_ar": "نمو العضوية",
            "permission": "reports.view",
            "partial": "views/widgets/member_growth.php",
            "size": "col-md-4",
            "sort_order": 6
        }
    ]
}