| Sex | Count | Percentage |
|---|---|---|
| {{ $item->sex ?? 'N/A' }} | {{ number_format($item->count) }} | {{ $totalBySex > 0 ? number_format(($item->count / $totalBySex) * 100, 2) : 0 }}% |
| Total | {{ number_format($totalBySex) }} | 100% |
| Age Group | Count | Percentage |
|---|---|---|
| {{ $item->age_group ?? 'N/A' }} | {{ number_format($item->count) }} | {{ $totalByAge > 0 ? number_format(($item->count / $totalByAge) * 100, 2) : 0 }}% |
| Total | {{ number_format($totalByAge) }} | 100% |