الباقات المتاحة

{{ __('messages.choose_your_plan') }}

{{ __('messages.select_perfect_plan') }}

@php // Helper function to get feature names in Arabic function getFeatureName($key) { $names = [ 'facebook_accounts' => 'حسابات فيسبوك', 'instagram_accounts' => 'حسابات إنستقرام', 'facebook_pages' => 'صفحات فيسبوك', 'facebook_groups' => 'مجموعات فيسبوك', 'facebook_posts' => 'منشورات فيسبوك شهرياً', 'instagram_posts' => 'منشورات إنستقرام شهرياً', 'scheduled_posts' => 'منشورات مجدولة', 'facebook_auto_replies' => 'ردود فيسبوك التلقائية', 'instagram_auto_replies' => 'ردود إنستقرام التلقائية', 'auto_replies' => 'إجمالي الردود التلقائية', 'quick_replies' => 'ردود سريعة محفوظة', 'team_members' => 'أعضاء الفريق', 'api_requests' => 'طلبات API شهرياً', 'integrations' => 'تكاملات خارجية', 'analytics_retention_days' => 'الاحتفاظ بالتحليلات (يوم)', 'report_exports' => 'تصدير التقارير شهرياً', 'media_storage' => 'مساحة تخزين الوسائط (GB)', 'support_level' => 'مستوى الدعم', 'advanced_analytics' => 'تحليلات متقدمة', 'white_label' => 'علامة تجارية مخصصة', 'priority_support' => 'دعم فني أولوية', 'custom_branding' => 'شعار مخصص', 'bulk_operations' => 'عمليات مجمعة', 'webhook_access' => 'الوصول لـ Webhooks' ]; return $names[$key] ?? ucfirst(str_replace('_', ' ', $key)); } @endphp @if(request('success'))

تم الدفع بنجاح!

{{ __('messages.✅ Payment successful! Your subscription is activated and you can now enjoy the plan benefits.') }}

@endif @if(session('error'))

وصلت للحد الأقصى!

{{ session('error') }}

@endif @if(session('success'))

{{ session('success') }}

@endif @if(auth()->user()->plan) @php $user = auth()->user(); $currentPlan = $user->plan; // تجميع المزايا الأساسية فقط $usageData = [ 'facebook_accounts' => [ 'name' => 'حسابات FB', 'icon' => 'fab fa-facebook-f', 'color' => 'blue', 'current' => $user->getFeatureUsage('facebook_accounts'), 'max' => $currentPlan->getFeatureLimit('facebook_accounts'), 'unlimited' => $currentPlan->hasUnlimitedFeature('facebook_accounts') ], 'instagram_accounts' => [ 'name' => 'حسابات IG', 'icon' => 'fab fa-instagram', 'color' => 'pink', 'current' => $user->getFeatureUsage('instagram_accounts'), 'max' => $currentPlan->getFeatureLimit('instagram_accounts'), 'unlimited' => $currentPlan->hasUnlimitedFeature('instagram_accounts') ], 'facebook_pages' => [ 'name' => 'صفحات FB', 'icon' => 'fas fa-users', 'color' => 'indigo', 'current' => $user->getFeatureUsage('facebook_pages'), 'max' => $currentPlan->getFeatureLimit('facebook_pages'), 'unlimited' => $currentPlan->hasUnlimitedFeature('facebook_pages') ], 'facebook_auto_replies' => [ 'name' => 'ردود FB', 'icon' => 'fas fa-robot', 'color' => 'green', 'current' => $user->getFeatureUsage('facebook_auto_replies'), 'max' => $currentPlan->getFeatureLimit('facebook_auto_replies'), 'unlimited' => $currentPlan->hasUnlimitedFeature('facebook_auto_replies') ], 'instagram_auto_replies' => [ 'name' => 'ردود IG', 'icon' => 'fas fa-reply-all', 'color' => 'purple', 'current' => $user->getFeatureUsage('instagram_auto_replies'), 'max' => $currentPlan->getFeatureLimit('instagram_auto_replies'), 'unlimited' => $currentPlan->hasUnlimitedFeature('instagram_auto_replies') ] ]; // فلترة المزايا المتاحة فقط $usageData = array_filter($usageData, function($data) { return $data['max'] != 0; }); // حساب التحذيرات $reachedLimits = array_filter($usageData, function($data) { return !$data['unlimited'] && $data['max'] > 0 && $data['current'] >= $data['max']; }); $daysRemaining = $user->access_expires_at ? now()->diffInDays($user->access_expires_at, false) : 0; $isExpired = $daysRemaining < 0; $isExpiringSoon = $daysRemaining >= 0 && $daysRemaining <= 7; @endphp
@endif
@foreach($plans as $plan) @if(auth()->user()->plan_id === $plan->id) @php $daysRemaining = auth()->user()->access_expires_at ? now()->diffInDays(auth()->user()->access_expires_at, false) : 0; $isExpired = $daysRemaining < 0; $isExpiringSoon = $daysRemaining >= 0 && $daysRemaining <= 7; @endphp
@if($isExpired) ⚠️ باقة منتهية @elseif($isExpiringSoon) ⏰ تنتهي قريباً @else ✅ {{ __('messages.current_plan') }} @endif
@if($isExpired) @else @endif
{{ $plan->title }}
{{ $plan->description }}
${{ number_format($plan->price, 2) }} / {{ $plan->period_text }}
@if($plan->features)
    @foreach($plan->features as $key => $value) @if($value != 0)
  • {{ getFeatureName($key) }}: @if($value == -1) غير محدود @else {{ $value }} @endif
  • @endif @endforeach
