{"id":2731,"date":"2023-01-12T06:34:45","date_gmt":"2023-01-12T06:34:45","guid":{"rendered":"https:\/\/C267017E-D054-42E7-B76D-15FCCA9618DC"},"modified":"2026-10-09T09:12:08","modified_gmt":"2026-10-09T09:12:08","slug":"registrer-account","status":"publish","type":"page","link":"https:\/\/labourdept.gov.lk\/si\/registrer-account\/","title":{"rendered":"\u0dbd\u0dd2\u0dba\u0dcf\u0db4\u0daf\u0dd2\u0d82\u0da0\u0dd2 \u0d9c\u0dd2\u0dab\u0dd4\u0db8"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><div class=\"vc_row wpb_row vc_row-fluid\"><div class=\"wpb_column vc_column_container vc_col-sm-12\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\n\t<div class=\"wpb_text_column wpb_content_element \" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t        <div class=\"cb-visitor-form-container\" style=\"max-width: 500px; margin: 20px auto; padding: 25px; border: 1px solid #e2e8f0; border-radius: 8px; background: #ffffff; font-family: sans-serif;\">\n            <h3 style=\"margin-top:0; color:#1a202c; border-bottom: 2px solid #edf2f7; padding-bottom: 10px;\">Visitor Registration<\/h3>\n\n            <form id=\"cb-register-form\">\n                <input type=\"hidden\" id=\"cb_security\" name=\"cb_security\" value=\"2c92c8baf7\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/si\/wp-json\/wp\/v2\/pages\/2731\" \/>\n                <div style=\"margin-bottom: 15px;\">\n                    <label style=\"display:block; font-weight:600; margin-bottom: 5px;\">Full Name *<\/label>\n                    <input type=\"text\" name=\"name\" required style=\"width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 4px;\">\n                <\/div>\n\n                <div style=\"display: flex; gap: 15px; margin-bottom: 15px;\">\n                    <div style=\"flex: 1;\">\n                        <label style=\"display:block; font-weight:600; margin-bottom: 5px;\">Contact No *<\/label>\n                        <input type=\"text\" name=\"contact\" required style=\"width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 4px;\">\n                    <\/div>\n                    <div style=\"flex: 1;\">\n                        <label style=\"display:block; font-weight:600; margin-bottom: 5px;\">NIC Number *<\/label>\n                        <input type=\"text\" name=\"nic\" required style=\"width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 4px;\">\n                    <\/div>\n                <\/div>\n\n                <div style=\"margin-bottom: 15px;\">\n                    <label style=\"display:block; font-weight:600; margin-bottom: 5px;\">Email Address *<\/label>\n                    <input type=\"email\" name=\"email\" required style=\"width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 4px;\">\n                <\/div>\n\n                <div style=\"margin-bottom: 15px;\">\n                    <label style=\"display:block; font-weight:600; margin-bottom: 5px;\">District<\/label>\n                    <input type=\"text\" name=\"district\" style=\"width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 4px;\">\n                <\/div>\n\n                <div style=\"margin-bottom: 20px;\">\n                    <label style=\"display:block; font-weight:600; margin-bottom: 5px;\">Password *<\/label>\n                    <input type=\"password\" name=\"password\" required style=\"width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 4px;\">\n                <\/div>\n\n                <button type=\"submit\" id=\"cb_reg_btn\" style=\"background: #2563eb; color: #fff; border:none; padding: 12px 20px; border-radius: 4px; cursor: pointer; font-weight: 600; width: 100%;\">Register<\/button>\n        \n        <div style=\"margin-top: 15px; font-family: sans-serif; font-size: 13px; color: #64748b; line-height: 1.5; text-align: center;\">\n    By clicking the 'Sign Up' button, you confirm that you accept our Terms of use and Privacy Policy. \n    <span style=\"display: block; margin-top: 5px;\">\n        or else \n        <a href=\"https:\/\/labourdept.gov.lk\/epf-claim\/\" style=\"color: #16a34a; font-weight: 600; text-decoration: none; border-bottom: 1px dashed #16a34a;\">\n            login here\n        <\/a>\n    <\/span>\n<\/div>\n        \n        <\/form>\n        <\/div>\n\n        <script>\n        jQuery(document).ready(function($) {\n            $('#cb-register-form').on('submit', function(e) {\n                e.preventDefault();\n                var formData = new FormData(this);\n                formData.append('action', 'cb_register_visitor');\n                formData.append('security', $('#cb_security').val());\n\n                var btn = $('#cb_reg_btn');\n                btn.prop('disabled', true).text('Registering...');\n\n                $.ajax({\n                    url: 'https:\/\/labourdept.gov.lk\/wp-admin\/admin-ajax.php',\n                    type: 'POST',\n                    data: formData,\n                    processData: false,\n                    contentType: false,\n                    success: function(res) {\n                        btn.prop('disabled', false).text('Register');\n                        if (res.success) {\n                            Swal.fire('Success!', res.data.message, 'success');\n                            $('#cb-register-form')[0].reset();\n                        } else {\n                            Swal.fire('Error', res.data.message, 'error');\n                        }\n                    },\n                    error: function() {\n                        btn.prop('disabled', false).text('Register');\n                        Swal.fire('Error', 'Server error occurred.', 'error');\n                    }\n                });\n            });\n        });\n        <\/script>\n        \n\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div><\/div><\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Visitor Registration Full Name * Contact No * NIC Number * Email Address * District Password * Register By clicking the &#8216;Sign Up&#8217; button, you confirm that you accept our Terms of use and Privacy Policy. or else login here<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2731","page","type-page","status-publish","hentry","description-off"],"_links":{"self":[{"href":"https:\/\/labourdept.gov.lk\/si\/wp-json\/wp\/v2\/pages\/2731","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labourdept.gov.lk\/si\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/labourdept.gov.lk\/si\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/labourdept.gov.lk\/si\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/labourdept.gov.lk\/si\/wp-json\/wp\/v2\/comments?post=2731"}],"version-history":[{"count":3,"href":"https:\/\/labourdept.gov.lk\/si\/wp-json\/wp\/v2\/pages\/2731\/revisions"}],"predecessor-version":[{"id":6930,"href":"https:\/\/labourdept.gov.lk\/si\/wp-json\/wp\/v2\/pages\/2731\/revisions\/6930"}],"wp:attachment":[{"href":"https:\/\/labourdept.gov.lk\/si\/wp-json\/wp\/v2\/media?parent=2731"}],"curies":[{"name":"\u0da9\u0db6\u0dca\u0dbd\u0dd2\u0dc0\u0dca\u0db4\u0dd3","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}