{{-- Fill in a PACS fixed-format report. Every field of the paper form is here. --}} @extends('layouts.app') @section('title', $report->title . ' - ICMIS') @push('styles') @include('probation.reports._form_styles') @endpush @section('content') @php $case = $report->case; @endphp

{{ $form['title'] }}

{{ $case->serial_number }} · {{ optional($case->prisoner)->name }} · {{ $report->status }}
@if(!$editable)
This report is {{ $report->status }} and can no longer be edited. Use Print view to print it.
@else
Fields the case already knows are filled in — check them and complete the rest. Every field below appears on the printed report.
@endif
@csrf @method('PUT')
@if(!empty($form['code']))
{{ $form['code'] }}
@endif @foreach($form['header'] ?? [] as $h)
{{ $h }}
@endforeach
{{ $form['title'] }}
@foreach($form['blocks'] as $b) @include('probation.reports._form_block', ['b' => $b, 'data' => $data, 'mode' => 'edit', 'editable' => $editable]) @endforeach
@if($editable)
@endif
@endsection