@extends('admin.layouts.app') @section('title', 'لوحة تحكم النقاط والدعوات') @section('content')

لوحة تحكم النقاط والدعوات

إجمالي النقاط
{{ number_format($totalPoints) }}
النقاط المتاحة
{{ number_format($availablePoints) }}
الإحالات المكتملة
{{ $completedReferrals }}
طلبات الاسترداد المعلقة
{{ $pendingRedemptions }}
إحصائيات الفترة الأخيرة (30 يوم)
{{ number_format($earnedPoints) }}
نقاط مكتسبة
{{ number_format($usedPointsRecent) }}
نقاط مستخدمة

{{ $recentTransactions }}
معاملات
{{ $totalRedemptions }}
طلبات استرداد
{{ $activeRewards }}
مكافآت نشطة
أفضل المستخدمين (أكثر نقاط)
@if($topUsers->count() > 0)
@foreach($topUsers as $index => $userPoints) @endforeach
# المستخدم النقاط
{{ $index + 1 }}
{{ substr($userPoints->user->name, 0, 1) }}
{{ $userPoints->user->name }}
{{ $userPoints->user->email }}
{{ number_format($userPoints->points) }}
@else

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

@endif
أكثر الإحالات نجاحاً
@if($topReferrers->count() > 0)
@foreach($topReferrers as $index => $referrer) @endforeach
# المستخدم الإحالات النقاط
{{ $index + 1 }}
{{ substr($referrer->referrer->name, 0, 1) }}
{{ $referrer->referrer->name }}
{{ $referrer->referrer->email }}
{{ $referrer->total_referrals }} {{ number_format($referrer->total_points) }}
@else

لا توجد إحالات

@endif
المعاملات الحديثة
@if($recentTransactionsList->count() > 0)
@foreach($recentTransactionsList as $transaction) @endforeach
المستخدم النوع النقاط الوصف التاريخ
{{ substr($transaction->user->name, 0, 1) }}
{{ $transaction->user->name }}
@if($transaction->type === 'earned') كسب @elseif($transaction->type === 'used') استخدام @else {{ $transaction->type }} @endif {{ $transaction->type === 'earned' ? '+' : '' }}{{ $transaction->points }} {{ Str::limit($transaction->description, 30) }} {{ $transaction->created_at->format('Y-m-d H:i') }}
@else

لا توجد معاملات

@endif
طلبات الاسترداد الحديثة
@if($recentRedemptions->count() > 0)
@foreach($recentRedemptions as $redemption)
{{ $redemption->user->name }}
{{ $redemption->reward->name_ar }}
{{ $redemption->status === 'pending' ? 'معلق' : ($redemption->status === 'approved' ? 'موافق' : 'مرفوض') }}
{{ $redemption->points_used }} نقطة
@endforeach
@else

لا توجد طلبات استرداد

@endif
@endsection