{
    "name": "cards",
    "label_en": "Cards, Access & Guests",
    "label_ar": "البطاقات والدخول والضيوف",
    "version": "1.0.0",
    "description": "Card issuance, access control, guest passes, and carnet management",
    "sort_order": 50,
    "icon": "fas fa-id-card",
    "routes_file": "routes.php",
    "css_files": ["css/cards.css"],
    "js_files": ["js/cards.js"],
    "menu": [
        {
            "label_en": "ID Cards",
            "label_ar": "البطاقات",
            "icon": "fas fa-id-card",
            "permission": "cards.view",
            "sort_order": 50,
            "children": [
                {
                    "label_en": "All Cards",
                    "label_ar": "جميع البطاقات",
                    "route": "/cards",
                    "permission": "cards.view",
                    "sort_order": 1
                },
                {
                    "label_en": "Card Requests",
                    "label_ar": "طلبات البطاقات",
                    "route": "/cards/requests",
                    "permission": "cards.view",
                    "sort_order": 2
                },
                {
                    "label_en": "Print Batches",
                    "label_ar": "دفعات الطباعة",
                    "route": "/cards/print-batches",
                    "permission": "cards.print",
                    "sort_order": 3
                },
                {
                    "label_en": "Card Types",
                    "label_ar": "أنواع البطاقات",
                    "route": "/cards/types",
                    "permission": "cards.manage",
                    "sort_order": 4
                }
            ]
        },
        {
            "label_en": "Access Control",
            "label_ar": "التحكم بالدخول",
            "icon": "fas fa-door-open",
            "permission": "access.view",
            "sort_order": 51,
            "children": [
                {
                    "label_en": "Access Log",
                    "label_ar": "سجل الدخول",
                    "route": "/access/log",
                    "permission": "access.view",
                    "sort_order": 1
                },
                {
                    "label_en": "Access Points",
                    "label_ar": "نقاط الدخول",
                    "route": "/access/points",
                    "permission": "access.manage",
                    "sort_order": 2
                },
                {
                    "label_en": "Access Rules",
                    "label_ar": "قواعد الدخول",
                    "route": "/access/rules",
                    "permission": "access.manage",
                    "sort_order": 3
                }
            ]
        },
        {
            "label_en": "Guest Passes",
            "label_ar": "تصاريح الضيوف",
            "icon": "fas fa-user-friends",
            "permission": "guests.view",
            "sort_order": 52,
            "children": [
                {
                    "label_en": "All Passes",
                    "label_ar": "جميع التصاريح",
                    "route": "/guests",
                    "permission": "guests.view",
                    "sort_order": 1
                },
                {
                    "label_en": "Issue Pass",
                    "label_ar": "إصدار تصريح",
                    "route": "/guests/create",
                    "permission": "guests.create",
                    "sort_order": 2
                },
                {
                    "label_en": "Blacklist",
                    "label_ar": "القائمة السوداء",
                    "route": "/guests/blacklist",
                    "permission": "guests.view",
                    "sort_order": 3
                }
            ]
        },
        {
            "label_en": "Carnets",
            "label_ar": "الكارنيهات",
            "icon": "fas fa-ticket-alt",
            "permission": "cards.view",
            "sort_order": 53,
            "children": [
                {
                    "label_en": "All Carnets",
                    "label_ar": "جميع الكارنيهات",
                    "route": "/carnets",
                    "permission": "cards.view",
                    "sort_order": 1
                },
                {
                    "label_en": "Issue Carnet",
                    "label_ar": "إصدار كارنيه",
                    "route": "/carnets/create",
                    "permission": "cards.manage",
                    "sort_order": 2
                },
                {
                    "label_en": "Carnet Types",
                    "label_ar": "أنواع الكارنيهات",
                    "route": "/carnets/types",
                    "permission": "cards.manage",
                    "sort_order": 3
                }
            ]
        }
    ],
    "dashboard_widgets": [
        {
            "widget_id": "expiring_cards",
            "label_en": "Expiring Cards",
            "label_ar": "بطاقات قاربت الانتهاء",
            "permission": "cards.view",
            "partial": "views/widgets/expiring_cards.php",
            "size": "col-md-4",
            "sort_order": 50
        },
        {
            "widget_id": "today_access",
            "label_en": "Today's Access",
            "label_ar": "دخول اليوم",
            "permission": "access.view",
            "partial": "views/widgets/today_access.php",
            "size": "col-md-4",
            "sort_order": 51
        },
        {
            "widget_id": "active_guests",
            "label_en": "Active Guest Passes",
            "label_ar": "تصاريح الضيوف النشطة",
            "permission": "guests.view",
            "partial": "views/widgets/active_guests.php",
            "size": "col-md-4",
            "sort_order": 52
        }
    ]
}