@foreach ($reports as $type => $report)

{{ $type }}

@php $total = 0; @endphp @foreach ($report['count'] as $status => $count) @php $total += $count; @endphp @endforeach
Status Count
{{ $status }} {{ $count }}
Total {{ $total }}
@endforeach