@php $editing = $session !== null; $patient = $patient ?? $session?->patient; $interpreterOptions = $interpreters ->mapWithKeys(function ($interpreter) { $languages = implode(', ', array_slice($interpreter->language_labels, 0, 4)); return [$interpreter->id => $languages === '' ? $interpreter->name : "{$interpreter->name} — {$languages}"]; }) ->all(); $admissionOptions = ($admissions ?? collect()) ->mapWithKeys(function ($admission) { $parts = array_filter([ "Admission {$admission->admission_no}", $admission->ward?->name, $admission->bed ? "Bed {$admission->bed->bed_number}" : null, ]); return [$admission->id => implode(' — ', $parts)]; }) ->all(); $appointmentOptions = ($appointments ?? collect()) ->mapWithKeys(function ($appointment) { $parts = array_filter([ $appointment->appointment_no, $appointment->appointment_date?->format('d M Y'), $appointment->slot_time, ]); return [$appointment->id => implode(' — ', $parts)]; }) ->all(); $languageDefault = $session?->language ?? ($patient?->preferred_language ?: null); $action = $editing ? route('communication.interpreting.update', $session) : route('communication.interpreting.store'); @endphp
@csrf @if ($editing) @method('PUT') @endif

Over the phone: the patient's room needs a speakerphone and the access code — no camera or dedicated device.

@unless ($editing) @endunless
Kept on the session so the ward can read them off at the bedside.
Cancel