| @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 }}
{{ $customer->email }}
Member since {{ $customer->created_at->format('F Y') }}
|
|
{{ $customer->totalBookings() }}
Total Bookings
|
{{ $customer?->completedTours() }}
Completed Tours
|
TK {{ $customer?->totalSpent() }}
Total Spent
|
| 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 }} |
| 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' }} |
| 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' }} |