{
        "title": "Invoice Settings",
        "modulePath": "settings/invoices",
        "body": [
            {
                "type": "tabs",
                "tabs": [
                    {
                        "label": "General",
                        "icon": "fa-cog",
                        "elements": [
                            {
                                "type": "form",
                                "id": "invoiceSettingsForm",
                                "formName": "Invoice Settings",
                                "options": {
                                    "loadRecord": {
                                        "table": "invoice_settings",
                                        "orgScope": true
                                    }
                                }
                            }
                        ]
                    },
                    {
                        "label": "TaxCore",
                        "icon": "fa-file-invoice-dollar",
                        "elements": [
                            {
                                "type": "alert",
                                "class": "alert alert-info",
                                "icon": "fa-info-circle",
                                "text": "Configure TaxCore integration for automated tax submissions."
                            },
                            {
                                "type": "form",
                                "id": "taxcoreSettingsForm",
                                "formName": "TaxCore Settings",
                                "options": {
                                    "loadRecord": {
                                        "table": "taxcore_settings",
                                        "orgScope": true
                                    }
                                }
                            },
                            {
                                "type": "divider"
                            },
                            {
                                "type": "button",
                                "label": "Test TaxCore Connection",
                                "icon": "fa-plug",
                                "class": "btn btn-secondary",
                                "action": "taxcore:test-connection",
                                "ariaLabel": "Test TaxCore API connection"
                            }
                        ]
                    },
                    {
                        "label": "Templates",
                        "icon": "fa-file-alt",
                        "elements": [
                            {
                                "type": "button",
                                "label": "Add Template",
                                "icon": "fa-plus",
                                "class": "btn btn-primary mb-4",
                                "action": {
                                    "handler": "openTemplateForm"
                                }
                            },
                            {
                                "type": "table",
                                "id": "invoiceTemplates",
                                "options": {
                                    "tableName": "invoice_templates",
                                    "showGlobalSearch": false,
                                    "addButton": false,
                                    "rowActions": [
                                        {
                                            "label": "Edit",
                                            "icon": "fa-edit",
                                            "action": {
                                                "handler": "openTemplateForm"
                                            }
                                        },
                                        {
                                            "label": "Preview",
                                            "icon": "fa-eye",
                                            "action": "templates:preview"
                                        },
                                        {
                                            "label": "Set Default",
                                            "icon": "fa-check",
                                            "action": "templates:set-default",
                                            "condition": "is_default != true"
                                        },
                                        {
                                            "label": "Delete",
                                            "icon": "fa-trash",
                                            "class": "btn btn-error btn-xs",
                                            "action": "records:delete",
                                            "condition": "is_default != true",
                                            "confirm": "Delete this template?"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                ]
            }
        ],
        "footer": [
            {
                "type": "button",
                "label": "Close",
                "class": "btn btn-ghost",
                "action": "close"
            },
            {
                "type": "button",
                "label": "Save All",
                "icon": "fa-save",
                "class": "btn btn-primary",
                "action": "save",
                "confirm": "Save all settings?",
                "ariaLabel": "Save all invoice settings"
            }
        ]
    }