@php $idTypeLabels = [ 'passport' => __('hotel::modules.guest.passport'), 'aadhaar' => __('hotel::modules.guest.aadhaar'), 'driving_license' => __('hotel::modules.guest.drivingLicense'), 'national_id' => __('hotel::modules.guest.nationalId'), 'other' => __('hotel::modules.guest.other'), ]; $idTypeLabel = $guest->id_type ? ($idTypeLabels[$guest->id_type] ?? ucfirst(str_replace('_', ' ', $guest->id_type))) : null; $initials = collect(explode(' ', $guest->full_name)) ->map(fn ($w) => strtoupper($w[0] ?? ''))->take(2)->join(''); $docPath = $guest->id_proof_file; $docUrl = $docPath ? asset_url_local_s3('guest-id-proof/' . $docPath) : null; $docExt = $docPath ? strtolower(pathinfo($docPath, PATHINFO_EXTENSION)) : ''; $isPdf = $docExt === 'pdf'; $dobFormatted = $guest->date_of_birth ? $guest->date_of_birth->format(config('app.date_format', 'Y-m-d')) : null; $hasAddress = collect([$guest->address, $guest->city, $guest->state, $guest->country, $guest->postal_code]) ->filter(fn ($v) => $v !== null && $v !== '') ->isNotEmpty(); @endphp
{{ __('hotel::modules.guest.guestProfileSubtitle') }}
@if($guest->customer){{ __('hotel::modules.guest.linkedCustomer') }}: {{ $guest->customer->name }}
@endif{{ __('hotel::modules.guest.profileDetails') }}
{{ basename($docPath) }}
{{ __('hotel::modules.guest.pdfPreviewHint') }}
{{ basename($docPath) }}
{{ __('hotel::modules.guest.noIdDocument') }}
{{ __('hotel::modules.guest.sectionAddress') }}
{{ __('hotel::modules.guest.address') }}
{{ $guest->address }}
{{ $label }}
{{ $val }}
{{ __('hotel::modules.guest.noAddressOnFile') }}
@endif @if($guest->notes){{ __('hotel::modules.guest.notes') }}
{{ $guest->notes }}