Care units / {{ $unit->department?->name }}

{{ $unit->name }}

{{ $kinds[$unit->kind] ?? $unit->kind }} @if ($unit->code) · {{ $unit->code }} @endif · {{ $unit->department?->branch?->name }} @unless ($unit->is_active) · Inactive @endunless

@php $member = auth()->user() ? app(\App\Services\Care\OrganizationResolver::class)->memberFor(auth()->user()) : null; $permissions = app(\App\Services\Care\CarePermissions::class); $canManageUnit = $permissions->can($member, 'admin.departments.manage'); $canMar = $permissions->can($member, 'mar.view'); $canNotes = $permissions->can($member, 'nursing.notes.view'); $canHandover = $permissions->can($member, 'nursing.handover.view'); $canAssess = $permissions->can($member, 'nursing.assessments.view'); $canPerf = $permissions->can($member, 'nursing.performance.view'); $canRoster = $permissions->can($member, 'nursing.roster.view'); @endphp @if ($canMar) MAR board @endif @if ($canRoster) Duty roster @endif @if ($canAssess) Assessments @endif @if ($canNotes) Nursing notes @endif @if ($canHandover) Handovers @endif @if ($canPerf) Performance @endif @if ($canManageUnit) Edit unit Assign staff @endif
{{-- Current patients --}}

Patients on this unit

Active visit placements — open MAR, notes, and handovers from the actions above.

{{ $placedVisits->count() }} placed

@forelse ($placedVisits as $visit) @empty @endforelse
Patient Bed Placed
{{ $visit->patient?->fullName() ?? '—' }} @if ($visit->patient?->patient_number) {{ $visit->patient->patient_number }} @endif {{ $visit->bed?->label ?? '—' }} {{ $visit->placed_at?->format('d M Y H:i') ?? '—' }} @if ($canMar ?? false) MAR @endif @if ($canPlace)
@csrf @method('DELETE')
@endif
No patients placed on this unit.
@if ($canPlace && $unit->kind !== 'float_pool')
@csrf
@error('visit_id')

{{ $message }}

@enderror @error('care_unit_id')

{{ $message }}

@enderror @error('bed_id')

{{ $message }}

@enderror
@if ($unit->supportsBeds())
@else
@endif
@endif
@if ($unit->supportsBeds())

Beds

Rooms and bed labels for this inpatient unit.

@if ($canManageUnit ?? false)
@csrf
@endif
@forelse ($unit->beds as $bed) @php $occupant = $placedVisits->firstWhere('bed_id', $bed->id); @endphp @empty @endforelse
Label Room Status Occupant
{{ $bed->label }} {{ $bed->room ?: '—' }} {{ $bedStatuses[$bed->status] ?? $bed->status }} {{ $occupant?->patient?->fullName() ?? '—' }} @if ($canManageUnit ?? false)
@csrf @method('DELETE')
@endif
No beds yet.
@else
This unit kind does not use beds. Outpatient clinics, service units, and float pools assign staff without bed inventory. @if ($unit->kind === 'float_pool') Patients cannot be placed on a float pool. @endif
@endif