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

Donation Report

{{-- Filter Form --}}
{{-- Print Button --}}
{{-- Summary Cards --}}
Total Donations
{{ number_format($totalDonations, 2) }}
Total Paid
{{ number_format($totalPaid, 2) }}
Total Unpaid
{{ number_format($totalUnpaid, 2) }}
{{-- Donation Table --}}
@forelse($donations as $key => $donation) @empty @endforelse
# Donor Name Mobile Invoice No Amount Payment Type Transaction No Payment Status Received Date Received By Remark Donation Date
{{ $donations->firstItem() + $key }} {{ $donation->donor_name }} {{ $donation->mobile }} {{ $donation->invoice_no }} {{ number_format($donation->donation_amount, 2) }} {{ ucfirst(str_replace('_', ' ', $donation->payment_type)) }} {{ $donation->transaction_no ?? '-' }} @if ($donation->payment_status == 'paid') Paid @else Unpaid @endif {{ $donation->received_date ?? '-' }} {{ $donation->received_by ?? '-' }} {{ $donation->remark ?? '-' }} {{ $donation->created_at->format('Y-m-d') }}
No donations found.
{{-- Pagination --}} @if ($donations instanceof \Illuminate\Pagination\LengthAwarePaginator) {{ $donations->links('backend.layouts.paginate') }} @endif @endsection @push('script') @endpush