{"id":5136,"date":"2025-05-30T09:47:37","date_gmt":"2025-05-30T09:47:37","guid":{"rendered":"https:\/\/podarenterprise.com\/lms1\/?page_id=5136"},"modified":"2026-01-03T05:07:36","modified_gmt":"2026-01-03T05:07:36","slug":"registration","status":"publish","type":"page","link":"http:\/\/podarenterprise.com\/lms1\/registration\/","title":{"rendered":"Registration"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row][vc_column][vc_column_text css=&#8221;&#8221;]\n    <style>\n    \/* ===== Podar OTP Registration Styles ===== *\/\n    .podar-otp-wrapper{\n        max-width:400px;margin:40px auto;padding:30px;border:1px solid #eee;border-radius:10px;font-family:\"Helvetica Neue\",sans-serif\n    }\n    .podar-otp-wrapper h3{margin-bottom:20px;font-size:24px;font-weight:700;color:#01054f;text-align:center}\n    .podar-otp-wrapper .podar-input{width:100%;padding:12px 15px;margin-bottom:15px;border:1px solid #ccd1d9;border-radius:6px;font-size:15px;background:#f3f5f7}\n    .podar-otp-wrapper button{width:100%;padding:12px 15px;border:none;border-radius:6px;font-size:15px;font-weight:600;background:#01054f;color:#fff;cursor:pointer;transition:opacity .2s}\n    .podar-otp-wrapper button:disabled{opacity:.4;cursor:not-allowed}\n    .podar-hidden{display:none}\n    .podar-note{text-align:center;font-size:14px;margin-top:10px;color:#555}\n    <\/style>\n\n    <div class=\"podar-otp-wrapper\">\n        <h3>Register to Podar&nbsp;Eduspace<\/h3>\n\n        <!-- Stage 1: Email -->\n        <div id=\"podar_stage_email\">\n            <input type=\"email\" id=\"podar_email\" class=\"podar-input\" placeholder=\"Enter your email\" required>\n            <button id=\"podar_send_otp\">Send OTP<\/button>\n        <\/div>\n\n        <!-- Stage 2: OTP -->\n        <div id=\"podar_stage_otp\" class=\"podar-hidden\">\n            <input type=\"text\" id=\"podar_otp\" class=\"podar-input\" placeholder=\"Enter OTP\" required>\n            <button id=\"podar_verify_otp\">Verify OTP<\/button>\n        <\/div>\n\n        <!-- Stage 3: Registration -->\n        <div id=\"podar_stage_register\" class=\"podar-hidden\">\n            <input type=\"email\" id=\"podar_email_final\" class=\"podar-input\" placeholder=\"Verified Email\" disabled>\n            <input type=\"text\" id=\"podar_name\" class=\"podar-input\" placeholder=\"Full Name\" required>\n            <input type=\"text\" id=\"podar_contact\" class=\"podar-input\" placeholder=\"Contact Number\" required>\n            <input type=\"password\" id=\"podar_password\" class=\"podar-input\" placeholder=\"Password\" required>\n\n            <!-- Head Office Fields -->\n            <select id=\"podar_age\" class=\"podar-input\" required>\n                <option value=\"\">Age<\/option>\n                <option>13\u201315<\/option><option>16\u201318<\/option><option>19\u201321<\/option><option>22+<\/option>\n            <\/select>\n            <select id=\"podar_gender\" class=\"podar-input\" required>\n                <option value=\"\">Gender<\/option>\n                <option>Male<\/option><option>Female<\/option><option>Prefer not to say<\/option><option>Other<\/option>\n            <\/select>\n            <select id=\"podar_state\" class=\"podar-input\" required>\n                <option value=\"\">State<\/option>\n                <option>Rajasthan<\/option><option>Maharashtra<\/option><option>Delhi<\/option><option>Uttar Pradesh<\/option>\n            <\/select>\n            <input type=\"text\" id=\"podar_district\" class=\"podar-input\" placeholder=\"District\" required>\n            <input type=\"text\" id=\"podar_city\" class=\"podar-input\" placeholder=\"City \/ Town\" required>\n            <input type=\"text\" id=\"podar_institute\" class=\"podar-input\" placeholder=\"School \/ College \/ Institute\" required>\n            <select id=\"podar_class\" class=\"podar-input\" required>\n                <option value=\"\">Current Class \/ Grade \/ Year<\/option>\n                <option>8th<\/option><option>9th<\/option><option>10th<\/option><option>11th<\/option><option>12th<\/option>\n                <option>1st Year (College)<\/option><option>2nd Year (College)<\/option><option>Graduate<\/option>\n            <\/select>\n            <select id=\"podar_board\" class=\"podar-input\">\n                <option value=\"\">Board (optional)<\/option>\n                <option>CBSE<\/option><option>ICSE<\/option><option>State Board<\/option><option>Other<\/option>\n            <\/select>\n            <label style=\"font-size:13px;\">\n                <input type=\"checkbox\" id=\"podar_ai_consent\" required> I understand that this platform may provide AI-generated, non-binding suggestions for my learning and career.\n            <\/label>\n\n            <button id=\"podar_do_register\">Register<\/button>\n        <\/div>\n\n        <div class=\"podar-note\" id=\"podar_message\"><\/div>\n    <\/div>\n\n    <script>\n    (function(){\n        const ajaxUrl = \"http:\/\/podarenterprise.com\/lms1\/wp-admin\/admin-ajax.php\";\n        const msgEl   = document.getElementById('podar_message');\n\n        function showMessage(txt, isError = false){\n            msgEl.textContent = txt;\n            msgEl.style.color = isError ? 'red' : 'green';\n        }\n\n        document.getElementById('podar_send_otp').addEventListener('click', function(){\n            const email = document.getElementById('podar_email').value.trim();\n            if(!email){ showMessage('Please enter email', true); return; }\n            this.disabled = true; showMessage('Sending OTP...');\n            fetch(ajaxUrl, {\n                method:'POST',\n                headers:{'Content-Type':'application\/x-www-form-urlencoded'},\n                body: new URLSearchParams({action:'podar_send_otp', email})\n            }).then(r=>r.json()).then(res=>{\n                if(res.success){\n                    showMessage('OTP sent to your email');\n                    document.getElementById('podar_stage_email').classList.add('podar-hidden');\n                    document.getElementById('podar_stage_otp').classList.remove('podar-hidden');\n                } else {\n                    showMessage(res.data.message || 'Failed to send OTP', true);\n                    this.disabled = false;\n                }\n            }).catch(()=>{ showMessage('Error. Try again', true); this.disabled=false; });\n        });\n\n        document.getElementById('podar_verify_otp').addEventListener('click', function(){\n            const email = document.getElementById('podar_email').value.trim();\n            const otp   = document.getElementById('podar_otp').value.trim();\n            if(!otp){ showMessage('Enter OTP', true); return; }\n            this.disabled = true; showMessage('Verifying OTP...');\n            fetch(ajaxUrl, {\n                method:'POST',\n                headers:{'Content-Type':'application\/x-www-form-urlencoded'},\n                body: new URLSearchParams({action:'podar_verify_otp', email, otp})\n            }).then(r=>r.json()).then(res=>{\n                if(res.success){\n                    showMessage('OTP verified. Complete registration');\n                    document.getElementById('podar_stage_otp').classList.add('podar-hidden');\n                    document.getElementById('podar_stage_register').classList.remove('podar-hidden');\ndocument.getElementById('podar_email_final').value = email;\n                } else {\n                    showMessage(res.data.message || 'Invalid OTP', true);\n                    this.disabled = false;\n                }\n            }).catch(()=>{ showMessage('Error. Try again', true); this.disabled=false; });\n        });\n\n        document.getElementById('podar_do_register').addEventListener('click', function(){\n            const email    = document.getElementById('podar_email').value.trim();\n            const name     = document.getElementById('podar_name').value.trim();\n            const contact  = document.getElementById('podar_contact').value.trim();\n            const password = document.getElementById('podar_password').value.trim();\n            if(!name || !contact || !password){ showMessage('Fill all fields', true); return; }\n            this.disabled = true; showMessage('Registering...');\n            fetch(ajaxUrl, {\n                method:'POST',\n                headers:{'Content-Type':'application\/x-www-form-urlencoded'},\n                body: new URLSearchParams({\n                    action:'podar_register_user',\n                    email, name, contact, password\n                })\n            }).then(r=>r.json()).then(res=>{\n                if(res.success){\n                    showMessage('Registration successful. Redirecting...');\n                    window.location.href = res.data.redirect;\n                } else {\n                    showMessage(res.data.message || 'Registration failed', true);\n                    this.disabled = false;\n                }\n            }).catch(()=>{ showMessage('Error. Try again', true); this.disabled=false; });\n        });\n    })();\n    <\/script>\n\n    [\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>[vc_row][vc_column][vc_column_text css=&#8221;&#8221;][\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"pmpro_default_level":"","footnotes":""},"class_list":["post-5136","page","type-page","status-publish","hentry","pmpro-has-access"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/podarenterprise.com\/lms1\/wp-json\/wp\/v2\/pages\/5136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/podarenterprise.com\/lms1\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/podarenterprise.com\/lms1\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/podarenterprise.com\/lms1\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/podarenterprise.com\/lms1\/wp-json\/wp\/v2\/comments?post=5136"}],"version-history":[{"count":21,"href":"http:\/\/podarenterprise.com\/lms1\/wp-json\/wp\/v2\/pages\/5136\/revisions"}],"predecessor-version":[{"id":6571,"href":"http:\/\/podarenterprise.com\/lms1\/wp-json\/wp\/v2\/pages\/5136\/revisions\/6571"}],"wp:attachment":[{"href":"http:\/\/podarenterprise.com\/lms1\/wp-json\/wp\/v2\/media?parent=5136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}