التقرير التفصيلي للعضو: {{ $user->name }}

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

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

الفترة: من {{ $period['start'] }} إلى {{ $period['end'] }}

معلومات العضو

الاسم: {{ $user->name }}

اسم المستخدم: {{ $user->username }}

حالة العضوية: {{ $user->membership_status_text }}

الجنس: {{ $user->gender_text }}

إجمالي النقاط: {{ $total_points }}

حالة الحساب: {{ $user->account_status_text }}

الانضمام في: {{ $user->joined_at ? $user->joined_at->format('Y-m-d') : 'غير معروف' }}

@if($ranks->isNotEmpty())

الشارات/الرتب:

@foreach($ranks as $rank) {{ $rank->name }} @endforeach
@endif

الملخص الإجمالي

@php $evalCount = $evaluations->count(); $evalPoints = $evaluations->sum('points'); $evalHours = $evaluations->sum('hours'); $actCount = $activities->count(); $actPoints = $activities->sum('points'); $actHours = $activities->sum('hours'); $guestCount = $guests->count(); $guestPoints = $guests->sum('points'); $guestHours = $guests->sum('hours'); $violCount = $violations->count(); $violPoints = $violations->sum('points'); $honorCount = $honors->count(); $honorPoints = $honors->sum('points'); $compCount = $competitions->count(); $compPoints = $competitions->sum('points'); $totalRecords = $evalCount + $actCount + $guestCount + $violCount + $honorCount + $compCount; $totalPoints = $evalPoints + $actPoints + $guestPoints + $violPoints + $honorPoints + $compPoints; $totalHours = $evalHours + $actHours + $guestHours; @endphp
نوع السجل العدد النقاط الساعات
تقييمات يومية {{ $evalCount }} {{ $evalPoints >= 0 ? '+' : '' }}{{ number_format($evalPoints) }} {{ number_format($evalHours, 1) }}
أنشطة مباشرة {{ $actCount }} {{ $actPoints >= 0 ? '+' : '' }}{{ number_format($actPoints) }} {{ number_format($actHours, 1) }}
قيستات {{ $guestCount }} {{ $guestPoints >= 0 ? '+' : '' }}{{ number_format($guestPoints) }} {{ number_format($guestHours, 1) }}
مخالفات وإنذارات {{ $violCount }} {{ $violPoints >= 0 ? '+' : '' }}{{ number_format($violPoints) }} 0.0
تكريمات ومكافآت {{ $honorCount }} {{ $honorPoints >= 0 ? '+' : '' }}{{ number_format($honorPoints) }} 0.0
مسابقات {{ $compCount }} {{ $compPoints >= 0 ? '+' : '' }}{{ number_format($compPoints) }} 0.0
الإجمالي {{ $totalRecords }} {{ $totalPoints >= 0 ? '+' : '' }}{{ number_format($totalPoints) }} {{ number_format($totalHours, 1) }}
@if($evaluations->isNotEmpty())

سجل التقييمات

@foreach($evaluations as $eval) @php $details = $eval->details ?? []; $status = $details['attendance_status'] ?? 'غير معروف'; $whatsapp = $details['whatsapp_presence'] ?? 0; $tiktok = $details['tiktok_interaction'] ?? 0; @endphp @endforeach
التاريخ الحالة واتساب تيك توك النقاط المقيم
{{ $eval->recorded_date->format('Y-m-d') }} @if($status == 'present') حاضر @elseif($status == 'absent_with_excuse') غائب بعذر @elseif($status == 'absent_without_excuse') غائب بدون عذر @else {{ $status }} @endif {{ $whatsapp }} {{ $tiktok }} {{ $eval->points >= 0 ? '+' : '' }}{{ $eval->points }} {{ $eval->source && $eval->source->evaluator ? $eval->source->evaluator->name : 'غير معروف' }}
@endif @if($activities->isNotEmpty())

سجل الأنشطة المباشرة

@foreach($activities as $activity) @php $details = $activity->details ?? []; $status = $details['status'] ?? 'غير معروف'; @endphp @endforeach
التاريخ نوع النشاط الوصف الحالة النقاط الساعات
{{ $activity->recorded_date->format('Y-m-d') }} @if($activity->activity_subtype == 'live') لايف @elseif($activity->activity_subtype == 'tour') جولة @elseif($activity->activity_subtype == 'guest') قيست @elseif($activity->activity_subtype == 'members_gathering') سهرة أعضاء @else {{ $activity->activity_subtype }} @endif {{ $activity->description }} @if($status == 'confirmed') مؤكد @elseif($status == 'absent_with_excuse') غائب بعذر @elseif($status == 'absent_no_excuse') غائب بدون عذر @else {{ $status }} @endif {{ $activity->points >= 0 ? '+' : '' }}{{ $activity->points }} {{ number_format($activity->hours, 1) }}
@endif
@if($guests->isNotEmpty())

سجل القيستات

@foreach($guests as $guest) @endforeach
التاريخ الوصف النقاط الساعات
{{ $guest->recorded_date->format('Y-m-d') }} {{ $guest->description }} {{ $guest->points >= 0 ? '+' : '' }}{{ $guest->points }} {{ number_format($guest->hours, 1) }}
@endif @if($violations->isNotEmpty())

سجل المخالفات والإنذارات

@foreach($violations as $violation) @endforeach
التاريخ النوع الوصف النقاط
{{ $violation->recorded_date->format('Y-m-d') }} @if($violation->source_type == 'warning') إنذار @elseif($violation->source_type == 'violation') مخالفة @else {{ $violation->source_type }} @endif {{ $violation->description }} {{ $violation->points >= 0 ? '+' : '' }}{{ $violation->points }}
@endif @if($honors->isNotEmpty())

سجل التكريمات والمكافآت

@foreach($honors as $honor) @php $details = $honor->details ?? []; $rankName = $details['rank_name'] ?? null; @endphp @endforeach
التاريخ النوع الوصف النقاط الرتبة
{{ $honor->recorded_date->format('Y-m-d') }} @if(isset($details['type']) && $details['type'] == 'honor') تكريم @else مكافأة @endif {{ $honor->description }} {{ $honor->points >= 0 ? '+' : '' }}{{ $honor->points }} {{ $rankName ?? 'لا يوجد' }}
@endif @if($competitions->isNotEmpty())

سجل المسابقات

@foreach($competitions as $competition) @php $details = $competition->details ?? []; $status = $details['status'] ?? 'غير معروف'; $rankName = $details['rank_name'] ?? null; @endphp @endforeach
التاريخ المسابقة الحالة النقاط الرتبة
{{ $competition->recorded_date->format('Y-m-d') }} {{ $competition->description }} @if($status == 'participating') مشارك @elseif($status == 'qualified') مؤهل @elseif($status == 'winner') فائز @elseif($status == 'disqualified') مستبعد @else {{ $status }} @endif {{ $competition->points >= 0 ? '+' : '' }}{{ $competition->points }} {{ $rankName ?? 'لا يوجد' }}
@endif

الملخص الإجمالي

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

إجمالي النقاط السلبية: -{{ number_format($totalPoints < 0 ? abs($totalPoints) : 0) }}

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

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