@if(isset($partnerSummaries) && count($partnerSummaries) > 0)
@foreach($partnerSummaries as $summary)
{{ $summary['partner']->name }}
({{ $summary['partner']->partner_code }})
{{ $summary['partner']->email }}
Total Allocated
PKR {{ number_format($summary['total_allocated'], 2) }}
Total Withdrawn
PKR {{ number_format($summary['total_withdrawn'], 2) }}
Total Adjusted
PKR {{ number_format($summary['total_adjusted'], 2) }}
Current Balance
PKR {{ number_format($summary['current_balance'], 2) }}
@if($summary['ledger_entries'] && $summary['ledger_entries']->count() > 0)
| Date |
Transaction Type |
Amount |
Status |
Notes |
@foreach($summary['ledger_entries'] as $entry)
| {{ date('d M Y', strtotime($entry->transaction_date)) }} |
{{ ucfirst($entry->transaction_type) }}
|
{{ $entry->transaction_type == 'withdrawal' ? '-' : '+' }} PKR {{ number_format($entry->amount, 2) }}
|
{{ $entry->status ?? 'Completed' }} |
{{ $entry->notes ?? '-' }} |
@endforeach
@else
No ledger entries found for this partner
@endif
@endforeach
@else
No partners found
@endif