@extends('layouts.app') @section('content')
@else
Logo not found
Property: {{ $property->PropertyName }}
Location: {{ $property->City ?? 'N/A' }}
Block: {{ $block->BlockName }} ({{ $block->BlockCode }})
Generated: {{ now()->format('M j, Y h:i A') }}
| Block Name: | {{ $block->BlockName }} |
| Block Code: | {{ $block->BlockCode }} |
| Description: | {{ $block->Description ?: 'N/A' }} |
| Floors: | {{ $block->Floors }} |
| Units/Floor: | {{ $block->UnitsPerFloor }} |
| Total Capacity: | {{ $block->Floors * $block->UnitsPerFloor }} units |
| Total Units: | {{ $total_units }} |
| Occupied: | {{ $block->units->where('OccupationStatus', 'Occupied')->count() }} ({{ $total_units > 0 ? number_format(($block->units->where('OccupationStatus', 'Occupied')->count() / $total_units) * 100, 1) : 0 }}%) |
| Vacant: | {{ $block->units->where('OccupationStatus', 'Vacant')->count() }} ({{ $total_units > 0 ? number_format(($block->units->where('OccupationStatus', 'Vacant')->count() / $total_units) * 100, 1) : 0 }}%) |
| Under Maintenance: | {{ $block->units->where('OccupationStatus', 'Under Maintenance')->count() }} ({{ $total_units > 0 ? number_format(($block->units->where('OccupationStatus', 'Under Maintenance')->count() / $total_units) * 100, 1) : 0 }}%) |
| Occupancy Rate: | {{ number_format($occupancy_rate, 1) }}% |
| Unit ID | Unit Name | Floor | Status | Monthly Rent | Details |
|---|---|---|---|---|---|
| {{ $unit->UnitID }} | {{ $unit->UnitIdentity }} | {{ $unit->FloorNo }} | @php $statusClass = match($unit->OccupationStatus) { 'Occupied' => 'status-occupied', 'Vacant' => 'status-vacant', 'Under Maintenance' => 'status-maintenance', default => '' }; @endphp {{ $unit->OccupationStatus }} | KSh {{ number_format($unit->MonthlyRent, 2) }} |
@if($unit->UnitDesc)
{{ Str::limit($unit->UnitDesc, 50) }}
@else
No description
@endif
|
| No units found for this block. | |||||