@extends($layout) @section('title', 'إدارة الأنشطة') @section('content')

إدارة الأنشطة

عرض وإدارة جميع الأنشطة المجدولة

إنشاء نشاط جديد
{{ $stats['total'] }}

إجمالي الأنشطة

جميع الأنشطة المسجلة

{{ $stats['scheduled'] }}

مجدولة

في انتظار التنفيذ

{{ $stats['confirmed'] }}

مؤكدة

تم تأكيد الحضور

{{ $stats['pending_review'] }}

تحتاج مراجعة

إثباتات في الانتظار

@forelse($activities as $activity)
@if($activity->activityType->icon === 'video') @elseif($activity->activityType->icon === 'users') @else @endif
{{ $activity->status_label }}

{{ $activity->activityType->display_name }}

@if($activity->title)

{{ $activity->title }}

@endif
{{ $activity->scheduled_date->format('Y-m-d') }}
{{ date('h:i A', strtotime($activity->scheduled_time)) }}
المشاركون {{ $activity->participants->count() }}
@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) {{ $participant->user->name }} @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
@if($hasProofSubmitted)
@endif @if($hasExcuseSubmitted)
@endif
@if(!$activity->isPast()) @endif
{{ $activity->creator->name }}
@empty

لا توجد أنشطة

لم يتم إنشاء أي نشاط بعد

إنشاء أول نشاط
@endforelse
@if($activities->hasPages())
{{ $activities->links() }}
@endif
@endsection