@php
$participants = $activity->participants->take(4);
$remainingCount = $activity->participants->count() - 4;
// فحص حالات الإثباتات والأعذار
$hasProofSubmitted = $activity->participants->where('proof_uploaded_at', '!=', null)->where('reviewed_at', null)->count() > 0;
$hasExcuseSubmitted = $activity->participants->where('excuse_submitted_at', '!=', null)->where('reviewed_at', null)->count() > 0;
@endphp
@foreach($participants as $participant)
@if($participant->user)

@else
@endif
@if($participant->proof_uploaded_at && !$participant->reviewed_at)
@elseif($participant->excuse_submitted_at && !$participant->reviewed_at)
@elseif($participant->status === 'confirmed')
@endif
@endforeach
@if($remainingCount > 0)
+{{ $remainingCount }}
@endif