{{-- resources/views/facebook-posts/index.blade.php --}} منشورات فيسبوك - إدارة ونشر المنشورات على صفحات فيسبوك

{{ __('منشورات فيسبوك') }}

{{ __('إدارة ونشر المنشورات على صفحات فيسبوك') }}

@if(isset($planLimits) && $planLimits['feature_available']) @if($planLimits['can_create_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'] <= 5; $isFull = !$planLimits['unlimited'] && $planLimits['remaining'] == 0; // Determine banner color 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 @endif
@endif
{{ $stats['total'] }}
إجمالي
{{ $stats['published'] }}
منشور
{{ $stats['scheduled'] }}
مجدول
{{ $stats['drafts'] }}
مسودة
@forelse($posts as $post)
@if($post->getPreviewImage())
Preview
{!! $post->getStatusBadge() !!}
@else
{!! $post->getTypeBadge() !!}
{!! $post->getStatusBadge() !!}
@endif

{{ $post->getTruncatedContent(120) }}

{{ $post->facebookPage->name ?? 'صفحة محذوفة' }}
{{ $post->created_at->diffForHumans() }}
@if($post->isScheduled())
مُجدول:
{{ auth()->user()->toUserTime($post->scheduled_at)->format('Y-m-d H:i') }} ({{ $post->scheduled_at->diffForHumans() }})
@endif @if($post->error_message)
خطأ:

{{ Str::limit($post->error_message, 80) }}

@endif @if($post->isPublished())
{{ $post->likes_count }}
{{ $post->comments_count }}
{{ $post->shares_count }}
@endif
@if($post->canEdit()) @endif @if(!$post->isPublished() && $post->status !== 'failed') @endif @if($post->canDelete()) @endif
@empty
لا توجد منشورات

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

@if(!request()->hasAny(['search', 'page_id', 'status', 'type'])) إنشاء منشور جديد @endif
@endforelse
@if($posts->hasPages())
{{ $posts->appends(request()->query())->links() }}
@endif