@extends('layouts.app') @section('title', 'Guest Profiles') @section('nav_guests', 'bg-teal-50 text-teal-700 font-semibold') @section('page_title', 'Guest Profiles') @section('page_subtitle', 'Manage guest records and stay history') @section('content') @if (session('success'))

{{ session('success') }}

@endif {{-- Search & Filter bar --}}
@if($search !== '' || $filter !== '') Clear @endif
New Guest
{{-- Guest list --}}
@forelse($guests as $g) @empty @endforelse
Guest Contact Stays Last Check-in
{{ strtoupper(substr($g->first_name, 0, 1)) }}{{ strtoupper(substr($g->last_name, 0, 1)) }}

{{ $g->full_name }}

@if($g->vip) VIP @endif @if($g->blacklisted) BLACKLISTED @endif
@if($g->date_of_birth)

b. {{ $g->date_of_birth->format('M j, Y') }}

@endif

{{ $g->phone ?? '—' }}

{{ $g->email ?? '' }}

{{ $g->stays_count ?? 0 }} {{ $g->last_check_in ? \Carbon\Carbon::parse($g->last_check_in)->format('M j, Y') : '—' }} View →

No guest profiles found.

@if($search !== '' || $filter !== '') Clear filters @else Create the first guest profile @endif

{{ $guests->total() }} profile{{ $guests->total() !== 1 ? 's' : '' }} total

{{ $guests->links() }}
@endsection