Total Share Purchases:
{{ $shares->count() }}
Total Shares:
{{ number_format($shares->sum('number_of_shares')) }}
Total Value:
KES {{ number_format($shares->sum('total_value'), 2) }}
Report Date:
{{ date('Y-m-d H:i:s') }}
Generated By:
{{ auth()->user()->full_name ?? 'System' }}
Summary Statistics
Average Shares per Purchase:
{{ $shares->count() > 0 ? round($shares->avg('number_of_shares'), 1) : 0 }}
Average Share Value:
KES {{ $shares->count() > 0 ? number_format($shares->avg('share_value'), 2) : '0.00' }}
Largest Purchase:
{{ $shares->sortByDesc('total_value')->first()->user->full_name ?? 'N/A' }} (KES {{ number_format($shares->max('total_value'), 2) }})
Most Recent Purchase:
{{ $shares->sortByDesc('purchase_date')->first()->user->full_name ?? 'N/A' }} ({{ $shares->sortByDesc('purchase_date')->first()->purchase_date->format('M d, Y') ?? 'N/A' }})