@endif
@if($isExpired)
⚠️ الباقة منتهية
انتهت منذ {{ abs($daysRemaining) }} يوم
@elseif($isExpiringSoon)
⏰ الباقة تنتهي قريباً
متبقي {{ $daysRemaining }} {{ $daysRemaining == 1 ? 'يوم' : 'أيام' }} فقط
@else
{{__('messages.next_payment_due')}}
@endif @if(auth()->user()->access_expires_at)
{{ auth()->user()->access_expires_at->format('d M Y') }}
@endif
@if($isExpired) تجديد الباقة الآن

جدد باقتك الآن لاستعادة الوصول إلى جميع المزايا

@elseif($isExpiringSoon)
⏳ تمديد الباقة

مدد باقتك الآن بسعر ${{ number_format($plan->price, 2) }}

@else @endif @if(!$isExpired)
@csrf
@endif
@elseif ($plan->active && auth()->user()->plan_id !== $plan->id)
@if(auth()->user()->plan) @php $currentPlan = auth()->user()->plan; $isUpgrade = $plan->price > $currentPlan->price; $improvements = []; if($plan->features && $currentPlan->features) { foreach($plan->features as $key => $value) { $currentValue = $currentPlan->features[$key] ?? 0; if($value > $currentValue || ($value == -1 && $currentValue != -1)) { $improvements[] = getFeatureName($key); } } } @endphp @if($isUpgrade && count($improvements) > 0) ⭐ ترقية موصى بها @endif @endif
{{ $plan->title }}
{{ $plan->description }}
LYD {{ number_format($plan->price, 0) }} / {{ $plan->period_days }} {{ $plan->period_type == 'days' ? 'يوم' : ($plan->period_type == 'months' ? 'شهر' : 'سنة') }}
@if($plan->features)
    @foreach($plan->features as $key => $value) @if($value != 0)
  • @php $isImproved = false; if(auth()->user()->plan && isset(auth()->user()->plan->features[$key])) { $currentValue = auth()->user()->plan->features[$key]; $isImproved = $value > $currentValue || ($value == -1 && $currentValue != -1); } @endphp {{ getFeatureName($key) }}: @if($value == -1) غير محدود @else {{ $value }} @endif @if($isImproved) @endif
  • @endif @endforeach
@endif @if(isset($improvements) && count($improvements) > 0)
تحسينات هذه الباقة:
{{ implode(' • ', array_slice($improvements, 0, 3)) }} @if(count($improvements) > 3) + {{ count($improvements) - 3 }} أخرى @endif
@endif
@endif @endforeach

لديك أسئلة؟

نحن هنا لمساعدتك في اختيار الباقة المناسبة

اتصل بنا