same / index.html
SAME459's picture
Add 3 files
5c4710a verified
Raw History Blame Contribute Delete
25.4 kB
<!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>
<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>
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;900&display=swap');
body {
font-family: 'Tajawal', sans-serif;
background-color: #f5f7fa;
}
.sidebar {
transition: all 0.3s ease;
}
.sidebar-collapsed {
width: 80px;
}
.sidebar-collapsed .nav-text {
display: none;
}
.content {
transition: margin-right 0.3s ease;
}
.rtl {
direction: rtl;
}
.ltr {
direction: ltr;
}
.language-switcher {
cursor: pointer;
transition: all 0.3s ease;
}
.language-switcher:hover {
transform: scale(1.1);
}
.dashboard-card {
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dashboard-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.invoice-table tr:nth-child(even) {
background-color: #f8fafc;
}
.invoice-table tr:hover {
background-color: #f1f5f9;
}
</style>
</head>
<body class="rtl bg-gray-50">
<!-- شريط التنقل العلوي -->
<nav class="bg-white shadow-sm fixed top-0 right-0 left-0 z-10">
<div class="px-4 py-3 flex justify-between items-center">
<div class="flex items-center">
<button id="sidebarToggle" class="text-gray-600 focus:outline-none">
<i class="fas fa-bars text-xl"></i>
</button>
<a href="#" class="text-xl font-bold text-blue-600 mr-4">المحاسبة المتكاملة</a>
</div>
<div class="flex items-center space-x-4 space-x-reverse">
<div class="relative">
<button id="notificationsBtn" class="text-gray-600 focus:outline-none relative">
<i class="fas fa-bell text-xl"></i>
<span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span>
</button>
<div id="notificationsDropdown" class="hidden absolute right-0 mt-2 w-64 bg-white rounded-md shadow-lg z-20">
<div class="p-4 border-b">
<h3 class="font-bold">الإشعارات</h3>
</div>
<div class="max-h-60 overflow-y-auto">
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">فاتورة جديدة من عميل</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">دفعة مستحقة اليوم</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">تحديث النظام متاح</a>
</div>
</div>
</div>
<div class="relative">
<button id="userMenuBtn" class="flex items-center text-gray-600 focus:outline-none">
<img src="https://ui-avatars.com/api/?name=محاسب&background=4f46e5&color=fff" alt="User" class="h-8 w-8 rounded-full">
<span class="mr-2">محاسب</span>
<i class="fas fa-chevron-down text-xs"></i>
</button>
<div id="userMenuDropdown" class="hidden absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg z-20">
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-user mr-2"></i>الملف الشخصي</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-cog mr-2"></i>الإعدادات</a>
<div class="border-t"></div>
<a href="#" class="block px-4 py-2 text-sm text-red-600 hover:bg-gray-100"><i class="fas fa-sign-out-alt mr-2"></i>تسجيل الخروج</a>
</div>
</div>
<div class="language-switcher">
<button id="languageBtn" class="text-gray-600 focus:outline-none">
<i class="fas fa-globe text-xl"></i>
</button>
</div>
</div>
</div>
</nav>
<!-- الشريط الجانبي -->
<div id="sidebar" class="sidebar fixed top-0 right-0 h-full w-64 bg-blue-800 text-white pt-16 z-10">
<div class="overflow-y-auto h-full pb-16">
<ul class="mt-6">
<li class="px-4 py-3 hover:bg-blue-700">
<a href="#" class="flex items-center">
<i class="fas fa-tachometer-alt text-lg w-6 text-center"></i>
<span class="nav-text mr-3">لوحة التحكم</span>
</a>
</li>
<li class="px-4 py-3 hover:bg-blue-700">
<a href="#" class="flex items-center">
<i class="fas fa-users text-lg w-6 text-center"></i>
<span class="nav-text mr-3">العملاء</span>
</a>
</li>
<li class="px-4 py-3 hover:bg-blue-700">
<a href="#" class="flex items-center">
<i class="fas fa-truck text-lg w-6 text-center"></i>
<span class="nav-text mr-3">الموردين</span>
</a>
</li>
<li class="px-4 py-3 hover:bg-blue-700">
<a href="#" class="flex items-center">
<i class="fas fa-file-invoice-dollar text-lg w-6 text-center"></i>
<span class="nav-text mr-3">فواتير البيع</span>
</a>
</li>
<li class="px-4 py-3 hover:bg-blue-700">
<a href="#" class="flex items-center">
<i class="fas fa-shopping-cart text-lg w-6 text-center"></i>
<span class="nav-text mr-3">فواتير الشراء</span>
</a>
</li>
<li class="px-4 py-3 hover:bg-blue-700">
<a href="#" class="flex items-center">
<i class="fas fa-exchange-alt text-lg w-6 text-center"></i>
<span class="nav-text mr-3">المدفوعات</span>
</a>
</li>
<li class="px-4 py-3 hover:bg-blue-700">
<a href="#" class="flex items-center">
<i class="fas fa-book text-lg w-6 text-center"></i>
<span class="nav-text mr-3">دفتر اليومية</span>
</a>
</li>
<li class="px-4 py-3 hover:bg-blue-700">
<a href="#" class="flex items-center">
<i class="fas fa-chart-line text-lg w-6 text-center"></i>
<span class="nav-text mr-3">التقارير</span>
</a>
</li>
<li class="px-4 py-3 hover:bg-blue-700">
<a href="#" class="flex items-center">
<i class="fas fa-cog text-lg w-6 text-center"></i>
<span class="nav-text mr-3">الإعدادات</span>
</a>
</li>
</ul>
</div>
</div>
<!-- المحتوى الرئيسي -->
<div id="content" class="content pt-16 pr-64 transition-all duration-300">
<div class="p-6">
<!-- عناوين الصفحة -->
<div class="flex justify-between items-center mb-6">
<h1 class="text-2xl font-bold text-gray-800">لوحة التحكم</h1>
<div class="flex space-x-2 space-x-reverse">
<button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md flex items-center">
<i class="fas fa-plus ml-2"></i>
<span>فاتورة جديدة</span>
</button>
<button class="bg-white border border-gray-300 hover:bg-gray-50 text-gray-700 px-4 py-2 rounded-md flex items-center">
<i class="fas fa-filter ml-2"></i>
<span>تصفية</span>
</button>
</div>
</div>
<!-- بطاقات الإحصائيات -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
<div class="dashboard-card bg-white rounded-lg shadow p-6">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-500 text-sm">إجمالي المبيعات</p>
<h3 class="text-2xl font-bold mt-2">25,430 <span class="text-sm">ر.س</span></h3>
<p class="text-green-500 text-sm mt-1"><i class="fas fa-arrow-up mr-1"></i> 12% عن الشهر الماضي</p>
</div>
<div class="bg-blue-100 p-3 rounded-full text-blue-600">
<i class="fas fa-shopping-bag text-xl"></i>
</div>
</div>
</div>
<div class="dashboard-card bg-white rounded-lg shadow p-6">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-500 text-sm">إجمالي المشتريات</p>
<h3 class="text-2xl font-bold mt-2">18,750 <span class="text-sm">ر.س</span></h3>
<p class="text-red-500 text-sm mt-1"><i class="fas fa-arrow-down mr-1"></i> 5% عن الشهر الماضي</p>
</div>
<div class="bg-purple-100 p-3 rounded-full text-purple-600">
<i class="fas fa-cart-arrow-down text-xl"></i>
</div>
</div>
</div>
<div class="dashboard-card bg-white rounded-lg shadow p-6">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-500 text-sm">العملاء</p>
<h3 class="text-2xl font-bold mt-2">142</h3>
<p class="text-green-500 text-sm mt-1"><i class="fas fa-arrow-up mr-1"></i> 8 عملاء جدد</p>
</div>
<div class="bg-green-100 p-3 rounded-full text-green-600">
<i class="fas fa-users text-xl"></i>
</div>
</div>
</div>
<div class="dashboard-card bg-white rounded-lg shadow p-6">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-500 text-sm">المدفوعات المستحقة</p>
<h3 class="text-2xl font-bold mt-2">7,320 <span class="text-sm">ر.س</span></h3>
<p class="text-yellow-500 text-sm mt-1"><i class="fas fa-exclamation-circle mr-1"></i> 5 فواتير</p>
</div>
<div class="bg-yellow-100 p-3 rounded-full text-yellow-600">
<i class="fas fa-hand-holding-usd text-xl"></i>
</div>
</div>
</div>
</div>
<!-- الرسوم البيانية والجداول -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
<div class="lg:col-span-2 bg-white rounded-lg shadow p-6">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-semibold">إحصائيات المبيعات</h2>
<select class="bg-gray-100 border border-gray-300 text-gray-700 py-1 px-3 rounded-md focus:outline-none">
<option>هذا الشهر</option>
<option>الشهر الماضي</option>
<option>هذا العام</option>
</select>
</div>
<div class="h-64 bg-gray-50 rounded-md flex items-center justify-center">
<p class="text-gray-500">رسم بياني للمبيعات سيظهر هنا</p>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<h2 class="text-lg font-semibold mb-4">أحدث الفواتير</h2>
<div class="overflow-x-auto">
<table class="min-w-full invoice-table">
<thead>
<tr class="bg-gray-100 text-gray-600 text-sm">
<th class="py-2 px-3 text-right">رقم الفاتورة</th>
<th class="py-2 px-3 text-right">التاريخ</th>
<th class="py-2 px-3 text-right">المبلغ</th>
<th class="py-2 px-3 text-right">الحالة</th>
</tr>
</thead>
<tbody class="text-sm">
<tr>
<td class="py-3 px-3">INV-2023-001</td>
<td class="py-3 px-3">15/06/2023</td>
<td class="py-3 px-3">2,450 ر.س</td>
<td class="py-3 px-3"><span class="bg-green-100 text-green-800 py-1 px-2 rounded-full text-xs">مدفوعة</span></td>
</tr>
<tr>
<td class="py-3 px-3">INV-2023-002</td>
<td class="py-3 px-3">14/06/2023</td>
<td class="py-3 px-3">1,890 ر.س</td>
<td class="py-3 px-3"><span class="bg-yellow-100 text-yellow-800 py-1 px-2 rounded-full text-xs">جزئي</span></td>
</tr>
<tr>
<td class="py-3 px-3">INV-2023-003</td>
<td class="py-3 px-3">12/06/2023</td>
<td class="py-3 px-3">3,200 ر.س</td>
<td class="py-3 px-3"><span class="bg-red-100 text-red-800 py-1 px-2 rounded-full text-xs">غير مدفوعة</span></td>
</tr>
<tr>
<td class="py-3 px-3">INV-2023-004</td>
<td class="py-3 px-3">10/06/2023</td>
<td class="py-3 px-3">1,750 ر.س</td>
<td class="py-3 px-3"><span class="bg-green-100 text-green-800 py-1 px-2 rounded-full text-xs">مدفوعة</span></td>
</tr>
</tbody>
</table>
</div>
<div class="mt-4 text-center">
<a href="#" class="text-blue-600 hover:text-blue-800 text-sm">عرض الكل <i class="fas fa-arrow-left mr-1"></i></a>
</div>
</div>
</div>
<!-- قسم العملاء والموردين -->
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div class="bg-white rounded-lg shadow p-6">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-semibold">أحدث العملاء</h2>
<a href="#" class="text-blue-600 hover:text-blue-800 text-sm">إضافة عميل <i class="fas fa-plus mr-1"></i></a>
</div>
<div class="space-y-4">
<div class="flex items-center">
<img src="https://ui-avatars.com/api/?name=أحمد+محمد&background=4f46e5&color=fff" alt="Client" class="h-10 w-10 rounded-full">
<div class="mr-3">
<h4 class="font-medium">أحمد محمد</h4>
<p class="text-gray-500 text-sm">ahmed@example.com</p>
</div>
<div class="mr-auto">
<span class="text-sm">1,200 ر.س</span>
</div>
</div>
<div class="flex items-center">
<img src="https://ui-avatars.com/api/?name=سارة+علي&background=4f46e5&color=fff" alt="Client" class="h-10 w-10 rounded-full">
<div class="mr-3">
<h4 class="font-medium">سارة علي</h4>
<p class="text-gray-500 text-sm">sara@example.com</p>
</div>
<div class="mr-auto">
<span class="text-sm">850 ر.س</span>
</div>
</div>
<div class="flex items-center">
<img src="https://ui-avatars.com/api/?name=خالد+حسن&background=4f46e5&color=fff" alt="Client" class="h-10 w-10 rounded-full">
<div class="mr-3">
<h4 class="font-medium">خالد حسن</h4>
<p class="text-gray-500 text-sm">khaled@example.com</p>
</div>
<div class="mr-auto">
<span class="text-sm">2,300 ر.س</span>
</div>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-semibold">أحدث الموردين</h2>
<a href="#" class="text-blue-600 hover:text-blue-800 text-sm">إضافة مورد <i class="fas fa-plus mr-1"></i></a>
</div>
<div class="space-y-4">
<div class="flex items-center">
<img src="https://ui-avatars.com/api/?name=شركة+التموين&background=8b5cf6&color=fff" alt="Supplier" class="h-10 w-10 rounded-full">
<div class="mr-3">
<h4 class="font-medium">شركة التموين</h4>
<p class="text-gray-500 text-sm">info@tamween.com</p>
</div>
<div class="mr-auto">
<span class="text-sm">3,500 ر.س</span>
</div>
</div>
<div class="flex items-center">
<img src="https://ui-avatars.com/api/?name=مكتبة+المعرفة&background=8b5cf6&color=fff" alt="Supplier" class="h-10 w-10 rounded-full">
<div class="mr-3">
<h4 class="font-medium">مكتبة المعرفة</h4>
<p class="text-gray-500 text-sm">contact@maarifa.com</p>
</div>
<div class="mr-auto">
<span class="text-sm">1,800 ر.س</span>
</div>
</div>
<div class="flex items-center">
<img src="https://ui-avatars.com/api/?name=شركة+الأجهزة&background=8b5cf6&color=fff" alt="Supplier" class="h-10 w-10 rounded-full">
<div class="mr-3">
<h4 class="font-medium">شركة الأجهزة</h4>
<p class="text-gray-500 text-sm">sales@alajhiza.com</p>
</div>
<div class="mr-auto">
<span class="text-sm">4,200 ر.س</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
// تبديل الشريط الجانبي
const sidebarToggle = document.getElementById('sidebarToggle');
const sidebar = document.getElementById('sidebar');
const content = document.getElementById('content');
sidebarToggle.addEventListener('click', () => {
sidebar.classList.toggle('sidebar-collapsed');
content.classList.toggle('pr-64');
content.classList.toggle('pr-20');
});
// القوائم المنسدلة
const notificationsBtn = document.getElementById('notificationsBtn');
const notificationsDropdown = document.getElementById('notificationsDropdown');
notificationsBtn.addEventListener('click', () => {
notificationsDropdown.classList.toggle('hidden');
userMenuDropdown.classList.add('hidden');
});
const userMenuBtn = document.getElementById('userMenuBtn');
const userMenuDropdown = document.getElementById('userMenuDropdown');
userMenuBtn.addEventListener('click', () => {
userMenuDropdown.classList.toggle('hidden');
notificationsDropdown.classList.add('hidden');
});
// إغلاق القوائم المنسدلة عند النقر خارجها
document.addEventListener('click', (e) => {
if (!notificationsBtn.contains(e.target) && !notificationsDropdown.contains(e.target)) {
notificationsDropdown.classList.add('hidden');
}
if (!userMenuBtn.contains(e.target) && !userMenuDropdown.contains(e.target)) {
userMenuDropdown.classList.add('hidden');
}
});
// تبديل اللغة
const languageBtn = document.getElementById('languageBtn');
const body = document.body;
languageBtn.addEventListener('click', () => {
if (body.classList.contains('rtl')) {
body.classList.remove('rtl');
body.classList.add('ltr');
document.documentElement.lang = 'en';
// هنا يمكنك تغيير النصوص إلى الإنجليزية
} else {
body.classList.remove('ltr');
body.classList.add('rtl');
document.documentElement.lang = 'ar';
// هنا يمكنك تغيير النصوص إلى العربية
}
});
// محاكاة تحميل البيانات
document.addEventListener('DOMContentLoaded', () => {
// يمكنك هنا جلب البيانات من API
console.log('System loaded successfully');
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=SAME459/same" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>