{{ now()->format('l, j F') }}

Good {{ now()->hour < 12 ? 'morning' : (now()->hour < 17 ? 'afternoon' : 'evening') }}, {{ Str::before(auth()->user()->name, ' ') }}

@php($money = fn ($value) => '₦'.number_format($value / 100, 2))
@foreach ([['Members', $metrics['members'], 'Active profiles'], ['Active groups', $metrics['groups'], 'Running cycles'], ["Today's collections", $money($metrics['today']), 'Received today'], ['Outstanding', $money($metrics['outstanding']), 'Needs attention']] as [$label, $value, $note])

{{ $label }}

{{ $value }}

{{ $note }}

@endforeach

Collection performance

{{ $money($metrics['collected']) }}

of {{ $money($metrics['expected']) }} expected

Upcoming payouts

{{ $money($metrics['payouts']) }}

Recent collections

@forelse($recentContributions as $item)

{{ $item->member->full_name }}

{{ $item->group->name }}

{{ $money($item->amount_paid) }}

{{ $item->payment_date?->diffForHumans() }}

@empty
Collections will appear here.
@endforelse

Upcoming payouts

@forelse($upcomingPayouts as $payout)

{{ $payout->member->full_name }}

{{ $payout->scheduled_date->format('d M') }} · {{ $money($payout->amount) }}

@empty

No payouts scheduled.

@endforelse