{{-- LOGO --}}
{{-- REPORT TITLE --}}

DEPOSIT REPORT


{{-- REPORT META --}}
Account Number: {{ $account->account_number }}
Client Name: {{ $account->client->surname ?? '' }} {{ $account->client->first_name ?? '' }} {{ $account->client->other_names ?? '' }}
Period: {{ \Carbon\Carbon::parse($request->from)->format('d M Y') }} to {{ \Carbon\Carbon::parse($request->to)->format('d M Y') }}
Generated On: {{ now()->format('d M Y H:i') }}
{{-- DEPOSIT TABLE --}} @php $total = 0; @endphp @foreach($deposits as $index => $dep) @php $total += $dep->amount; @endphp {{-- ORIGINAL --}} {{-- FINAL --}} {{-- STATUS --}} {{-- UPDATED BY --}} {{-- APPROVED BY --}} @endforeach {{-- TOTAL --}}
# Date Account Type Original Amount (GHS) Final Amount (GHS) Status Captured / Updated By Approved By
{{ $index + 1 }} {{ $dep->created_at->format('d-m-Y') }} {{ strtoupper(str_replace('_',' ', $dep->clientAccount->account_type ?? 'N/A')) }} {{ number_format($dep->original_amount ?? $dep->amount, 2) }} {{ number_format($dep->amount, 2) }} {{ $dep->approved_at ? 'APPROVED' : 'PENDING' }} {{ $dep->updatedBy->name ?? 'System' }}
{{ $dep->updated_at->format('d-m-Y H:i') }}
{{ $dep->approvedBy->name ?? '-' }}
{{ $dep->approved_at ? $dep->approved_at->format('d-m-Y H:i') : '' }}
TOTAL DEPOSITS GHS {{ number_format($total, 2) }}
{{-- SIGNATURE --}}
Authorized Signature