@extends('admin.layouts.app') @section('title','Donation Report') @section('breadcrumb') / Reports / Donations @endsection @section('content')
@if($from || $to) {{ $from?->format('d M Y') ?? 'Beginning' }} — {{ $to?->format('d M Y') ?? 'Till Date' }} @else All Time @endif
| S.N. | Donation ID | Donor Name | Mobile | Amount | Purpose | Gateway | Status | Date | Receipt |
|---|---|---|---|---|---|---|---|---|---|
| {{ $i+1 }} | {{ $d->donation_id }} |
{{ $d->donor_name }} | {{ $d->donor_mobile }} | ₹{{ number_format($d->amount,2) }} | {{ $d->purpose ?? 'General' }} | {{ ucfirst($d->payment_gateway) }} | {!! $d->payment_status_badge !!} | {{ $d->donation_date->format('d M Y') }} | {{ $d->receipt_number }} |
| No donations found for this filter | |||||||||
| TOTAL | ₹{{ number_format($records->where('payment_status','completed')->sum('amount'),2) }} | ||||||||