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

Executive Dashboard

Total Units
{{ $totalUnits }}
Sold: {{ $soldUnits }} • Available: {{ $availableUnits }} • Reserved: {{ $reservedUnits }}
Total Bookings (MTD)
{{ $bookingsMtd }}
Amount: {{ number_format($bookingsMtdAmount, 2) }}
Revenue Collected (MTD)
{{ number_format($revenueMtd, 2) }}
{{ $revenuePct!==null ? $revenuePct.'%' : '-' }}
Pending Installments
{{ $pendingInstCount }}
Amount: {{ number_format($pendingInstAmount, 2) }}
Overdue Amount
{{ number_format($overdueAmount, 2) }}
Overdue: {{ $overdueCount }}
Fine Collected (MTD)
{{ number_format($fineCollectedMtm, 2) }}
Active Customers
{{ $activeCustomers }}
Recent Bookings
@foreach($recentBookings as $b) @endforeach
Booking# Customer Unit# Amount Date Status
{{ $b->booking_number }} {{ $b->customer?->name }} {{ $b->unit?->unit_number }} {{ number_format($b->total_price, 2) }} {{ $b->booking_date?->format('Y-m-d') }} {{ str_replace('_',' ', $b->status) }}
Units by Phase
@foreach($unitsByPhase as $p) @endforeach
Phase Total Sold Available
{{ $p->name }} {{ $p->total_units ?? 0 }} {{ $p->sold_units ?? 0 }} {{ $p->available_units ?? 0 }}
Top Schemes
@foreach($topSchemes as $s) @endforeach
Scheme Bookings Amount
{{ $s->name }} {{ $s->total_bookings ?? 0 }} {{ number_format($s->total_amount ?? 0, 2) }}
@endsection