-- Add Workplace Notice Preview modal
INSERT INTO ui_modals (name, config, tenant_id, branch_id)
SELECT 'Workplace Notice Preview',
       '{"title":"Workplace Notice Preview","body":[{"type":"html","id":"wnPreview","html":""},{"type":"form","formName":"Workplace Notice"}],"footer":[{"type":"button","label":"Close","onClick":"closeModal"}]}' ,
       NULL, NULL
WHERE NOT EXISTS (SELECT 1 FROM ui_modals WHERE name = 'Workplace Notice Preview');
