تقرير سجلات النقاط

تاريخ التوليد: {{ $generated_at }}

تم إنشاؤه بواسطة: {{ $generated_by }}

@if (!empty($filters))

الفلاتر المطبقة: @if (!empty($filters['date_from'])) من تاريخ: {{ $filters['date_from'] }} @endif @if (!empty($filters['date_to'])) إلى تاريخ: {{ $filters['date_to'] }} @endif @if (!empty($filters['source_type'])) نوع النشاط: @if ($filters['source_type'] === 'evaluation') تقييم يومي @elseif ($filters['source_type'] === 'live_activity') نشاط مباشر @elseif ($filters['source_type'] === 'guest') قيست @elseif ($filters['source_type'] === 'violation') مخالفة @elseif ($filters['source_type'] === 'warning') إنذار @elseif ($filters['source_type'] === 'honor_reward') تكريم/مكافأة @elseif ($filters['source_type'] === 'competition') مسابقة @endif @endif @if (!empty($filters['points_type'])) نوع النقاط: @if ($filters['points_type'] === 'positive') النقاط الإيجابية @elseif ($filters['points_type'] === 'negative') النقاط السلبية @endif @endif @if (!empty($filters['member_status'])) حالة العضو: @if ($filters['member_status'] === 'active') الأعضاء النشطين @elseif ($filters['member_status'] === 'left') الأعضاء المغادرين @endif @endif

@endif
@if($records->isEmpty())

لا توجد سجلات

@else @php $counter = 1; @endphp @foreach($records as $record) @endforeach
# العضو نوع النشاط الوصف النقاط الساعات التاريخ
{{ $counter++ }} {{ $record->user->name ?? 'غير معروف' }} @if($record->source_type == 'evaluation') تقييم يومي @elseif($record->source_type == 'live_activity') نشاط مباشر @elseif($record->source_type == 'guest') قيست @elseif($record->source_type == 'violation') مخالفة @elseif($record->source_type == 'warning') إنذار @elseif($record->source_type == 'honor_reward') تكريم/مكافأة @elseif($record->source_type == 'competition') مسابقة @else {{ $record->source_type }} @endif {{ $record->description }} {{ $record->points >= 0 ? '+' : '' }}{{ number_format($record->points) }} {{ number_format($record->hours, 1) }} {{ $record->recorded_date->format('Y-m-d') }}

ملخص الإحصائيات

@php $totalPositive = $records->where('points', '>', 0)->sum('points'); $totalNegative = abs($records->where('points', '<', 0)->sum('points')); $totalPoints = $totalPositive - $totalNegative; $totalHours = $records->sum('hours'); @endphp

إجمالي السجلات: {{ $records->total() }}

إجمالي النقاط الإيجابية: +{{ number_format($totalPositive) }}

إجمالي النقاط السلبية: -{{ number_format($totalNegative) }}

إجمالي النقاط الصافية: {{ $totalPoints >= 0 ? '+' : '' }}{{ number_format($totalPoints) }}

إجمالي الساعات: {{ number_format($totalHours, 1) }} ساعة

@endif