-- Workplace Invoice Preview modal
INSERT INTO ui_modals (name, config, tenant_id, branch_id)
SELECT 'Workplace Invoice Preview',
       '{"title":"Workplace Invoice Preview","body":[{"type":"html","id":"invoicePreview","html":""},{"type":"html","html":"<button id=\"payNowBtn\" class=\"btn\">Pay Now</button>"}],"footer":[{"type":"button","label":"Close","onClick":"closeModal"}]}',
       NULL, NULL
WHERE NOT EXISTS (SELECT 1 FROM ui_modals WHERE name = 'Workplace Invoice Preview');
