@php $photoPath = $customer->profile_photo_url ? public_path(parse_url($customer->profile_photo_url, PHP_URL_PATH)) : public_path('backend/img/avatar.jpg'); $type = pathinfo($photoPath, PATHINFO_EXTENSION); $data = file_get_contents($photoPath); $base64 = 'data:image/' . $type . ';base64,' . base64_encode($data); @endphp
{{ $customer->first_name }} {{ $customer->last_name }}
Member since {{ $customer->created_at->format('F Y') }}
Logo
{{ $customer->totalBookings() }}
Total Bookings
{{ $customer?->completedTours() }}
Completed Tours
TK {{ $customer?->totalSpent() }}
Total Spent
Personal Information
First Name {{ $customer->first_name }}
Last Name {{ $customer->last_name }}
Email Address {{ $customer->email }}
Phone Number {{ $customer->phone }}
Date of Birth {{ optional(optional($customer->customerDetails)->date_of_birth)->format('d/m/Y') }}
Nationality {{ optional($customer->customerDetails)->nationality }}
Address {{ optional($customer->customerDetails)->address }}
Emergency Contact
Contact Name {{ optional($customer->customerDetails)->emergency_name ?? 'N/A' }}
Relationship {{ optional($customer->customerDetails)->emergency_relation ?? 'N/A' }}
Phone Number {{ optional($customer->customerDetails)->emergency_phone ?? 'N/A' }}
Email Address {{ optional($customer->customerDetails)->emergency_email ?? 'N/A' }}
Travel Preferences
Preferred Language {{ optional($customer->customerDetails)->preferred_language ?? 'N/A' }}
Dietary Restrictions {{ optional($customer->customerDetails)->dietary_restrictions ?? 'N/A' }}
Special Requests {{ optional($customer->customerDetails)->special_requests ?? 'N/A' }}