@php $row = $template ?? null; $val = fn ($key, $default = '') => old($key, $row ? $row->$key : $default); @endphp