@php $patient = $carePlan->patient; $admission = $carePlan->admission; $isActive = $carePlan->status === 'active'; $overdue = $isActive && $carePlan->target_date?->isPast(); @endphp {{ $carePlan->open_actions_count }} open · {{ $carePlan->completed_actions_count }} done @if ($carePlan->target_date) Target {{ $carePlan->target_date->format('d M Y') }}{{ $overdue ? ' — overdue' : '' }} @endif @can('care-plans.manage') @if ($isActive) Evaluate & close @endif @endcan
{{-- 1 · the plan itself --}}

Clinical need

{{ $carePlan->clinical_need ?: '—' }}

Diagnostic data

{{ $carePlan->diagnostic_data ?: '—' }}

Goal

{{ $carePlan->goal }}

@if ($carePlan->target_date)

By {{ $carePlan->target_date->format('d M Y') }}

@endif
{{-- 2 · evaluation, once the loop is closed --}} @if ($carePlan->evaluated_at)
{{ $carePlan->evaluated_at->format('d M Y H:i') }}

{{ $carePlan->evaluation }}

@endif {{-- 3 · action checklist --}} @if ($carePlan->actions->isEmpty()) Add the first standing action below — one line of what the shift actually does. @else
    @foreach ($carePlan->actions as $action)
  • {{ $action->action }} @if ($action->frequency) · {{ $action->frequency }} @endif
    @if ($action->status !== 'pending')

    {{ $action->status_label }} @if ($action->completedBy) by {{ $action->completedBy->name }} @endif @if ($action->completed_at) · {{ $action->completed_at->format('d M Y H:i') }} @endif

    @endif @if ($action->notes)

    {{ $action->notes }}

    @endif
    @can('care-actions.record') @if ($action->status === 'pending')
    @csrf
    @endif @endcan
  • @endforeach
@endif @can('care-actions.record')
@csrf
@endcan
{{-- ------------------------------------------------ right rail --}}

{{ $patient?->full_name ?? '—' }}

{{ $patient?->medical_record_number }}

Age / sex
{{ $patient?->age_display }} · {{ $patient?->gender_label }}
Admission
{{ $admission?->admission_no }}
Location
@if ($admission?->bed) Bed {{ $admission->bed->bed_number }} @if ($admission->bed->room) · Room {{ $admission->bed->room->room_number }} @endif @if ($admission->bed->room?->ward?->name) · {{ $admission->bed->room->ward->name }} @endif @else {{ $admission?->ward?->name ?? '—' }} @endif
@if ($admission) Open kardex @endif
Opened by
{{ $carePlan->createdBy?->name ?? '—' }}
{{ $carePlan->created_at?->format('d M Y H:i') }}
Last updated
{{ $carePlan->updatedBy?->name ?? '—' }} @if ($carePlan->updated_at)
{{ $carePlan->updated_at->format('d M Y H:i') }} @endif
{{-- ------------------------------------------------ authoring (manage) --}} @can('care-plans.manage')
@csrf @method('PUT')
@if ($isActive)
@csrf
@endif
@endcan