a / index.html
Natyiii's picture
Add 3 files
2495832 verified
Raw History Blame Contribute Delete
38.9 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ethiopian Daycare Registration System</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.amharic {
font-family: 'Nyala', 'Abyssinica SIL', 'GF Zemen Unicode', sans-serif;
}
.ethiopian-date {
direction: ltr;
unicode-bidi: embed;
}
.hidden {
display: none;
}
.fade-in {
animation: fadeIn 0.5s;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.sidebar {
transition: all 0.3s;
}
@media (max-width: 768px) {
.sidebar {
transform: translateX(-100%);
}
.sidebar.open {
transform: translateX(0);
}
}
</style>
</head>
<body class="bg-gray-50">
<!-- Header -->
<header class="bg-green-700 text-white shadow-lg">
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
<div class="flex items-center space-x-2">
<i class="fas fa-child-reaching text-2xl"></i>
<h1 class="text-xl font-bold">የኢትዮጵያ የህፃናት እንክብካቤ ማዕከል</h1>
</div>
<div class="flex items-center space-x-4">
<button id="languageToggle" class="px-3 py-1 bg-green-600 rounded hover:bg-green-800 transition">
<span class="amharic">ቋንቋ</span>/Language
</button>
<div id="currentDate" class="text-sm ethiopian-date"></div>
</div>
</div>
</header>
<!-- Main Content -->
<main class="container mx-auto px-4 py-8">
<!-- Registration Form Section -->
<section id="registrationSection" class="bg-white rounded-lg shadow-md p-6 mb-8 fade-in">
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-bold text-green-800">
<span class="en">Daycare Registration Form</span>
<span class="amharic hidden">የህፃናት እንክብካቤ ማዕከል ምዝገባ ፎርም</span>
</h2>
<div class="w-16 h-1 bg-green-600"></div>
</div>
<form id="registrationForm" class="space-y-6">
<!-- Child Information -->
<fieldset class="border border-green-200 rounded-lg p-4">
<legend class="px-2 text-green-800 font-medium">
<span class="en">Child Information</span>
<span class="amharic hidden">የህፃን መረጃ</span>
</legend>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<!-- Child's Name -->
<div>
<label for="childName" class="block text-sm font-medium text-gray-700 mb-1">
<span class="en">Child's Full Name</span>
<span class="amharic hidden">የህፃን ሙሉ ስም</span>
</label>
<input type="text" id="childName" name="childName" required
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500">
</div>
<!-- Gender -->
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">
<span class="en">Gender</span>
<span class="amharic hidden">ጾታ</span>
</label>
<div class="flex space-x-4">
<label class="inline-flex items-center">
<input type="radio" name="gender" value="Male" checked class="text-green-600">
<span class="ml-2 en">Male</span>
<span class="ml-2 amharic hidden">ወንድ</span>
</label>
<label class="inline-flex items-center">
<input type="radio" name="gender" value="Female" class="text-green-600">
<span class="ml-2 en">Female</span>
<span class="ml-2 amharic hidden">ሴት</span>
</label>
</div>
</div>
<!-- Date of Birth -->
<div>
<label for="dob" class="block text-sm font-medium text-gray-700 mb-1">
<span class="en">Date of Birth (Gregorian)</span>
<span class="amharic hidden">የልደት ቀን (ግሪጎርያን)</span>
</label>
<input type="date" id="dob" name="dob" required
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500">
</div>
<!-- Age -->
<div>
<label for="age" class="block text-sm font-medium text-gray-700 mb-1">
<span class="en">Age (in months)</span>
<span class="amharic hidden">ዕድሜ (በወር)</span>
</label>
<input type="number" id="age" name="age" min="1" max="72" required
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500">
</div>
</div>
</fieldset>
<!-- Parent/Guardian Information -->
<fieldset class="border border-green-200 rounded-lg p-4">
<legend class="px-2 text-green-800 font-medium">
<span class="en">Parent/Guardian Information</span>
<span class="amharic hidden">የወላጅ/በአላማ የተሾሙ ሰዎች መረጃ</span>
</legend>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<!-- Parent Name -->
<div>
<label for="parentName" class="block text-sm font-medium text-gray-700 mb-1">
<span class="en">Parent/Guardian Full Name</span>
<span class="amharic hidden">የወላጅ/በአላማ የተሾሙ ሰዎች ሙሉ ስም</span>
</label>
<input type="text" id="parentName" name="parentName" required
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500">
</div>
<!-- Relationship -->
<div>
<label for="relationship" class="block text-sm font-medium text-gray-700 mb-1">
<span class="en">Relationship to Child</span>
<span class="amharic hidden">ከህፃኑ ጋር ያለው ዝምድና</span>
</label>
<select id="relationship" name="relationship" required
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500">
<option value="Mother">Mother</option>
<option value="Father">Father</option>
<option value="Guardian">Guardian</option>
<option value="Relative">Relative</option>
</select>
</div>
<!-- Phone Number -->
<div>
<label for="phone" class="block text-sm font-medium text-gray-700 mb-1">
<span class="en">Phone Number</span>
<span class="amharic hidden">ስልክ ቁጥር</span>
</label>
<input type="tel" id="phone" name="phone" pattern="[0-9]{10}" required
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500"
placeholder="0912345678">
</div>
<!-- Email -->
<div>
<label for="email" class="block text-sm font-medium text-gray-700 mb-1">
<span class="en">Email (optional)</span>
<span class="amharic hidden">ኢሜይል (አማራጭ)</span>
</label>
<input type="email" id="email" name="email"
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500">
</div>
<!-- Address -->
<div class="md:col-span-2">
<label for="address" class="block text-sm font-medium text-gray-700 mb-1">
<span class="en">Full Address</span>
<span class="amharic hidden">ሙሉ አድራሻ</span>
</label>
<textarea id="address" name="address" rows="2" required
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500"></textarea>
</div>
</div>
</fieldset>
<!-- Additional Information -->
<fieldset class="border border-green-200 rounded-lg p-4">
<legend class="px-2 text-green-800 font-medium">
<span class="en">Additional Information</span>
<span class="amharic hidden">ተጨማሪ መረጃ</span>
</legend>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<!-- Special Needs -->
<div>
<label for="specialNeeds" class="block text-sm font-medium text-gray-700 mb-1">
<span class="en">Special Needs (if any)</span>
<span class="amharic hidden">ልዩ ፍላጎቶች (ካለ)</span>
</label>
<textarea id="specialNeeds" name="specialNeeds" rows="2"
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500"></textarea>
</div>
<!-- Allergies -->
<div>
<label for="allergies" class="block text-sm font-medium text-gray-700 mb-1">
<span class="en">Allergies (if any)</span>
<span class="amharic hidden">አለርጂ (ካለ)</span>
</label>
<textarea id="allergies" name="allergies" rows="2"
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500"></textarea>
</div>
<!-- Emergency Contact -->
<div class="md:col-span-2">
<label for="emergencyContact" class="block text-sm font-medium text-gray-700 mb-1">
<span class="en">Emergency Contact (Name & Phone)</span>
<span class="amharic hidden">የአደጋ ሰዓት አደጋ (ስም እና ስልክ ቁጥር)</span>
</label>
<input type="text" id="emergencyContact" name="emergencyContact" required
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500">
</div>
</div>
</fieldset>
<!-- Terms and Submit -->
<div class="flex flex-col md:flex-row justify-between items-center pt-4">
<div class="mb-4 md:mb-0">
<label class="inline-flex items-center">
<input type="checkbox" id="terms" name="terms" required class="text-green-600">
<span class="ml-2 text-sm text-gray-700 en">
I agree to the terms and conditions of the daycare center
</span>
<span class="ml-2 text-sm text-gray-700 amharic hidden">
ከህፃናት እንክብካቤ ማዕከል ጋር የሚገናኙ ውሎችን እቀበላለሁ
</span>
</label>
</div>
<button type="submit" class="px-6 py-2 bg-green-700 text-white rounded-md hover:bg-green-800 transition focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2">
<span class="en">Submit Registration</span>
<span class="amharic hidden">ምዝገባውን አስገባ</span>
</button>
</div>
</form>
</section>
<!-- Admin Login Section -->
<section id="adminLoginSection" class="bg-white rounded-lg shadow-md p-6 mb-8 fade-in">
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-bold text-green-800">
<span class="en">Admin Login</span>
<span class="amharic hidden">የአስተዳዳሪ መግቢያ</span>
</h2>
<div class="w-16 h-1 bg-green-600"></div>
</div>
<form id="adminLoginForm" class="space-y-4 max-w-md mx-auto">
<div>
<label for="adminUsername" class="block text-sm font-medium text-gray-700 mb-1">
<span class="en">Username</span>
<span class="amharic hidden">የተጠቃሚ ስም</span>
</label>
<input type="text" id="adminUsername" name="adminUsername" required
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500">
</div>
<div>
<label for="adminPassword" class="block text-sm font-medium text-gray-700 mb-1">
<span class="en">Password</span>
<span class="amharic hidden">የይለፍ ቃል</span>
</label>
<input type="password" id="adminPassword" name="adminPassword" required
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500">
</div>
<div class="pt-2">
<button type="submit" class="w-full px-6 py-2 bg-green-700 text-white rounded-md hover:bg-green-800 transition focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2">
<span class="en">Login</span>
<span class="amharic hidden">ግባ</span>
</button>
</div>
</form>
</section>
<!-- Admin Dashboard (Hidden by default) -->
<section id="adminDashboard" class="hidden bg-white rounded-lg shadow-md p-6 mb-8 fade-in">
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-bold text-green-800">
<span class="en">Admin Dashboard</span>
<span class="amharic hidden">የአስተዳዳሪ ዳሽቦርድ</span>
</h2>
<div class="flex items-center space-x-4">
<button id="logoutBtn" class="px-4 py-1 bg-red-600 text-white rounded-md hover:bg-red-700 transition">
<span class="en">Logout</span>
<span class="amharic hidden">ውጣ</span>
</button>
<button id="toggleSidebarBtn" class="md:hidden px-3 py-1 bg-gray-200 rounded-md">
<i class="fas fa-bars"></i>
</button>
</div>
</div>
<div class="flex flex-col md:flex-row">
<!-- Sidebar -->
<div id="sidebar" class="sidebar w-full md:w-64 bg-gray-100 rounded-lg p-4 mb-4 md:mb-0 md:mr-4">
<div class="mb-6">
<h3 class="text-lg font-semibold text-green-800 mb-2">
<span class="en">Quick Actions</span>
<span class="amharic hidden">ፈጣን እርምጃዎች</span>
</h3>
<ul class="space-y-2">
<li>
<button id="viewRegistrationsBtn" class="w-full text-left px-3 py-2 bg-green-700 text-white rounded-md hover:bg-green-800 transition">
<i class="fas fa-child mr-2"></i>
<span class="en">View Registrations</span>
<span class="amharic hidden">ምዝገቦችን ይመልከቱ</span>
</button>
</li>
<li>
<button id="addAdminBtn" class="w-full text-left px-3 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 transition">
<i class="fas fa-user-plus mr-2"></i>
<span class="en">Add Admin</span>
<span class="amharic hidden">አስተዳዳሪ ያክሉ</span>
</button>
</li>
<li>
<button id="exportDataBtn" class="w-full text-left px-3 py-2 bg-purple-600 text-white rounded-md hover:bg-purple-700 transition">
<i class="fas fa-file-export mr-2"></i>
<span class="en">Export Data</span>
<span class="amharic hidden">ውሂብ ወደ ውጪ ይላኩ</span>
</button>
</li>
</ul>
</div>
<div>
<h3 class="text-lg font-semibold text-green-800 mb-2">
<span class="en">Statistics</span>
<span class="amharic hidden">ስታቲስቲክስ</span>
</h3>
<div class="bg-white rounded-lg p-3 shadow-sm">
<div class="flex justify-between mb-2">
<span class="text-sm font-medium text-gray-600 en">Total Children:</span>
<span class="text-sm font-medium text-gray-600 amharic hidden">ጠቅላላ ህፃናት:</span>
<span id="totalChildren" class="text-sm font-bold">0</span>
</div>
<div class="flex justify-between mb-2">
<span class="text-sm font-medium text-gray-600 en">Male:</span>
<span class="text-sm font-medium text-gray-600 amharic hidden">ወንድ:</span>
<span id="maleChildren" class="text-sm font-bold">0</span>
</div>
<div class="flex justify-between">
<span class="text-sm font-medium text-gray-600 en">Female:</span>
<span class="text-sm font-medium text-gray-600 amharic hidden">ሴት:</span>
<span id="femaleChildren" class="text-sm font-bold">0</span>
</div>
</div>
</div>
</div>
<!-- Main Content Area -->
<div class="flex-1">
<!-- View Registrations -->
<div id="registrationsView">
<div class="flex justify-between items-center mb-4">
<h3 class="text-xl font-semibold text-green-800">
<span class="en">Registered Children</span>
<span class="amharic hidden">የተመዘገቡ ህፃናት</span>
</h3>
<div class="relative">
<input type="text" id="searchInput" placeholder="Search..."
class="pl-8 pr-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500">
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
</div>
</div>
<div class="overflow-x-auto">
<table class="min-w-full bg-white rounded-lg overflow-hidden">
<thead class="bg-green-700 text-white">
<tr>
<th class="py-3 px-4 text-left">
<span class="en">Child Name</span>
<span class="amharic hidden">የህፃን ስም</span>
</th>
<th class="py-3 px-4 text-left">
<span class="en">Age</span>
<span class="amharic hidden">ዕድሜ</span>
</th>
<th class="py-3 px-4 text-left">
<span class="en">Parent</span>
<span class="amharic hidden">ወላጅ</span>
</th>
<th class="py-3 px-4 text-left">
<span class="en">Phone</span>
<span class="amharic hidden">ስልክ</span>
</th>
<th class="py-3 px-4 text-left">
<span class="en">Actions</span>
<span class="amharic hidden">ድርጊቶች</span>
</th>
</tr>
</thead>
<tbody id="registrationsTableBody" class="divide-y divide-gray-200">
<!-- Data will be populated here -->
</tbody>
</table>
</div>
<div class="mt-4 flex justify-between items-center">
<div class="text-sm text-gray-600">
<span class="en">Showing</span>
<span class="amharic hidden">በማሳየት ላይ</span>
<span id="startItem" class="font-medium">1</span>
<span class="en">to</span>
<span class="amharic hidden">እስከ</span>
<span id="endItem" class="font-medium">10</span>
<span class="en">of</span>
<span class="amharic hidden">ከ</span>
<span id="totalItems" class="font-medium">0</span>
<span class="en">entries</span>
<span class="amharic hidden">መዝገቦች</span>
</div>
<div class="flex space-x-2">
<button id="prevPageBtn" class="px-3 py-1 border border-gray-300 rounded-md disabled:opacity-50" disabled>
<span class="en">Previous</span>
<span class="amharic hidden">ቀዳሚ</span>
</button>
<button id="nextPageBtn" class="px-3 py-1 border border-gray-300 rounded-md disabled:opacity-50" disabled>
<span class="en">Next</span>
<span class="amharic hidden">ቀጣይ</span>
</button>
</div>
</div>
</div>
<!-- Add Admin Form (Hidden by default) -->
<div id="addAdminView" class="hidden">
<h3 class="text-xl font-semibold text-green-800 mb-4">
<span class="en">Add New Admin</span>
<span class="amharic hidden">አዲስ አስተዳዳሪ ያክሉ</span>
</h3>
<form id="addAdminForm" class="space-y-4 max-w-lg">
<div>
<label for="newAdminUsername" class="block text-sm font-medium text-gray-700 mb-1">
<span class="en">Username</span>
<span class="amharic hidden">የተጠቃሚ ስም</span>
</label>
<input type="text" id="newAdminUsername" name="newAdminUsername" required
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500">
</div>
<div>
<label for="newAdminPassword" class="block text-sm font-medium text-gray-700 mb-1">
<span class="en">Password</span>
<span class="amharic hidden">የይለፍ ቃል</span>
</label>
<input type="password" id="newAdminPassword" name="newAdminPassword" required
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500">
</div>
<div>
<label for="confirmAdminPassword" class="block text-sm font-medium text-gray-700 mb-1">
<span class="en">Confirm Password</span>
<span class="amharic hidden">የይለፍ ቃል ያረጋግጡ</span>
</label>
<input type="password" id="confirmAdminPassword" name="confirmAdminPassword" required
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500">
</div>
<div class="pt-2">
<button type="submit" class="px-6 py-2 bg-green-700 text-white rounded-md hover:bg-green-800 transition focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2">
<span class="en">Add Admin</span>
<span class="amharic hidden">አስተዳዳሪ ያክሉ</span>
</button>
<button type="button" id="cancelAddAdminBtn" class="ml-4 px-6 py-2 bg-gray-300 text-gray-700 rounded-md hover:bg-gray-400 transition">
<span class="en">Cancel</span>
<span class="amharic hidden">ሰርዝ</span>
</button>
</div>
</form>
</div>
</div>
</div>
</section>
<!-- Registration Success Modal -->
<div id="successModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
<div class="bg-white rounded-lg p-6 max-w-md w-full mx-4">
<div class="text-center">
<div class="mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-green-100">
<i class="fas fa-check text-green-600"></i>
</div>
<h3 class="text-lg font-medium text-gray-900 mt-3">
<span class="en">Registration Successful!</span>
<span class="amharic hidden">ምዝገባው በተሳካ ሁኔታ ተጠናቅቋል!</span>
</h3>
<div class="mt-2 text-sm text-gray-500">
<p class="en">
Thank you for registering your child. We will contact you soon with further details.
</p>
<p class="amharic hidden">
ልጅዎን ስለመዝገቡ እናመሰግናለን። በቅርቡ ተጨማሪ ዝርዝሮችን እናግኝዎታለን።
</p>
</div>
<div class="mt-4">
<button id="closeSuccessModal" type="button" class="px-4 py-2 bg-green-600 text-white rounded-md hover:bg-green-700 transition">
<span class="en">Close</span>
<span class="amharic hidden">ዝጋ</span>
</button>
</div>
</div>
</div>
</div>
<!-- Child Details Modal -->
<div id="childDetailsModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
<div class="bg-white rounded-lg p-6 max-w-2xl w-full mx-4 max-h-[90vh] overflow-y-auto">
<div class="flex justify-between items-start">
<h3 class="text-xl font-bold text-green-800">
<span class="en">Child Details</span>
<span class="amharic hidden">የህፃን ዝርዝሮች</span>
</h3>
<button id="closeChildDetailsModal" class="text-gray-500 hover:text-gray-700">
<i class="fas fa-times"></i>
</button>
</div>
<div class="mt-6 grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<h4 class="font-semibold text-green-700 mb-2">
<span class="en">Child Information</span>
<span class="amharic hidden">የህፃን መረጃ</span>
</h4>
<div class="space-y-2">
<p><span class="font-medium en">Name:</span><span class="font-medium amharic hidden">ስም:</span> <span id="detailChildName"></span></p>
<p><span class="font-medium en">Gender:</span><span class="font-medium amharic hidden">ጾታ:</span> <span id="detailGender"></span></p>
<p><span class="font-medium en">Date of Birth:</span><span class="font-medium amharic hidden">የልደት ቀን:</span> <span id="detailDob"></span></p>
<p><span class="font-medium en">Age:</span><span class="font-medium amharic hidden">ዕድሜ:</span> <span id="detailAge"></span> <span class="en">months</span><span class="amharic hidden">ወራት</span></p>
</div>
</div>
<div>
<h4 class="font-semibold text-green-700 mb-2">
<span class="en">Parent Information</span>
<span class="amharic hidden">የወላጅ መረጃ</span>
</h4>
<div class="space-y-2">
<p><span class="font-medium en">Name:</span><span class="font-medium amharic hidden">ስም:</span> <span id="detailParentName"></span></p>
<p><span class="font-medium en">Relationship:</span><span class="font-medium amharic hidden">ዝምድና:</span> <span id="detailRelationship"></span></p>
<p><span class="font-medium en">Phone:</span><span class="font-medium amharic hidden">ስልክ:</span> <span id="detailPhone"></span></p>
<p><span class="font-medium en">Email:</span><span class="font-medium amharic hidden">ኢሜይል:</span> <span id="detailEmail"></span></p>
</div>
</div>
<div>
<h4 class="font-semibold text-green-700 mb-2">
<span class="en">Address</span>
<span class="amharic hidden">አድራሻ</span>
</h4>
<p id="detailAddress" class="whitespace-pre-line"></p>
</div>
<div>
<h4 class="font-semibold text-green-700 mb-2">
<span class="en">Health Information</span>
<span class="amharic hidden">የጤና መረጃ</span>
</h4>
<div class="space-y-2">
<p><span class="font-medium en">Special Needs:</span><span class="font-medium amharic hidden">ልዩ ፍላጎቶች:</span> <span id="detailSpecialNeeds" class="en">None</span><span id="detailSpecialNeedsAm" class="amharic hidden">የለም</span></p>
<p><span class="font-medium en">Allergies:</span><span class="font-medium amharic hidden">አለርጂ:</span> <span id="detailAllergies" class="en">None</span><span id="detailAllergiesAm" class="amharic hidden">የለም</span></p>
<p><span class="font-medium en">Emergency Contact:</span><span class="font-medium amharic hidden">የአደጋ ሰዓት አደጋ:</span> <span id="detailEmergencyContact"></span></p>
</div>
</div>
</div>
<div class="mt-6 flex justify-end">
<button id="printChildDetails" class="px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 transition mr-2">
<i class="fas fa-print mr-2"></i>
<span class="en">Print</span>
<span class="amharic hidden">ማተም</span>
</button>
<button id="closeChildDetailsBtn" class="px-4 py-2 bg-gray-300 text-gray-700 rounded-md hover:bg-gray-400 transition">
<span class="en">Close</span>
<span class="amharic hidden">ዝጋ</span>
</button>
</div>
</div>
</div>
</main>
<!-- Footer -->
<footer class="bg-green-800 text-white py-6">
<div class="container mx-auto px-4">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="mb-4 md:mb-0">
<div class="flex items-center space-x-2">
<i class="fas fa-child-reaching text-2xl"></i>
<h2 class="text-xl font-bold">የኢትዮጵያ የህፃናት እንክብካቤ ማዕከል</h2>
</div>
<p class="text-sm mt-2 en">
Providing quality childcare services in Ethiopia
</p>
<p class="text-sm mt-2 amharic hidden">
በኢትዮጵያ ውስጥ ጥራት ያለው የህፃናት እንክብካቤ አገልግሎት በመስጠት ላይ
</p>
</div>
<div class="flex space-x-6">
<a href="#" class="hover:text-green-300 transition">
<i class="fab fa-facebook-f"></i>
</a>
<a href="#" class="hover:text-green-300 transition">
<i class="fab fa-twitter"></i>
</a>
<a href="#" class="hover:text-green
</html>