Update: 2026-05-16 00:33:22
This commit is contained in:
@@ -9,8 +9,8 @@
|
|||||||
return [
|
return [
|
||||||
'free' => [
|
'free' => [
|
||||||
'id' => 'free',
|
'id' => 'free',
|
||||||
'name_ar' => 'مجانية',
|
'name_ar' => 'التجربة المجانية',
|
||||||
'name_en' => 'Free',
|
'name_en' => 'Free Trial',
|
||||||
'max_companies' => 1,
|
'max_companies' => 1,
|
||||||
'max_invoices_month' => 15,
|
'max_invoices_month' => 15,
|
||||||
'max_users' => 1,
|
'max_users' => 1,
|
||||||
@@ -29,90 +29,46 @@ return [
|
|||||||
],
|
],
|
||||||
'basic' => [
|
'basic' => [
|
||||||
'id' => 'basic',
|
'id' => 'basic',
|
||||||
'name_ar' => 'أساسية',
|
'name_ar' => 'الباقة الأساسية (سنوي)',
|
||||||
'name_en' => 'Basic',
|
'name_en' => 'Basic Plan (Annual)',
|
||||||
'max_companies' => 3,
|
'max_companies' => 1,
|
||||||
'max_invoices_month' => 100,
|
'max_invoices_month' => 12000,
|
||||||
'max_users' => 3,
|
'max_users' => 1,
|
||||||
'price_jod' => 15.00,
|
'price_jod' => 120.00,
|
||||||
'ai_features' => true,
|
'ai_features' => true,
|
||||||
'jofotara_enabled' => true,
|
'jofotara_enabled' => true,
|
||||||
'badge_color' => 'blue',
|
'badge_color' => 'blue',
|
||||||
'description_ar' => 'للمحاسبين المستقلين — 3 شركات',
|
'description_ar' => 'للمحاسبين المستقلين والشركات الصغيرة — 12,000 فاتورة سنوياً',
|
||||||
'features' => [
|
'features' => [
|
||||||
'استخراج الفواتير بالذكاء الاصطناعي',
|
'استخراج الفواتير بالذكاء الاصطناعي',
|
||||||
'الربط المباشر مع جوفوترة',
|
'الربط المباشر مع جوفوترة',
|
||||||
'حتى 3 شركات',
|
'شركة واحدة فقط',
|
||||||
'100 فاتورة شهرياً',
|
'12,000 فاتورة سنوياً (سخية جداً)',
|
||||||
'3 مستخدمين',
|
'مستخدم واحد',
|
||||||
'تقارير شهرية',
|
'دعم فني عبر الواتساب',
|
||||||
],
|
|
||||||
],
|
|
||||||
'office' => [
|
|
||||||
'id' => 'office',
|
|
||||||
'name_ar' => 'مكتبية',
|
|
||||||
'name_en' => 'Office',
|
|
||||||
'max_companies' => 10,
|
|
||||||
'max_invoices_month' => 500,
|
|
||||||
'max_users' => 10,
|
|
||||||
'price_jod' => 45.00,
|
|
||||||
'ai_features' => true,
|
|
||||||
'jofotara_enabled' => true,
|
|
||||||
'badge_color' => 'teal',
|
|
||||||
'is_popular' => true,
|
|
||||||
'description_ar' => 'للمكاتب المحاسبية — ربط مباشر بجوفوترة',
|
|
||||||
'features' => [
|
|
||||||
'كل ميزات الأساسية',
|
|
||||||
'ربط مباشر بنظام JoFotara',
|
|
||||||
'حتى 10 شركات',
|
|
||||||
'500 فاتورة شهرياً',
|
|
||||||
'10 مستخدمين',
|
|
||||||
'تقارير متقدمة + تصدير',
|
|
||||||
'دعم فني بالأولوية',
|
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'pro' => [
|
'pro' => [
|
||||||
'id' => 'pro',
|
'id' => 'pro',
|
||||||
'name_ar' => 'احترافية',
|
'name_ar' => 'الباقة الاحترافية (سنوي)',
|
||||||
'name_en' => 'Pro',
|
'name_en' => 'Pro Plan (Annual)',
|
||||||
'max_companies' => 25,
|
'max_companies' => 9999,
|
||||||
'max_invoices_month' => 2000,
|
'max_invoices_month' => 50000,
|
||||||
'max_users' => 25,
|
'max_users' => 5,
|
||||||
'price_jod' => 99.00,
|
'price_jod' => 250.00,
|
||||||
'ai_features' => true,
|
|
||||||
'jofotara_enabled' => true,
|
|
||||||
'badge_color' => 'navy',
|
|
||||||
'description_ar' => 'للمكاتب الكبيرة — حجم عمل ضخم بلا حدود عملية',
|
|
||||||
'features' => [
|
|
||||||
'كل ميزات المكتبية',
|
|
||||||
'حتى 25 شركة',
|
|
||||||
'2000 فاتورة شهرياً',
|
|
||||||
'25 مستخدم',
|
|
||||||
'API كامل لتطبيق الهاتف',
|
|
||||||
'تدقيق ذكي بالـ AI (Pre-Audit)',
|
|
||||||
'مدير حساب مخصص',
|
|
||||||
],
|
|
||||||
],
|
|
||||||
'enterprise' => [
|
|
||||||
'id' => 'enterprise',
|
|
||||||
'name_ar' => 'مؤسسية',
|
|
||||||
'name_en' => 'Enterprise',
|
|
||||||
'max_companies' => 999,
|
|
||||||
'max_invoices_month' => 99999,
|
|
||||||
'max_users' => 999,
|
|
||||||
'price_jod' => 249.00,
|
|
||||||
'ai_features' => true,
|
'ai_features' => true,
|
||||||
'jofotara_enabled' => true,
|
'jofotara_enabled' => true,
|
||||||
'badge_color' => 'gold',
|
'badge_color' => 'gold',
|
||||||
'description_ar' => 'للمؤسسات — بلا حدود مع دعم مخصص',
|
'is_popular' => true,
|
||||||
|
'description_ar' => 'للمكاتب الكبيرة والموزعين — 50,000 فاتورة سنوياً',
|
||||||
'features' => [
|
'features' => [
|
||||||
'كل ميزات الاحترافية',
|
'استخراج الفواتير بالذكاء الاصطناعي',
|
||||||
'شركات وفواتير بلا حدود عملية',
|
'الربط المباشر مع جوفوترة',
|
||||||
'مستخدمين بلا حدود',
|
'عدد شركات غير محدود',
|
||||||
'SLA مضمون 99.9%',
|
'50,000 فاتورة سنوياً',
|
||||||
'ربط API مخصص',
|
'5 مستخدمين',
|
||||||
'تدريب فريق المحاسبة',
|
'API كامل لتطبيق الهاتف',
|
||||||
'نسخ احتياطي مخصص',
|
'مدير حساب مخصص',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -167,8 +167,8 @@
|
|||||||
<div class="pricing-grid">
|
<div class="pricing-grid">
|
||||||
|
|
||||||
<div class="price-card">
|
<div class="price-card">
|
||||||
<div class="price-name">مجانية</div>
|
<div class="price-name">التجربة المجانية</div>
|
||||||
<div class="price-amount">0 <span>دينار/شهر</span></div>
|
<div class="price-amount">0 <span>دينار/سنة</span></div>
|
||||||
<div class="price-desc">للتجربة الأولية</div>
|
<div class="price-desc">للتجربة الأولية</div>
|
||||||
<ul class="price-features">
|
<ul class="price-features">
|
||||||
<li><span class="feature-check">✔</span> شركة واحدة</li>
|
<li><span class="feature-check">✔</span> شركة واحدة</li>
|
||||||
@@ -180,63 +180,36 @@
|
|||||||
<a href="/register.php" class="btn btn-outline" style="width:100%">ابدأ مجاناً</a>
|
<a href="/register.php" class="btn btn-outline" style="width:100%">ابدأ مجاناً</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="price-card">
|
|
||||||
<div class="price-name">أساسية</div>
|
|
||||||
<div class="price-amount">15 <span>دينار/شهر</span></div>
|
|
||||||
<div class="price-desc">للمحاسبين المستقلين</div>
|
|
||||||
<ul class="price-features">
|
|
||||||
<li><span class="feature-check">✔</span> حتى 3 شركات</li>
|
|
||||||
<li><span class="feature-check">✔</span> 100 فاتورة شهرياً</li>
|
|
||||||
<li><span class="feature-check">✔</span> 3 مستخدمين</li>
|
|
||||||
<li><span class="feature-check">✔</span> تقارير شهرية</li>
|
|
||||||
<li><span class="feature-check">✔</span> دعم فني</li>
|
|
||||||
</ul>
|
|
||||||
<a href="/register.php" class="btn btn-outline" style="width:100%">اشترك الآن</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="price-card popular">
|
<div class="price-card popular">
|
||||||
<div class="popular-badge">⭐ الأكثر اختياراً</div>
|
<div class="popular-badge">⭐ الأكثر اختياراً</div>
|
||||||
<div class="price-name">مكتبية</div>
|
<div class="price-name">الباقة الأساسية (سنوي)</div>
|
||||||
<div class="price-amount">45 <span>دينار/شهر</span></div>
|
<div class="price-amount">120 <span>دينار/سنة</span></div>
|
||||||
<div class="price-desc">للمكاتب المحاسبية</div>
|
<div class="price-desc">للمحاسبين والشركات الصغيرة</div>
|
||||||
<ul class="price-features">
|
<ul class="price-features">
|
||||||
<li><span class="feature-check">✔</span> حتى 10 شركات</li>
|
<li><span class="feature-check">✔</span> شركة واحدة</li>
|
||||||
<li><span class="feature-check">✔</span> 500 فاتورة شهرياً</li>
|
<li><span class="feature-check">✔</span> 12,000 فاتورة سنوياً</li>
|
||||||
<li><span class="feature-check">✔</span> 10 مستخدمين</li>
|
<li><span class="feature-check">✔</span> مستخدم واحد</li>
|
||||||
<li><span class="feature-check">✔</span> تصدير Excel متقدم</li>
|
<li><span class="feature-check">✔</span> دعم فني متكامل</li>
|
||||||
<li><span class="feature-check">✔</span> دعم بالأولوية</li>
|
<li><span class="feature-check">✔</span> ربط مباشر مع جوفوترة</li>
|
||||||
</ul>
|
</ul>
|
||||||
<a href="/register.php" class="btn btn-primary" style="width:100%">اشترك الآن</a>
|
<a href="/register.php" class="btn btn-primary" style="width:100%">اشترك الآن</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="price-card">
|
<div class="price-card">
|
||||||
<div class="price-name">احترافية</div>
|
<div class="price-name">الباقة الاحترافية (سنوي)</div>
|
||||||
<div class="price-amount">99 <span>دينار/شهر</span></div>
|
<div class="price-amount">250 <span>دينار/سنة</span></div>
|
||||||
<div class="price-desc">للمكاتب الكبيرة</div>
|
<div class="price-desc">للمكاتب الكبيرة والموزعين</div>
|
||||||
<ul class="price-features">
|
<ul class="price-features">
|
||||||
<li><span class="feature-check">✔</span> حتى 25 شركة</li>
|
<li><span class="feature-check">✔</span> شركات غير محدودة</li>
|
||||||
<li><span class="feature-check">✔</span> 2,000 فاتورة شهرياً</li>
|
<li><span class="feature-check">✔</span> 50,000 فاتورة سنوياً</li>
|
||||||
<li><span class="feature-check">✔</span> 25 مستخدم</li>
|
<li><span class="feature-check">✔</span> 5 مستخدمين</li>
|
||||||
<li><span class="feature-check">✔</span> تدقيق ذكي استباقي</li>
|
<li><span class="feature-check">✔</span> تدقيق ذكي استباقي</li>
|
||||||
<li><span class="feature-check">✔</span> مدير حساب مخصص</li>
|
<li><span class="feature-check">✔</span> مدير حساب مخصص</li>
|
||||||
|
<li><span class="feature-check">✔</span> API كامل للتطبيق</li>
|
||||||
</ul>
|
</ul>
|
||||||
<a href="/register.php" class="btn btn-outline" style="width:100%">اشترك الآن</a>
|
<a href="/register.php" class="btn btn-outline" style="width:100%">اشترك الآن</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="price-card">
|
|
||||||
<div class="price-name">مؤسسية</div>
|
|
||||||
<div class="price-amount">249 <span>دينار/شهر</span></div>
|
|
||||||
<div class="price-desc">للمؤسسات الكبرى</div>
|
|
||||||
<ul class="price-features">
|
|
||||||
<li><span class="feature-check">✔</span> شركات بلا حدود</li>
|
|
||||||
<li><span class="feature-check">✔</span> فواتير بلا حدود</li>
|
|
||||||
<li><span class="feature-check">✔</span> مستخدمين بلا حدود</li>
|
|
||||||
<li><span class="feature-check">✔</span> SLA مضمون 99.9%</li>
|
|
||||||
<li><span class="feature-check">✔</span> تدريب + نسخ احتياطي</li>
|
|
||||||
</ul>
|
|
||||||
<a href="/register.php" class="btn btn-outline" style="width:100%">تواصل معنا</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -1868,8 +1868,7 @@
|
|||||||
<!-- Invoices -->
|
<!-- Invoices -->
|
||||||
<div class="usage-card">
|
<div class="usage-card">
|
||||||
<div style="display:flex; justify-content:space-between; margin-bottom:6px;">
|
<div style="display:flex; justify-content:space-between; margin-bottom:6px;">
|
||||||
<span style="font-weight:700; color:var(--text-1); font-size:14px;">📄 الفواتير
|
<span style="font-weight:700; color:var(--text-1); font-size:14px;">📄 رصيد الفواتير (سنوي)</span>
|
||||||
الشهرية</span>
|
|
||||||
<span class="num-font" style="font-weight:700; color:var(--green-mid);"
|
<span class="num-font" style="font-weight:700; color:var(--green-mid);"
|
||||||
x-text="(subscription?.invoices?.used || 0) + ' من ' + (subscription?.invoices?.limit || 0)"></span>
|
x-text="(subscription?.invoices?.used || 0) + ' من ' + (subscription?.invoices?.limit || 0)"></span>
|
||||||
</div>
|
</div>
|
||||||
@@ -1972,7 +1971,7 @@
|
|||||||
style="font-size:46px; font-weight:800; color:var(--green-mid);"
|
style="font-size:46px; font-weight:800; color:var(--green-mid);"
|
||||||
x-text="p.price_jod"></span>
|
x-text="p.price_jod"></span>
|
||||||
<span style="font-size:15px; color:var(--text-3); font-weight:500;"> دينار /
|
<span style="font-size:15px; color:var(--text-3); font-weight:500;"> دينار /
|
||||||
شهر</span>
|
سنة</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul
|
<ul
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
-- 1. تحديث الباقات الحالية إلى باقات سنوية بالأسعار والأرقام الجديدة
|
-- 1. تعطيل الباقات القديمة التي لم نعد نستخدمها
|
||||||
|
UPDATE subscription_plans SET is_active = 0 WHERE id IN ('office', 'enterprise');
|
||||||
|
|
||||||
|
-- 2. تحديث الباقات الحالية إلى باقات سنوية بالأسعار والأرقام الجديدة
|
||||||
UPDATE subscription_plans
|
UPDATE subscription_plans
|
||||||
SET
|
SET
|
||||||
name_ar = 'الباقة الأساسية (سنوي)',
|
name_ar = 'الباقة الأساسية (سنوي)',
|
||||||
@@ -6,7 +9,8 @@ SET
|
|||||||
price_jod = 120.00,
|
price_jod = 120.00,
|
||||||
max_invoices_month = 12000,
|
max_invoices_month = 12000,
|
||||||
max_companies = 1,
|
max_companies = 1,
|
||||||
max_users = 1
|
max_users = 1,
|
||||||
|
is_active = 1
|
||||||
WHERE id = 'basic';
|
WHERE id = 'basic';
|
||||||
|
|
||||||
UPDATE subscription_plans
|
UPDATE subscription_plans
|
||||||
@@ -16,10 +20,11 @@ SET
|
|||||||
price_jod = 250.00,
|
price_jod = 250.00,
|
||||||
max_invoices_month = 50000,
|
max_invoices_month = 50000,
|
||||||
max_companies = 9999, -- للشركات غير المحدودة
|
max_companies = 9999, -- للشركات غير المحدودة
|
||||||
max_users = 5
|
max_users = 5,
|
||||||
|
is_active = 1
|
||||||
WHERE id = 'pro';
|
WHERE id = 'pro';
|
||||||
|
|
||||||
-- 2. إبقاء الباقة المجانية كما هي
|
-- 3. إبقاء الباقة المجانية كما هي
|
||||||
UPDATE subscription_plans
|
UPDATE subscription_plans
|
||||||
SET
|
SET
|
||||||
name_ar = 'التجربة المجانية',
|
name_ar = 'التجربة المجانية',
|
||||||
@@ -27,10 +32,11 @@ SET
|
|||||||
price_jod = 0.00,
|
price_jod = 0.00,
|
||||||
max_invoices_month = 15,
|
max_invoices_month = 15,
|
||||||
max_companies = 1,
|
max_companies = 1,
|
||||||
max_users = 1
|
max_users = 1,
|
||||||
|
is_active = 1
|
||||||
WHERE id = 'free';
|
WHERE id = 'free';
|
||||||
|
|
||||||
-- 3. ترحيل وتحديث بيانات العملاء المشتركين حالياً
|
-- 4. ترحيل وتحديث بيانات العملاء المشتركين حالياً
|
||||||
UPDATE subscriptions s
|
UPDATE subscriptions s
|
||||||
JOIN subscription_plans sp ON s.plan_id = sp.id
|
JOIN subscription_plans sp ON s.plan_id = sp.id
|
||||||
SET
|
SET
|
||||||
|
|||||||
Reference in New Issue
Block a user