@include('components.admin-sidebar')

📊 إحصائيات الفيديوهات التفصيلية

تحليل شامل لجميع الفيديوهات حسب الحالة

العودة للفيديوهات
إجمالي الفيديوهات

{{ number_format($totalStats['total_videos']) }}

منشور

{{ number_format($totalStats['total_published']) }}

في المراجعة

{{ number_format($totalStats['total_pending']) }}

انتظار التسمية

{{ number_format($totalStats['total_awaiting_label']) }}

مرفوض

{{ number_format($totalStats['total_rejected']) }}

محذوف

{{ number_format($totalStats['total_deleted']) }}

إجمالي المشاهدات

{{ number_format($viewsSharesStats->total_views ?? 0) }}

إجمالي المشاركات

{{ number_format($viewsSharesStats->total_shares ?? 0) }}

متوسط المشاهدات

{{ number_format($viewsSharesStats->avg_views ?? 0) }}

متوسط المشاركات

{{ number_format($viewsSharesStats->avg_shares ?? 0) }}

توزيع الفيديوهات حسب الحالة
@php $totalCount = $statsByStatus->sum('count'); @endphp @foreach($statuses as $statusCode => $statusInfo) @php $count = $statsByStatus->get($statusCode)->count ?? 0; $percentage = $totalCount > 0 ? ($count / $totalCount) * 100 : 0; @endphp
{{ $statusInfo['name'] }}
{{ number_format($count) }}
{{ number_format($percentage, 1) }}%
@endforeach
أكثر الفيديوهات مشاهدة (المنشورة فقط)
@if($topVideosByViews->count() > 0)
@foreach($topVideosByViews as $index => $video) @endforeach
# عنوان الفيديو المشاهدات المشاركات تاريخ الإنشاء
@if($index < 3) {{ $index + 1 }} @else {{ $index + 1 }} @endif {{ Str::limit($video->title, 60) }} {{ number_format($video->video_views) }} {{ number_format($video->share) }} {{ \Carbon\Carbon::parse($video->createdAt)->format('Y-m-d') }}
@else

لا توجد فيديوهات منشورة

@endif
أكثر الفيديوهات مشاركة (المنشورة فقط)
@if($topVideosByShares->count() > 0)
@foreach($topVideosByShares as $index => $video) @endforeach
# عنوان الفيديو المشاركات المشاهدات تاريخ الإنشاء
@if($index < 3) {{ $index + 1 }} @else {{ $index + 1 }} @endif {{ Str::limit($video->title, 60) }} {{ number_format($video->share) }} {{ number_format($video->video_views) }} {{ \Carbon\Carbon::parse($video->createdAt)->format('Y-m-d') }}
@else

لا توجد فيديوهات منشورة

@endif
أحدث الفيديوهات حسب الحالة
@foreach($statuses as $statusCode => $statusInfo) @if($recentByStatus[$statusCode]->count() > 0)
{{ $statusInfo['name'] }} {{ $recentByStatus[$statusCode]->count() }}
@foreach($recentByStatus[$statusCode] as $video)
{{ Str::limit($video->title, 50) }}
{{ \Carbon\Carbon::parse($video->createdAt)->format('Y-m-d H:i') }}
{{ number_format($video->video_views) }} {{ number_format($video->share) }}
@endforeach
@endif @endforeach