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