{{-- DONORS INDEX --}} @extends('admin.layouts.app') @section('title','Donors') @section('breadcrumb') / Donors @endsection @section('content')
{{ number_format($summary['total_donors']) }}
Total Donors
₹{{ number_format($summary['total_collected']) }}
Total Collected
@if($summary['top_donor'])
{{ Str::limit($summary['top_donor']->name,15) }}
₹{{ number_format($summary['top_donor']->total_donations) }}
@endif
Top Donor
{{ $summary['new_this_month'] }}
New This Month
Reset
All Donors
{{ $donors->total() }} total
@forelse($donors as $i => $donor) @empty @endforelse
S.N. Donor ID Name Mobile Email Total Donations Last Donation Count Actions
{{ ($donors->currentPage()-1)*$donors->perPage()+$i+1 }} {{ $donor->donor_id }}
{{ $donor->name }}
@if($donor->father_name)
S/o {{ $donor->father_name }}
@endif
{{ $donor->mobile }} {{ $donor->email ?? '—' }} ₹{{ number_format($donor->total_donations,2) }} {{ $donor->last_donation_date?->format('d M Y') ?? '—' }} {{ $donor->donation_count }} times
@if(auth()->user()->hasPermission('donors.edit')) @endif @if(auth()->user()->hasPermission('donors.delete')) @endif
No donors found
@if($donors->hasPages()) @endif
@endsection