@if(!empty($autoprint))
Use your browser's "Save as PDF" destination.
@endif
@include('partials.print-header', ['documentTitle' => 'Prison Module Report'])
Prison Module Report
Integrated Corrections Management Information System (ICMIS) · Generated {{ $stats['generated'] }}
Module Summary
| Module | Records |
@foreach($stats['modules'] as $name => $count)
| {{ $name }} | {{ number_format($count) }} |
@endforeach
@php
$sections = [
'Population by gender' => $stats['charts']['gender'],
'By security level' => $stats['charts']['security'],
'Discipline by category' => $stats['charts']['discipline'],
'Medical by status' => $stats['charts']['medical'],
'Visits by type' => $stats['charts']['visits'],
];
@endphp
@foreach($sections as $title => $data)
@if(!empty($data))
{{ $title }}
| Category | Count |
@foreach($data as $k => $v)
| {{ $k }} | {{ number_format($v) }} |
@endforeach
@endif
@endforeach
@if(!empty($autoprint))
@endif