@php $department = $department ?? null; $value = fn ($field, $default = null) => old($field, $department?->{$field} ?? $default); @endphp