@extends('layouts.app') @section('title', 'Check-in') @section('page_title', 'Check-in') @section('page_subtitle')Arrivals pending check-in — {{ now()->format('F j, Y') }}@endsection @section('nav_checkin', 'bg-teal-50 text-teal-700 font-semibold') @section('content') @if (session('success'))

{{ session('success') }}

@endif {{-- Stat Cards --}}

Due Today

{{ $stats['today'] }}

Arrivals

Overdue

{{ $stats['overdue'] }}

Past arrival date

Unconfirmed

{{ $stats['pending'] }}

Need confirmation

Walk-in Guest

New Reservation
{{-- Today's Reminders Panel --}} @if ($todayReminders->isNotEmpty())

Pending Reminders

{{ $todayReminders->count() }} @php $overdueCount = $todayReminders->filter(fn($r) => $r->remind_at->lt(today()))->count(); @endphp @if ($overdueCount > 0) {{ $overdueCount }} overdue @endif

{{ now()->format('l, F j, Y') }}

@foreach ($todayReminders as $reminder) @php $overdue = $reminder->remind_at->lt(today()); @endphp
@if ($overdue)

{{ $reminder->remind_at->format('M j') }}

{{ $reminder->remind_at->format('g:i A') }}

Overdue @else

{{ $reminder->remind_at->format('g:i') }}

{{ $reminder->remind_at->format('A') }}

@endif

{{ $reminder->reservation->guest_name ?? '' }} @if ($reminder->reservation->room_no) · Room {{ $reminder->reservation->room_no }} @endif

@if ($reminder->notes)

{{ $reminder->notes }}

@endif
@csrf
@endforeach
@endif {{-- Arrivals Table --}}

Pending Arrivals

{{ $arrivals->count() }}

{{ now()->format('l, F j, Y') }}

@if ($arrivals->isEmpty())

No pending arrivals

All guests for today have been checked in.

@else
@foreach ($arrivals as $res) @php $overdue = $res->check_in->lt(today()); $balance = $res->balanceDue(); @endphp @endforeach
Booking # Guest Room Pax Check-in Check-out Status Deposit Balance Due Action
{{ $res->booking_no }} @if ($res->group_id) @endif
{{ strtoupper(substr($res->guest_name, 0, 1)) }}{{ strtoupper(substr(explode(' ', $res->guest_name)[1] ?? 'X', 0, 1)) }}

{{ $res->guest_name }}

{{ $res->guest_phone }}

Room {{ $res->room_no }}

{{ $res->room_type }}

{{ $res->pax }}

{{ $res->check_in->format('M j, Y') }}

@if ($overdue)

Overdue

@else

Today

@endif

{{ $res->check_out->format('M j, Y') }}

{{ $res->nights }}N

@if ($res->status === 'pending') Pending @else Confirmed @endif @if ($res->deposit_paid)

₱{{ number_format($res->deposit_amount, 0) }}

{{ $res->deposit_method }}

@else No deposit @endif
@if ($balance > 0)

₱{{ number_format($balance, 0) }}

of ₱{{ number_format($res->amount, 0) }}

@else Fully paid @endif
@csrf
@endif
@endsection