@extends('layouts.app') @section('title', $guest->full_name) @section('nav_guests', 'bg-teal-50 text-teal-700 font-semibold') @section('page_title', $guest->full_name) @section('page_subtitle', 'Guest profile & stay history') @section('content') @if (session('success'))
{{ session('success') }}
{{ $guest->company }}
@endifProfile #{{ $guest->id }} · Added {{ $guest->created_at->format('M j, Y') }}
Phone
{{ $guest->phone ?? '—' }}
{{ $guest->email ?? '—' }}
Date of Birth
{{ $guest->date_of_birth ? $guest->date_of_birth->format('F j, Y') : '—' }} @if($guest->date_of_birth) ({{ $guest->date_of_birth->age }} yrs) @endif
Nationality
{{ $guest->nationality ?? '—' }}
Government ID
Type
{{ $guest->id_type ?? '—' }}
Number
{{ $guest->id_number ?? '—' }}
ID Image
Click to view full size
Address
{{ $guest->address }}
@endif @if($guest->city || $guest->province){{ implode(', ', array_filter([$guest->city, $guest->province])) }}
@endif{{ $guest->country ?? '—' }}
Notes & Preferences
{{ $guest->notes }}
Stay History
{{ $res->booking_no }}
{{ $statusLabel[$res->status] ?? $res->status }}Room {{ $res->room_no }} · {{ $res->room_type }} · {{ $res->check_in->format('M j') }}–{{ $res->check_out->format('M j, Y') }} · {{ $res->nights }} night{{ $res->nights > 1 ? 's' : '' }}
₱{{ number_format($res->amount, 0) }}
@php $bal = $res->balanceDue(); @endphp @if($bal > 0)₱{{ number_format($bal, 0) }} due
@elseif(in_array($res->status, ['checked_in', 'checked_out']))Settled
@endifStay Statistics
Total Stays
{{ $totalStays }}
Total Spent
₱{{ number_format($totalSpent, 0) }}
First Stay
{{ $firstStay->check_in->format('M j, Y') }}
Most Recent Stay
{{ $lastStay->check_in->format('M j, Y') }}
Quick Actions