{"id":11,"date":"2026-09-03T06:24:49","date_gmt":"2026-09-03T06:24:49","guid":{"rendered":"https:\/\/angels-devils.adilbannar.my\/index.php\/dashboard\/"},"modified":"2026-09-03T06:24:49","modified_gmt":"2026-09-03T06:24:49","slug":"dashboard","status":"publish","type":"page","link":"https:\/\/angels-devils.adilbannar.my\/index.php\/dashboard\/","title":{"rendered":"Dashboard"},"content":{"rendered":"<div class=\"srp-section\">\n    <h1 class=\"srp-section-title\">MY <span class=\"accent\">DASHBOARD<\/span><\/h1>\n    <p class=\"srp-section-subtitle\" id=\"srpDashSub\">Manage your account and whitelist status<\/p>\n\n    <div id=\"srpDashNotLogged\" style=\"display:none;\">\n        <div class=\"srp-card\" style=\"text-align:center;padding:48px;\">\n            <h3 style=\"margin-bottom:12px;color:var(--srp-purple);\">Login Required<\/h3>\n            <p style=\"color:var(--srp-gray);margin-bottom:20px;\">Please login with Discord to access your dashboard.<\/p>\n            <a href=\"https:\/\/angels-devils.adilbannar.my\/index.php\/wp-json\/srp\/v1\/auth\/discord\" class=\"srp-btn srp-btn-discord\">Login with Discord<\/a>\n        <\/div>\n    <\/div>\n\n    <div id=\"srpDashContent\" style=\"display:none;\">\n        <div style=\"display:grid;grid-template-columns:1fr 2fr;gap:24px;\">\n            <div class=\"srp-card\" id=\"srpDashProfile\"><\/div>\n            <div class=\"srp-card\" id=\"srpDashStatus\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n<script>\ndocument.addEventListener('DOMContentLoaded', function(){\n    srpCheckAuth(function(user){\n        if(!user||!user.id){\n            document.getElementById('srpDashNotLogged').style.display='block';\n            return;\n        }\n        document.getElementById('srpDashContent').style.display='grid';\n        var avatarHtml = user.avatar ? '<img decoding=\"async\" src=\"'+user.avatar+'\" style=\"width:64px;height:64px;border-radius:50%;border:3px solid var(--srp-purple);margin-bottom:12px;\">' : '<div style=\"width:64px;height:64px;border-radius:50%;background:linear-gradient(135deg,#a855f7,#7c3aed);display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:900;margin:0 auto 12px;color:#fff;\">'+user.username.charAt(0).toUpperCase()+'<\/div>';\n        var adminLink = '';\n        var r = (user.role||'').toLowerCase();\n        if (r === 'admin' || r === 'owner' || r === 'founder') {\n            adminLink = '<a href=\"\/admin\" class=\"srp-btn srp-btn-primary\" style=\"width:100%;justify-content:center;margin-top:16px;\">Admin Panel<\/a>';\n        }\n        document.getElementById('srpDashProfile').innerHTML = avatarHtml + '<h3 style=\"text-align:center;margin-bottom:4px;\">'+user.username+'<\/h3><p style=\"text-align:center;color:var(--srp-purple);font-size:13px;font-weight:600;text-transform:uppercase;\">'+user.role+'<\/p>' + adminLink;\n        srpCheckWhitelistStatus(function(s){\n            var statusHtml = '<h3 style=\"margin-bottom:16px;\">Whitelist Status<\/h3>';\n            if(s.status==='none'){\n                statusHtml+='<div class=\"srp-card\" style=\"background:var(--srp-darker);\"><p style=\"color:var(--srp-gray);\">No application found.<\/p><a href=\"\/whitelist\" class=\"srp-btn srp-btn-primary\" style=\"margin-top:12px;\">Apply Now<\/a><\/div>';\n            } else if(s.status==='approved'){\n                statusHtml+='<div style=\"padding:24px;background:rgba(34,197,94,0.1);border-radius:var(--srp-radius);border:1px solid #15803d;\"><h3 style=\"color:var(--srp-success);margin-bottom:8px;\">\u2705 Approved<\/h3><p style=\"color:var(--srp-gray);\">Your application has been approved! Welcome to Angels & Devils Rp.<\/p><\/div>';\n            } else if(s.status==='pending'){\n                statusHtml+='<div style=\"padding:24px;background:rgba(245,158,11,0.1);border-radius:var(--srp-radius);border:1px solid #92400e;\"><h3 style=\"color:var(--srp-warning);margin-bottom:8px;\">\u23f3 Pending Review<\/h3><p style=\"color:var(--srp-gray);\">Your application is being reviewed. Please wait.<\/p><\/div>';\n            } else if(s.status==='rejected'){\n                var reason = s.reject_reason ? '<p style=\"color:var(--srp-red-light);margin-top:8px;\"><strong>Reason:<\/strong> '+s.reject_reason+'<\/p>' : '';\n                statusHtml+='<div style=\"padding:24px;background:rgba(220,38,38,0.1);border-radius:var(--srp-radius);border:1px solid var(--srp-red-dark);\"><h3 style=\"color:var(--srp-red);margin-bottom:8px;\">\u274c Rejected<\/h3><p style=\"color:var(--srp-gray);\">Your application was rejected.<\/p>'+reason+'<a href=\"\/whitelist\" class=\"srp-btn srp-btn-primary\" style=\"margin-top:12px;\">Reapply<\/a><\/div>';\n            }\n            document.getElementById('srpDashStatus').innerHTML = statusHtml;\n        });\n    });\n});\n<\/script>\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":"","meta":{"footnotes":""},"class_list":["post-11","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/angels-devils.adilbannar.my\/index.php\/wp-json\/wp\/v2\/pages\/11","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/angels-devils.adilbannar.my\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/angels-devils.adilbannar.my\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/angels-devils.adilbannar.my\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/angels-devils.adilbannar.my\/index.php\/wp-json\/wp\/v2\/comments?post=11"}],"version-history":[{"count":0,"href":"https:\/\/angels-devils.adilbannar.my\/index.php\/wp-json\/wp\/v2\/pages\/11\/revisions"}],"wp:attachment":[{"href":"https:\/\/angels-devils.adilbannar.my\/index.php\/wp-json\/wp\/v2\/media?parent=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}