@extends('layouts.app') @section('content')

{{ $donor->name }}

{{ $donor->type==='individual' ? 'فرد' : 'منظمة' }} {{ $donor->active ? 'نشط' : 'غير نشط' }} @if($donor->phone) {{ $donor->phone }} @endif
البيانات الأساسية
{{ $donor->phone ?? '—' }}
{{ $donor->address ?? '—' }}
{{ $donor->classification==='recurring' ? 'متكرر' : 'مرة واحدة' }}
@if($donor->allocation_type === 'sponsorship' || ($donor->sponsorship_type && $donor->sponsorship_type !== 'none' && $donor->sponsorship_type !== 'sadaqa_jariya')) @if($donor->sponsorship_monthly_amount > 0)

{{ number_format($donor->sponsorship_monthly_amount,2) }}
{{ number_format($paidThisMonth,2) }}
@endif @endif
إجمالي التبرعات
{{ number_format((float) ($stats->total ?? 0),2) }}
جنيه مصري
عدد التبرعات
{{ (int) ($stats->count ?? 0) }}
أخر تبرع
{{ $history->first() ? $history->first()->received_at->format('Y-m-d') : '—' }}
سجل التبرعات
{{ count($history) }}
@forelse($history as $d) @empty @endforelse
# التاريخ النوع القيمة القناة التوجيه
{{ $d->id }} {{ optional($d->received_at)->format('Y-m-d') ?? '—' }} {{ $d->type==='cash'?'نقدي':'عيني' }} @if($d->type==='cash') {{ number_format($d->amount,2) }} {{ $d->currency }} @else {{ number_format($d->estimated_value,2) }} {{ $d->currency }} @endif @if($d->type==='cash') {{ $d->cash_channel==='instapay'?'انستا باي':($d->cash_channel==='vodafone_cash'?'فودافون كاش':'نقدي') }} @if($d->receipt_number)
{{ $d->receipt_number }}
@endif @else — @endif
@if($d->project)
{{$d->project->name}}
@endif @if($d->campaign)
{{$d->campaign->name}}
@endif
لا توجد تبرعات مسجلة لهذا المتبرع حتى الآن
@endsection