@extends('layouts.app') @section('title', 'التقدير والمكافآت') @push('styles') @endpush @section('content')

الإجمالي

{{ number_format($stats['total']) }}

إجمالي النقاط

{{ number_format($stats['total_points']) }}

هذا الشهر

{{ number_format($stats['this_month']) }}

سجل التقدير

@if($recognitions->count() > 0)
@foreach($recognitions as $index => $recognition) @endforeach
# من إلى الفئة الرسالة النقاط عام التاريخ
{{ $recognitions->firstItem() + $index }} {{ $recognition->from_employee_name ?? '-' }} {{ $recognition->to_employee_name ?? '-' }} @php $categoryBadges = [ 'teamwork' => 'badge-info', 'innovation' => 'badge-warning', 'leadership' => 'badge-primary', 'customer_service' => 'badge-success', 'excellence' => 'badge-danger', ]; $categoryLabels = [ 'teamwork' => 'عمل جماعي', 'innovation' => 'ابتكار', 'leadership' => 'قيادة', 'customer_service' => 'خدمة عملاء', 'excellence' => 'تميز', ]; @endphp {{ $categoryLabels[$recognition->category] ?? $recognition->category }} {{ Str::limit($recognition->message, 50) }} {{ $recognition->points }} @if($recognition->is_public) نعم @else لا @endif {{ date('Y-m-d', strtotime($recognition->created_at)) }}
{{ $recognitions->links() }}
@else

لا يوجد تقديرات بعد

@endif

لوحة المتصدرين

@forelse($leaderboard->take(10) as $index => $entry)
@if($index === 0) 🥇 @elseif($index === 1) 🥈 @elseif($index === 2) 🥉 @else {{ $index + 1 }} @endif
{{ $entry->employee_name ?? '-' }}
{{ number_format($entry->total_points ?? $entry->points ?? 0) }} نقطة
@empty

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

@endforelse
{{-- Add Recognition Modal --}}
@endsection @push('scripts') @endpush