@extends('layouts.app') @section('title', 'Dashboard') @section('page-title', $hotel->name.' — Dashboard') @section('content') @if($hotel->status === 'trial' && $hotel->trial_ends_at)
Your free trial ends on {{ $hotel->trial_ends_at->format('d M Y') }} ({{ $hotel->trial_ends_at->diffForHumans() }}). Contact us to subscribe and keep your data.
@endif
{{ $stats['total_rooms'] }}
Total Rooms
{{ $stats['available_rooms'] }}
Available
{{ $stats['occupied_rooms'] }}
Occupied
{{ $stats['maintenance_rooms'] }}
Maintenance
{{ $stats['bookings_today'] }}
Bookings Today
{{ $stats['checkins_today'] }}
Check-ins Today
{{ $stats['checkouts_today'] }}
Check-outs Today
₦{{ number_format($stats['revenue_today'], 0) }}
Revenue Today
₦{{ number_format($stats['revenue_month'], 0) }}
Revenue This Month
Quick Actions
Recent Bookings View All
@forelse($stats['recent_bookings'] as $booking) @empty @endforelse
GuestRoomStatusCheck-in
{{ $booking->guest->full_name }}
{{ $booking->booking_reference }}
{{ $booking->room->room_number }} @if($booking->status==='reserved') Reserved @elseif($booking->status==='checked_in') Checked In @elseif($booking->status==='checked_out') Checked Out @elseif($booking->status==='cancelled') Cancelled @else {{ ucfirst($booking->status) }} @endif {{ $booking->check_in_date->format('d M') }}
No bookings yet
Notifications @if($stats['notifications']->count() > 0) {{ $stats['notifications']->count() }} unread @endif
@forelse($stats['notifications'] as $notif)
{{ $notif->title }}
{{ Str::limit($notif->message, 80) }}
{{ $notif->created_at->diffForHumans() }}
@empty

No new notifications

@endforelse
@endsection