@extends('admin.layouts.master') @section('title', 'خطة الرسوم — ' . $feePlan->name) @section('content') @php $stats = $profile['stats'] ?? []; $financial = $profile['financial'] ?? []; @endphp
@include('admin.partials.page-header', [ 'title' => 'الملف الشامل لخطة الرسوم', 'breadcrumbs' => $breadcrumbs, 'actions' => [ [ 'title' => 'تعديل', 'url' => route('admin.fee-plans.edit', $feePlan), 'icon' => 'ti ti-pencil', 'class' => 'btn-primary', ], ], ]) @include('admin.partials.alerts')

بيانات خطة الرسوم

{{ $feePlan->name }}

{{ $feePlan->status_label }} دورة الدفع: {{ $feePlan->payment_cycle_label }} المبلغ: {{ $feePlan->formatted_amount }} خصم الأخوات: {{ $feePlan->discount_label }}

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

{{ optional($feePlan->created_at)->format('Y-m-d H:i') }}

إجمالي الاشتراكات

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

الاشتراكات النشطة

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

المتأخرات

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

عدد الدفعات

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

إجمالي المستحق

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

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

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

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

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

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

{{ $financial['payments_month'] ?? '0.00 ر.س' }}
الاشتراكات المرتبطة بالخطة
{{ count($profile['subscriptions'] ?? []) }}
@forelse($profile['subscriptions'] ?? [] as $subscription) @empty @endforelse
الطالب الهاتف النهائي المدفوع المتبقي الحالة التقدم
{{ $subscription['student'] }} {{ $subscription['phone'] }} {{ $subscription['final'] }} {{ $subscription['paid'] }} {{ $subscription['remaining'] }} {{ $subscription['status'] }}
{{ $subscription['progress'] }}%
لا توجد اشتراكات مرتبطة بهذه الخطة
أحدث المدفوعات المرتبطة بالخطة
@forelse($profile['recent_payments'] ?? [] as $payment) @empty @endforelse
الطالب التاريخ المبلغ الإيصال
{{ $payment['student'] }} {{ $payment['date'] }} {{ $payment['amount'] }} {{ $payment['receipt'] }}
لا توجد دفعات مرتبطة بهذه الخطة
أعلى المتأخرات
{{ count($profile['top_outstanding'] ?? []) }}
@forelse($profile['top_outstanding'] ?? [] as $row) @empty @endforelse
الطالب الهاتف المتبقي
{{ $row['student'] }} {{ $row['phone'] }} {{ $row['remaining'] }}
لا توجد متأخرات حالية
العودة للقائمة
@can('fee-plans.update') تعديل الخطة @endcan @can('fee-plans.delete')
@csrf @method('DELETE')
@endcan
@endsection