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

{{ $meeting->title }}

{{ $meeting->formatted_date }}

@if($meeting->location)

{{ $meeting->location }}

@endif

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

الحالة @if($meeting->status == 'scheduled') مجدول @elseif($meeting->status == 'ongoing') قيد التنفيذ @elseif($meeting->status == 'completed') مكتمل @else ملغي @endif
@php $myParticipation = $meeting->participants->where('user_id', Auth::id())->first(); @endphp @if($myParticipation)
حالة حضوري @if($myParticipation->attendance_status == 'attended') حضرت @elseif($myParticipation->attendance_status == 'absent_excused') غائب بعذر @elseif($myParticipation->attendance_status == 'absent_unexcused') غائب بدون عذر @else مدعو @endif
@if($myParticipation->excuse_reason)
سبب العذر:
{{ $myParticipation->excuse_reason }}
@endif @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 }} @if($participant->user_id == Auth::id()) (أنت) @endif
@php $role = $participant->user->roles->first(); $roleNames = [ 'super-admin' => 'مدير النظام', 'advisor' => 'مستشار الفريق', '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