{{-- resources/views/facebook-pages/index.blade.php --}} إدارة صفحات فيسبوك - إدارة الصفحات والردود التلقائية

{{ __('إدارة صفحات فيسبوك') }}

{{ __('إدارة صفحات فيسبوك المربوطة والردود التلقائية') }}

@if(isset($planLimits) && $planLimits['feature_available']) @if($planLimits['feature_available']) {{ __('ربط حساب جديد') }} @else {{ __('ترقية لإضافة المزيد') }} @endif @else {{ __('ترقية لتفعيل الميزة') }} @endif
@if(isset($planLimits)) @php $percentage = !$planLimits['unlimited'] && $planLimits['max'] > 0 ? ($planLimits['current'] / $planLimits['max']) * 100 : 0; $isLow = !$planLimits['unlimited'] && $planLimits['remaining'] <= 1; $isFull = !$planLimits['unlimited'] && $planLimits['remaining'] == 0; // Determine banner color - Facebook theme if (!$planLimits['feature_available']) { $bannerColor = 'from-purple-500 to-purple-600'; $iconBg = 'bg-purple-400/30'; } elseif ($isFull) { $bannerColor = 'from-red-500 to-red-600'; $iconBg = 'bg-red-400/30'; } elseif ($isLow) { $bannerColor = 'from-orange-500 to-orange-600'; $iconBg = 'bg-orange-400/30'; } elseif ($planLimits['unlimited']) { $bannerColor = 'from-green-500 to-green-600'; $iconBg = 'bg-green-400/30'; } else { $bannerColor = 'from-blue-500 to-blue-600'; $iconBg = 'bg-blue-400/30'; } @endphp

{{ __('الصفحات والحسابات المربوطة') }}

@if($planLimits['unlimited']) {{ __('غير محدود') }} @endif
{{ $planLimits['current'] }} @if(!$planLimits['unlimited']) / {{ $planLimits['max'] }} @endif {{ __('صفحة') }}
@if(!$planLimits['unlimited'])
@php $progressColor = $percentage >= 90 ? 'bg-red-300' : ($percentage >= 70 ? 'bg-yellow-300' : 'bg-green-300'); @endphp
{{ number_format($percentage, 0) }}%
@endif
@if(!$planLimits['feature_available']) {{ __('ترقية الآن') }} @elseif($isFull) {{ __('ترقية') }} @elseif($isLow) {{ __('عرض الباقات') }} @elseif($planLimits['unlimited']) @else @if($planLimits['remaining'] <= 2) {{ __('ترقية') }} @endif @endif
@endif
@if($facebookAccounts->isNotEmpty())
حسابات فيسبوك المربوطة ({{ $facebookAccounts->count() }})
@foreach($facebookAccounts as $account)
Profile
{{ $account->name }}
{{ $account->pages->count() }} صفحة @if($account->last_sync_at) • آخر تحديث: {{ $account->last_sync_at->diffForHumans() }} @endif
@endforeach
@endif
{{ $stats['total_accounts'] }}
حسابات فيسبوك
{{ $stats['total_pages'] }}
إجمالي الصفحات
{{ $stats['active_pages'] }}
الصفحات النشطة
{{ $stats['total_auto_replies'] }}
الردود التلقائية
@forelse($pages as $page)
Page
{{ $page->name }}
{{ $page->category ?: 'غير محدد' }}
{!! $page->getStatusBadge() !!} @if($page->facebookAccount) {{ $page->facebookAccount->name }} @endif
{{ number_format($page->fan_count) }}
متابع
{{ $page->autoReplies->count() }}
رد تلقائي
{{ $page->comments->count() }}
تعليق
@if($page->last_sync_at)
آخر تحديث: {{ $page->last_sync_at->diffForHumans() }}
@endif
@empty
لا توجد صفحات فيسبوك

@if(request()->hasAny(['search', 'account_id', 'status'])) لا توجد نتائج تطابق البحث الحالي
مسح الفلاتر @else ابدأ بربط حساب فيسبوك لإدارة صفحاتك @endif

@if(!request()->hasAny(['search', 'account_id', 'status'])) ربط حساب فيسبوك @endif
@endforelse
@if($pages->hasPages())
{{ $pages->appends(request()->query())->links() }}
@endif