@extends('layouts.member') @section('title', 'تفاصيل التقييم') @section('page-title', 'تفاصيل التقييم') @section('content')

تفاصيل التقييم

تقييمي بتاريخ {{ $evaluation->evaluation_date->format('Y/m/d') }}

@if(session('success'))

نجح العملية

{{ session('success') }}

@endif
@if($evaluation->status == 'approved')

هذا التقييم معتمد ومؤثر على نقاطي @if($evaluation->approved_at) - تم الاعتماد في {{ $evaluation->approved_at->format('Y/m/d H:i') }} @endif

@if($evaluation->approver)

تم اعتماده بواسطة: {{ $evaluation->approver->name }}

@endif
@elseif($evaluation->status == 'pending')

هذا التقييم في انتظار الموافقة

لم يتم إضافة النقاط لرصيدي بعد

@elseif($evaluation->status == 'rejected')

تم رفض هذا التقييم

لم يتم إضافة النقاط لرصيدي

@endif

تفاصيل التقييم

{{ $evaluation->evaluation_date->format('Y/m/d') }} ({{ $evaluation->evaluation_date->locale('ar')->diffForHumans() }})

@if($evaluation->attendance_status === 'present') حاضر @elseif($evaluation->attendance_status === 'absent_with_excuse') غائب بعذر @else غائب بدون عذر @endif
{{ $evaluation->whatsapp_presence }} من 2
@for($i = 1; $i <= 2; $i++)
@endfor
{{ $evaluation->tiktok_interaction }} من 2
@for($i = 1; $i <= 2; $i++)
@endfor
{{ $evaluation->total_daily_points }}
نقطة
@if($evaluation->attendance_status === 'absent_without_excuse')
(-2 غياب)
@endif
@if($evaluation->status === 'approved') معتمد @elseif($evaluation->status === 'rejected') مرفوض @else قيد المراجعة @endif
@if($evaluation->excuse_reason)

{{ $evaluation->excuse_reason }}

@endif @if($evaluation->evaluator_notes)

{{ $evaluation->evaluator_notes }}

@endif

معلومات المقيم

@if($evaluation->show_evaluator_name)
{{ substr($evaluation->evaluator->name, 0, 1) }}

{{ $evaluation->evaluator->name }}

{{ $evaluation->evaluator->username }}

@else

مقيم مجهول

اختار المقيم إخفاء هويته

@endif
تاريخ الإنشاء {{ $evaluation->created_at->format('Y/m/d H:i') }}
@if($evaluation->updated_at != $evaluation->created_at)
آخر تحديث {{ $evaluation->updated_at->format('Y/m/d H:i') }}
@endif

إحصائياتي

@php $myStats = [ 'total' => auth()->user()->evaluations()->count(), 'approved' => auth()->user()->evaluations()->where('status', 'approved')->count(), 'pending' => auth()->user()->evaluations()->where('status', 'pending')->count(), 'avg_points' => auth()->user()->evaluations()->where('status', 'approved')->avg('total_daily_points') ?: 0, 'this_month' => auth()->user()->evaluations()->whereMonth('evaluation_date', now()->month)->count() ]; @endphp
{{ $myStats['total'] }}
إجمالي التقييمات
{{ $myStats['approved'] }}
معتمدة
{{ $myStats['pending'] }}
في الانتظار
{{ number_format($myStats['avg_points'], 1) }}
متوسط النقاط
تقييمات هذا الشهر {{ $myStats['this_month'] }}
إجمالي نقاطي {{ number_format(auth()->user()->total_points) }}

التاريخ الزمني للتقييم

  • @if($evaluation->approved_at) @endif

    تم إنشاء التقييم @if($evaluation->show_evaluator_name) بواسطة {{ $evaluation->evaluator->name }} @endif

  • @if($evaluation->updated_at != $evaluation->created_at)
  • @if($evaluation->approved_at) @endif

    تم تعديل التقييم

  • @endif @if($evaluation->approved_at)
  • تم اعتماد التقييم

    @if($evaluation->approver)

    بواسطة {{ $evaluation->approver->name }}

    @endif
  • @endif
@push('scripts') @endpush @endsection