@extends('layouts.app') @php $eyebrow = 'Overview'; $pageTitle = 'Dashboard'; @endphp @section('content')
Total tenants
{{ $totalTenants }}
{{ $activeTenants }} active
Active leases
{{ $activeLeases }}
{{ $expiringLeases }} expiring soon
Occupancy rate
{{ $occupancyRate }}%
{{ $occupiedUnits }} of {{ $totalUnits }} units
Monthly revenue
${{ number_format((float) $monthlyRevenue, 0) }}
from active leases
Outstanding invoices
{{ $outstandingInvoices }}
${{ number_format((float) $outstandingBalance, 0) }} owed
Expenses this month
${{ number_format((float) $monthExpenses, 0) }}
{{ now()->format('F Y') }}
Open maintenance
{{ $openMaintenance }}
open or in progress
Unit occupancy
@php $vacantPct = $totalUnits > 0 ? round(($vacantUnits / $totalUnits) * 100) : 0; $otherPct = max(0, 100 - $occupancyRate - $vacantPct); @endphp
Occupied {{ $occupiedUnits }} Vacant {{ $vacantUnits }} Other {{ max(0, $totalUnits - $occupiedUnits - $vacantUnits) }}
@if($totalUnits === 0)

No units added yet — add your first unit.

@endif
Recent leases View all
@forelse($recentLeases as $lease) @empty @endforelse
Tenant Unit Rent Status
{{ $lease->tenant->full_name ?? '—' }} {{ $lease->apartment->unit_number ?? '—' }} ${{ number_format((float) $lease->rent_amount, 2) }} @php $map = ['active' => 'st-green', 'draft' => 'st-gray', 'expiring' => 'st-orange', 'expired' => 'st-red', 'terminated' => 'st-red', 'renewed' => 'st-blue']; @endphp {{ $lease->status }}
No leases yet.
Recently added tenants View all
@forelse($recentTenants as $tenant) @empty @endforelse
Name Phone Email Status
{{ strtoupper(substr($tenant->full_name ?? '?', 0, 1)) }} {{ $tenant->full_name }} {{ $tenant->phone ?? '—' }} {{ $tenant->email ?? '—' }} @php $tmap = ['active' => 'st-green', 'notice given' => 'st-orange', 'moved out' => 'st-gray', 'blacklisted' => 'st-red']; @endphp {{ $tenant->status }}
No tenants yet — add one.
@endsection