@extends('layouts.admin') @section('title', 'القائمة الذهبية') @section('content')
@include('components.admin-sidebar')

إحصائيات القائمة الذهبية

تحليل شامل للفيديوهات المميزة حسب الدول والتصنيفات

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

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

إجمالي الإدخالات

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

عدد الدول

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

عدد التصنيفات

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

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

{{ 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 $statusLabels = [ 'success' => ['name' => 'ناجح', 'color' => 'success', 'icon' => 'check-circle'], 'failed' => ['name' => 'فاشل', 'color' => 'danger', 'icon' => 'times-circle'], ]; $totalStatusCount = $statsByStatus->sum('count'); @endphp @foreach($statusLabels as $statusKey => $statusInfo) @php $count = $statsByStatus->get($statusKey)->count ?? 0; $percentage = $totalStatusCount > 0 ? ($count / $totalStatusCount) * 100 : 0; @endphp
{{ $statusInfo['name'] }}
{{ number_format($count) }}
{{ number_format($percentage, 1) }}%
@endforeach @if($totalStatusCount == 0)

لا توجد بيانات

@endif
أكثر الفيديوهات مشاهدة
@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) }}
@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) }}
@else

لا توجد بيانات

@endif
إحصائيات حسب الدولة
@if(count($statsByCountry) > 0)
@foreach($statsByCountry as $stat)
{{ $stat['name'] }}
{{ number_format($stat['count']) }}
فيديو
@endforeach
@else

لا توجد بيانات

@endif
إحصائيات حسب التصنيف
@if(count($statsByCategory) > 0) @php $maxCount = max(array_column($statsByCategory, 'count')); @endphp @foreach($statsByCategory as $stat)
{{ $stat['name'] }} {{ number_format($stat['count']) }}
{{ number_format(($stat['count'] / $maxCount) * 100, 1) }}%
@endforeach @else

لا توجد بيانات

@endif
جدول التوزيع (الدولة × التصنيف)

يعرض هذا الجدول عدد الفيديوهات لكل دولة وتصنيف

@if(count($statsMatrix) > 0) @foreach($statsMatrix as $countryCode => $countryData)
{{ $countryData['name'] }}
@foreach($countryData['categories'] as $categoryId => $categoryData)
{{ $categoryData['name'] }}
{{ number_format($categoryData['count']) }}
@endforeach
@endforeach @else

لا توجد بيانات

@endif
@endsection