@extends('layouts.admin') @section('content')

Operational Dashboard

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

{{-- Stats Row 1 --}}
Total Units

{{ $stats['total_units'] }}

{{ $stats['available_units'] }} Available
Bookings

{{ $stats['total_bookings'] }}

{{ $stats['pending_bookings'] }} Pending
Billings

{{ $stats['total_billings'] }}

{{ $stats['unpaid_billings'] }} Unpaid
Total Tenants

{{ $stats['total_tenants'] }}

{{ $stats['occupied_units'] }} Occupied
{{-- Stats Row 2 --}}
Complaints

{{ $stats['total_complaints'] }}

{{ $stats['active_complaints'] }} Pending
Maintenance

{{ $stats['total_maintenance'] }}

{{ $stats['pending_maintenance'] }} Pending
{{-- Recent Bookings --}}
Recent Bookings
View All
@forelse($recent_bookings ?? [] as $booking) @empty @endforelse
TenantUnitDateStatusAction
{{ $booking->user->name }} {{ $booking->unit->name }} {{ $booking->created_at->format('d M Y') }} {{ ucfirst($booking->status) }} @if($booking->status == 'pending')
@csrf
@else @endif
No bookings yet
{{-- Recent Activities --}}
Recent Activities
@forelse($recent_activities ?? [] as $activity)

{{ $activity->description }}

{{ $activity->user->name ?? 'System' }} · {{ $activity->created_at->diffForHumans() }}
@empty

No recent activities

@endforelse
@endsection