{"id":5535,"date":"2026-05-28T07:57:12","date_gmt":"2026-05-28T07:57:12","guid":{"rendered":"https:\/\/azwc.gov.et\/?page_id=5535"},"modified":"2026-05-28T07:57:14","modified_gmt":"2026-05-28T07:57:14","slug":"trial-status","status":"publish","type":"page","link":"https:\/\/azwc.gov.et\/?page_id=5535","title":{"rendered":"Trial Status"},"content":{"rendered":"    <div class=\"oxence-case-search\">\n        <div class=\"search-container\">\n            <h3>\ud83d\udd0d \u127d\u120e\u1275 \u1218\u1348\u1208\u130a\u12eb<\/h3>\n            <div class=\"search-box\">\n                <!-- Dropdown to select search criteria -->\n                <select id=\"search-type-select\" \n                        style=\"padding: 15px; margin-right: 10px; border: 2px solid #ddd; border-radius: 8px; font-size: 16px; background-color: #fff; cursor: pointer; vertical-align: middle;\">\n                    <option value=\"case_number\">\u12e8\u1309\u12f3\u12ed \u1241\u1325\u122d \/ Case Number<\/option>\n                    <option value=\"plaintiff\">\u12a8\u1233\u123d \/ Plaintiff<\/option>\n                    <option value=\"defendant\">\u1270\u12a8\u1233\u123d \/ Defendant<\/option>\n                <\/select>\n                \n                <input type=\"text\" \n                       id=\"case-number-input\" \n                       placeholder=\"\u12a5\u12da\u1205 \u12ed\u1348\u120d\u1309...\" \n                       style=\"padding: 15px; width: 300px; margin-right: 10px; border: 2px solid #ddd; border-radius: 8px; font-size: 16px; vertical-align: middle;\">\n                       \n                <button id=\"search-case-btn\" \n                        style=\"padding: 15px 30px; background: #3b82f6; color: white; border: none; border-radius: 8px; cursor: pointer; font-size: 16px; vertical-align: middle;\">\n                    \ud83d\udd0d \u1348\u120d\u130d\n                <\/button>\n            <\/div>\n        <\/div>\n        \n        <!-- Display search prompts dynamically, instead of showing all results automatically -->\n        <div id=\"search-results\" style=\"margin-top: 30px;\">\n            <p style=\"text-align: center; color: #64748b; font-size: 16px;\">\u12e8\u1309\u12f3\u12ed \u1241\u1325\u122d\u1363 \u12a8\u1233\u123d \u12c8\u12ed\u121d \u1270\u12a8\u1233\u123d \u1235\u121d \u1260\u121b\u1235\u1308\u1263\u1275 \u12ed\u1348\u120d\u1309\u1362<\/p>\n        <\/div>\n    <\/div>\n\n    <style>\n        .oxence-case-search {\n            max-width: 1200px;\n            margin: 0 auto;\n            padding: 20px;\n        }\n        .search-container {\n            text-align: center;\n            padding: 30px;\n            background: #f8fafc;\n            border-radius: 12px;\n            margin-bottom: 30px;\n        }\n        .search-box {\n            margin-top: 20px;\n            display: flex;\n            justify-content: center;\n            align-items: center;\n            flex-wrap: wrap;\n            gap: 10px;\n        }\n        .search-box select, .search-box input, .search-box button {\n            height: 54px;\n            box-sizing: border-box;\n            margin: 0 !important;\n        }\n        .trial-card {\n            background: #fff;\n            border-radius: 12px;\n            border-right: 4px solid #3b82f6;\n            box-shadow: 0 2px 8px rgba(0,0,0,0.08);\n            padding: 20px;\n            margin-bottom: 20px;\n        }\n        .trial-header {\n            display: flex;\n            justify-content: space-between;\n            align-items: center;\n            margin-bottom: 15px;\n            padding-bottom: 10px;\n            border-bottom: 1px solid #e2e8f0;\n            flex-wrap: wrap;\n        }\n        .case-number {\n            font-size: 20px;\n            font-weight: bold;\n            color: #1e293b;\n        }\n        .status-badge {\n            padding: 4px 12px;\n            border-radius: 20px;\n            font-size: 12px;\n            font-weight: 500;\n        }\n        .status-scheduled { background: #dbeafe; color: #1e40af; }\n        .status-in_progress { background: #fed7aa; color: #92400e; }\n        .status-adjourned { background: #fee2e2; color: #991b1b; }\n        .status-verdict { background: #d1fae5; color: #065f46; }\n        .trial-details {\n            display: grid;\n            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n            gap: 15px;\n            margin-top: 15px;\n        }\n        .detail-item {\n            font-size: 14px;\n        }\n        .detail-item strong {\n            color: #475569;\n            min-width: 100px;\n            display: inline-block;\n        }\n        .no-results {\n            text-align: center;\n            padding: 40px;\n            background: #fef2f2;\n            border-radius: 12px;\n            color: #991b1b;\n        }\n        .loading {\n            text-align: center;\n            padding: 20px;\n            color: #3b82f6;\n        }\n        @media (max-width: 768px) {\n            .search-box {\n                flex-direction: column;\n                align-items: stretch;\n            }\n            .search-box select, .search-box input, .search-box button {\n                width: 100%;\n                margin-bottom: 10px;\n            }\n            .detail-item strong {\n                min-width: 80px;\n            }\n        }\n    <\/style>\n\n    <script>\n    document.addEventListener('DOMContentLoaded', function() {\n        const searchBtn = document.getElementById('search-case-btn');\n        const caseInput = document.getElementById('case-number-input');\n        const searchTypeSelect = document.getElementById('search-type-select');\n        const resultsDiv = document.getElementById('search-results');\n\n        function searchTrials(query, searchType) {\n            if(!query) {\n                resultsDiv.innerHTML = '<div class=\"no-results\">\u26a0\ufe0f \u12a5\u1263\u12ad\u12ce \u1218\u1348\u1208\u130a\u12eb \u1243\u120d \u12eb\u1235\u1308\u1261<\/div>';\n                return;\n            }\n\n            resultsDiv.innerHTML = '<div class=\"loading\">\ud83d\udd0d \u1260\u1218\u1348\u1208\u130d \u120b\u12ed...<\/div>';\n\n            fetch('https:\/\/azwc.gov.et\/wp-admin\/admin-ajax.php?action=search_by_case_number&case_number=' + encodeURIComponent(query) + '&search_type=' + encodeURIComponent(searchType))\n                .then(response => response.text())\n                .then(html => {\n                    resultsDiv.innerHTML = html;\n                })\n                .catch(error => {\n                    resultsDiv.innerHTML = '<div class=\"no-results\">\u274c \u1235\u1205\u1270\u1275 \u1270\u12a8\u1235\u1277\u120d<\/div>';\n                });\n        }\n\n        if(searchBtn) {\n            searchBtn.addEventListener('click', function() {\n                searchTrials(caseInput.value.trim(), searchTypeSelect.value);\n            });\n        }\n\n        if(caseInput) {\n            caseInput.addEventListener('keypress', function(e) {\n                if(e.key === 'Enter') {\n                    searchTrials(caseInput.value.trim(), searchTypeSelect.value);\n                }\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":{"_acf_changed":false,"footnotes":""},"class_list":["post-5535","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/azwc.gov.et\/index.php?rest_route=\/wp\/v2\/pages\/5535","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/azwc.gov.et\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/azwc.gov.et\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/azwc.gov.et\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/azwc.gov.et\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5535"}],"version-history":[{"count":1,"href":"https:\/\/azwc.gov.et\/index.php?rest_route=\/wp\/v2\/pages\/5535\/revisions"}],"predecessor-version":[{"id":5536,"href":"https:\/\/azwc.gov.et\/index.php?rest_route=\/wp\/v2\/pages\/5535\/revisions\/5536"}],"wp:attachment":[{"href":"https:\/\/azwc.gov.et\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}