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

تقرير الاجتماع

{{ $meeting->title }}

{{ $meeting->formatted_date }}

العودة للاجتماع

تقرير اجتماع إداري

{{ $meeting->title }}

{{ $meeting->formatted_date }}

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

التاريخ: {{ $meeting->meeting_date->format('Y/m/d') }}
الوقت المجدول: {{ $meeting->meeting_date->format('H:i') }}
@if($meeting->location)
المكان: {{ $meeting->location }}
@endif
منشئ الاجتماع: {{ $meeting->creator->name }}
@if($meeting->report)

التوقيت الفعلي

وقت البداية: {{ $meeting->report->actual_start_time->format('Y/m/d H:i') }}
وقت النهاية: {{ $meeting->report->actual_end_time->format('Y/m/d H:i') }}
المدة: {{ $meeting->report->duration_minutes }} دقيقة
معد التقرير: {{ $meeting->report->creator->name }}
@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') غائب بعذر @if($myParticipation->excuse_reason) - {{ $myParticipation->excuse_reason }} @endif @elseif($myParticipation->attendance_status == 'absent_unexcused') غائب بدون عذر @else مدعو للاجتماع @endif
@endif @if($meeting->report && $meeting->report->agenda)

جدول الأعمال

{{ $meeting->report->agenda }}

@endif @if($meeting->report && $meeting->report->discussions)

المناقشات

{{ $meeting->report->discussions }}

@endif @if($meeting->report && $meeting->report->decisions)

القرارات المتخذة

{{ $meeting->report->decisions }}

@endif @if($meeting->report && $meeting->report->action_items)

الإجراءات المطلوبة

{{ $meeting->report->action_items }}

@endif @if($meeting->report && $meeting->report->notes)

ملاحظات إضافية

{{ $meeting->report->notes }}

@endif

قائمة الحضور والغياب

@php $attendanceGroups = $meeting->participants->groupBy('attendance_status'); $attended = $attendanceGroups->get('attended', collect()); $absentExcused = $attendanceGroups->get('absent_excused', collect()); $absentUnexcused = $attendanceGroups->get('absent_unexcused', collect()); $total = $meeting->participants->count(); @endphp
@if($attended->count() > 0)
الحاضرون ({{ $attended->count() }})
    @foreach($attended as $participant)
  • • {{ $participant->user->name }} @if($participant->user_id == Auth::id()) (أنت) @endif
  • @endforeach
@endif @if($absentExcused->count() > 0)
غائب بعذر ({{ $absentExcused->count() }})
    @foreach($absentExcused as $participant)
  • • {{ $participant->user->name }} @if($participant->user_id == Auth::id()) (أنت) @endif @if($participant->excuse_reason)
    ({{ $participant->excuse_reason }}) @endif
  • @endforeach
@endif @if($absentUnexcused->count() > 0)
غائب بدون عذر ({{ $absentUnexcused->count() }})
    @foreach($absentUnexcused as $participant)
  • • {{ $participant->user->name }} @if($participant->user_id == Auth::id()) (أنت) @endif
  • @endforeach
@endif
إحصائيات الحضور
{{ $attended->count() }}
حاضر
{{ $absentExcused->count() }}
غائب بعذر
{{ $absentUnexcused->count() }}
غائب بدون عذر
{{ round(($attended->count() / $total) * 100) }}%
نسبة الحضور
@if($meeting->report)
أعد التقرير: {{ $meeting->report->creator->name }}
تاريخ إعداد التقرير: {{ $meeting->report->created_at->format('Y/m/d H:i') }}
@endif
@endsection