@extends('layouts.admin') @section('title', 'Check-out') @section('content')
@if ($errors->any())
@endif @if (session('success'))
{{ session('success') }}
@endif @if (!empty($overdueCount) && $overdueCount > 0)
{{ $overdueCount }} overdue stay{{ $overdueCount === 1 ? '' : 's' }} (checkout date passed)
These guests are still marked in-house after their planned departure. Recommended actions:
  1. Confirm whether the guest is still occupying the room (late departure / stay extension).
  2. Collect any outstanding balance (including extra night charges if they stayed longer).
  3. Complete Check Out to free the room and create housekeeping, or extend the reservation checkout date if they remain.
@endif
@forelse($departures as $r) @php $balance = (float) ($r->checkout_balance ?? $r->balance); $folio = $r->folios->first(); $isOverdue = (bool) ($r->is_overdue ?? false); @endphp @empty @endforelse
Reservation Guest Room Checkout date Balance Action
{{ $r->number }} @if($isOverdue)
Overdue · {{ $r->days_overdue }} day{{ $r->days_overdue == 1 ? '' : 's' }}
@endif
{{ $r->guest?->first_name }} {{ $r->guest?->last_name }} {{ $r->room?->number ?? '—' }} {{ $r->check_out_date?->format('M j, Y') }} @if($isOverdue)
Still in-house — process checkout or extend stay
@endif
@if($balance > 0.01) {{ $currency }} {{ number_format($balance, 2) }}
Must pay before checkout
@else {{ $currency }} 0.00
Settled
@endif
@if($balance > 0.01) @if($folio)
@csrf
@if($isOverdue) Settle balance, then check out to release the room. @else Check-out unlocks after balance is cleared. @endif
@else No charges account found @endif @else
@csrf
@if($isOverdue)
Or extend checkout date if guest is staying longer.
@endif @endif
No departures for this date
@endsection