@extends('layouts.app') @section('title', 'Dashboard') @section('page_title', 'Dashboard') @section('page_subtitle', 'Hotel overview for ' . now()->format('F j, Y')) @section('nav_dashboard', 'bg-teal-50 text-teal-700 font-semibold') @section('content') @php $hour = now()->hour; $greeting = $hour < 12 ? 'Good morning' : ($hour < 18 ? 'Good afternoon' : 'Good evening'); $propName = \App\Models\Setting::get('property_name', 'Parkview Hotel CDO'); @endphp @if (session('success'))
{{ session('success') }}
{{ $propName }} — {{ now()->format('l, F j, Y \a\t g:i A') }}
Occupancy
{{ $stats['occupancy_rate'] }}%
of {{ $stats['total_rooms'] }} rooms
In-House
{{ $stats['in_house'] }}
Guests staying
Available
{{ $stats['available'] }}
Ready to sell
Revenue Today
₱{{ number_format($stats['revenue_today'], 0) }}
MTD: ₱{{ number_format($stats['revenue_mtd'], 0) }}
No pending arrivals for today.
{{ $res->guest_name }}
Room {{ $res->room_no }} · {{ $res->nights }}N · {{ $res->pax }} pax
₱{{ number_format($balance, 0) }} due
@elseFully paid
@endif @if ($res->status === 'pending') Unconfirmed @endifNo pending departures for today.
{{ $res->guest_name }}
Room {{ $res->room_no }} · {{ $res->nights }}N @if ($overdue) · Overdue @endif
₱{{ number_format($balance, 0) }} due
@elseSettled
@endifTotal ₱{{ number_format($res->amount, 0) }}
From checked-out reservations
| Booking # | Guest | Room | Check-in | Check-out | Status | Amount |
|---|---|---|---|---|---|---|
| {{ $res->booking_no }} |
{{ $res->guest_name }} {{ $res->source }} |
Room {{ $res->room_no }} {{ $res->room_type }} |
{{ $res->check_in->format('M j, Y') }} |
{{ $res->check_out->format('M j, Y') }} {{ $res->nights }}N |
@if ($res->status === 'checked_in') @endif {{ $labels[$res->status] ?? $res->status }} |
₱{{ number_format($res->amount, 0) }} |