Username: {{ $customer->username ?? 'N/A' }}
First Name: {{ $customer->first_name ?? 'N/A' }}
Last Name: {{ $customer->last_name ?? 'N/A' }}
Company Name: {{ $customer->agency['company_name'] ?? 'N/A' }}
Email Address: {{ $customer->email ?? 'N/A' }}
Secondary Email: {{ $customer->secondary_email ?? 'N/A' }}
Phone:
@php
$phone = $customer->phone ?? '';
if (preg_match('/^(\d{10})$/', $phone)) {
$formattedPhone = '(' . substr($phone, 0, 3) . ') ' . substr($phone, 3, 3) . '-' . substr($phone, 6);
} else {
$formattedPhone = $phone ?: 'N/A';
}
@endphp
{{ $formattedPhone }}
Fax: {{ $customer->fax ?? 'N/A' }}
Date Of Birth:
@if($customer->dob)
{{ \Carbon\Carbon::parse($customer->dob)->format('m-d-Y') }}
@else
N/A
@endif
Address: {{ isset($customer->addresses['address_line1']) ? $customer->addresses['address_line1'] : 'N/A' }}
State: {{ $customer->addresses['state'] ?? 'N/A' }}
Zip: {{ $customer->addresses['zip'] ?? 'N/A' }}
Notification Preference: {{ $customer->notification_preference ?? 'N/A' }}
Note: {{ $customer->note ?? 'N/A' }}
Status:
@if($customer->status == 1)
Active
@else
Inactive
@endif