@extends('layouts.superadmin') @section('title', 'مراقبة نزاهة التقييمات') @section('page-title', 'مراقبة نزاهة التقييمات (Integrity Monitor)') @section('content') @php // ===================== ADD: Attendance Arabic Mapping ===================== $attendanceLabel = function($v){ return match($v){ 'present' => 'حاضر', 'absent_with_excuse' => 'غائب بعذر', 'absent_without_excuse' => 'غائب بدون عذر', default => 'غير محدد', }; }; $attendanceBadge = function($v) use ($attendanceLabel){ $cls = match($v){ 'present' => 'bg-emerald-500/15 text-emerald-200 border border-emerald-500/20', 'absent_with_excuse' => 'bg-amber-500/15 text-amber-200 border border-amber-500/20', 'absent_without_excuse' => 'bg-rose-500/15 text-rose-200 border border-rose-500/20', default => 'bg-slate-500/15 text-slate-200 border border-slate-500/20', }; return ''.$attendanceLabel($v).''; }; // ===================== END ADD ===================== @endphp
كل صف هنا يعتبر “مشكلة نزاهة/منطق” ويحتاج مراجعة.
| التاريخ | العضو | المقيم | الحضور | واتساب | تيكتوك | النقاط | الأسباب | فتح |
|---|---|---|---|---|---|---|---|---|
| {{ $dateYmd }} |
{{ $e->user->name ?? ('#'.$e->user_id) }}
#{{ $e->id }}
|
{{ $e->evaluator->name ?? ('#'.$e->evaluator_id) }} | {{-- ===================== UPDATE: Attendance Arabic ===================== --}}{!! $attendanceBadge($e->attendance_status) !!} | {{-- ===================== END UPDATE ===================== --}}{{ (int)($e->whatsapp_presence ?? 0) }} | {{ (int)($e->tiktok_interaction ?? 0) }} | {{ (int)($e->total_daily_points ?? 0) }} |
@foreach($reasons as $r)
{{ $r }}
@endforeach
|
فتح |
| لا يوجد تناقضات ضمن الفلاتر الحالية. | ||||||||