{{-- resources/views/probation/cases/_assessments.blade.php Assessments tab — RNR (latest Risk Needs Assessment – Adults tool, PR 2) and PK-RAVET captured item by item; CAGE-AID / MSE / SNO keep the short form. Tool definitions: config/probation_assessments.php --}} @php $rnr = config('probation_assessments.RNR'); $pk = config('probation_assessments.PKRAVET'); $lvl = ['Low' => 'Low', 'Medium' => 'Medium', 'High' => 'High']; // Prefill: the most recent saved RNR / PK-RAVET for this case $lastRnr = $case->assessments->where('tool', 'RNR')->sortByDesc('id')->first(); $lastPk = $case->assessments->where('tool', 'PKRAVET')->sortByDesc('id')->first(); $lr = optional($lastRnr)->responses ?? []; $lp = optional($lastPk)->responses ?? []; $yn = fn ($v) => $v === 'Y'; @endphp
| Dynamic domain | Indication | Summary | Comments |
|---|---|---|---|
| {{ $dd['title'] }} | {{ ['none' => 'No risk', 'may' => 'May indicate risk', 'risk' => 'Risk'][$f] ?? $f }} | {{ $r['summary'][$dk] ?? '—' }} | {{ $r['domain_comments'][$dk] ?? '' }} |
No assessment yet.
@endforelse