{{-- Shared Account Transaction form fields. Wrapped by create.blade.php and edit.blade.php. Expects: $item (null on create), $accounts, $types. --}} @php $txnDate = old('txn_date', $item && $item->txn_date ? $item->txn_date->format('Y-m-d') : ''); @endphp