@extends('layouts.nursery') @section('title', 'الاشتراكات') @section('content')

الاشتراكات

خطط الأطفال والمدفوعات

@if($canManage) @endif
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
@foreach(['all' => 'الكل', 'day' => '1ي', 'week' => '1أ', 'month' => '1ش', 'year' => '1س'] as $key => $label) {{ $label }} @endforeach

قائمة الاشتراكات

الطفل والخطة والحالة المالية

@if($canManage)@endif @forelse($items as $sub) @php $hasSubActions = $sub->canBeMarkedPaid() || $sub->canBeRenewed() || $sub->isActive(); @endphp @if($canManage) @endif @empty @endforelse
الطفل الخطة الفترة القيمة الحالة إجراءات
{{ $sub->child?->name }} @if($sub->renewed_from_id) تجديد من {{ $sub->renewedFrom?->starts_on?->format('Y-m-d') }} → {{ $sub->renewedFrom?->ends_on?->format('Y-m-d') }} @endif
{{ $sub->plan?->name }} {{ $sub->starts_on?->format('Y-m-d') }} → {{ $sub->ends_on?->format('Y-m-d') }} {{ number_format($sub->finalAmount(), 2) }} ر.س @if($sub->status === 'cancelled') ملغى @elseif($sub->status === 'expired') منتهٍ @elseif($sub->is_paid || $sub->status === 'paid') مدفوع @else غير مدفوع @endif @if($hasSubActions) @if($sub->canBeMarkedPaid())
@csrf @method('PATCH') تسجيل الدفع · نقدي
@csrf @method('PATCH') تسجيل الدفع · تحويل
@csrf @method('PATCH') تسجيل الدفع · بطاقة
@endif @if($sub->canBeRenewed())
@csrf تجديد
@endif @if($sub->isActive())
@csrf @method('PATCH') إلغاء الاشتراك
@endif
@else @endif
لا يوجد أي بيانات لعرضها! @if($canManage)
@endif
@if($items->hasPages())
{{ $items->links() }}
@endif
{{-- modal إضافة اشتراك --}}

إضافة اشتراك

@include('nursery.subscriptions.partials.form')
@endsection