{{-- resources/views/probation/cases/_interventions.blade.php Interventions = Tool C treatment-plan areas (added automatically) + any other intervention the officer records. Plan-sourced entries are edited in Tool C; here their type and progress are updated. --}} @php $types = config('probation_supervision.intervention_types'); $statuses = config('probation_supervision.intervention_statuses'); $fromPlan = $case->interventions->filter(fn ($i) => $i->treatment_plan_item_id)->sortBy('id'); $own = $case->interventions->reject(fn ($i) => $i->treatment_plan_item_id)->sortByDesc('id'); $badge = ['planned' => 'bg-secondary', 'ongoing' => 'bg-primary', 'completed' => 'bg-success']; $count = $case->interventions->groupBy('status')->map->count(); @endphp
Nothing yet — areas saved in Supervision → Treatment Plan (Tool C) appear here automatically.
@else| Area | Needs | Action plan | Time frame | Responsible | Type · Progress |
|---|---|---|---|---|---|
| {{ $iv->area_title }} | {{ $iv->description }} | {{ $iv->interventions_used }} | {{ $iv->time_frame }} | {{ $iv->provider }} |
No other interventions.
@endforelse