@extends('admin.layouts.app') @section('title','Donations') @section('breadcrumb') / Donations @endsection @section('content')
Total Collected
₹{{ number_format($summary['total_amount'],2) }}
Today's Donations
₹{{ number_format($summary['today_amount'],2) }}
Total Records
{{ number_format($summary['total_count']) }}
Pending
{{ $summary['pending_count'] }}
Reset
All Donations
{{ $donations->total() }} records Shown Total: ₹{{ number_format($donations->sum('amount'),2) }}
@forelse($donations as $donation) @empty @endforelse
Donation ID Donor Amount Purpose Gateway Payment ID Status Date Receipt Actions
{{ $donation->donation_id }}
{{ $donation->donor_name }}
{{ $donation->donor_mobile }}
@if($donation->donor_email)
{{ $donation->donor_email }}
@endif
₹{{ number_format($donation->amount,2) }} {{ Str::limit($donation->purpose,25) ?? 'General' }} {{ ucfirst($donation->payment_gateway) }} {{ Str::limit($donation->payment_id,18) ?? '—' }} {!! $donation->payment_status_badge !!} {{ $donation->donation_date->format('d M Y') }} @if($donation->receipt_generated) Generated @else Pending @endif
@if(auth()->user()->hasPermission('donations.edit')) @endif @if(auth()->user()->hasPermission('donations.generate_receipt') && $donation->payment_status==='completed') @endif @if(auth()->user()->hasPermission('donations.delete')) @endif

No donations found

@if($donations->hasPages()) @endif
@endsection