{
        "title": "Payment Methods",
        "modulePath": "settings/payment-methods",
        "header": [
            {
                "type": "button",
                "label": "Add Payment Method",
                "icon": "fa-plus",
                "class": "btn btn-primary",
                "action": {
                    "handler": "openPaymentMethodForm"
                },
                "ariaLabel": "Add new payment method"
            }
        ],
        "body": [
            {
                "type": "table",
                "id": "paymentMethodsTable",
                "options": {
                    "tableName": "payment_methods",
                    "showGlobalSearch": false,
                    "columnsToShow": ["name", "type", "is_active", "display_order"],
                    "columnLabels": {
                        "name": "Name",
                        "type": "Type",
                        "is_active": "Active",
                        "display_order": "Order"
                    },
                    "rowActions": [
                        {
                            "label": "Edit",
                            "icon": "fa-edit",
                            "class": "btn btn-info btn-xs",
                            "action": {
                                "handler": "openPaymentMethodForm"
                            }
                        },
                        {
                            "label": "Activate",
                            "icon": "fa-check",
                            "class": "btn btn-success btn-xs",
                            "action": "payment-methods:activate",
                            "condition": "is_active == false"
                        },
                        {
                            "label": "Deactivate",
                            "icon": "fa-ban",
                            "class": "btn btn-warning btn-xs",
                            "action": "payment-methods:deactivate",
                            "condition": "is_active == true",
                            "confirm": "Deactivate this payment method?"
                        },
                        {
                            "label": "Delete",
                            "icon": "fa-trash",
                            "class": "btn btn-error btn-xs",
                            "action": "records:delete",
                            "confirm": "Delete this payment method?"
                        }
                    ]
                }
            }
        ],
        "footer": [
            {
                "type": "button",
                "label": "Close",
                "class": "btn btn-ghost",
                "action": "close"
            }
        ]
    }