@extends('admin.layouts.app') @section('title','Donation Report') @section('breadcrumb') / Reports / Donations @endsection @section('content')
Clear
Total Collected
₹{{ number_format($summary['total_amount'],2) }}
Total Records
{{ $summary['total_count'] }}
Completed
{{ $summary['completed_count'] }}
Avg Donation
₹{{ number_format($summary['avg_donation'],0) }}
Donation Records
{{ $records->count() }} records
@forelse($records as $i => $d) @empty @endforelse @if($records->count()) @endif
S.N.Donation IDDonor Name MobileAmountPurpose GatewayStatusDateReceipt
{{ $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) }}
@endsection @push('scripts') @endpush