{
    "name": "advanced_finance",
    "label_en": "Advanced Finance",
    "label_ar": "المالية المتقدمة",
    "version": "1.0.0",
    "description": "Installments, checks, credit notes, refunds, write-offs, banking, GL, budgets",
    "sort_order": 35,
    "icon": "fas fa-landmark",
    "routes_file": "routes.php",
    "css_files": ["css/advanced_finance.css"],
    "js_files": ["js/advanced_finance.js"],
    "menu": [
        {
            "label_en": "Advanced Finance",
            "label_ar": "المالية المتقدمة",
            "icon": "fas fa-landmark",
            "permission": "installments.view",
            "sort_order": 35,
            "children": [
                {
                    "label_en": "Installment Plans",
                    "label_ar": "خطط الأقساط",
                    "route": "/advanced-finance/installments",
                    "permission": "installments.view",
                    "sort_order": 1
                },
                {
                    "label_en": "Installment Templates",
                    "label_ar": "قوالب الأقساط",
                    "route": "/advanced-finance/installment-templates",
                    "permission": "installments.create",
                    "sort_order": 2
                },
                {
                    "label_en": "Checks",
                    "label_ar": "الشيكات",
                    "route": "/advanced-finance/checks",
                    "permission": "installments.view",
                    "sort_order": 3
                },
                {
                    "label_en": "Credit Notes",
                    "label_ar": "إشعارات دائنة",
                    "route": "/advanced-finance/credit-notes",
                    "permission": "installments.view",
                    "sort_order": 4
                },
                {
                    "label_en": "Refunds",
                    "label_ar": "المرتجعات",
                    "route": "/advanced-finance/refunds",
                    "permission": "refunds.create",
                    "sort_order": 5
                },
                {
                    "label_en": "Write-Offs",
                    "label_ar": "الشطب",
                    "route": "/advanced-finance/write-offs",
                    "permission": "installments.view",
                    "sort_order": 6
                },
                {
                    "label_en": "Bank Accounts",
                    "label_ar": "حسابات بنكية",
                    "route": "/advanced-finance/bank-accounts",
                    "permission": "gl.view",
                    "sort_order": 7
                },
                {
                    "label_en": "Bank Deposits",
                    "label_ar": "الإيداعات البنكية",
                    "route": "/advanced-finance/deposits",
                    "permission": "gl.view",
                    "sort_order": 8
                },
                {
                    "label_en": "General Ledger",
                    "label_ar": "الأستاذ العام",
                    "route": "/advanced-finance/gl",
                    "permission": "gl.view",
                    "sort_order": 9
                },
                {
                    "label_en": "Journal Entries",
                    "label_ar": "القيود اليومية",
                    "route": "/advanced-finance/gl/journal-entries",
                    "permission": "gl.view",
                    "sort_order": 10
                },
                {
                    "label_en": "Budgets",
                    "label_ar": "الميزانيات",
                    "route": "/advanced-finance/budgets",
                    "permission": "budget.view",
                    "sort_order": 11
                }
            ]
        }
    ],
    "dashboard_widgets": [
        {
            "widget_id": "overdue_installments",
            "label_en": "Overdue Installments",
            "label_ar": "أقساط متأخرة",
            "permission": "installments.view",
            "partial": "views/widgets/overdue_installments.php",
            "size": "col-md-4",
            "sort_order": 40
        },
        {
            "widget_id": "pending_checks",
            "label_en": "Pending Checks",
            "label_ar": "شيكات معلقة",
            "permission": "installments.view",
            "partial": "views/widgets/pending_checks.php",
            "size": "col-md-4",
            "sort_order": 41
        },
        {
            "widget_id": "gl_cash_balance",
            "label_en": "Cash Balance",
            "label_ar": "رصيد نقدي",
            "permission": "gl.view",
            "partial": "views/widgets/gl_balance.php",
            "size": "col-md-4",
            "sort_order": 42
        }
    ]
}