{
        "category": "operations",
        "route": "/packaging-management",
        "permissions": ["packaging.view", "packaging.manage"],
        "dataSources": {
            "packaging_materials": {
                "table": "packaging_materials",
                "columns": ["id", "material_code", "name", "material_type", "current_stock", "status"],
                "filters": ["status", "material_type"],
                "searchable": ["material_code", "name"]
            },
            "packaging_templates": {
                "table": "packaging_templates",
                "columns": ["id", "template_code", "name", "package_type", "target_weight", "status"],
                "filters": ["status", "package_type"],
                "searchable": ["template_code", "name"]
            },
            "packaging_orders": {
                "table": "packaging_orders",
                "columns": ["id", "order_number", "product_id", "quantity_to_pack", "quantity_packed", "status", "assigned_to"],
                "filters": ["status", "priority"],
                "searchable": ["order_number"]
            },
            "packaging_batches": {
                "table": "packaging_batches",
                "columns": ["id", "batch_number", "product_id", "packed_date", "total_packages", "status"],
                "filters": ["status"],
                "searchable": ["batch_number", "lot_number"]
            }
        },
        "views": [
            {
                "name": "materials",
                "label": "Materials",
                "type": "table",
                "dataSource": "packaging_materials",
                "rowActions": [
                    {"label": "Reorder", "icon": "fa-shopping-cart", "action": "packaging:reorder-material", "condition": "current_stock < minimum_stock"},
                    {"label": "View History", "icon": "fa-history", "action": "packaging:material-history"}
                ]
            },
            {
                "name": "templates",
                "label": "Templates",
                "type": "table",
                "dataSource": "packaging_templates",
                "rowActions": [
                    {"label": "Create Order", "icon": "fa-plus", "action": "packaging:create-order"},
                    {"label": "Duplicate", "icon": "fa-copy", "action": "duplicate"}
                ]
            },
            {
                "name": "orders",
                "label": "Packaging Orders",
                "type": "table",
                "dataSource": "packaging_orders",
                "rowActions": [
                    {"label": "Start Packing", "icon": "fa-play", "action": "packaging:start-order", "condition": "status == \"pending\""},
                    {"label": "Complete", "icon": "fa-check", "action": "packaging:complete-order", "condition": "status == \"in-progress\""},
                    {"label": "View Details", "icon": "fa-eye", "action": "view"}
                ]
            },
            {
                "name": "batches",
                "label": "Batches",
                "type": "table",
                "dataSource": "packaging_batches",
                "rowActions": [
                    {"label": "Print Labels", "icon": "fa-print", "action": "packaging:print-labels"},
                    {"label": "Quality Check", "icon": "fa-clipboard-check", "action": "packaging:quality-check", "condition": "!quality_checked"}
                ]
            }
        ]
    }