{{ $start->format('d M Y') }} – {{ $end->format('d M Y') }}
| # | Employee | Services | Revenue | Comm. Earned | Comm. Paid | Balance |
|---|---|---|---|---|---|---|
| {{ $i + 1 }} |
{{ $initials }}
{{ $emp['employee_name'] }}
|
{{ $emp['services_performed'] }} | KSh {{ number_format($emp['revenue_generated'], 2) }} | KSh {{ number_format($emp['commission_earned'], 2) }} | KSh {{ number_format($emp['commission_paid'], 2) }} | KSh {{ number_format(abs($balance), 2) }} {{ $balance > 0 ? '↑ owed' : '✓' }} |
| No data for this period. | ||||||
| Totals | {{ $totalServices }} | KSh {{ number_format($totalRevenue, 2) }} | KSh {{ number_format($totalCommEarned, 2) }} | KSh {{ number_format($totalCommPaid, 2) }} | ||