@extends('admin.layouts.layout') @section('title', 'View Customer: ' . $customer->first_name . ' ' . $customer->last_name) @section('content')

View Customer: {{ $customer->first_name }} {{ $customer->last_name }}

@if($permission['edit'] ?? true) Edit Customer @endif @if($permission['index'] ?? true) Back to Customer List @endif
Customer Details
@php $avatarThumb = isset($customer->avatar['thumb']) ? $customer->avatar['thumb'] : asset('img/200x200/no-profile.jpg'); @endphp Profile
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
@endsection @push('page_css') @endpush