Add 3 files
Browse files- README.md +7 -5
- index.html +766 -19
- prompts.txt +2 -0
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: same-com
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: green
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,766 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="ar" dir="rtl">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>نظام المحاسبة المتكامل</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
| 10 |
+
<style>
|
| 11 |
+
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');
|
| 12 |
+
|
| 13 |
+
body {
|
| 14 |
+
font-family: 'Tajawal', sans-serif;
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
.sidebar {
|
| 18 |
+
transition: all 0.3s ease;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
.sidebar.collapsed {
|
| 22 |
+
width: 70px;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
.sidebar.collapsed .sidebar-text {
|
| 26 |
+
display: none;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
.sidebar.collapsed .logo-text {
|
| 30 |
+
display: none;
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
.sidebar.collapsed .menu-item {
|
| 34 |
+
justify-content: center;
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
.content-area {
|
| 38 |
+
transition: all 0.3s ease;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
.content-area.expanded {
|
| 42 |
+
margin-right: 70px;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
.rtl-dir {
|
| 46 |
+
direction: rtl;
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
.ltr-dir {
|
| 50 |
+
direction: ltr;
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
.invoice-table th {
|
| 54 |
+
background-color: #f3f4f6;
|
| 55 |
+
font-weight: 600;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
.invoice-table tr:nth-child(even) {
|
| 59 |
+
background-color: #f9fafb;
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
.language-switcher {
|
| 63 |
+
transition: all 0.3s ease;
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
.language-switcher:hover {
|
| 67 |
+
transform: scale(1.1);
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
.dashboard-card:hover {
|
| 71 |
+
transform: translateY(-5px);
|
| 72 |
+
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
.print-only {
|
| 76 |
+
display: none;
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
@media print {
|
| 80 |
+
.no-print {
|
| 81 |
+
display: none;
|
| 82 |
+
}
|
| 83 |
+
.print-only {
|
| 84 |
+
display: block;
|
| 85 |
+
}
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
/* Login Page Styles */
|
| 89 |
+
.login-container {
|
| 90 |
+
background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
.login-card {
|
| 94 |
+
backdrop-filter: blur(10px);
|
| 95 |
+
background: rgba(255, 255, 255, 0.1);
|
| 96 |
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
+
.input-group {
|
| 100 |
+
position: relative;
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
.input-group input {
|
| 104 |
+
padding-right: 40px;
|
| 105 |
+
}
|
| 106 |
+
|
| 107 |
+
.input-group i {
|
| 108 |
+
position: absolute;
|
| 109 |
+
right: 15px;
|
| 110 |
+
top: 50%;
|
| 111 |
+
transform: translateY(-50%);
|
| 112 |
+
color: #6b7280;
|
| 113 |
+
}
|
| 114 |
+
|
| 115 |
+
.auth-divider {
|
| 116 |
+
display: flex;
|
| 117 |
+
align-items: center;
|
| 118 |
+
margin: 20px 0;
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
.auth-divider::before, .auth-divider::after {
|
| 122 |
+
content: "";
|
| 123 |
+
flex: 1;
|
| 124 |
+
border-bottom: 1px solid #e5e7eb;
|
| 125 |
+
}
|
| 126 |
+
|
| 127 |
+
.auth-divider span {
|
| 128 |
+
padding: 0 10px;
|
| 129 |
+
color: #6b7280;
|
| 130 |
+
font-size: 14px;
|
| 131 |
+
}
|
| 132 |
+
</style>
|
| 133 |
+
</head>
|
| 134 |
+
<body class="bg-gray-50">
|
| 135 |
+
<!-- Login Page (Initially visible) -->
|
| 136 |
+
<div id="login-page" class="min-h-screen flex items-center justify-center login-container p-4">
|
| 137 |
+
<div class="w-full max-w-md">
|
| 138 |
+
<div class="login-card rounded-xl shadow-xl overflow-hidden p-8">
|
| 139 |
+
<div class="text-center mb-8">
|
| 140 |
+
<div class="w-20 h-20 bg-white rounded-full flex items-center justify-center mx-auto mb-4">
|
| 141 |
+
<i class="fas fa-calculator text-blue-600 text-3xl"></i>
|
| 142 |
+
</div>
|
| 143 |
+
<h1 class="text-2xl font-bold text-white">نظام المحاسبة المتكامل</h1>
|
| 144 |
+
<p class="text-blue-100 mt-2">سجل الدخول للوصول إلى لوحة التحكم</p>
|
| 145 |
+
</div>
|
| 146 |
+
|
| 147 |
+
<form id="login-form" class="space-y-6">
|
| 148 |
+
<div class="input-group">
|
| 149 |
+
<label for="username" class="block text-sm font-medium text-white">اسم المستخدم</label>
|
| 150 |
+
<div class="mt-1 relative rounded-md shadow-sm">
|
| 151 |
+
<input type="text" id="username" name="username" required class="py-3 px-4 block w-full rounded-md border-gray-300 focus:border-blue-500 focus:ring-blue-500" placeholder="أدخل اسم المستخدم">
|
| 152 |
+
<i class="fas fa-user"></i>
|
| 153 |
+
</div>
|
| 154 |
+
</div>
|
| 155 |
+
|
| 156 |
+
<div class="input-group">
|
| 157 |
+
<label for="password" class="block text-sm font-medium text-white">كلمة المرور</label>
|
| 158 |
+
<div class="mt-1 relative rounded-md shadow-sm">
|
| 159 |
+
<input type="password" id="password" name="password" required class="py-3 px-4 block w-full rounded-md border-gray-300 focus:border-blue-500 focus:ring-blue-500" placeholder="أدخل كلمة المرور">
|
| 160 |
+
<i class="fas fa-lock"></i>
|
| 161 |
+
</div>
|
| 162 |
+
</div>
|
| 163 |
+
|
| 164 |
+
<div class="flex items-center justify-between">
|
| 165 |
+
<div class="flex items-center">
|
| 166 |
+
<input id="remember-me" name="remember-me" type="checkbox" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
|
| 167 |
+
<label for="remember-me" class="mr-2 block text-sm text-white">تذكرني</label>
|
| 168 |
+
</div>
|
| 169 |
+
|
| 170 |
+
<div class="text-sm">
|
| 171 |
+
<a href="#" id="forgot-password" class="font-medium text-blue-200 hover:text-white">نسيت كلمة المرور؟</a>
|
| 172 |
+
</div>
|
| 173 |
+
</div>
|
| 174 |
+
|
| 175 |
+
<div>
|
| 176 |
+
<button type="submit" class="w-full flex justify-center py-3 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
|
| 177 |
+
تسجيل الدخول
|
| 178 |
+
</button>
|
| 179 |
+
</div>
|
| 180 |
+
</form>
|
| 181 |
+
|
| 182 |
+
<div class="auth-divider">
|
| 183 |
+
<span>أو</span>
|
| 184 |
+
</div>
|
| 185 |
+
|
| 186 |
+
<div class="text-center text-sm text-white">
|
| 187 |
+
ليس لديك حساب؟ <a href="#" id="show-signup" class="font-medium text-blue-200 hover:text-white">إنشاء حساب جديد</a>
|
| 188 |
+
</div>
|
| 189 |
+
</div>
|
| 190 |
+
</div>
|
| 191 |
+
</div>
|
| 192 |
+
|
| 193 |
+
<!-- Signup Page (Initially hidden) -->
|
| 194 |
+
<div id="signup-page" class="min-h-screen flex items-center justify-center login-container p-4 hidden">
|
| 195 |
+
<div class="w-full max-w-md">
|
| 196 |
+
<div class="login-card rounded-xl shadow-xl overflow-hidden p-8">
|
| 197 |
+
<div class="text-center mb-8">
|
| 198 |
+
<div class="w-20 h-20 bg-white rounded-full flex items-center justify-center mx-auto mb-4">
|
| 199 |
+
<i class="fas fa-user-plus text-blue-600 text-3xl"></i>
|
| 200 |
+
</div>
|
| 201 |
+
<h1 class="text-2xl font-bold text-white">إنشاء حساب جديد</h1>
|
| 202 |
+
<p class="text-blue-100 mt-2">املأ النموذج للتسجيل في النظام</p>
|
| 203 |
+
</div>
|
| 204 |
+
|
| 205 |
+
<form id="signup-form" class="space-y-6">
|
| 206 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
| 207 |
+
<div class="input-group">
|
| 208 |
+
<label for="first-name" class="block text-sm font-medium text-white">الاسم الأول</label>
|
| 209 |
+
<div class="mt-1 relative rounded-md shadow-sm">
|
| 210 |
+
<input type="text" id="first-name" name="first-name" required class="py-3 px-4 block w-full rounded-md border-gray-300 focus:border-blue-500 focus:ring-blue-500" placeholder="الاسم الأول">
|
| 211 |
+
<i class="fas fa-user"></i>
|
| 212 |
+
</div>
|
| 213 |
+
</div>
|
| 214 |
+
|
| 215 |
+
<div class="input-group">
|
| 216 |
+
<label for="last-name" class="block text-sm font-medium text-white">الاسم الأخير</label>
|
| 217 |
+
<div class="mt-1 relative rounded-md shadow-sm">
|
| 218 |
+
<input type="text" id="last-name" name="last-name" required class="py-3 px-4 block w-full rounded-md border-gray-300 focus:border-blue-500 focus:ring-blue-500" placeholder="الاسم الأخير">
|
| 219 |
+
<i class="fas fa-user"></i>
|
| 220 |
+
</div>
|
| 221 |
+
</div>
|
| 222 |
+
</div>
|
| 223 |
+
|
| 224 |
+
<div class="input-group">
|
| 225 |
+
<label for="signup-username" class="block text-sm font-medium text-white">اسم المستخدم</label>
|
| 226 |
+
<div class="mt-1 relative rounded-md shadow-sm">
|
| 227 |
+
<input type="text" id="signup-username" name="signup-username" required class="py-3 px-4 block w-full rounded-md border-gray-300 focus:border-blue-500 focus:ring-blue-500" placeholder="اختر اسم مستخدم">
|
| 228 |
+
<i class="fas fa-at"></i>
|
| 229 |
+
</div>
|
| 230 |
+
</div>
|
| 231 |
+
|
| 232 |
+
<div class="input-group">
|
| 233 |
+
<label for="signup-email" class="block text-sm font-medium text-white">البريد الإلكتروني</label>
|
| 234 |
+
<div class="mt-1 relative rounded-md shadow-sm">
|
| 235 |
+
<input type="email" id="signup-email" name="signup-email" required class="py-3 px-4 block w-full rounded-md border-gray-300 focus:border-blue-500 focus:ring-blue-500" placeholder="أدخل بريدك الإلكتروني">
|
| 236 |
+
<i class="fas fa-envelope"></i>
|
| 237 |
+
</div>
|
| 238 |
+
</div>
|
| 239 |
+
|
| 240 |
+
<div class="input-group">
|
| 241 |
+
<label for="signup-password" class="block text-sm font-medium text-white">كلمة المرور</label>
|
| 242 |
+
<div class="mt-1 relative rounded-md shadow-sm">
|
| 243 |
+
<input type="password" id="signup-password" name="signup-password" required class="py-3 px-4 block w-full rounded-md border-gray-300 focus:border-blue-500 focus:ring-blue-500" placeholder="كلمة المرور (8 أحرف على الأقل)">
|
| 244 |
+
<i class="fas fa-lock"></i>
|
| 245 |
+
</div>
|
| 246 |
+
</div>
|
| 247 |
+
|
| 248 |
+
<div class="input-group">
|
| 249 |
+
<label for="confirm-password" class="block text-sm font-medium text-white">تأكيد كلمة المرور</label>
|
| 250 |
+
<div class="mt-1 relative rounded-md shadow-sm">
|
| 251 |
+
<input type="password" id="confirm-password" name="confirm-password" required class="py-3 px-4 block w-full rounded-md border-gray-300 focus:border-blue-500 focus:ring-blue-500" placeholder="أعد إدخال كلمة المرور">
|
| 252 |
+
<i class="fas fa-lock"></i>
|
| 253 |
+
</div>
|
| 254 |
+
</div>
|
| 255 |
+
|
| 256 |
+
<div class="input-group">
|
| 257 |
+
<label for="user-role" class="block text-sm font-medium text-white">الدور</label>
|
| 258 |
+
<div class="mt-1">
|
| 259 |
+
<select id="user-role" name="user-role" class="py-3 px-4 block w-full rounded-md border-gray-300 focus:border-blue-500 focus:ring-blue-500">
|
| 260 |
+
<option value="viewer">مشاهد فقط</option>
|
| 261 |
+
<option value="accountant">محاسب</option>
|
| 262 |
+
<option value="admin">مدير</option>
|
| 263 |
+
</select>
|
| 264 |
+
</div>
|
| 265 |
+
</div>
|
| 266 |
+
|
| 267 |
+
<div class="flex items-center">
|
| 268 |
+
<input id="terms" name="terms" type="checkbox" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
|
| 269 |
+
<label for="terms" class="mr-2 block text-sm text-white">أوافق على <a href="#" class="text-blue-200 hover:text-white">الشروط والأحكام</a></label>
|
| 270 |
+
</div>
|
| 271 |
+
|
| 272 |
+
<div>
|
| 273 |
+
<button type="submit" class="w-full flex justify-center py-3 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
|
| 274 |
+
إنشاء الحساب
|
| 275 |
+
</button>
|
| 276 |
+
</div>
|
| 277 |
+
</form>
|
| 278 |
+
|
| 279 |
+
<div class="text-center mt-6 text-sm text-white">
|
| 280 |
+
لديك حساب بالفعل؟ <a href="#" id="show-login" class="font-medium text-blue-200 hover:text-white">سجل الدخول هنا</a>
|
| 281 |
+
</div>
|
| 282 |
+
</div>
|
| 283 |
+
</div>
|
| 284 |
+
</div>
|
| 285 |
+
|
| 286 |
+
<!-- Forgot Password Page (Initially hidden) -->
|
| 287 |
+
<div id="forgot-password-page" class="min-h-screen flex items-center justify-center login-container p-4 hidden">
|
| 288 |
+
<div class="w-full max-w-md">
|
| 289 |
+
<div class="login-card rounded-xl shadow-xl overflow-hidden p-8">
|
| 290 |
+
<div class="text-center mb-8">
|
| 291 |
+
<div class="w-20 h-20 bg-white rounded-full flex items-center justify-center mx-auto mb-4">
|
| 292 |
+
<i class="fas fa-key text-blue-600 text-3xl"></i>
|
| 293 |
+
</div>
|
| 294 |
+
<h1 class="text-2xl font-bold text-white">إعادة تعيين كلمة المرور</h1>
|
| 295 |
+
<p class="text-blue-100 mt-2">أدخل بريدك الإلكتروني لإرسال رابط إعادة التعيين</p>
|
| 296 |
+
</div>
|
| 297 |
+
|
| 298 |
+
<form id="forgot-password-form" class="space-y-6">
|
| 299 |
+
<div class="input-group">
|
| 300 |
+
<label for="reset-email" class="block text-sm font-medium text-white">البريد الإلكتروني</label>
|
| 301 |
+
<div class="mt-1 relative rounded-md shadow-sm">
|
| 302 |
+
<input type="email" id="reset-email" name="reset-email" required class="py-3 px-4 block w-full rounded-md border-gray-300 focus:border-blue-500 focus:ring-blue-500" placeholder="أدخل بريدك الإلكتروني">
|
| 303 |
+
<i class="fas fa-envelope"></i>
|
| 304 |
+
</div>
|
| 305 |
+
</div>
|
| 306 |
+
|
| 307 |
+
<div>
|
| 308 |
+
<button type="submit" class="w-full flex justify-center py-3 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
|
| 309 |
+
إرسال رابط التعيين
|
| 310 |
+
</button>
|
| 311 |
+
</div>
|
| 312 |
+
</form>
|
| 313 |
+
|
| 314 |
+
<div class="text-center mt-6 text-sm text-white">
|
| 315 |
+
تذكرت كلمة المرور؟ <a href="#" id="show-login-from-forgot" class="font-medium text-blue-200 hover:text-white">سجل الدخول هنا</a>
|
| 316 |
+
</div>
|
| 317 |
+
</div>
|
| 318 |
+
</div>
|
| 319 |
+
</div>
|
| 320 |
+
|
| 321 |
+
<!-- Main App (Initially hidden) -->
|
| 322 |
+
<div id="app-container" class="hidden">
|
| 323 |
+
<!-- Main Container -->
|
| 324 |
+
<div class="flex h-screen overflow-hidden">
|
| 325 |
+
<!-- Sidebar -->
|
| 326 |
+
<div class="sidebar bg-blue-800 text-white w-64 flex flex-col" id="sidebar">
|
| 327 |
+
<!-- Logo -->
|
| 328 |
+
<div class="p-4 flex items-center border-b border-blue-700">
|
| 329 |
+
<div class="bg-white p-2 rounded-lg">
|
| 330 |
+
<i class="fas fa-calculator text-blue-800 text-xl"></i>
|
| 331 |
+
</div>
|
| 332 |
+
<span class="logo-text mr-3 text-xl font-bold">نظام المحاسبة</span>
|
| 333 |
+
</div>
|
| 334 |
+
|
| 335 |
+
<!-- User Profile -->
|
| 336 |
+
<div class="p-4 flex items-center border-b border-blue-700">
|
| 337 |
+
<div class="h-10 w-10 rounded-full bg-blue-600 flex items-center justify-center">
|
| 338 |
+
<i class="fas fa-user"></i>
|
| 339 |
+
</div>
|
| 340 |
+
<div class="mr-3 sidebar-text">
|
| 341 |
+
<div class="font-medium" id="current-user-name">أحمد محمد</div>
|
| 342 |
+
<div class="text-xs text-blue-200" id="current-user-role">مدير النظام</div>
|
| 343 |
+
</div>
|
| 344 |
+
</div>
|
| 345 |
+
|
| 346 |
+
<!-- Main Menu -->
|
| 347 |
+
<div class="flex-1 overflow-y-auto">
|
| 348 |
+
<div class="p-2">
|
| 349 |
+
<div class="menu-item mb-1">
|
| 350 |
+
<a href="#" class="flex items-center p-3 rounded-lg hover:bg-blue-700 w-full" id="dashboard-link">
|
| 351 |
+
<i class="fas fa-tachometer-alt"></i>
|
| 352 |
+
<span class="sidebar-text mr-3">لوحة التحكم</span>
|
| 353 |
+
</a>
|
| 354 |
+
</div>
|
| 355 |
+
|
| 356 |
+
<!-- Accounting Menu -->
|
| 357 |
+
<div class="mb-1">
|
| 358 |
+
<div class="menu-item">
|
| 359 |
+
<a href="#" class="flex items-center p-3 rounded-lg hover:bg-blue-700 w-full" id="accounting-toggle">
|
| 360 |
+
<i class="fas fa-book"></i>
|
| 361 |
+
<span class="sidebar-text mr-3">الحسابات</span>
|
| 362 |
+
<i class="fas fa-chevron-down sidebar-text mr-auto text-xs"></i>
|
| 363 |
+
</a>
|
| 364 |
+
</div>
|
| 365 |
+
<div class="accounting-submenu hidden pl-4 mt-1">
|
| 366 |
+
<div class="menu-item mb-1">
|
| 367 |
+
<a href="#" class="flex items-center p-2 rounded-lg hover:bg-blue-700 w-full" id="journal-link">
|
| 368 |
+
<i class="fas fa-file-invoice"></i>
|
| 369 |
+
<span class="sidebar-text mr-2">دفتر اليومية</span>
|
| 370 |
+
</a>
|
| 371 |
+
</div>
|
| 372 |
+
<div class="menu-item mb-1">
|
| 373 |
+
<a href="#" class="flex items-center p-2 rounded-lg hover:bg-blue-700 w-full" id="ledger-link">
|
| 374 |
+
<i class="fas fa-book-open"></i>
|
| 375 |
+
<span class="sidebar-text mr-2">دفتر الأستاذ</span>
|
| 376 |
+
</a>
|
| 377 |
+
</div>
|
| 378 |
+
<div class="menu-item mb-1">
|
| 379 |
+
<a href="#" class="flex items-center p-2 rounded-lg hover:bg-blue-700 w-full" id="trial-balance-link">
|
| 380 |
+
<i class="fas fa-balance-scale"></i>
|
| 381 |
+
<span class="sidebar-text mr-2">ميزان المراجعة</span>
|
| 382 |
+
</a>
|
| 383 |
+
</div>
|
| 384 |
+
</div>
|
| 385 |
+
</div>
|
| 386 |
+
|
| 387 |
+
<!-- Customers -->
|
| 388 |
+
<div class="menu-item mb-1">
|
| 389 |
+
<a href="#" class="flex items-center p-3 rounded-lg hover:bg-blue-700 w-full" id="customers-link">
|
| 390 |
+
<i class="fas fa-users"></i>
|
| 391 |
+
<span class="sidebar-text mr-3">العملاء</span>
|
| 392 |
+
</a>
|
| 393 |
+
</div>
|
| 394 |
+
|
| 395 |
+
<!-- Suppliers -->
|
| 396 |
+
<div class="menu-item mb-1">
|
| 397 |
+
<a href="#" class="flex items-center p-3 rounded-lg hover:bg-blue-700 w-full" id="suppliers-link">
|
| 398 |
+
<i class="fas fa-truck"></i>
|
| 399 |
+
<span class="sidebar-text mr-3">الموردين</span>
|
| 400 |
+
</a>
|
| 401 |
+
</div>
|
| 402 |
+
|
| 403 |
+
<!-- Invoices -->
|
| 404 |
+
<div class="mb-1">
|
| 405 |
+
<div class="menu-item">
|
| 406 |
+
<a href="#" class="flex items-center p-3 rounded-lg hover:bg-blue-700 w-full" id="invoices-toggle">
|
| 407 |
+
<i class="fas fa-file-invoice-dollar"></i>
|
| 408 |
+
<span class="sidebar-text mr-3">الفواتير</span>
|
| 409 |
+
<i class="fas fa-chevron-down sidebar-text mr-auto text-xs"></i>
|
| 410 |
+
</a>
|
| 411 |
+
</div>
|
| 412 |
+
<div class="invoices-submenu hidden pl-4 mt-1">
|
| 413 |
+
<div class="menu-item mb-1">
|
| 414 |
+
<a href="#" class="flex items-center p-2 rounded-lg hover:bg-blue-700 w-full" id="sales-invoices-link">
|
| 415 |
+
<i class="fas fa-file-export"></i>
|
| 416 |
+
<span class="sidebar-text mr-2">فواتير البيع</span>
|
| 417 |
+
</a>
|
| 418 |
+
</div>
|
| 419 |
+
<div class="menu-item mb-1">
|
| 420 |
+
<a href="#" class="flex items-center p-2 rounded-lg hover:bg-blue-700 w-full" id="purchase-invoices-link">
|
| 421 |
+
<i class="fas fa-file-import"></i>
|
| 422 |
+
<span class="sidebar-text mr-2">فواتير الشراء</span>
|
| 423 |
+
</a>
|
| 424 |
+
</div>
|
| 425 |
+
</div>
|
| 426 |
+
</div>
|
| 427 |
+
|
| 428 |
+
<!-- Payments -->
|
| 429 |
+
<div class="mb-1">
|
| 430 |
+
<div class="menu-item">
|
| 431 |
+
<a href="#" class="flex items-center p-3 rounded-lg hover:bg-blue-700 w-full" id="payments-toggle">
|
| 432 |
+
<i class="fas fa-money-bill-wave"></i>
|
| 433 |
+
<span class="sidebar-text mr-3">المدفوعات</span>
|
| 434 |
+
<i class="fas fa-chevron-down sidebar-text mr-auto text-xs"></i>
|
| 435 |
+
</a>
|
| 436 |
+
</div>
|
| 437 |
+
<div class="payments-submenu hidden pl-4 mt-1">
|
| 438 |
+
<div class="menu-item mb-1">
|
| 439 |
+
<a href="#" class="flex items-center p-2 rounded-lg hover:bg-blue-700 w-full" id="receivables-link">
|
| 440 |
+
<i class="fas fa-hand-holding-usd"></i>
|
| 441 |
+
<span class="sidebar-text mr-2">المقبوضات</span>
|
| 442 |
+
</a>
|
| 443 |
+
</div>
|
| 444 |
+
<div class="menu-item mb-1">
|
| 445 |
+
<a href="#" class="flex items-center p-2 rounded-lg hover:bg-blue-700 w-full" id="payables-link">
|
| 446 |
+
<i class="fas fa-money-check-alt"></i>
|
| 447 |
+
<span class="sidebar-text mr-2">المدفوعات</span>
|
| 448 |
+
</a>
|
| 449 |
+
</div>
|
| 450 |
+
</div>
|
| 451 |
+
</div>
|
| 452 |
+
|
| 453 |
+
<!-- Expenses -->
|
| 454 |
+
<div class="menu-item mb-1">
|
| 455 |
+
<a href="#" class="flex items-center p-3 rounded-lg hover:bg-blue-700 w-full" id="expenses-link">
|
| 456 |
+
<i class="fas fa-wallet"></i>
|
| 457 |
+
<span class="sidebar-text mr-3">المصاريف</span>
|
| 458 |
+
</a>
|
| 459 |
+
</div>
|
| 460 |
+
|
| 461 |
+
<!-- Reports -->
|
| 462 |
+
<div class="mb-1">
|
| 463 |
+
<div class="menu-item">
|
| 464 |
+
<a href="#" class="flex items-center p-3 rounded-lg hover:bg-blue-700 w-full" id="reports-toggle">
|
| 465 |
+
<i class="fas fa-chart-bar"></i>
|
| 466 |
+
<span class="sidebar-text mr-3">التقارير</span>
|
| 467 |
+
<i class="fas fa-chevron-down sidebar-text mr-auto text-xs"></i>
|
| 468 |
+
</a>
|
| 469 |
+
</div>
|
| 470 |
+
<div class="reports-submenu hidden pl-4 mt-1">
|
| 471 |
+
<div class="menu-item mb-1">
|
| 472 |
+
<a href="#" class="flex items-center p-2 rounded-lg hover:bg-blue-700 w-full" id="balance-sheet-link">
|
| 473 |
+
<i class="fas fa-file-alt"></i>
|
| 474 |
+
<span class="sidebar-text mr-2">الميزانية</span>
|
| 475 |
+
</a>
|
| 476 |
+
</div>
|
| 477 |
+
<div class="menu-item mb-1">
|
| 478 |
+
<a href="#" class="flex items-center p-2 rounded-lg hover:bg-blue-700 w-full" id="profit-loss-link">
|
| 479 |
+
<i class="fas fa-chart-line"></i>
|
| 480 |
+
<span class="sidebar-text mr-2">قائمة الدخل</span>
|
| 481 |
+
</a>
|
| 482 |
+
</div>
|
| 483 |
+
<div class="menu-item mb-1">
|
| 484 |
+
<a href="#" class="flex items-center p-2 rounded-lg hover:bg-blue-700 w-full" id="cash-flow-link">
|
| 485 |
+
<i class="fas fa-money-bill-alt"></i>
|
| 486 |
+
<span class="sidebar-text mr-2">التدفق النقدي</span>
|
| 487 |
+
</a>
|
| 488 |
+
</div>
|
| 489 |
+
</div>
|
| 490 |
+
</div>
|
| 491 |
+
|
| 492 |
+
<!-- User Management (Admin only) -->
|
| 493 |
+
<div class="menu-item mb-1 admin-only hidden">
|
| 494 |
+
<a href="#" class="flex items-center p-3 rounded-lg hover:bg-blue-700 w-full" id="users-link">
|
| 495 |
+
<i class="fas fa-users-cog"></i>
|
| 496 |
+
<span class="sidebar-text mr-3">إدارة المستخدمين</span>
|
| 497 |
+
</a>
|
| 498 |
+
</div>
|
| 499 |
+
|
| 500 |
+
<!-- Settings -->
|
| 501 |
+
<div class="menu-item mb-1">
|
| 502 |
+
<a href="#" class="flex items-center p-3 rounded-lg hover:bg-blue-700 w-full" id="settings-link">
|
| 503 |
+
<i class="fas fa-cog"></i>
|
| 504 |
+
<span class="sidebar-text mr-3">الإعدادات</span>
|
| 505 |
+
</a>
|
| 506 |
+
</div>
|
| 507 |
+
</div>
|
| 508 |
+
</div>
|
| 509 |
+
|
| 510 |
+
<!-- Collapse Button -->
|
| 511 |
+
<div class="p-3 border-t border-blue-700">
|
| 512 |
+
<button class="flex items-center justify-center w-full p-2 rounded-lg hover:bg-blue-700" id="collapse-btn">
|
| 513 |
+
<i class="fas fa-chevron-right"></i>
|
| 514 |
+
<span class="sidebar-text mr-2">تصغير</span>
|
| 515 |
+
</button>
|
| 516 |
+
</div>
|
| 517 |
+
</div>
|
| 518 |
+
|
| 519 |
+
<!-- Main Content Area -->
|
| 520 |
+
<div class="content-area flex-1 flex flex-col overflow-hidden" id="content-area">
|
| 521 |
+
<!-- Top Navigation -->
|
| 522 |
+
<header class="bg-white shadow-sm py-3 px-6 flex items-center justify-between">
|
| 523 |
+
<div class="flex items-center">
|
| 524 |
+
<button class="mr-4 text-gray-600 hover:text-gray-900" id="mobile-menu-btn">
|
| 525 |
+
<i class="fas fa-bars"></i>
|
| 526 |
+
</button>
|
| 527 |
+
<h1 class="text-xl font-semibold text-gray-800" id="page-title">لوحة التحكم</h1>
|
| 528 |
+
</div>
|
| 529 |
+
|
| 530 |
+
<div class="flex items-center space-x-4 rtl:space-x-reverse">
|
| 531 |
+
<!-- Language Switcher -->
|
| 532 |
+
<div class="language-switcher">
|
| 533 |
+
<button id="language-btn" class="flex items-center p-2 rounded-full hover:bg-gray-100">
|
| 534 |
+
<span class="font-medium" id="current-language">العربية</span>
|
| 535 |
+
<i class="fas fa-globe mr-2 ml-2"></i>
|
| 536 |
+
</button>
|
| 537 |
+
</div>
|
| 538 |
+
|
| 539 |
+
<!-- Notifications -->
|
| 540 |
+
<div class="relative">
|
| 541 |
+
<button class="p-2 rounded-full hover:bg-gray-100 relative" id="notifications-btn">
|
| 542 |
+
<i class="fas fa-bell"></i>
|
| 543 |
+
<span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span>
|
| 544 |
+
</button>
|
| 545 |
+
<div class="absolute hidden right-0 mt-2 w-80 bg-white rounded-md shadow-lg py-1 z-50" id="notifications-dropdown">
|
| 546 |
+
<div class="px-4 py-2 border-b">
|
| 547 |
+
<h3 class="font-medium">الإشعارات</h3>
|
| 548 |
+
</div>
|
| 549 |
+
<div class="max-h-60 overflow-y-auto">
|
| 550 |
+
<a href="#" class="block px-4 py-2 hover:bg-gray-100 border-b">
|
| 551 |
+
<div class="flex items-start">
|
| 552 |
+
<div class="bg-blue-100 p-2 rounded-full mr-2">
|
| 553 |
+
<i class="fas fa-file-invoice text-blue-600"></i>
|
| 554 |
+
</div>
|
| 555 |
+
<div>
|
| 556 |
+
<p class="font-medium">فاتورة جديدة #1254</p>
|
| 557 |
+
<p class="text-sm text-gray-500">من عميل: شركة التقنية</p>
|
| 558 |
+
<p class="text-xs text-gray-400">منذ ساعتين</p>
|
| 559 |
+
</div>
|
| 560 |
+
</div>
|
| 561 |
+
</a>
|
| 562 |
+
<a href="#" class="block px-4 py-2 hover:bg-gray-100 border-b">
|
| 563 |
+
<div class="flex items-start">
|
| 564 |
+
<div class="bg-green-100 p-2 rounded-full mr-2">
|
| 565 |
+
<i class="fas fa-money-bill-wave text-green-600"></i>
|
| 566 |
+
</div>
|
| 567 |
+
<div>
|
| 568 |
+
<p class="font-medium">دفعة مستلمة #458</p>
|
| 569 |
+
<p class="text-sm text-gray-500">من عميل: مؤسسة النور</p>
|
| 570 |
+
<p class="text-xs text-gray-400">منذ 5 ساعات</p>
|
| 571 |
+
</div>
|
| 572 |
+
</div>
|
| 573 |
+
</a>
|
| 574 |
+
<a href="#" class="block px-4 py-2 hover:bg-gray-100">
|
| 575 |
+
<div class="flex items-start">
|
| 576 |
+
<div class="bg-yellow-100 p-2 rounded-full mr-2">
|
| 577 |
+
<i class="fas fa-exclamation-triangle text-yellow-600"></i>
|
| 578 |
+
</div>
|
| 579 |
+
<div>
|
| 580 |
+
<p class="font-medium">فاتورة متأخرة #1123</p>
|
| 581 |
+
<p class="text-sm text-gray-500">من عميل: شركة الأصيل</p>
|
| 582 |
+
<p class="text-xs text-gray-400">منذ يوم</p>
|
| 583 |
+
</div>
|
| 584 |
+
</div>
|
| 585 |
+
</a>
|
| 586 |
+
</div>
|
| 587 |
+
<div class="px-4 py-2 border-t text-center">
|
| 588 |
+
<a href="#" class="text-blue-600 text-sm font-medium">عرض جميع الإشعارات</a>
|
| 589 |
+
</div>
|
| 590 |
+
</div>
|
| 591 |
+
</div>
|
| 592 |
+
|
| 593 |
+
<!-- User Dropdown -->
|
| 594 |
+
<div class="relative">
|
| 595 |
+
<button class="flex items-center space-x-2 rtl:space-x-reverse focus:outline-none" id="user-menu-btn">
|
| 596 |
+
<div class="h-8 w-8 rounded-full bg-blue-600 flex items-center justify-center text-white">
|
| 597 |
+
<i class="fas fa-user"></i>
|
| 598 |
+
</div>
|
| 599 |
+
<span class="hidden md:inline-block font-medium" id="top-user-name">أحمد محمد</span>
|
| 600 |
+
<i class="fas fa-chevron-down text-xs"></i>
|
| 601 |
+
</button>
|
| 602 |
+
<div class="absolute hidden right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-50" id="user-dropdown">
|
| 603 |
+
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100" id="profile-link">الملف الشخصي</a>
|
| 604 |
+
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100" id="settings-link-top">الإعدادات</a>
|
| 605 |
+
<div class="border-t"></div>
|
| 606 |
+
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100" id="logout-link">تسجيل الخروج</a>
|
| 607 |
+
</div>
|
| 608 |
+
</div>
|
| 609 |
+
</div>
|
| 610 |
+
</header>
|
| 611 |
+
|
| 612 |
+
<!-- Main Content -->
|
| 613 |
+
<main class="flex-1 overflow-y-auto p-6 bg-gray-50" id="main-content">
|
| 614 |
+
<!-- Dashboard Content -->
|
| 615 |
+
<div id="dashboard-content">
|
| 616 |
+
<!-- Stats Cards -->
|
| 617 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
|
| 618 |
+
<div class="dashboard-card bg-white p-6 rounded-lg shadow-sm border-l-4 border-blue-500 transition duration-300">
|
| 619 |
+
<div class="flex items-center justify-between">
|
| 620 |
+
<div>
|
| 621 |
+
<p class="text-gray-500">إجمالي الإيرادات</p>
|
| 622 |
+
<h3 class="text-2xl font-bold mt-1">25,840 <span class="text-sm">ر.س</span></h3>
|
| 623 |
+
</div>
|
| 624 |
+
<div class="bg-blue-100 p-3 rounded-full">
|
| 625 |
+
<i class="fas fa-money-bill-wave text-blue-600 text-xl"></i>
|
| 626 |
+
</div>
|
| 627 |
+
</div>
|
| 628 |
+
<div class="mt-4">
|
| 629 |
+
<span class="text-green-500 text-sm font-medium"><i class="fas fa-arrow-up"></i> 12% عن الشهر الماضي</span>
|
| 630 |
+
</div>
|
| 631 |
+
</div>
|
| 632 |
+
|
| 633 |
+
<div class="dashboard-card bg-white p-6 rounded-lg shadow-sm border-l-4 border-green-500 transition duration-300">
|
| 634 |
+
<div class="flex items-center justify-between">
|
| 635 |
+
<div>
|
| 636 |
+
<p class="text-gray-500">إجمالي المصروفات</p>
|
| 637 |
+
<h3 class="text-2xl font-bold mt-1">18,450 <span class="text-sm">ر.س</span></h3>
|
| 638 |
+
</div>
|
| 639 |
+
<div class="bg-green-100 p-3 rounded-full">
|
| 640 |
+
<i class="fas fa-wallet text-green-600 text-xl"></i>
|
| 641 |
+
</div>
|
| 642 |
+
</div>
|
| 643 |
+
<div class="mt-4">
|
| 644 |
+
<span class="text-red-500 text-sm font-medium"><i class="fas fa-arrow-down"></i> 5% عن الشهر الماضي</span>
|
| 645 |
+
</div>
|
| 646 |
+
</div>
|
| 647 |
+
|
| 648 |
+
<div class="dashboard-card bg-white p-6 rounded-lg shadow-sm border-l-4 border-purple-500 transition duration-300">
|
| 649 |
+
<div class="flex items-center justify-between">
|
| 650 |
+
<div>
|
| 651 |
+
<p class="text-gray-500">إجمالي الفواتير</p>
|
| 652 |
+
<h3 class="text-2xl font-bold mt-1">124</h3>
|
| 653 |
+
</div>
|
| 654 |
+
<div class="bg-purple-100 p-3 rounded-full">
|
| 655 |
+
<i class="fas fa-file-invoice text-purple-600 text-xl"></i>
|
| 656 |
+
</div>
|
| 657 |
+
</div>
|
| 658 |
+
<div class="mt-4">
|
| 659 |
+
<span class="text-green-500 text-sm font-medium"><i class="fas fa-arrow-up"></i> 8% عن الشهر الماضي</span>
|
| 660 |
+
</div>
|
| 661 |
+
</div>
|
| 662 |
+
|
| 663 |
+
<div class="dashboard-card bg-white p-6 rounded-lg shadow-sm border-l-4 border-yellow-500 transition duration-300">
|
| 664 |
+
<div class="flex items-center justify-between">
|
| 665 |
+
<div>
|
| 666 |
+
<p class="text-gray-500">العملاء النشطين</p>
|
| 667 |
+
<h3 class="text-2xl font-bold mt-1">42</h3>
|
| 668 |
+
</div>
|
| 669 |
+
<div class="bg-yellow-100 p-3 rounded-full">
|
| 670 |
+
<i class="fas fa-users text-yellow-600 text-xl"></i>
|
| 671 |
+
</div>
|
| 672 |
+
</div>
|
| 673 |
+
<div class="mt-4">
|
| 674 |
+
<span class="text-green-500 text-sm font-medium"><i class="fas fa-arrow-up"></i> 15% عن الشهر الماضي</span>
|
| 675 |
+
</div>
|
| 676 |
+
</div>
|
| 677 |
+
</div>
|
| 678 |
+
|
| 679 |
+
<!-- Charts Row -->
|
| 680 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
|
| 681 |
+
<!-- Revenue Chart -->
|
| 682 |
+
<div class="bg-white p-6 rounded-lg shadow-sm">
|
| 683 |
+
<div class="flex items-center justify-between mb-4">
|
| 684 |
+
<h2 class="text-lg font-semibold">الإيرادات والمصروفات</h2>
|
| 685 |
+
<div class="flex space-x-2 rtl:space-x-reverse">
|
| 686 |
+
<button class="px-3 py-1 text-sm bg-blue-100 text-blue-700 rounded-md">شهري</button>
|
| 687 |
+
<button class="px-3 py-1 text-sm bg-gray-100 text-gray-700 rounded-md">سنوي</button>
|
| 688 |
+
</div>
|
| 689 |
+
</div>
|
| 690 |
+
<div class="h-64">
|
| 691 |
+
<canvas id="revenue-chart"></canvas>
|
| 692 |
+
</div>
|
| 693 |
+
</div>
|
| 694 |
+
|
| 695 |
+
<!-- Invoice Status Chart -->
|
| 696 |
+
<div class="bg-white p-6 rounded-lg shadow-sm">
|
| 697 |
+
<div class="flex items-center justify-between mb-4">
|
| 698 |
+
<h2 class="text-lg font-semibold">حالة الفواتير</h2>
|
| 699 |
+
<div class="flex space-x-2 rtl:space-x-reverse">
|
| 700 |
+
<button class="px-3 py-1 text-sm bg-blue-100 text-blue-700 rounded-md">هذا الشهر</button>
|
| 701 |
+
<button class="px-3 py-1 text-sm bg-gray-100 text-gray-700 rounded-md">الكل</button>
|
| 702 |
+
</div>
|
| 703 |
+
</div>
|
| 704 |
+
<div class="h-64">
|
| 705 |
+
<canvas id="invoice-status-chart"></canvas>
|
| 706 |
+
</div>
|
| 707 |
+
</div>
|
| 708 |
+
</div>
|
| 709 |
+
|
| 710 |
+
<!-- Recent Transactions -->
|
| 711 |
+
<div class="bg-white p-6 rounded-lg shadow-sm mb-6">
|
| 712 |
+
<div class="flex items-center justify-between mb-4">
|
| 713 |
+
<h2 class="text-lg font-semibold">آخر العمليات</h2>
|
| 714 |
+
<a href="#" class="text-blue-600 text-sm font-medium">عرض الكل</a>
|
| 715 |
+
</div>
|
| 716 |
+
<div class="overflow-x-auto">
|
| 717 |
+
<table class="min-w-full divide-y divide-gray-200">
|
| 718 |
+
<thead class="bg-gray-50">
|
| 719 |
+
<tr>
|
| 720 |
+
<th class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">رقم العملية</th>
|
| 721 |
+
<th class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">التاريخ</th>
|
| 722 |
+
<th class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">الوصف</th>
|
| 723 |
+
<th class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">المبلغ</th>
|
| 724 |
+
<th class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">الحالة</th>
|
| 725 |
+
<th class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">الإجراءات</th>
|
| 726 |
+
</tr>
|
| 727 |
+
</thead>
|
| 728 |
+
<tbody class="bg-white divide-y divide-gray-200">
|
| 729 |
+
<tr>
|
| 730 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#1254</td>
|
| 731 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-15</td>
|
| 732 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">فاتورة بيع لشركة التقنية</td>
|
| 733 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">5,250 ر.س</td>
|
| 734 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 735 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">مدفوعة</span>
|
| 736 |
+
</td>
|
| 737 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
| 738 |
+
<button class="text-blue-600 hover:text-blue-900 mr-2"><i class="fas fa-eye"></i></button>
|
| 739 |
+
<button class="text-gray-600 hover:text-gray-900"><i class="fas fa-print"></i></button>
|
| 740 |
+
</td>
|
| 741 |
+
</tr>
|
| 742 |
+
<tr>
|
| 743 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#1253</td>
|
| 744 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-14</td>
|
| 745 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">فاتورة شراء من مورد الأجهزة</td>
|
| 746 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">8,700 ر.س</td>
|
| 747 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 748 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">قيد الانتظار</span>
|
| 749 |
+
</td>
|
| 750 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
| 751 |
+
<button class="text-blue-600 hover:text-blue-900 mr-2"><i class="fas fa-eye"></i></button>
|
| 752 |
+
<button class="text-gray-600 hover:text-gray-900"><i class="fas fa-print"></i></button>
|
| 753 |
+
</td>
|
| 754 |
+
</tr>
|
| 755 |
+
<tr>
|
| 756 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#1252</td>
|
| 757 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-13</td>
|
| 758 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">دفعة من عميل مؤسسة النور</td>
|
| 759 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">3,500 ر.س</td>
|
| 760 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 761 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">مكتملة</span>
|
| 762 |
+
</td>
|
| 763 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
| 764 |
+
<button class="text-blue-600 hover:text-blue-900 mr-2"><i class="fas fa-eye"></i></button>
|
| 765 |
+
<button class="text-gray-6
|
| 766 |
+
</html>
|
prompts.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"أريد منك إنشاء تطبيق ويب محاسبي كامل باستخدام أحدث تقنيات تطوير الويب. التطبيق يجب أن يكون متكامل ويشمل الوظائف التالية: 🧾 الوظائف الأساسية: تسجيل الدخول والخروج للمستخدمين مع نظام صلاحيات (مدير / محاسب / مشاهد فقط). إدارة العملاء (إضافة / تعديل / حذف / عرض). إدارة الموردين. إنشاء فواتير شراء وبيع. تتبع المدفوعات والمقبوضات. دفتر اليومية العام. تقارير مالية (الميزانية، قائمة الأرباح والخسائر، كشف الحساب). إدارة المصاريف والدخل. سجل العمليات المحاسبية. دعم نظام الضرائب (قابل للتعديل حسب البلد). تصدير البيانات PDF وExcel. 💻 متطلبات التقنية: الواجهة: React.js أو Next.js الباك إند: Node.js + Express.js أو Laravel قاعدة البيانات: MongoDB أو MySQL توثيق API دعم اللغة العربية والإنجليزية (واجهة ثنائية اللغة) تصميم متجاوب للموبايل والتابلت
|
| 2 |
+
"من فضلك أضف نظام تسجيل دخول (Login System) وتسجيل خروج (Logout) في تطبيق الويب المحاسبي، بحيث يسمح بإنشاء حسابات للمستخدمين وتحديد صلاحياتهم (مثل مدير، محاسب، مشاهد فقط). يشمل ذلك: واجهة تسجيل دخول احترافية. تشفير كلمات المرور (مثلاً باستخدام bcrypt). إدارة الجلسات (Sessions) أو JWT. واجهة لتسجيل مستخدمين جدد (Sign Up). واجهة لتعديل بيانات المستخدم أو حذف الحساب (Admin only). إمكانية نسيان كلمة المرور (Reset password via email - اختياري). يرجى إضافة مستخدم افتراضي: Username: SAME Password: 123456789 Role: A
|