@extends('layouts.app') @section('content') @push('styles') @endpush @push('scripts') @endpush

{{ $property->PropName }}

{{ $property->City }}
{{ $property->PropertyType }}
Total Units
{{ $stats['total_units'] ?? 0 }}
@if(isset($stats['total_units_prev']) && $stats['total_units_prev'] > 0) @php $change = (($stats['total_units'] - $stats['total_units_prev']) / $stats['total_units_prev']) * 100; $isIncrease = $change >= 0; @endphp
{{ $isIncrease ? '↑' : '↓' }} {{ number_format(abs($change), 0) }}% {{ $isIncrease ? 'Increased' : 'Decreased' }} by
@endif
Occupied Units
{{ $stats['occupied_units'] ?? 0 }}
Vacant Units
{{ $stats['vacant_units'] ?? 0 }}
Services
{{ $services_count ?? 0 }}

Property Information

Detailed information about the property

Description
{{ $property->PropDesc ?? 'No description provided.' }}
Months Per Year
{{ $property->NoMonthPerYear ?? '12' }}
Meter Information
Electric: {{ $property->EMeterNo ?? 'Not specified' }}
Water: {{ $property->WMeterNo ?? 'Not specified' }}

Property Services

Add Service

Common services and utilities for this property

@if($services->count() > 0)
@foreach($services as $service) @endforeach
Service Name Description Price Billing Period
{{ $service->ServiceName }}
{{ $service->Description ?? 'No description provided' }}
{{ number_format($service->Price, 2) }} @php $periods = [ 'Monthly' => 'Month', 'Quarterly' => 'Quarter', 'Annually' => 'Year' ]; $period = $periods[$service->NoMonthPerYear] ?? $service->NoMonthPerYear; @endphp {{ $period }}
@else

No services

Get started by adding a new service.

@endif
@forelse($units as $unit) @php $isOccupied = $unit->customers_count > 0; @endphp @empty @endforelse
Unit ID
Unit Identity Status
Monthly Rent
Tenants Actions
#{{ $unit->UnitID }}
{{ $unit->UnitIdentity }}
@if($unit->BlockNo || $unit->FloorNo || $unit->DoorNo) {{ $unit->BlockNo ? 'Block ' . $unit->BlockNo : '' }} {{ $unit->FloorNo ? '• Floor ' . $unit->FloorNo : '' }} {{ $unit->DoorNo ? '• Door ' . $unit->DoorNo : '' }} @else No location details @endif
@if($isOccupied) Occupied @else Vacant @endif
Ksh {{ number_format($unit->MonthlyRent, 2) }}
per month
{{ $unit->customers_count ?? 0 }} {{ $unit->customers_count == 1 ? 'Tenant' : 'Tenants' }}

No Units Added Yet

You haven't added any units to this property. Get started by adding your first unit to manage tenants and track payments.

@if ($units->onFirstPage()) Previous @else Previous @endif @if ($units->hasMorePages()) Next @else Next @endif
@endsection