@extends('layouts.member') @section('title', 'الاجتماعات الإدارية') @section('content')
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif

الاجتماعات الإدارية

الاجتماعات التي تشارك فيها وتقاريرها

{{ $stats['total'] }} إجمالي اجتماعاتي
{{ $stats['scheduled'] }} مجدولة
{{ $stats['completed'] }} مكتملة
{{ $stats['cancelled'] }} ملغية

الاجتماعات المدعو إليها

@if($meetings->count() > 0)
@foreach($meetings as $meeting)

{{ $meeting->title }}

@if($meeting->description)

{{ $meeting->description }}

@endif
@if($meeting->status == 'scheduled') مجدول @elseif($meeting->status == 'ongoing') قيد التنفيذ @elseif($meeting->status == 'completed') مكتمل @else ملغي @endif
@if($meeting->location)
{{ $meeting->location }}
@endif
التاريخ والوقت:
{{ $meeting->meeting_date->format('Y/m/d') }}
{{ $meeting->meeting_date->format('h:i A') }}
@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
@endif
المشاركون ({{ $meeting->participants->count() }})
@foreach($meeting->participants->take(5) as $participant)
@if($participant->user->avatar) {{ $participant->user->name }} @else
{{ substr($participant->user->name, 0, 2) }}
@endif @if($participant->user_id == Auth::id())
@endif
{{ $participant->user->name }}{{ $participant->user_id == Auth::id() ? ' (أنت)' : '' }}
@endforeach @if($meeting->participants->count() > 5)
+{{ $meeting->participants->count() - 5 }}
@endif
عرض التفاصيل @if($meeting->hasReport()) @endif
@endforeach
@if($meetings->hasPages())

عرض {{ $meetings->firstItem() }} إلى {{ $meetings->lastItem() }} من أصل {{ $meetings->total() }} اجتماع

{{ $meetings->withQueryString()->links() }}
@endif @else

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

لا توجد اجتماعات مدعو إليها تطابق معايير البحث

@endif
@endsection