@extends('admin.layouts.master') @section('title', 'إدارة أولياء الأمور - عرض') @section('content') @php $stats = $profile['stats'] ?? []; $financial = $profile['financial'] ?? []; @endphp
@include('admin.partials.page-header', [ 'title' => 'الملف الشامل لولي الأمر', 'breadcrumbs' => $breadcrumbs, 'actions' => [ [ 'title' => 'تعديل', 'url' => route('admin.guardians.edit', $guardian), 'icon' => 'ti ti-edit', 'class' => 'btn-primary', ], ], ]) @include('admin.partials.alerts')

بيانات ولي الأمر

{{ $guardian->full_name }}

{{ $guardian->status_label }} الهاتف: {{ $guardian->phone }} واتساب: {{ $guardian->whatsapp ?: '-' }}
الطلاب: {{ $stats['students_count'] ?? 0 }} النشطون: {{ $stats['active_students_count'] ?? 0 }} الفروع: {{ $stats['branches_count'] ?? 0 }} متأخرات: {{ $stats['overdue_subscriptions_count'] ?? 0 }}

إجمالي المدفوع

{{ $financial['total_paid'] ?? '0.00 ر.س' }}

إجمالي المتبقي

{{ $financial['total_remaining'] ?? '0.00 ر.س' }}

تحصيل هذا الشهر

{{ $financial['month_paid'] ?? '0.00 ر.س' }}

الطلاب المرتبطون
{{ count($profile['students'] ?? []) }}
@forelse($profile['students'] ?? [] as $student) @empty @endforelse
الطالب العمر الهاتف الفرع الحالة
{{ $student['name'] }} {{ $student['age'] }} {{ $student['phone'] }} {{ $student['branch'] }} {{ $student['status'] }}
لا يوجد طلاب مرتبطون
توزيع الطلاب حسب الفروع
@forelse($profile['branch_summary'] ?? [] as $row)
{{ $row['branch'] }} {{ $row['students_count'] }}
@empty
لا توجد بيانات
@endforelse
أحدث الاشتراكات
@forelse($profile['subscriptions'] ?? [] as $subscription) @empty @endforelse
الطالب النهائي المتبقي الحالة
{{ $subscription['student'] }} {{ $subscription['final'] }} {{ $subscription['remaining'] }} {{ $subscription['status'] }}
لا توجد اشتراكات
أحدث المدفوعات
@forelse($profile['payments'] ?? [] as $payment) @empty @endforelse
الطالب التاريخ المبلغ
{{ $payment['student'] }} {{ $payment['date'] }} {{ $payment['amount'] }}
لا توجد مدفوعات
أحدث النشاط
@forelse($profile['activity'] ?? [] as $activity)
{{ $activity['title'] }}

{{ $activity['description'] }}

{{ $activity['date'] }}
@empty
لا توجد أنشطة حديثة
@endforelse
العودة إلى قائمة أولياء الأمور
@can('guardians.update') تعديل ولي الأمر @endcan @can('guardians.delete')
@csrf @method('DELETE')
@endcan
@endsection