{
    "name": "subscriptions",
    "label_en": "Subscriptions & Freezes",
    "label_ar": "الاشتراكات والتجميد",
    "version": "1.0.0",
    "description": "Subscription periods, member subscriptions, renewals, freezes and freeze policies",
    "sort_order": 40,
    "icon": "fas fa-sync-alt",
    "routes_file": "routes.php",
    "css_files": ["css/subscriptions.css"],
    "js_files": ["js/subscriptions.js"],
    "menu": [
        {
            "label_en": "Subscriptions",
            "label_ar": "الاشتراكات",
            "icon": "fas fa-sync-alt",
            "permission": "members.view",
            "sort_order": 40,
            "children": [
                {
                    "label_en": "All Subscriptions",
                    "label_ar": "كل الاشتراكات",
                    "route": "/subscriptions",
                    "permission": "members.view",
                    "sort_order": 1
                },
                {
                    "label_en": "Subscription Periods",
                    "label_ar": "فترات الاشتراك",
                    "route": "/subscriptions/periods",
                    "permission": "members.view",
                    "sort_order": 2
                },
                {
                    "label_en": "Bulk Renewal",
                    "label_ar": "تجديد جماعي",
                    "route": "/subscriptions/bulk-renew",
                    "permission": "members.create",
                    "sort_order": 3
                },
                {
                    "label_en": "Expiring Soon",
                    "label_ar": "تنتهي قريباً",
                    "route": "/subscriptions/expiring",
                    "permission": "members.view",
                    "sort_order": 4
                }
            ]
        },
        {
            "label_en": "Freezes",
            "label_ar": "التجميد",
            "icon": "fas fa-snowflake",
            "permission": "freezes.view",
            "sort_order": 41,
            "children": [
                {
                    "label_en": "All Freezes",
                    "label_ar": "كل التجميد",
                    "route": "/freezes",
                    "permission": "freezes.view",
                    "sort_order": 1
                },
                {
                    "label_en": "Request Freeze",
                    "label_ar": "طلب تجميد",
                    "route": "/freezes/create",
                    "permission": "freezes.create",
                    "sort_order": 2
                },
                {
                    "label_en": "Freeze Policies",
                    "label_ar": "سياسات التجميد",
                    "route": "/freezes/policies",
                    "permission": "freezes.view",
                    "sort_order": 3
                }
            ]
        }
    ],
    "dashboard_widgets": [
        {
            "widget_id": "expiring_subscriptions",
            "label_en": "Expiring Subscriptions",
            "label_ar": "اشتراكات تنتهي قريباً",
            "permission": "members.view",
            "partial": "views/widgets/expiring_subscriptions.php",
            "size": "col-md-4",
            "sort_order": 40
        },
        {
            "widget_id": "active_freezes",
            "label_en": "Active Freezes",
            "label_ar": "التجميد النشط",
            "permission": "freezes.view",
            "partial": "views/widgets/active_freezes.php",
            "size": "col-md-4",
            "sort_order": 41
        }
    ]
}