@extends('layouts.moderator') @section('title', 'إدارة التقييمات') @section('page-title', 'إدارة التقييمات') @section('content')

إدارة التقييمات

مراجعة ومتابعة تقييمات الأعضاء في قسمك

{{ auth()->user()->name }}

مشرف

@if(session('success'))

نجح العملية

{{ session('success') }}

@endif @if(session('error'))

حدث خطأ

{{ session('error') }}

@endif @if(session('info'))

معلومة

{{ session('info') }}

@endif

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

إجمالي التقييمات

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

قيد المراجعة

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

معتمدة

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

مرفوضة

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

اليوم

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

هذا الأسبوع

البحث والتصفية

إجمالي: {{ $evaluations->total() }} تقييم

قائمة التقييمات

@if($evaluations->count() > 0)
@foreach ($evaluations as $evaluation)
@if($evaluation->user->avatar) {{ $evaluation->user->name }} @else
@endif @if($evaluation->user->is_online)
@endif

{{ $evaluation->user->name }}

{{ $evaluation->user->username }}

@php $userRole = $evaluation->user->roles->first(); $roleNames = [ 'moderator' => 'مشرف', 'official-member' => 'عضو رسمي', 'member' => 'عضو بيتا' ]; $roleColors = [ 'moderator' => 'bg-purple-100 text-purple-700 dark:bg-purple-900/30 dark:text-purple-300', 'official-member' => 'bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-300', 'member' => 'bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-300' ]; @endphp @if($userRole) {{ $roleNames[$userRole->name] ?? $userRole->name }} @endif @php $key = $evaluation->user_id . '_' . $evaluation->evaluation_date->format('Y-m-d'); $multipleEvaluations = isset($previousEvaluations) && isset($previousEvaluations[$key]) ? $previousEvaluations[$key] : collect([]); $count = $multipleEvaluations->count(); @endphp @if($count > 1) {{ $count }} تقييمات @endif
تاريخ التقييم: {{ $evaluation->evaluation_date->format('Y/m/d') }}
المقيم: @if($evaluation->show_evaluator_name) {{ $evaluation->evaluator->name }} @else مجهول الهوية @endif
الحالة: @if($evaluation->status == 'approved') معتمد @elseif($evaluation->status == 'rejected') مرفوض @else قيد المراجعة @endif
الحضور: @if($evaluation->attendance_status == 'present') حاضر @elseif($evaluation->attendance_status == 'absent_with_excuse') غائب بعذر @else غائب بدون عذر @endif
واتساب
{{ $evaluation->whatsapp_presence }}
تيكتوك
{{ $evaluation->tiktok_interaction }}
الإنذارات
{{ $evaluation->warnings_count }}
النقاط
{{ $evaluation->total_daily_points > 0 ? '+' : '' }}{{ $evaluation->total_daily_points }}
@if($count > 1)
ملاحظة: يوجد {{ $count }} تقييمات لهذا العضو في نفس التاريخ
@foreach($multipleEvaluations->sortByDesc('id') as $otherEval)
{{ $otherEval->show_evaluator_name ? $otherEval->evaluator->name : 'مقيم مجهول' }} {{ $otherEval->total_daily_points }} نقطة
@endforeach
يتم عرض أحدث تقييم فقط ({{ $evaluation->evaluation_date->format('Y/m/d') }})
@endif
المقيم: @if($evaluation->show_evaluator_name) @if($evaluation->edit_count > 0) @if($evaluation->evaluator_id == auth()->id()) {{ $evaluation->evaluator->name }} (معدل بواسطة مشرف آخر) @else {{ $evaluation->evaluator->name }} (معدل) @endif @else {{ $evaluation->evaluator->name }} @endif @else مجهول الهوية @if($evaluation->edit_count > 0) (معدل) @endif @endif
@if($evaluation->user_id == auth()->id()) @endif @if($evaluation->evaluator_id == auth()->id() || ($evaluation->user->gender == auth()->user()->gender && $evaluation->edit_count < 1)) @endif @if($evaluation->status == 'pending' && $evaluation->user_id != auth()->id())
@csrf
@endif @if($evaluation->evaluator_id == auth()->id())
@csrf @method('DELETE')
@endif
@endforeach

عرض {{ $evaluations->firstItem() }} إلى {{ $evaluations->lastItem() }} من أصل {{ $evaluations->total() }} نتيجة

{{ $evaluations->withQueryString()->links() }}
@else

لا توجد تقييمات

لم يتم العثور على أي تقييمات للفلتر المحدد

@endif
{{-- مودال الاعتراض --}} @endsection