
@if($participant->proof_uploaded_at && !$participant->reviewed_at)
@elseif($participant->excuse_submitted_at && !$participant->reviewed_at)
@elseif($participant->status === 'confirmed')
@endif
{{ $participant->user->name }}
{{ $participant->user->email }}
{{ $participant->status_label }}
@if($participant->total_points != 0)
{{ $participant->total_points > 0 ? '+' : '' }}{{ $participant->total_points }}
@endif
@if($activity->canUserManage(auth()->user()))
{{-- منع المراجعة غير المصرحة: المشرف لا يراجع نفسه أو مشرف آخر --}}
@php
$canReview = false;
$reviewMessage = '';
if(auth()->user()->hasRole('super-admin')) {
// السوبر أدمن يراجع الجميع
$canReview = true;
} elseif($participant->user_id === auth()->user()->id) {
// المشرف لا يراجع نفسه
$reviewMessage = 'يحتاج مراجعة من السوبر أدمن';
} elseif($participant->user->hasRole('moderator')) {
// المشرف لا يراجع مشرف آخر
$reviewMessage = 'يحتاج مراجعة من السوبر أدمن';
} else {
// المشرف يراجع الأعضاء العاديين
$canReview = true;
}
@endphp
@if($canReview)
@if($participant->proof_uploaded_at && !$participant->reviewed_at)
@elseif($participant->excuse_submitted_at && !$participant->reviewed_at)
@endif
@else
{{-- رسالة للحالات التي تحتاج مراجعة من السوبر أدمن --}}
@if(($participant->proof_uploaded_at || $participant->excuse_submitted_at) && !$participant->reviewed_at)
@endif
@endif
@endif