@extends('layouts.app') @section('title', 'تقدير الموظفين') @section('content')
@foreach($recognitions as $rec)
{{ $rec->sender->first_name ?? '' }} {{ $rec->sender->last_name ?? '' }} → {{ $rec->receiver->first_name ?? '' }} {{ $rec->receiver->last_name ?? '' }} @if($rec->points > 0) +{{ $rec->points }} نقطة @endif

{{ $rec->message }}

@php $catLabels = ['teamwork'=>'عمل جماعي','innovation'=>'ابتكار','leadership'=>'قيادة','service'=>'خدمة','performance'=>'أداء','other'=>'أخرى']; @endphp {{ $catLabels[$rec->category] ?? $rec->category }} {{ $rec->created_at->diffForHumans() }}
@endforeach
{{ $recognitions->links() }}

🏆 الأكثر تقديراً

@foreach($topReceived as $i => $top)
{{ $i + 1 }}
{{ $top->receiver->first_name ?? '' }} {{ $top->receiver->last_name ?? '' }}
{{ $top->total_points }} pts
@endforeach @if($topReceived->isEmpty())

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

@endif
@endsection