| {{ __('hotel::modules.guest.name') }} | {{ __('hotel::modules.guest.email') }} | {{ __('hotel::modules.guest.phone') }} | {{ __('hotel::modules.guest.idNumber') }} | {{ __('hotel::modules.guest.action') }} |
|---|---|---|---|---|
|
@php
$gInitials = collect(explode(' ', $guest->full_name))
->map(fn($w) => strtoupper($w[0] ?? ''))->take(2)->join('');
@endphp
{{ $gInitials }}
{{ $guest->full_name }}
|
{{ $guest->email ?? '--' }} | {{ $guest->phone ?? '--' }} |
@if($guest->id_number)
{{ $guest->id_number }}
@if($guest->id_type)
@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 = $idTypeLabels[$guest->id_type] ?? ucfirst(str_replace('_', ' ', $guest->id_type));
@endphp
{{ $idTypeLabel }}
@endif
@else
-
@endif
|
@if(user_can('Update Hotel Guest'))
|
|
{{ __('hotel::modules.guest.noGuestsFound') }} |
||||