<!doctype html><html><head><meta charset="utf-8"><style>body{font-family:DejaVu Sans,sans-serif;color:#1e293b;font-size:11px}h1{color:#047857}table{width:100%;border-collapse:collapse;margin-top:18px}th,td{padding:7px;border-bottom:1px solid #ddd;text-align:left}th{background:#ecfdf5}.summary{display:flex}.box{display:inline-block;margin-right:25px}.muted{color:#64748b}</style></head><body><h1>Ajo Money · {{ $report['title'] }}</h1><p class="muted">Generated {{ now()->format('d M Y, H:i') }}</p><div class="summary"><span class="box">Records: <strong>{{ $report['summary']['records'] }}</strong></span><span class="box">Expected: <strong>NGN {{ number_format($report['summary']['expected']/100,2) }}</strong></span><span class="box">Collected: <strong>NGN {{ number_format($report['summary']['collected']/100,2) }}</strong></span><span class="box">Outstanding: <strong>NGN {{ number_format($report['summary']['outstanding']/100,2) }}</strong></span></div><table><thead><tr><th>Due</th><th>Member</th><th>Group</th><th>Expected</th><th>Collected</th><th>Balance</th><th>Status</th></tr></thead><tbody>@foreach($report['rows'] as $item)<tr><td>{{ $item->due_date->format('d M Y') }}</td><td>{{ $item->member->full_name }}</td><td>{{ $item->group->name }}</td><td>{{ number_format($item->amount_due/100,2) }}</td><td>{{ number_format($item->amount_paid/100,2) }}</td><td>{{ number_format($item->outstanding_amount/100,2) }}</td><td>{{ ucfirst($item->status->value) }}</td></tr>@endforeach</tbody></table></body></html>
