@php use Illuminate\Support\Carbon; @endphp @extends('admin.layouts.master') @section('title', 'Edit Customer') @section('content')
Name: {{ $customer->name ?? 'N/A'}}
Email: {{ $customer->email ?? 'N/A' }}
Phone: {{ $customer->phone ?? 'N/A' }}
Referral Points: {{ $customer->referral_points ?? 0 }}
Referral Code: {{ $customer->referral_code ?? 'N/A' }}
Passport Status: @if(!$customer->passport_uploaded_at) Not Uploaded @else @php $uploaded = Carbon::parse($customer->passport_uploaded_at); $now = Carbon::now(); $alertDate = $uploaded->copy()->addMonths(5); $expiryDate = $uploaded->copy()->addMonths(7); @endphp @if($now->gte($expiryDate)) Expired on {{ $expiryDate->format('Y-m-d') }} @elseif($now->gte($alertDate)) Expiring Soon ({{ $expiryDate->format('Y-m-d') }}) @else Valid until {{ $expiryDate->format('Y-m-d') }} @endif @endif
@if($customer->passport_uploaded_at)Uploaded On: {{ $uploaded->format('Y-m-d') }}
Expires On: {{ $expiryDate->format('Y-m-d') }}
@endifNo bookings found.
@elsePackage: {{ $booking->package->title ?? 'No package info' }}
No enquiries found.
@elseMessage: {{ $enquiry->message ?? 'N/A' }}
No communications found.
@elseMessage: {{ \Illuminate\Support\Str::limit($communication->message, 50) }}