Download index.html from Daghash/daghash1: direct link, hf CLI and curl.
- Browser
- Download file 52.5 kB
-
https://huggingface.co/spaces/Daghash/daghash1/resolve/main/index.html
- Command line
-
hf download hf://spaces/Daghash/daghash1/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Daghash/daghash1/resolve/main/index.html
52.5 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;
}
.rtl {
direction: rtl;
}
.ltr {
direction: ltr;
}
.dark-mode {
background-color: #1a202c;
color: #f7fafc;
}
.progress-bar {
height: 6px;
background-color: #e2e8f0;
border-radius: 3px;
}
.progress-fill {
height: 100%;
background-color: #4299e1;
border-radius: 3px;
transition: width 0.3s ease;
}
.map-container {
height: 200px;
background-color: #e2e8f0;
border-radius: 12px;
position: relative;
overflow: hidden;
}
.map-placeholder {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background-color: #cbd5e0;
color: #4a5568;
}
.vehicle-icon {
width: 60px;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 12px;
background-color: #ebf8ff;
}
.time-slot {
padding: 8px 12px;
border-radius: 8px;
border: 1px solid #e2e8f0;
cursor: pointer;
transition: all 0.2s;
}
.time-slot:hover {
background-color: #ebf8ff;
}
.time-slot.selected {
background-color: #4299e1;
color: white;
border-color: #4299e1;
}
.tab-active {
border-bottom: 3px solid #4299e1;
color: #4299e1;
font-weight: bold;
}
.notification-badge {
position: absolute;
top: -5px;
right: -5px;
width: 20px;
height: 20px;
background-color: #f56565;
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
}
.rating-star {
color: #e2e8f0;
cursor: pointer;
}
.rating-star.active {
color: #f6ad55;
}
</style>
</head>
<body class="bg-gray-50 rtl">
<!-- App Container -->
<div class="max-w-md mx-auto bg-white shadow-lg rounded-2xl overflow-hidden min-h-screen flex flex-col">
<!-- Header -->
<header class="bg-blue-600 text-white p-4">
<div class="flex justify-between items-center">
<button id="menuBtn" class="text-white">
<i class="fas fa-bars text-xl"></i>
</button>
<h1 class="text-xl font-bold">فحصني</h1>
<div class="relative">
<button id="notificationBtn" class="text-white">
<i class="fas fa-bell text-xl"></i>
<span class="notification-badge">3</span>
</button>
</div>
</div>
</header>
<!-- Main Content -->
<main class="flex-1 overflow-y-auto p-4">
<!-- Dashboard View -->
<div id="dashboardView">
<div class="mb-6">
<h2 class="text-lg font-bold mb-2">مرحباً بك، أحمد</h2>
<p class="text-gray-600">احجز موعد الفحص الفني لمركبتك بسهولة</p>
</div>
<!-- Quick Actions -->
<div class="grid grid-cols-2 gap-4 mb-6">
<button onclick="showView('bookingView')" class="bg-blue-100 text-blue-800 p-4 rounded-xl flex flex-col items-center">
<i class="fas fa-calendar-check text-2xl mb-2"></i>
<span>حجز جديد</span>
</button>
<button onclick="showView('historyView')" class="bg-green-100 text-green-800 p-4 rounded-xl flex flex-col items-center">
<i class="fas fa-history text-2xl mb-2"></i>
<span>سجل الحجوزات</span>
</button>
</div>
<!-- Active Booking Card -->
<div class="bg-white border border-gray-200 rounded-xl shadow-sm p-4 mb-6">
<div class="flex justify-between items-start mb-3">
<h3 class="font-bold">الحجز الحالي</h3>
<span class="bg-yellow-100 text-yellow-800 text-xs px-2 py-1 rounded-full">قيد التنفيذ</span>
</div>
<div class="flex items-center mb-4">
<div class="vehicle-icon mr-3">
<i class="fas fa-car text-blue-600 text-2xl"></i>
</div>
<div>
<h4 class="font-bold">سيارة ملاكى</h4>
<p class="text-gray-600 text-sm">الجمعة 15 يوليو - 10:00 صباحاً</p>
</div>
</div>
<div class="mb-3">
<div class="flex justify-between text-sm mb-1">
<span>حالة الفحص</span>
<span>60% مكتمل</span>
</div>
<div class="progress-bar">
<div class="progress-fill" style="width: 60%"></div>
</div>
</div>
<div class="map-container mb-3">
<div class="map-placeholder">
<i class="fas fa-map-marker-alt text-2xl mr-2"></i>
<span>خريطة تتبع الفحص</span>
</div>
</div>
<button onclick="showView('trackingView')" class="w-full bg-blue-600 text-white py-2 rounded-lg">
تتبع الفحص
</button>
</div>
<!-- Promo Banner -->
<div class="bg-gradient-to-r from-blue-500 to-blue-600 text-white rounded-xl p-4 mb-6">
<div class="flex items-center">
<div class="mr-3">
<i class="fas fa-gift text-2xl"></i>
</div>
<div>
<h3 class="font-bold">خصم 20% على الفحص الثالث</h3>
<p class="text-sm">احصل على خصم عند إكمال 3 فحوصات</p>
</div>
</div>
</div>
</div>
<!-- Booking View -->
<div id="bookingView" class="hidden">
<div class="flex justify-between items-center mb-6">
<button onclick="showView('dashboardView')" class="text-blue-600">
<i class="fas fa-arrow-right"></i>
</button>
<h2 class="text-lg font-bold">حجز موعد جديد</h2>
<div></div>
</div>
<div class="mb-6">
<label class="block text-gray-700 mb-2">نوع المركبة</label>
<div class="grid grid-cols-2 gap-3">
<button class="vehicle-type-btn border border-gray-200 p-3 rounded-lg flex items-center" data-type="private">
<i class="fas fa-car text-blue-600 text-xl ml-2"></i>
<span>سيارة ملاكى</span>
</button>
<button class="vehicle-type-btn border border-gray-200 p-3 rounded-lg flex items-center" data-type="truck">
<i class="fas fa-truck text-blue-600 text-xl ml-2"></i>
<span>نقل</span>
</button>
<button class="vehicle-type-btn border border-gray-200 p-3 rounded-lg flex items-center" data-type="bus">
<i class="fas fa-bus text-blue-600 text-xl ml-2"></i>
<span>أتوبيس</span>
</button>
<button class="vehicle-type-btn border border-gray-200 p-3 rounded-lg flex items-center" data-type="motorcycle">
<i class="fas fa-motorcycle text-blue-600 text-xl ml-2"></i>
<span>دراجة نارية</span>
</button>
</div>
</div>
<div class="mb-6">
<label class="block text-gray-700 mb-2">المحافظة</label>
<select class="w-full border border-gray-200 rounded-lg p-3">
<option value="">اختر المحافظة</option>
<option value="cairo">القاهرة</option>
<option value="giza">الجيزة</option>
<option value="alexandria">الإسكندرية</option>
<option value="sharqia">الشرقية</option>
</select>
</div>
<div class="mb-6">
<label class="block text-gray-700 mb-2">المنطقة</label>
<select class="w-full border border-gray-200 rounded-lg p-3">
<option value="">اختر المنطقة</option>
<option value="nasr-city">مدينة نصر</option>
<option value="downtown">وسط البلد</option>
<option value="heliopolis">مصر الجديدة</option>
</select>
</div>
<div class="mb-6">
<label class="block text-gray-700 mb-2">التاريخ</label>
<div class="border border-gray-200 rounded-lg p-3 flex justify-between items-center">
<span>15 يوليو 2023</span>
<i class="fas fa-calendar-alt text-blue-600"></i>
</div>
</div>
<div class="mb-6">
<label class="block text-gray-700 mb-2">الوقت</label>
<div class="grid grid-cols-3 gap-2">
<button class="time-slot">8:00 ص</button>
<button class="time-slot">9:00 ص</button>
<button class="time-slot selected">10:00 ص</button>
<button class="time-slot">11:00 ص</button>
<button class="time-slot">12:00 م</button>
<button class="time-slot">1:00 م</button>
</div>
</div>
<button onclick="showView('confirmView')" class="w-full bg-blue-600 text-white py-3 rounded-lg">
التالي
</button>
</div>
<!-- Confirm Booking View -->
<div id="confirmView" class="hidden">
<div class="flex justify-between items-center mb-6">
<button onclick="showView('bookingView')" class="text-blue-600">
<i class="fas fa-arrow-right"></i>
</button>
<h2 class="text-lg font-bold">تأكيد الحجز</h2>
<div></div>
</div>
<div class="bg-gray-50 p-4 rounded-xl mb-6">
<div class="flex items-center mb-4">
<div class="vehicle-icon mr-3">
<i class="fas fa-car text-blue-600 text-2xl"></i>
</div>
<div>
<h4 class="font-bold">سيارة ملاكى</h4>
<p class="text-gray-600 text-sm">الجمعة 15 يوليو - 10:00 صباحاً</p>
</div>
</div>
<div class="space-y-3">
<div class="flex justify-between">
<span class="text-gray-600">المحافظة</span>
<span class="font-medium">القاهرة</span>
</div>
<div class="flex justify-between">
<span class="text-gray-600">المنطقة</span>
<span class="font-medium">مدينة نصر</span>
</div>
<div class="flex justify-between">
<span class="text-gray-600">العنوان</span>
<span class="font-medium">123 شارع النصر</span>
</div>
</div>
</div>
<div class="bg-gray-50 p-4 rounded-xl mb-6">
<h3 class="font-bold mb-3">تفاصيل السعر</h3>
<div class="space-y-3">
<div class="flex justify-between">
<span class="text-gray-600">سعر الفحص</span>
<span class="font-medium">250 ج.م</span>
</div>
<div class="flex justify-between">
<span class="text-gray-600">ضريبة القيمة المضافة</span>
<span class="font-medium">25 ج.م</span>
</div>
<div class="flex justify-between border-t border-gray-200 pt-2 mt-2">
<span class="text-gray-600 font-bold">الإجمالي</span>
<span class="font-bold text-blue-600">275 ج.م</span>
</div>
</div>
</div>
<button onclick="showView('paymentView')" class="w-full bg-blue-600 text-white py-3 rounded-lg mb-3">
تأكيد الحجز والدفع
</button>
<button onclick="showView('bookingView')" class="w-full border border-blue-600 text-blue-600 py-3 rounded-lg">
تعديل الحجز
</button>
</div>
<!-- Payment View -->
<div id="paymentView" class="hidden">
<div class="flex justify-between items-center mb-6">
<button onclick="showView('confirmView')" class="text-blue-600">
<i class="fas fa-arrow-right"></i>
</button>
<h2 class="text-lg font-bold">الدفع الإلكتروني</h2>
<div></div>
</div>
<div class="bg-gray-50 p-4 rounded-xl mb-6">
<h3 class="font-bold mb-3">ملخص الحجز</h3>
<div class="flex items-center mb-3">
<div class="vehicle-icon mr-3">
<i class="fas fa-car text-blue-600 text-2xl"></i>
</div>
<div>
<h4 class="font-bold">سيارة ملاكى</h4>
<p class="text-gray-600 text-sm">الجمعة 15 يوليو - 10:00 صباحاً</p>
</div>
</div>
<div class="flex justify-between border-t border-gray-200 pt-2">
<span class="font-bold">المبلغ المستحق</span>
<span class="font-bold text-blue-600">275 ج.م</span>
</div>
</div>
<div class="mb-6">
<h3 class="font-bold mb-3">طريقة الدفع</h3>
<div class="space-y-3">
<div class="payment-method border border-gray-200 rounded-lg p-4 flex items-center">
<i class="fas fa-credit-card text-blue-600 text-xl ml-3"></i>
<div class="flex-1">
<h4 class="font-bold">البطاقة البنكية</h4>
<p class="text-gray-600 text-sm">فيزا / ماستركارد</p>
</div>
<i class="fas fa-check-circle text-blue-600"></i>
</div>
<div class="payment-method border border-gray-200 rounded-lg p-4 flex items-center">
<i class="fas fa-wallet text-blue-600 text-xl ml-3"></i>
<div class="flex-1">
<h4 class="font-bold">المحفظة الإلكترونية</h4>
<p class="text-gray-600 text-sm">فودافون كاش / اتصالات كاش</p>
</div>
</div>
<div class="payment-method border border-gray-200 rounded-lg p-4 flex items-center">
<i class="fas fa-store text-blue-600 text-xl ml-3"></i>
<div class="flex-1">
<h4 class="font-bold">دفع عند الاستلام</h4>
<p class="text-gray-600 text-sm">الدفع نقداً للفني</p>
</div>
</div>
</div>
</div>
<button onclick="completeBooking()" class="w-full bg-blue-600 text-white py-3 rounded-lg">
تأكيد الدفع
</button>
</div>
<!-- Tracking View -->
<div id="trackingView" class="hidden">
<div class="flex justify-between items-center mb-6">
<button onclick="showView('dashboardView')" class="text-blue-600">
<i class="fas fa-arrow-right"></i>
</button>
<h2 class="text-lg font-bold">تتبع الفحص</h2>
<div></div>
</div>
<div class="bg-white border border-gray-200 rounded-xl shadow-sm p-4 mb-6">
<div class="flex items-center mb-4">
<div class="vehicle-icon mr-3">
<i class="fas fa-car text-blue-600 text-2xl"></i>
</div>
<div>
<h4 class="font-bold">سيارة ملاكى</h4>
<p class="text-gray-600 text-sm">الجمعة 15 يوليو - 10:00 صباحاً</p>
</div>
</div>
<div class="mb-4">
<div class="flex justify-between text-sm mb-1">
<span>حالة الفحص</span>
<span>60% مكتمل</span>
</div>
<div class="progress-bar">
<div class="progress-fill" style="width: 60%"></div>
</div>
</div>
<div class="map-container mb-4">
<div class="map-placeholder">
<i class="fas fa-map-marker-alt text-2xl mr-2"></i>
<span>خريطة تتبع الفحص</span>
</div>
</div>
<div class="space-y-4">
<div class="flex items-start">
<div class="bg-blue-100 text-blue-800 rounded-full w-8 h-8 flex items-center justify-center mr-3 mt-1">
<i class="fas fa-check"></i>
</div>
<div>
<h4 class="font-bold">تم تأكيد الحجز</h4>
<p class="text-gray-600 text-sm">10 يوليو - 2:30 مساءً</p>
</div>
</div>
<div class="flex items-start">
<div class="bg-blue-100 text-blue-800 rounded-full w-8 h-8 flex items-center justify-center mr-3 mt-1">
<i class="fas fa-check"></i>
</div>
<div>
<h4 class="font-bold">تم تعيين الفني</h4>
<p class="text-gray-600 text-sm">12 يوليو - 9:15 صباحاً</p>
</div>
</div>
<div class="flex items-start">
<div class="bg-blue-600 text-white rounded-full w-8 h-8 flex items-center justify-center mr-3 mt-1">
<i class="fas fa-truck"></i>
</div>
<div>
<h4 class="font-bold">في الطريق إليك</h4>
<p class="text-gray-600 text-sm">متوقع الوصول خلال 30 دقيقة</p>
</div>
</div>
<div class="flex items-start opacity-50">
<div class="bg-gray-200 text-gray-600 rounded-full w-8 h-8 flex items-center justify-center mr-3 mt-1">
<i class="fas fa-file-alt"></i>
</div>
<div>
<h4 class="font-bold">إصدار التقرير</h4>
<p class="text-gray-600 text-sm">سيتم إصدار التقرير بعد الفحص</p>
</div>
</div>
</div>
</div>
<div class="flex space-x-3">
<button class="flex-1 border border-blue-600 text-blue-600 py-2 rounded-lg">
<i class="fas fa-phone-alt ml-2"></i>
اتصل بالفني
</button>
<button class="flex-1 border border-blue-600 text-blue-600 py-2 rounded-lg">
<i class="fas fa-comment ml-2"></i>
محادثة
</button>
</div>
</div>
<!-- Booking History View -->
<div id="historyView" class="hidden">
<div class="flex justify-between items-center mb-6">
<button onclick="showView('dashboardView')" class="text-blue-600">
<i class="fas fa-arrow-right"></i>
</button>
<h2 class="text-lg font-bold">سجل الحجوزات</h2>
<div></div>
</div>
<div class="flex border-b mb-4">
<button class="tab-btn flex-1 py-2 text-center tab-active" data-tab="all">الكل</button>
<button class="tab-btn flex-1 py-2 text-center" data-tab="completed">المكتملة</button>
<button class="tab-btn flex-1 py-2 text-center" data-tab="cancelled">الملغاة</button>
</div>
<div class="space-y-4">
<div class="booking-card bg-white border border-gray-200 rounded-xl shadow-sm p-4">
<div class="flex justify-between items-start mb-2">
<div class="flex items-center">
<div class="vehicle-icon mr-3">
<i class="fas fa-car text-blue-600 text-xl"></i>
</div>
<div>
<h4 class="font-bold">سيارة ملاكى</h4>
<p class="text-gray-600 text-sm">15 يوليو - 10:00 ص</p>
</div>
</div>
<span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">مكتمل</span>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-600">القاهرة - مدينة نصر</span>
<span class="font-bold">275 ج.م</span>
</div>
<button onclick="showView('reportView')" class="w-full border border-blue-600 text-blue-600 py-2 rounded-lg mt-3">
عرض التقرير
</button>
</div>
<div class="booking-card bg-white border border-gray-200 rounded-xl shadow-sm p-4">
<div class="flex justify-between items-start mb-2">
<div class="flex items-center">
<div class="vehicle-icon mr-3">
<i class="fas fa-truck text-blue-600 text-xl"></i>
</div>
<div>
<h4 class="font-bold">سيارة نقل</h4>
<p class="text-gray-600 text-sm">5 يوليو - 2:00 م</p>
</div>
</div>
<span class="bg-yellow-100 text-yellow-800 text-xs px-2 py-1 rounded-full">ملغى</span>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-600">الجيزة - الدقي</span>
<span class="font-bold">350 ج.م</span>
</div>
<button class="w-full border border-blue-600 text-blue-600 py-2 rounded-lg mt-3">
إعادة الحجز
</button>
</div>
<div class="booking-card bg-white border border-gray-200 rounded-xl shadow-sm p-4">
<div class="flex justify-between items-start mb-2">
<div class="flex items-center">
<div class="vehicle-icon mr-3">
<i class="fas fa-car text-blue-600 text-xl"></i>
</div>
<div>
<h4 class="font-bold">سيارة ملاكى</h4>
<p class="text-gray-600 text-sm">20 يونيو - 11:00 ص</p>
</div>
</div>
<span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">مكتمل</span>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-600">الإسكندرية - سيدي جابر</span>
<span class="font-bold">275 ج.م</span>
</div>
<button onclick="showView('reportView')" class="w-full border border-blue-600 text-blue-600 py-2 rounded-lg mt-3">
عرض التقرير
</button>
</div>
</div>
</div>
<!-- Report View -->
<div id="reportView" class="hidden">
<div class="flex justify-between items-center mb-6">
<button onclick="showView('historyView')" class="text-blue-600">
<i class="fas fa-arrow-right"></i>
</button>
<h2 class="text-lg font-bold">تقرير الفحص</h2>
<div></div>
</div>
<div class="bg-white border border-gray-200 rounded-xl shadow-sm p-4 mb-6">
<div class="flex items-center mb-4">
<div class="vehicle-icon mr-3">
<i class="fas fa-car text-blue-600 text-2xl"></i>
</div>
<div>
<h4 class="font-bold">سيارة ملاكى</h4>
<p class="text-gray-600 text-sm">15 يوليو 2023 - 10:00 صباحاً</p>
</div>
</div>
<div class="mb-4">
<h3 class="font-bold mb-2">نتيجة الفحص</h3>
<div class="bg-green-100 text-green-800 px-3 py-2 rounded-lg inline-block">
<i class="fas fa-check-circle mr-1"></i>
<span>صالح للاستخدام</span>
</div>
</div>
<div class="mb-4">
<h3 class="font-bold mb-2">صلاحية الفحص</h3>
<p class="text-gray-700">صالح حتى 15 يناير 2024</p>
</div>
<div class="mb-4">
<h3 class="font-bold mb-2">تفاصيل الفحص</h3>
<div class="space-y-2">
<div class="flex justify-between">
<span class="text-gray-600">المحرك</span>
<span class="font-medium">جيد</span>
</div>
<div class="flex justify-between">
<span class="text-gray-600">نظام الفرامل</span>
<span class="font-medium">جيد</span>
</div>
<div class="flex justify-between">
<span class="text-gray-600">الإطارات</span>
<span class="font-medium">تحتاج استبدال</span>
</div>
<div class="flex justify-between">
<span class="text-gray-600">الإضاءة</span>
<span class="font-medium">جيد</span>
</div>
<div class="flex justify-between">
<span class="text-gray-600">نظام العادم</span>
<span class="font-medium">تحتاج صيانة</span>
</div>
</div>
</div>
<div class="mb-4">
<h3 class="font-bold mb-2">توصيات الفحص</h3>
<ul class="list-disc list-inside text-gray-700 space-y-1">
<li>استبدال الإطارات الأمامية خلال شهر</li>
<li>فحص نظام العادم في أقرب وقت</li>
<li>فحص زيت المحرك بعد 5000 كم</li>
</ul>
</div>
<div class="flex space-x-3">
<button class="flex-1 bg-blue-600 text-white py-2 rounded-lg">
<i class="fas fa-download ml-2"></i>
تحميل PDF
</button>
<button class="flex-1 border border-blue-600 text-blue-600 py-2 rounded-lg">
<i class="fas fa-share-alt ml-2"></i>
مشاركة
</button>
</div>
</div>
<div class="bg-white border border-gray-200 rounded-xl shadow-sm p-4">
<h3 class="font-bold mb-3">تقييم الخدمة</h3>
<div class="flex justify-center mb-3">
<div class="rating-stars">
<i class="fas fa-star rating-star active" data-rating="1"></i>
<i class="fas fa-star rating-star active" data-rating="2"></i>
<i class="fas fa-star rating-star active" data-rating="3"></i>
<i class="fas fa-star rating-star active" data-rating="4"></i>
<i class="fas fa-star rating-star" data-rating="5"></i>
</div>
</div>
<textarea class="w-full border border-gray-200 rounded-lg p-3 mb-3" placeholder="اكتب ملاحظاتك (اختياري)"></textarea>
<button class="w-full bg-blue-600 text-white py-2 rounded-lg">
إرسال التقييم
</button>
</div>
</div>
<!-- Success View -->
<div id="successView" class="hidden">
<div class="flex flex-col items-center justify-center h-full py-12">
<div class="bg-green-100 text-green-800 rounded-full w-20 h-20 flex items-center justify-center mb-6">
<i class="fas fa-check text-3xl"></i>
</div>
<h2 class="text-2xl font-bold mb-2">تم الحجز بنجاح!</h2>
<p class="text-gray-600 text-center mb-8">تم تأكيد حجز موعد الفحص الفني لمركبتك بنجاح</p>
<div class="bg-gray-50 p-4 rounded-xl w-full mb-8">
<div class="flex items-center mb-3">
<div class="vehicle-icon mr-3">
<i class="fas fa-car text-blue-600 text-xl"></i>
</div>
<div>
<h4 class="font-bold">سيارة ملاكى</h4>
<p class="text-gray-600 text-sm">الجمعة 15 يوليو - 10:00 صباحاً</p>
</div>
</div>
<div class="flex justify-between">
<span class="text-gray-600">رقم الحجز</span>
<span class="font-bold">#FHS-2023-5874</span>
</div>
</div>
<button onclick="showView('dashboardView')" class="w-full bg-blue-600 text-white py-3 rounded-lg mb-3">
العودة للرئيسية
</button>
<button onclick="showView('trackingView')" class="w-full border border-blue-600 text-blue-600 py-3 rounded-lg">
متابعة الحجز
</button>
</div>
</div>
</main>
<!-- Bottom Navigation -->
<nav class="bg-white border-t border-gray-200 p-2">
<div class="flex justify-around">
<button class="nav-btn flex flex-col items-center text-blue-600" data-view="dashboardView">
<i class="fas fa-home text-xl"></i>
<span class="text-xs mt-1">الرئيسية</span>
</button>
<button class="nav-btn flex flex-col items-center text-gray-500" data-view="bookingView">
<i class="fas fa-calendar-alt text-xl"></i>
<span class="text-xs mt-1">حجز جديد</span>
</button>
<button class="nav-btn flex flex-col items-center text-gray-500" data-view="historyView">
<i class="fas fa-history text-xl"></i>
<span class="text-xs mt-1">سجل الحجوزات</span>
</button>
<button class="nav-btn flex flex-col items-center text-gray-500" data-view="profileView">
<i class="fas fa-user text-xl"></i>
<span class="text-xs mt-1">حسابي</span>
</button>
</div>
</nav>
<!-- Side Menu -->
<div id="sideMenu" class="fixed inset-0 bg-black bg-opacity-50 z-50 hidden">
<div class="absolute right-0 top-0 h-full w-3/4 bg-white shadow-lg">
<div class="p-4 border-b border-gray-200">
<div class="flex justify-between items-center">
<h3 class="text-lg font-bold">إعدادات</h3>
<button id="closeMenuBtn" class="text-gray-500">
<i class="fas fa-times"></i>
</button>
</div>
</div>
<div class="p-4">
<div class="flex items-center mb-6">
<div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center mr-3">
<i class="fas fa-user text-blue-600"></i>
</div>
<div>
<h4 class="font-bold">أحمد محمد</h4>
<p class="text-gray-600 text-sm">ahmed@example.com</p>
</div>
</div>
<div class="space-y-4">
<button class="w-full text-right py-2 flex items-center">
<i class="fas fa-user-edit ml-3 text-gray-600"></i>
<span>تعديل الملف الشخصي</span>
</button>
<button class="w-full text-right py-2 flex items-center">
<i class="fas fa-map-marker-alt ml-3 text-gray-600"></i>
<span>العناوين المحفوظة</span>
</button>
<button class="w-full text-right py-2 flex items-center">
<i class="fas fa-bell ml-3 text-gray-600"></i>
<span>الإشعارات</span>
</button>
<button class="w-full text-right py-2 flex items-center">
<i class="fas fa-moon ml-3 text-gray-600"></i>
<span>الوضع المظلم</span>
<div class="ml-auto">
<label class="switch">
<input type="checkbox" id="darkModeToggle">
<span class="slider round"></span>
</label>
</div>
</button>
<button class="w-full text-right py-2 flex items-center">
<i class="fas fa-language ml-3 text-gray-600"></i>
<span>اللغة</span>
<span class="ml-auto text-gray-600">العربية</span>
</button>
<button class="w-full text-right py-2 flex items-center">
<i class="fas fa-question-circle ml-3 text-gray-600"></i>
<span>المساعدة والدعم</span>
</button>
<button class="w-full text-right py-2 flex items-center text-red-500">
<i class="fas fa-sign-out-alt ml-3"></i>
<span>تسجيل الخروج</span>
</button>
</div>
</div>
</div>
</div>
<!-- Notifications Panel -->
<div id="notificationsPanel" class="fixed inset-0 bg-black bg-opacity-50 z-50 hidden">
<div class="absolute right-0 top-0 h-full w-3/4 bg-white shadow-lg">
<div class="p-4 border-b border-gray-200">
<div class="flex justify-between items-center">
<h3 class="text-lg font-bold">الإشعارات</h3>
<button id="closeNotificationsBtn" class="text-gray-500">
<i class="fas fa-times"></i>
</button>
</div>
</div>
<div class="overflow-y-auto h-full pb-20">
<div class="space-y-3 p-4">
<div class="notification-item bg-blue-50 p-3 rounded-lg">
<div class="flex items-start">
<div class="bg-blue-100 text-blue-800 rounded-full w-8 h-8 flex items-center justify-center mr-3">
<i class="fas fa-calendar-check"></i>
</div>
<div>
<h4 class="font-bold">تأكيد الحجز</h4>
<p class="text-gray-600 text-sm">تم تأكيد حجز موعد الفحص لسيارتك يوم 15 يوليو</p>
<p class="text-gray-500 text-xs mt-1">منذ ساعتين</p>
</div>
</div>
</div>
<div class="notification-item p-3 rounded-lg">
<div class="flex items-start">
<div class="bg-gray-100 text-gray-800 rounded-full w-8 h-8 flex items-center justify-center mr-3">
<i class="fas fa-truck"></i>
</div>
<div>
<h4 class="font-bold">تذكير بالموعد</h4>
<p class="text-gray-600 text-sm">موعد فحص سيارتك غداً الساعة 10:00 صباحاً</p>
<p class="text-gray-500 text-xs mt-1">منذ يوم</p>
</div>
</div>
</div>
<div class="notification-item p-3 rounded-lg">
<div class="flex items-start">
<div class="bg-green-100 text-green-800 rounded-full w-8 h-8 flex items-center justify-center mr-3">
<i class="fas fa-file-alt"></i>
</div>
<div>
<h4 class="font-bold">تقرير الفحص جاهز</h4>
<p class="text-gray-600 text-sm">تقرير الفحص الخاص بفحص 20 يونيو متاح الآن</p>
<p class="text-gray-500 text-xs mt-1">منذ أسبوع</p>
</div>
</div>
</div>
<div class="notification-item p-3 rounded-lg">
<div class="flex items-start">
<div class="bg-purple-100 text-purple-800 rounded-full w-8 h-8 flex items-center justify-center mr-3">
<i class="fas fa-gift"></i>
</div>
<div>
<h4 class="font-bold">خصم خاص!</h4>
<p class="text-gray-600 text-sm">احصل على خصم 20% على الفحص القادم</p>
<p class="text-gray-500 text-xs mt-1">منذ أسبوعين</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
// View management
function showView(viewId) {
// Hide all views
document.querySelectorAll('main > div').forEach(view => {
view.classList.add('hidden');
});
// Show the selected view
document.getElementById(viewId).classList.remove('hidden');
// Update active nav button
document.querySelectorAll('.nav-btn').forEach(btn => {
if (btn.dataset.view === viewId) {
btn.classList.remove('text-gray-500');
btn.classList.add('text-blue-600');
} else {
btn.classList.remove('text-blue-600');
btn.classList.add('text-gray-500');
}
});
}
// Complete booking function
function completeBooking() {
showView('successView');
// Simulate payment processing
setTimeout(() => {
document.getElementById('successView').classList.remove('hidden');
}, 1500);
}
// DOM Content Loaded
document.addEventListener('DOMContentLoaded', function() {
// Menu toggle
document.getElementById('menuBtn').addEventListener('click', function() {
document.getElementById('sideMenu').classList.remove('hidden');
});
document.getElementById('closeMenuBtn').addEventListener('click', function() {
document.getElementById('sideMenu').classList.add('hidden');
});
// Notifications toggle
document.getElementById('notificationBtn').addEventListener('click', function() {
document.getElementById('notificationsPanel').classList.remove('hidden');
});
document.getElementById('closeNotificationsBtn').addEventListener('click', function() {
document.getElementById('notificationsPanel').classList.add('hidden');
});
// Vehicle type selection
document.querySelectorAll('.vehicle-type-btn').forEach(btn => {
btn.addEventListener('click', function() {
document.querySelectorAll('.vehicle-type-btn').forEach(b => {
b.classList.remove('border-blue-500', 'bg-blue-50');
});
this.classList.add('border-blue-500', 'bg-blue-50');
});
});
// Time slot selection
document.querySelectorAll('.time-slot').forEach(slot => {
slot.addEventListener('click', function() {
document.querySelectorAll('.time-slot').forEach(s => {
s.classList.remove('selected');
});
this.classList.add('selected');
});
});
// Payment method selection
document.querySelectorAll('.payment-method').forEach(method => {
method.addEventListener('click', function() {
document.querySelectorAll('.payment-method').forEach(m => {
m.querySelector('i.fa-check-circle')?.classList.add('hidden');
m.classList.remove('border-blue-500', 'bg-blue-50');
});
const checkIcon = this.querySelector('i.fa-check-circle');
if (checkIcon) {
checkIcon.classList.remove('hidden');
} else {
const icon = document.createElement('i');
icon.className = 'fas fa-check-circle text-blue-600 ml-3';
this.insertBefore(icon, this.firstChild);
}
this.classList.add('border-blue-500', 'bg-blue-50');
});
});
// Tab switching
document.querySelectorAll('.tab-btn').forEach(tab => {
tab.addEventListener('click', function() {
document.querySelectorAll('.tab-btn').forEach(t => {
t.classList.remove('tab-active');
});
this.classList.add('tab-active');
// Here you would filter the booking cards based on the tab
// For demo purposes, we're just toggling a class
});
});
// Rating stars
document.querySelectorAll('.rating-star').forEach(star => {
star.addEventListener('click', function() {
const rating = parseInt(this.dataset.rating);
document.querySelectorAll('.rating-star').forEach(s => {
s.classList.remove('active');
});
for (let i = 0; i < rating; i++) {
document.querySelector(`.rating-star[data-rating="${i+1}"]`).classList.add('active');
}
});
});
// Navigation buttons
document.querySelectorAll('.nav-btn').forEach(btn => {
btn.addEventListener('click', function() {
showView(this.dataset.view);
});
});
// Dark mode toggle
document.getElementById('darkModeToggle').addEventListener('change', function() {
document.body.classList.toggle('dark-mode');
});
});
</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=Daghash/daghash1" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</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;
}
.rtl {
direction: rtl;
}
.ltr {
direction: ltr;
}
.dark-mode {
background-color: #1a202c;
color: #f7fafc;
}
.progress-bar {
height: 6px;
background-color: #e2e8f0;
border-radius: 3px;
}
.progress-fill {
height: 100%;
background-color: #4299e1;
border-radius: 3px;
transition: width 0.3s ease;
}
.map-container {
height: 200px;
background-color: #e2e8f0;
border-radius: 12px;
position: relative;
overflow: hidden;
}
.map-placeholder {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background-color: #cbd5e0;
color: #4a5568;
}
.vehicle-icon {
width: 60px;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 12px;
background-color: #ebf8ff;
}
.time-slot {
padding: 8px 12px;
border-radius: 8px;
border: 1px solid #e2e8f0;
cursor: pointer;
transition: all 0.2s;
}
.time-slot:hover {
background-color: #ebf8ff;
}
.time-slot.selected {
background-color: #4299e1;
color: white;
border-color: #4299e1;
}
.tab-active {
border-bottom: 3px solid #4299e1;
color: #4299e1;
font-weight: bold;
}
.notification-badge {
position: absolute;
top: -5px;
right: -5px;