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

ملف الفرع التشغيلي

{{ $branch->name }}

{{ $branch->status_label }} رقم الفرع: #{{ $branch->id }} تاريخ الإنشاء: {{ optional($branch->created_at)->format('Y-m-d') }}
الطلاب: {{ $stats['students_count'] ?? 0 }} المعلمون: {{ $stats['teachers_count'] ?? 0 }} الحلقات: {{ $stats['groups_count'] ?? 0 }} المتأخرات: {{ $stats['overdue_subscriptions_count'] ?? 0 }}

الطلاب النشطون

{{ $stats['active_students_count'] ?? 0 }}

من إجمالي {{ $stats['students_count'] ?? 0 }} طالب

المعلمون النشطون

{{ $stats['active_teachers_count'] ?? 0 }}

من إجمالي {{ $stats['teachers_count'] ?? 0 }} معلم

الحلقات النشطة

{{ $stats['active_groups_count'] ?? 0 }}

من إجمالي {{ $stats['groups_count'] ?? 0 }} حلقة

اشتراكات متأخرة

{{ $stats['overdue_subscriptions_count'] ?? 0 }}

من إجمالي {{ $stats['subscriptions_count'] ?? 0 }} اشتراك

حضور المعلمين اليوم

حاضر

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

غائب

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

متأخر

{{ $attendance['teacher_late_today'] ?? 0 }}
المؤشر المالي لهذا الشهر
التحصيل الشهري {{ $finance['payments_month'] ?? '0.00 ر.س' }}
مصروفات الشهر {{ $finance['expenses_month'] ?? '0.00 ر.س' }}
إجمالي المتبقي على الاشتراكات {{ $finance['remaining_subscriptions'] ?? '0.00 ر.س' }}
الصافي الشهري {{ $finance['net_month'] ?? '0.00 ر.س' }}
أحدث الطلاب
@forelse($recent['students'] ?? [] as $student) @empty @endforelse
الاسم الهاتف الحالة
{{ $student['name'] }} {{ $student['phone'] }} {{ $student['status'] === 'active' ? 'نشط' : 'غير نشط' }}
لا توجد بيانات
أحدث المعلمين
@forelse($recent['teachers'] ?? [] as $teacher) @empty @endforelse
الاسم الهاتف الحالة
{{ $teacher['name'] }} {{ $teacher['phone'] }} {{ $teacher['status'] === 'active' ? 'نشط' : 'غير نشط' }}
لا توجد بيانات
الحلقات المرتبطة
@forelse($recent['groups'] ?? [] as $group) @empty @endforelse
الحلقة المعلم المستوى/المسار الطلاب الحالة
{{ $group['name'] }} {{ $group['teacher'] }} {{ $group['level'] }} / {{ $group['track'] }} {{ $group['students_count'] }} {{ $group['status_label'] }}
لا توجد بيانات
أعلى المتأخرات
@forelse($recent['overdue_subscriptions'] ?? [] as $sub) @empty @endforelse
الطالب الهاتف المتبقي
{{ $sub['student'] }} {{ $sub['phone'] }} {{ $sub['remaining'] }}
لا توجد متأخرات حالية
آخر المدفوعات
@forelse($recent['payments'] ?? [] as $payment) @empty @endforelse
الطالب المبلغ التاريخ الإيصال
{{ $payment['student'] }} {{ $payment['amount'] }} {{ $payment['payment_date'] }} #{{ $payment['receipt'] }}
لا توجد مدفوعات حديثة
آخر المصروفات
@forelse($recent['expenses'] ?? [] as $expense) @empty @endforelse
البند المبلغ التاريخ
{{ $expense['title'] }} {{ $expense['amount'] }} {{ $expense['expense_date'] }}
لا توجد مصروفات حديثة
العودة إلى الفروع
@can('branches.update') تعديل @endcan @can('branches.delete')
@csrf @method('DELETE')
@endcan
@endsection