@php
$fullName = trim(($call->first_name ?? '') . ' ' . ($call->last_name ?? ''));
@endphp
{{ $fullName ?: 'Call Details' }}
@php
$address = trim(($call->address1 ?? '') . ' ' . ($call->address2 ?? ''));
$address = preg_replace('/\s+/', ' ', $address);
$displayFields = [
'First Name' => $call->first_name,
'Last Name' => $call->last_name,
'Phone Number' => $call->primary_phone,
'Email' => $call->email,
'Address' => $address,
'City' => $call->city,
'State' => $call->state,
'Zip Code' => $call->postal_code,
'Country' => $call->country,
'Country Code' => $call->country_code,
'Dob' => $call->date_of_birth,
'Type Of Coverage' => $call->coverage_type,
'Household Size' => $call->household_size,
'Household Income' => $call->household_income,
'Gender' => $call->gender,
'Under 65' => $call->under_65,
'Status' => $statusDisplay ?? $call->status_name,
'Campaign Name' => $call->campaign_name,
'Payout' => $call->payout,
'Cost' => $call->cost,
'Revenue' => $call->revenue,
];
@endphp