@extends('layouts.app') @section('content')
{{ $property->City }} • {{ $property->PropertyType }}
| Unit ID | Details | Meter Info | Financials | Status | Actions |
|---|---|---|---|---|---|
|
{{ $unit->UnitIdentity }}
{{ $unit->UnitDesc ?? 'No description' }}
|
@if($unit->BlockNo || $unit->FloorNo || $unit->DoorNo)
{{ implode( array_filter([$unit->BlockNo, $unit->FloorNo, $unit->DoorNo])) }}
@else
-
@endif
|
W: {{ $unit->WMeterNo ?? 'N/A' }} ({{ $unit->WLastReading }})
E: {{ $unit->EMeterNo ?? 'N/A' }} ({{ $unit->ELastReading }})
|
Rent: Ksh {{ number_format($unit->MonthlyRent, 2) }}
Charges: W Ksh {{ number_format($unit->WFixedCharge, 2) }} / E Ksh {{ number_format($unit->EFixedCharge, 2) }}
|
@php
$statusColors = [
'Active' => 'bg-green-100 text-green-800',
'InActive' => 'bg-blue-100 text-blue-800',
'Under' => 'bg-yellow-100 text-yellow-800'
];
$statusColor = $statusColors[$unit->OccupationStatus] ?? 'bg-gray-100 text-gray-800';
@endphp
@if ($unit->OccupationStatus === 'Active')
Occupied
@elseif ($unit->OccupationStatus === 'InActive')
Vacant
@else
Under Maintenance
@endif
Unit: {{ $unit->UnitActive ? 'Active' : 'Inactive' }}
|
@if($unit->UnitActive)
Manage Assignments
@else
Manage Assignments
@endif
|
| No units found. Add a unit to get started. | |||||