Date: {{ date('F j, Y') }}
Currency: {{ $currnames }}
Period: {{ $pfrom }} to {{ $pto }}
| Current State Summary | Amount | Count | |||
|---|---|---|---|---|---|
| Pending | {{ number_format($summary['statusAmounts']['pending'] ?? 0, 2) }} | {{ $summary['statusCounts']['pending'] ?? 0 }} | |||
| Approved | {{ number_format($summary['statusAmounts']['approved'] ?? 0, 2) }} | {{ $summary['statusCounts']['approved'] ?? 0 }} | |||
| Rejected | {{ number_format($summary['statusAmounts']['rejected'] ?? 0, 2) }} | {{ $summary['statusCounts']['rejected'] ?? 0 }} | |||
| Reversed | {{ number_format($summary['statusAmounts']['reversed'] ?? 0, 2) }} | {{ $summary['statusCounts']['reversed'] ?? 0 }} | |||
| Approval Rate | {{ number_format($summary['approvalRate'] ?? 0, 2) }}% | {{ $summary['totalEntries'] ?? 0 }} | |||
| Date | Client Code | Client Name | Description | Debit | Credit | Status | Currency |
|---|---|---|---|---|---|---|---|
| {{ \Carbon\Carbon::parse($entry->date)->format('M d, Y') }} | {{ $entry->client_code ?? ($entry->clientAccount->client_code ?? 'N/A') }} | {{ $entry->client_name ?? ($entry->clientAccount->client_account ?? 'N/A') }} | {{ $entry->narration }} | {{ $debit > 0 ? number_format($debit, 2) : '-' }} | {{ $credit > 0 ? number_format($credit, 2) : '-' }} | {{ strtoupper($entry->status ?? 'pending') }} | {{ $entry->currency_name ?? ($entry->currency->currency_name ?? 'N/A') }} |
| No client journal entries found | |||||||
| Total | {{ number_format($totalDebit, 2) }} | {{ number_format($totalCredit, 2) }} | |||||