@extends($layout) @section('title', 'إحصائيات الأنشطة المباشرة') @section('content')
{{-- Header --}}

إحصائيات الأنشطة المباشرة

تحليل شامل للأنشطة المباشرة (لايف، جولات، سهرات)

{{-- Date Filter --}}
{{-- Stats Cards --}}
@include('general.score-records.partials._stats-card', [ 'title' => 'إجمالي الأنشطة', 'value' => number_format($stats['total_activities']), 'icon' => '', 'iconBg' => 'bg-blue-50' ]) @include('general.score-records.partials._stats-card', [ 'title' => 'إجمالي النقاط', 'value' => '+' . number_format($stats['total_points']), 'valueColor' => 'text-green-600', 'icon' => '', 'iconBg' => 'bg-green-50' ]) @include('general.score-records.partials._stats-card', [ 'title' => 'إجمالي الساعات', 'value' => number_format($stats['total_hours'], 1) . ' ساعة', 'valueColor' => 'text-purple-600', 'icon' => '', 'iconBg' => 'bg-purple-50' ]) @include('general.score-records.partials._stats-card', [ 'title' => 'متوسط النقاط', 'value' => $stats['total_activities'] > 0 ? number_format($stats['total_points'] / $stats['total_activities'], 1) : '0', 'valueColor' => 'text-orange-600', 'subtitle' => 'لكل نشاط', 'icon' => '', 'iconBg' => 'bg-orange-50' ])
{{-- Breakdown by Activity Type --}}

التفصيل حسب نوع النشاط

@if($stats['by_subtype']->isEmpty())

لا توجد بيانات للفترة المحددة

@else
@foreach($stats['by_subtype'] as $subtype)

@if($subtype->activity_subtype == 'live') لايف @elseif($subtype->activity_subtype == 'tour') جولة @elseif($subtype->activity_subtype == 'members_gathering') سهرة أعضاء @else {{ $subtype->activity_subtype }} @endif

@if($subtype->activity_subtype == 'live') @elseif($subtype->activity_subtype == 'tour') @else @endif
العدد: {{ number_format($subtype->count) }}
النقاط: +{{ number_format($subtype->points) }}
الساعات: {{ number_format($subtype->hours, 1) }}س
@endforeach
@endif
@endsection