@php $c = $customer ?? null; $extraContacts = old('additional_contacts', $c?->additional_contacts ?? []); if (empty($extraContacts)) { $extraContacts = [['name' => '', 'phone' => '', 'email' => '']]; } @endphp
Used for customer balance and payment calculations (amount receivable from client).