{{-- resources/views/instagram/index.blade.php --}} إدارة حسابات إنستقرام

{{ __('إدارة حسابات إنستقرام') }}

{{ __('ربط وإدارة حسابات إنستقرام للنشر والتفاعل') }}

@if(isset($planLimits) && $planLimits['feature_available']) @if($planLimits['can_add_more']) {{ __('ربط حساب جديد') }} @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 - Instagram 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-purple-600 via-pink-600 to-orange-500'; $iconBg = 'bg-white/20'; } @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
{{ $accounts->count() }}
{{ __('إجمالي الحسابات') }}
{{ __('مربوطة بحسابك') }}
{{ number_format($accounts->sum('followers_count')) }}
{{ __('إجمالي المتابعين') }}
{{ __('متابيعن الحسابات ') }}
{{ number_format($accounts->sum('media_count')) }}
{{ __('إجمالي المنشورات') }}
{{ __('منشورة على حسابك') }}
@if($planLimits['unlimited'] ?? false) @else {{ $planLimits['remaining'] ?? 0 }} @endif
{{ __('متاح للربط') }}
@if($planLimits['unlimited'] ?? false) {{ __('بدون حدود') }} @else {{ __('حسب باقتك') }} @endif
@if($accounts->isEmpty())

لم تقم بربط أي حساب إنستقرام بعد

ابدأ بربط حساب إنستقرام للاستفادة من جميع المميزات

ربط حساب إنستقرام
@else
@foreach($accounts as $account) @endforeach
@endif