-- Invoice Payment Options modal
INSERT INTO ui_modals (name, config, tenant_id, branch_id)
SELECT 'Invoice Payment Options',
       '{"title":"Invoice Payment Options","body":[{"type":"html","html":"<div id=\"paymentBadges\" class=\"flex gap-2 mb-2\"><span class=\"badge badge-outline cursor-pointer\" data-target=\"mpaisaForm\">MPaisa</span><span class=\"badge badge-outline cursor-pointer\" data-target=\"digicelForm\">Digicel</span><span class=\"badge badge-outline cursor-pointer\" data-target=\"mycashForm\">MyCash</span><span class=\"badge badge-outline cursor-pointer\" data-target=\"ccForm\">Credit Card</span><span class=\"badge badge-outline cursor-pointer\" data-target=\"transferForm\">Online Transfer</span></div><div id=\"mpaisaForm\" class=\"payment-form hidden\"><input type=\"text\" placeholder=\"MPaisa Number\" class=\"input input-bordered w-full\" /></div><div id=\"digicelForm\" class=\"payment-form hidden\"><input type=\"text\" placeholder=\"Digicel Number\" class=\"input input-bordered w-full\" /></div><div id=\"mycashForm\" class=\"payment-form hidden\"><input type=\"text\" placeholder=\"MyCash Number\" class=\"input input-bordered w-full\" /></div><div id=\"ccForm\" class=\"payment-form hidden\"><input type=\"text\" placeholder=\"Card Number\" class=\"input input-bordered w-full\" /></div><div id=\"transferForm\" class=\"payment-form hidden\"><input type=\"text\" placeholder=\"Reference\" class=\"input input-bordered w-full mb-2\" /><input type=\"file\" class=\"file-input w-full\" /></div>"}],"footer":[{"type":"button","label":"Close","onClick":"closeModal"}]}',
       NULL, NULL
WHERE NOT EXISTS (SELECT 1 FROM ui_modals WHERE name = 'Invoice Payment Options');
