{"id":20,"date":"2025-02-12T13:46:06","date_gmt":"2025-02-12T08:01:06","guid":{"rendered":"https:\/\/slf.lk\/admissions\/?page_id=20"},"modified":"2025-02-12T13:46:34","modified_gmt":"2025-02-12T08:01:34","slug":"external-exam-admissions","status":"publish","type":"page","link":"https:\/\/www.slf.lk\/admissions\/","title":{"rendered":"External Exam Admissions"},"content":{"rendered":"        <div class=\"max-w-4xl mx-auto p-6\">\n            <!-- Search Form -->\n            <form id=\"admission-search-form\" class=\"space-y-6\">\n                <div class=\"space-y-2\">\n                    <label for=\"nic\" class=\"block text-sm font-medium text-gray-700\">NIC Number<\/label>\n                    <div class=\"mt-1 relative rounded-md shadow-sm\">\n                        <input\n                            type=\"text\"\n                            id=\"nic\"\n                            name=\"nic\"\n                            required\n                            pattern=\"\\d{9}[VvXx]|\\d{12}\"\n                            class=\"block w-full px-4 py-3 border border-gray-300 rounded-md border-primary sm:text-sm\"\n                            placeholder=\"Enter your NIC number\"\n                            title=\"Please enter a valid NIC number (9 digits with V\/X or 12 digit\"\n                        >\n                        <span class=\"text-xs text-gray-500\">Hint: 123456789V or 123456789123<\/span>\n                    <\/div>\n                <\/div>\n                <button\n                    type=\"submit\"\n                    class=\"w-full flex justify-center py-3 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-primary focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 transition duration-150\"\n                >\n                    Search\n                <\/button>\n            <\/form>\n\n            <!-- Loading State -->\n            <div id=\"loading-state\" class=\"hidden mt-6 text-center\">\n                <div class=\"inline-flex items-center px-4 py-2 font-semibold leading-6 text-sm text-primary\">\n                    <svg class=\"animate-spin -ml-1 mr-3 h-5 w-5 text-primary\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" fill=\"none\" viewBox=\"0 0 24 24\">\n                        <circle class=\"opacity-25\" cx=\"12\" cy=\"12\" r=\"10\" stroke=\"currentColor\" stroke-width=\"4\"><\/circle>\n                        <path class=\"opacity-75\" fill=\"currentColor\" d=\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"><\/path>\n                    <\/svg>\n                    Searching...\n                <\/div>\n            <\/div>\n\n            <!-- Results Section -->\n            <div id=\"admission-results\" class=\"hidden mt-8 space-y-6\">\n                <!-- Action Buttons -->\n                <div class=\"flex flex-col sm:flex-row gap-4\">\n                    <button\n                        id=\"download-pdf\"\n                        class=\"flex-1 inline-flex justify-center items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md text-white bg-green-600 hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500\"\n                    >\n                        <svg class=\"w-5 h-5 mr-2\" fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\">\n                            <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4\"\/>\n                        <\/svg>\n                        Download PDF\n                    <\/button>\n                    <button\n                        id=\"show-email-form\"\n                        class=\"flex-1 inline-flex justify-center items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500\"\n                    >\n                        <svg class=\"w-5 h-5 mr-2\" fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\">\n                            <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z\"\/>\n                        <\/svg>\n                        Send to Email\n                    <\/button>\n                <\/div>\n\n                <!-- Email Form -->\n                <div id=\"email-form\" class=\"hidden mt-6\">\n                    <div class=\"bg-gray-50 p-6 rounded-lg space-y-4\">\n                        <div class=\"space-y-2\">\n                            <label for=\"email\" class=\"block text-sm font-medium text-gray-700\">Email Address<\/label>\n                            <input\n                                type=\"email\"\n                                id=\"email\"\n                                name=\"email\"\n                                required\n                                class=\"block w-full px-4 py-3 border border-gray-300 rounded-md focus:ring-2   sm:text-sm\"\n                                placeholder=\"Enter your email address\"\n                                pattern=\"[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}\"\n                                title=\"Please enter a valid email address (e.g., example@domain.com).\"\n                            >\n                            <span class=\"text-xs text-gray-500\">Hint: johndoe@example.com<\/span>\n                        <\/div>\n                        <button\n                            id=\"send-email\"\n                            class=\"w-full inline-flex justify-center items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500\"\n                        >\n\n                            Send\n                        <\/button>\n                    <\/div>\n                <\/div>\n            <\/div>\n\n            <!-- Messages -->\n            <div id=\"admission-message\" class=\"hidden mt-6 p-4 rounded-md\"><\/div>\n        <\/div>\n        \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"templates\/template-exam-admissions.php","meta":{"footnotes":""},"class_list":["post-20","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.slf.lk\/admissions\/wp-json\/wp\/v2\/pages\/20","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.slf.lk\/admissions\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.slf.lk\/admissions\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.slf.lk\/admissions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.slf.lk\/admissions\/wp-json\/wp\/v2\/comments?post=20"}],"version-history":[{"count":0,"href":"https:\/\/www.slf.lk\/admissions\/wp-json\/wp\/v2\/pages\/20\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.slf.lk\/admissions\/wp-json\/wp\/v2\/media?parent=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}