@php $f = 'mt-1 block w-full rounded-md border-gray-300 text-sm'; $l = 'block text-sm font-medium text-gray-700'; $d = fn ($v) => old($v, optional($purchase->$v)->format('Y-m-d')); @endphp