115 lines
5.9 KiB
PHP
115 lines
5.9 KiB
PHP
<?php
|
|
|
|
namespace App\Views;
|
|
|
|
use App\Core\Database;
|
|
|
|
class SchoolAdminPortal
|
|
{
|
|
public static function render(): string
|
|
{
|
|
ob_start();
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="ar" dir="rtl">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>لوحة إدارة المدرسة والمؤسسات الشريكة — منصة صَقِل</title>
|
|
<link rel="icon" type="image/jpeg" href="/assets/images/saqel_logo.jpg">
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet">
|
|
<style>
|
|
:root {
|
|
--bg-base: #0B0F19;
|
|
--bg-card: rgba(22, 27, 34, 0.85);
|
|
--border: rgba(255, 255, 255, 0.08);
|
|
--accent-cyan: #00F5D4;
|
|
--accent-gold: #FFD166;
|
|
--accent-purple: #7B2CBF;
|
|
--text-primary: #F8FAFC;
|
|
--text-secondary: #94A3B8;
|
|
--text-muted: #64748B;
|
|
}
|
|
|
|
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Alexandria', sans-serif; }
|
|
body { background-color: var(--bg-base); color: var(--text-primary); min-height: 100vh; }
|
|
|
|
header {
|
|
background: rgba(11, 15, 25, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
|
|
border-bottom: 1px solid var(--border); padding: 12px 24px; position: sticky; top: 0; z-index: 100;
|
|
}
|
|
.header-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
|
|
|
|
.container { max-width: 1200px; margin: 30px auto; padding: 0 20px; }
|
|
|
|
.card {
|
|
background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 24px; margin-bottom: 20px;
|
|
backdrop-filter: blur(16px);
|
|
}
|
|
.btn-primary {
|
|
background: linear-gradient(135deg, #0284C7, #0369A1); color: #FFF; border: none; padding: 10px 20px;
|
|
border-radius: 12px; font-size: 13px; font-weight: 700; cursor: pointer;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<header>
|
|
<div class="header-content">
|
|
<div style="display: flex; align-items: center; gap: 10px;">
|
|
<img src="/assets/images/saqel_logo.jpg" alt="صَقِل" style="width: 36px; height: 36px; border-radius: 10px;">
|
|
<span style="font-weight: 800; font-size: 18px; color: #FFF;">صَقِل Enterprise</span>
|
|
<span style="font-size: 11px; font-weight: 700; color: var(--accent-cyan); background: rgba(0,245,212,0.1); padding: 2px 8px; border-radius: 980px;">لوحة إدارة المدارس والمؤسسات 🏫</span>
|
|
</div>
|
|
<span style="font-size: 12px; color: var(--text-muted);">إدارة كشوفات المدارس والاشتراكات المؤسسية</span>
|
|
</div>
|
|
</header>
|
|
|
|
<div class="container">
|
|
<div class="card" style="background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));">
|
|
<h2 style="font-size: 22px; font-weight: 900; color: #FFF; margin-bottom: 8px;">استيراد واعتماد كشوفات الطلاب الرقمية (School Roster Ingestion) 📋</h2>
|
|
<p style="font-size: 13px; color: var(--text-secondary); max-width: 700px; margin-bottom: 20px;">
|
|
يتيح هذا النظام لمدراء المدارس الخاصة ومدارس الثقافة العسكرية رفع كشوفات الطلاب المعتمدة (Excel/CSV) التي تحتوي على الأرقام الوطنية، ليتم تفعيل حساباتهم وموادهم تلقائياً فور دخولهم للمنصة.
|
|
</p>
|
|
|
|
<div style="display: flex; gap: 14px; align-items: center; flex-wrap: wrap;">
|
|
<input type="file" id="roster_file_input" accept=".csv, .xlsx, .xls" style="display: none;" onchange="handleRosterFileSelect(this)">
|
|
<button type="button" onclick="document.getElementById('roster_file_input').click()" class="btn-primary">
|
|
📤 رفع كشف طلاب جديد (Excel / CSV)
|
|
</button>
|
|
<span id="selected_roster_name" style="font-size: 12.5px; color: var(--accent-cyan);"></span>
|
|
</div>
|
|
</div>
|
|
|
|
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-bottom: 24px;">
|
|
<div class="card">
|
|
<span style="font-size: 11.5px; color: var(--text-muted); display: block; margin-bottom: 4px;">المدارس الشريكة النشطة</span>
|
|
<span style="font-size: 28px; font-weight: 900; color: var(--accent-cyan);">12 مدرسة</span>
|
|
</div>
|
|
<div class="card">
|
|
<span style="font-size: 11.5px; color: var(--text-muted); display: block; margin-bottom: 4px;">إجمالي الطلاب المعتمدين بالكشوفات</span>
|
|
<span style="font-size: 28px; font-weight: 900; color: var(--accent-gold);">4,850 طالب</span>
|
|
</div>
|
|
<div class="card">
|
|
<span style="font-size: 11.5px; color: var(--text-muted); display: block; margin-bottom: 4px;">نسبة تفعيل الحسابات بالرقم الوطني</span>
|
|
<span style="font-size: 28px; font-weight: 900; color: #10B981;">91.4%</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
function handleRosterFileSelect(input) {
|
|
if (input.files && input.files[0]) {
|
|
document.getElementById('selected_roster_name').textContent = `✅ تم اختيار الملف: ${input.files[0].name} — جاهز للاستيراد والمطابقة`;
|
|
}
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|
|
<?php
|
|
return ob_get_clean();
|
|
}
|
|
}
|