@include('loan.payments.partials.flash')
@php $cashInExport = collect(request()->query())->except(['embedded', 'page'])->merge(['export' => 'csv'])->all(); @endphp Export Reports
Received this period

KES {{ number_format((float) ($report['gross'] ?? 0), 0) }}

{{ number_format((int) ($report['receipt_count'] ?? 0), 0) }} receipts

Reversals

KES {{ number_format((float) ($report['reversals'] ?? 0), 0) }}

Wallet credited earlier

KES {{ number_format((float) ($report['prior_wallet'] ?? 0), 0) }}

Final use

KES {{ number_format((float) ($report['applied'] ?? 0), 0) }}

@if (! empty($report['out_of_balance']))

Out of balance

@endif

Destination — final use

@foreach ($report['use_of_funds'] ?? [] as $row) @endforeach
# Destination Amount
{{ $loop->iteration }} {{ $row['label'] }} @if (! empty($row['detail'])) @endif {{ number_format((float) $row['amount'], 2) }}
Total {{ number_format((float) ($report['applied'] ?? 0), 2) }}

Source — where it came from

@forelse ($report['by_channel'] ?? [] as $row) @empty @endforelse @if (! empty($report['by_channel'])) @endif
# Source Receipts Amount
{{ $loop->iteration }} {{ $row['channel'] }} {{ number_format((int) $row['receipt_count'], 0) }} {{ number_format((float) $row['amount'], 2) }}
No receipts in this period.
Total {{ number_format((int) ($report['receipt_count'] ?? 0), 0) }} {{ number_format((float) ($report['sources_total'] ?? $report['gross'] ?? 0), 2) }}
@php $books = $report['books'] ?? []; @endphp @if ($books !== [])

On the books

Current stock after the filters above. Date range does not apply here.

@foreach ($books as $row) @endforeach
# Book Items Amount
{{ $loop->iteration }} @if (! empty($row['href'])) {{ $row['label'] }} @else {{ $row['label'] }} @endif @if (! empty($row['hint'])) @endif {{ number_format((int) ($row['count'] ?? 0), 0) }} {{ number_format((float) ($row['amount'] ?? 0), 2) }}
Total sitting {{ number_format((int) collect($books)->sum('count'), 0) }} {{ number_format((float) collect($books)->sum('amount'), 2) }}
@endif

Collection Register · Fees · Unposted