@php($editing = isset($record) && $record)
Capture the smallest complete record needed for a decision or action.
Use only the fields that clarify this record; empty data stays visibly missing.