@extends('layouts.superadmin') @section('title', 'تفاصيل الاجتماع - ' . $meeting->title) @section('content')

{{ $meeting->title }}

{{ $meeting->formatted_date }}

@if($meeting->location)

{{ $meeting->location }}

@endif
@if($meeting->status != 'completed') تعديل الاجتماع @endif @if($meeting->canBeReported() && !$meeting->hasReport()) إنشاء تقرير @elseif($meeting->hasReport()) عرض التقرير @endif العودة للقائمة

معلومات الاجتماع

الحالة @if($meeting->status == 'scheduled') مجدول @elseif($meeting->status == 'ongoing') قيد التنفيذ @elseif($meeting->status == 'completed') مكتمل @else ملغي @endif
تاريخ الاجتماع
{{ $meeting->meeting_date->format('Y/m/d') }}
وقت الاجتماع
{{ $meeting->meeting_date->format('H:i') }}
@if($meeting->description)
وصف الاجتماع

{{ $meeting->description }}

@endif
منشئ الاجتماع
{{ $meeting->creator->name }}
{{ $meeting->created_at->format('Y/m/d H:i') }}
@if($meeting->hasReport())
تقرير الاجتماع
متوفر
عرض التقرير
@endif

المشاركون ({{ $meeting->participants->count() }})

@forelse($meeting->participants as $participant)
{{ $participant->user->name }}
@php $role = $participant->user->roles->first(); $roleNames = [ 'moderator' => 'مشرف', 'official-member' => 'عضو رسمي', 'member' => 'عضو بيتا' ]; @endphp {{ $roleNames[$role->name] ?? $role->display_name ?? $role->name }}
@if($participant->attendance_status == 'attended') حضر @elseif($participant->attendance_status == 'absent_excused') غائب بعذر @if($participant->excuse_reason)
{{ $participant->excuse_reason }}
@endif @elseif($participant->attendance_status == 'absent_unexcused') غائب @else مدعو @endif
@empty
لا يوجد مشاركون في هذا الاجتماع
@endforelse
@if($meeting->hasReport())
إحصائيات الحضور
@php $attendanceStats = $meeting->participants->groupBy('attendance_status'); $attended = $attendanceStats->get('attended', collect())->count(); $absentExcused = $attendanceStats->get('absent_excused', collect())->count(); $absentUnexcused = $attendanceStats->get('absent_unexcused', collect())->count(); $total = $meeting->participants->count(); @endphp
الحاضرون {{ $attended }}/{{ $total }}
غائب بعذر {{ $absentExcused }}
غائب بدون عذر {{ $absentUnexcused }}
@if($total > 0)
نسبة الحضور: {{ round(($attended / $total) * 100) }}%
@endif
@endif
@if(session('success'))

تم بنجاح!

{{ session('success') }}

@endif @if(session('error'))

خطأ!

{{ session('error') }}

@endif @endsection