@php $palette = $themePalette ?? (is_array($theme ?? null) ? $theme : \App\Support\ThemePalette::resolveShades('emerald')); @endphp Monthly Fee Collection & Payment Report @include('reports.partials.font') @php $resolvedSchoolName = !empty($branding['school_name']) ? $branding['school_name'] : (!empty($tenant?->school_name) ? $tenant->school_name : (!empty($tenant?->name) ? $tenant->name : 'Smart School Management')); $resolvedAddress = !empty($branding['address']) ? $branding['address'] : (!empty($tenant?->address) ? $tenant->address : 'Institutional Campus'); $resolvedPhone = !empty($branding['phone']) ? $branding['phone'] : (!empty($tenant?->phone) ? $tenant->phone : '—'); @endphp
@if(!empty($schoolLogo))
{{ $resolvedSchoolName }}
@endif
{{ $resolvedSchoolName }}
{{ $resolvedAddress }} | Phone: {{ $resolvedPhone }}
Monthly Payment & Fee Collection Report • {{ $monthName }}
Total Collection
${{ number_format($total, 2) }}
Successful Transactions
{{ $successfulCount }}
Failed / Cancelled Attempts
{{ $failedCount }}
@forelse($payments as $p) @empty @endforelse
Receipt # Date Invoice # Student Admission # Method Gateway Transaction ID Status Amount ($)
#{{ str_pad($p->id, 5, '0', STR_PAD_LEFT) }} {{ $p->payment_date ? $p->payment_date->format('Y-m-d') : '—' }} {{ $p->invoice?->invoice_number ?? '—' }} {{ $p->student?->full_name ?? '—' }} {{ $p->student?->admission_number ?? '—' }} {{ $p->payment_method ?: 'cash' }} {{ $p->gateway ?: 'offline' }} {{ $p->transaction_id ?? 'N/A' }} @if($p->status === 'completed') Completed @elseif($p->status === 'failed') Failed @else {{ $p->status }} @endif ${{ number_format($p->amount, 2) }}
No fee collection records found for this period.
Total Cleared Collection: ${{ number_format($total, 2) }}