@extends('admin.layouts.app') @section('title', 'Dashboard') @section('page-title', 'Dashboard') @section('content')
Available Rooms
{{ $stats['available_rooms'] }}
of {{ $stats['total_rooms'] }} total
Occupied Rooms
{{ $stats['occupied_rooms'] }}
{{ $roomOccupancy['occupancy_rate'] }}% occupancy
Pending Bookings
{{ $stats['pending_bookings'] }}
{{ $stats['checked_in_today'] }} checked in today
Today's Revenue
₦ {{ number_format($stats['today_revenue'], 0) }}
Month: ₦ {{ number_format($stats['month_revenue'], 0) }}
| Guest | Room | Check-in | Status |
|---|---|---|---|
|
{{ $booking->guest_name }} {{ $booking->booking_number }} |
{{ $booking->room?->room_number ?? $booking->roomType?->name ?? 'N/A' }} | {{ $booking->check_in_date->format('M d') }} | @php $statusClass = match($booking->booking_status) { 'pending' => 'bg-yellow-100 text-yellow-700', 'confirmed' => 'bg-blue-100 text-blue-700', 'checked_in' => 'bg-green-100 text-green-700', 'checked_out' => 'bg-gray-100 text-gray-700', 'cancelled' => 'bg-red-100 text-red-700', default => 'bg-gray-100 text-gray-700', }; @endphp {{ ucfirst(str_replace('_', ' ', $booking->booking_status)) }} |
| No recent bookings | |||
| Invoice | Outlet | Staff | Amount |
|---|---|---|---|
| {{ $tx->invoice_number }} | {{ $tx->outlet?->name ?? 'N/A' }} | {{ $tx->staff?->name ?? 'N/A' }} | ₦ {{ number_format($tx->total_amount, 0) }} |
| No recent transactions | |||