|
{{ $business->business_name }} Owner: {{ $business->owner_name }} · Phone: {{ $business->owner_phone }} County: {{ $business->county ?? '-' }} · Type: {{ strtoupper($business->business_type) }} · KRA PIN: {{ $business->kra_pin ?? '-' }} Period: {{ \Carbon\Carbon::parse($from)->format('d M Y') }} — {{ \Carbon\Carbon::parse($to)->format('d M Y') }} SHA-256: {{ substr($hash, 0, 40) }}… |
Scan to verify online |
| Total Sales | KSh {{ number_format($totalSales, 2) }} |
| Total Expenses | KSh {{ number_format($totalExpenses, 2) }} |
| Net Profit | KSh {{ number_format($netProfit, 2) }} |
| M-Pesa Transactions Captured | {{ $mpesaMessages->count() }} |
| {{ rtrim(rtrim(number_format($verifiedPercent, 2), '0.'), '.') }}% Verified via M-Pesa | |
Transaction Ledger ({{ $transactions->count() }} records)
| Date | Description | Amount (KSh) | Method | M-Pesa Code | Verified |
|---|---|---|---|---|---|
| {{ $tx->created_at->format('d/m/Y H:i') }} | {{ $tx->description ?? $tx->product?->name ?? $tx->type }} | {{ number_format($tx->amount, 2) }} | {{ strtoupper($tx->payment_method) }} | {{ $tx->mpesaMessage?->mpesa_code ?? '—' }} | {{ $tx->is_verified ? '✔' : '✎' }} |