@extends('admin.layouts.master') @section('title', 'إدارة المستخدمين - عرض') @section('content') @php $info = $profile['info'] ?? []; $stats = $profile['stats'] ?? []; $attendance = $profile['attendance'] ?? []; $payroll = $profile['payroll'] ?? []; @endphp
@include('admin.partials.page-header', [ 'title' => 'الملف الشامل للمستخدم', 'breadcrumbs' => $breadcrumbs, 'actions' => [ [ 'title' => 'تعديل', 'url' => route('admin.users.edit', $user), 'icon' => 'ti ti-edit', 'class' => 'btn-primary', ], ], ]) @include('admin.partials.alerts')

بيانات المستخدم

{{ $info['name'] ?? $user->name }}

{{ $info['status'] ?? '-' }} الفرع: {{ $info['branch'] ?? '-' }} الهاتف: {{ $info['phone'] ?? '-' }} آخر دخول: {{ $info['last_login'] ?? '-' }}
@forelse($info['roles'] ?? [] as $role) {{ $role }} @empty بدون دور @endforelse
الحلقات: {{ $stats['teaching_groups_count'] ?? 0 }} سجلات الحضور: {{ $stats['attendance_total'] ?? 0 }} المستحقات: {{ $stats['payroll_count'] ?? 0 }} إشعارات غير مقروءة: {{ $stats['unread_notifications_count'] ?? 0 }}
المعلومات الأساسية

البريد الإلكتروني

{{ $info['email'] ?? '-' }}

اسم المستخدم

{{ $info['username'] ?? '-' }}

تاريخ الإنشاء

{{ $info['created_at'] ?? '-' }}

آخر تحديث

{{ $info['updated_at'] ?? '-' }}

ملخص حضور المعلم

حاضر

{{ $attendance['present'] ?? 0 }}

غائب

{{ $attendance['absent'] ?? 0 }}

متأخر

{{ $attendance['late'] ?? 0 }}

بعذر

{{ $attendance['excused'] ?? 0 }}
الحلقات المرتبطة بالتدريس
@forelse($profile['teaching_groups'] ?? [] as $group) @empty @endforelse
الحلقة الفرع المستوى/المسار الطلاب الحالة
{{ $group['name'] }} {{ $group['branch'] }} {{ $group['level'] }} / {{ $group['track'] }} {{ $group['students_count'] }} {{ $group['status'] }}
لا توجد حلقات مرتبطة
آخر مستحق مالي

عدد السجلات: {{ $payroll['count'] ?? 0 }}

آخر فترة: {{ $payroll['last_month'] ?? '-' }}

آخر صافي: {{ $payroll['last_final'] ?? '-' }}

الحالة: {{ $payroll['last_status'] ?? '-' }}

آخر الإشعارات
{{ $stats['unread_notifications_count'] ?? 0 }} غير مقروء
@forelse($profile['notifications'] ?? [] as $notification)

{{ $notification['title'] }}

{{ $notification['date'] }}
{{ $notification['is_read'] ? 'مقروء' : 'جديد' }}
@empty
لا توجد إشعارات
@endforelse
@endsection