@php
$statusLabels = collect($statusBreakdown)->keys()->map(fn ($value) => ucfirst($value))->all();
$statusValues = collect($statusBreakdown)->values()->all();
$categoryLabels = collect($categoryBreakdown)->keys()->map(fn ($value) => ucfirst($value))->all();
$categoryValues = collect($categoryBreakdown)->values()->all();
@endphp
Status distribution
@if(empty($statusValues))
No report status data yet.
@else
@endif
Reports by category
@if(empty($categoryValues))
No category data yet.
@else
@endif
Reports by Category
@foreach($categoryBreakdown as $category => $count)
{{ ucfirst($category) }}
{{ $count }}
@endforeach