{{-- resources/views/general/posts/management.blade.php --}} @extends($layout) @section('title', 'إدارة المنشورات') @section('content')
{{-- Page Header --}}

إدارة المنشورات

مراقبة وإدارة منشورات الأعضاء

{{-- Statistics Cards --}}
إجمالي
{{ $stats['total_posts'] }}
نشطة
{{ $stats['active_posts'] }}
مخفية
{{ $stats['hidden_posts'] }}
محذوفة
{{ $stats['deleted_posts'] }}
مثبتة
{{ $stats['pinned_posts'] }}
{{-- Filters --}}

فلترة المنشورات

{{-- Posts Cards Grid --}}
@forelse($posts as $post)
{{ $post->user->name }} @if($post->user->is_online ?? false)
@endif

{{ $post->user->name }}

{{ $post->user->email }}

@if($post->status === 'active') {{-- البوست ظاهر - عين مفتوحة --}} ظاهر @elseif($post->status === 'hidden') {{-- البوست مخفي - عين مقفولة --}} مخفي @else محذوف @endif

{{ Str::limit($post->content ?? 'منشور بدون محتوى نصي', 80) }}

{{ $post->created_at->format('Y/m/d') }} @if($post->has_attachments) {{ count($post->attachments) }} @endif @if($post->is_pinned) مثبت @endif
@if($post->status === 'active') {{-- البوست ظاهر - زر الإخفاء --}} @elseif($post->status === 'hidden') {{-- البوست مخفي - زر الإظهار --}} @endif @if($post->status !== 'deleted') @endif
@empty

لا توجد منشورات

لم يتم العثور على أي منشورات تطابق معايير البحث

@endforelse
{{-- Pagination --}} @if($posts->hasPages())
{{ $posts->appends(request()->query())->links() }}
@endif
{{-- Scripts --}} @endsection