{{ $tenant_name }}

Consolidated Sponsor Statement

{{ $sponsor->name }} @if($sponsor->contact_name)
Attn: {{ $sponsor->contact_name }}@endif @if($sponsor->address)
{{ $sponsor->address }}@endif
Generated: {{ $generated_at }}
@if(!count($rows))

No active sponsorships.

@else @foreach($rows as $r) @foreach($r['invoices'] as $inv) @endforeach @endforeach
Student / Invoice Status Invoiced Coverage Sponsor share Share outstanding
{{ $r['student'] }}@if($r['programme']) · {{ $r['programme'] }}@endif {{ $r['invoice_count'] }} invoice(s) {{ number_format($r['invoiced_minor'] / 100, 2) }} {{ $r['coverage_percent'] }}% {{ number_format($r['share_minor'] / 100, 2) }} {{ number_format($r['share_outstanding_minor'] / 100, 2) }}
{{ $inv['invoice_number'] }} · {{ $inv['issued_on'] }} {{ str_replace('_', ' ', $inv['status']) }} {{ number_format($inv['total_minor'] / 100, 2) }} {{ $r['coverage_percent'] }}% {{ number_format($inv['share_minor'] / 100, 2) }} {{ number_format(intdiv($inv['balance_minor'] * $r['coverage_percent'], 100) / 100, 2) }}
Total sponsor share (all invoices) {{ $currency }} {{ number_format($totals['share_minor'] / 100, 2) }}
Sponsor share outstanding {{ $currency }} {{ number_format($totals['share_outstanding_minor'] / 100, 2) }}
@endif