تقرير التكريمات والمكافآت - المشرف

نظام إدارة فريق الوفاء الذهبي
المشرف: {{ auth()->user()->name }} | الجنس: {{ auth()->user()->gender === 'male' ? 'ذكر' : 'أنثى' }} | البريد الإلكتروني: {{ auth()->user()->email }}
تاريخ التقرير: {{ now()->format('Y/m/d H:i') }}
📋 هذا التقرير يشمل التكريمات والمكافآت التي يمكن للمشرف الوصول إليها (نفس الجنس + التكريمات التي أنشأها المشرف + تكريمات السوبر أدمن)

الإحصائيات العامة

{{ $honorsRewards->count() }}
إجمالي العدد
{{ $honorsRewards->where('type', 'honor')->count() }}
التكريمات
{{ $honorsRewards->where('type', 'reward')->count() }}
المكافآت
{{ $honorsRewards->where('created_by', auth()->id())->count() }}
أنشأتها
{{ $honorsRewards->where('status', 'active')->count() }}
نشط
{{ $honorsRewards->where('status', 'completed')->count() }}
مكتمل
{{ $honorsRewards->sum('points_amount') ?: 0 }}
إجمالي النقاط
{{ $honorsRewards->sum('recipients_count') }}
إجمالي المستلمين
@php $myCreated = $honorsRewards->where('created_by', auth()->id()); $othersCreated = $honorsRewards->where('created_by', '!=', auth()->id()); @endphp @if($myCreated->isNotEmpty())

التكريمات والمكافآت التي أنشأتها ({{ $myCreated->count() }})

@foreach($myCreated as $item)

{{ $item->title }}

أنشأته
{{ $item->type_text }}
التاريخ: {{ $item->created_at->format('Y/m/d') }}
الحالة: {{ $item->status_text }}
المستلمين: {{ $item->recipients_count }} شخص
@if($item->points_amount)
النقاط: {{ $item->points_amount }} نقطة
@endif @if($item->rank)
الرتبة: {{ $item->rank->name }}
@endif @if($item->executed_at)
تاريخ التنفيذ: {{ $item->executed_at->format('Y/m/d H:i') }}
@endif

سبب {{ $item->type_text }}:

{{ $item->reason }}

@if($item->additional_notes)

ملاحظات إضافية:

{{ $item->additional_notes }}

@endif @if($item->recipients->isNotEmpty())

المستلمون ({{ $item->recipients->count() }}):

@foreach($item->recipients as $recipient)
{{ $recipient->user->name }}
{{ $recipient->user->email }}
@if($recipient->awarded_at)
✓ تم المنح: {{ $recipient->awarded_at->format('Y/m/d') }}
@endif
@endforeach
@endif
@endforeach @endif @if($othersCreated->isNotEmpty())

التكريمات والمكافآت الأخرى التي يمكنني الوصول إليها ({{ $othersCreated->count() }})

@foreach($othersCreated as $item)

{{ $item->title }}

{{ $item->type_text }}
المنشئ: {{ $item->creator->name }}
التاريخ: {{ $item->created_at->format('Y/m/d') }}
الحالة: {{ $item->status_text }}
المستلمين: {{ $item->recipients_count }} شخص
@if($item->points_amount)
النقاط: {{ $item->points_amount }} نقطة
@endif @if($item->rank)
الرتبة: {{ $item->rank->name }}
@endif @if($item->executed_at)
تاريخ التنفيذ: {{ $item->executed_at->format('Y/m/d H:i') }}
@endif

سبب {{ $item->type_text }}:

{{ $item->reason }}

@if($item->additional_notes)

ملاحظات إضافية:

{{ $item->additional_notes }}

@endif @if($item->recipients->isNotEmpty())

المستلمون ({{ $item->recipients->count() }}):

@foreach($item->recipients as $recipient)
{{ $recipient->user->name }}
{{ $recipient->user->email }}
@if($recipient->awarded_at)
✓ تم المنح: {{ $recipient->awarded_at->format('Y/m/d') }}
@endif
@endforeach
@endif
@endforeach @endif @if($honorsRewards->isEmpty())

لا توجد بيانات للعرض

لا توجد تكريمات أو مكافآت تطابق المعايير المحددة أو يمكنك الوصول إليها.

تذكر أنه يمكنك فقط عرض التكريمات والمكافآت للأعضاء من نفس الجنس أو التي أنشأتها بنفسك.

@endif