@php
function formatIfNumber($value) {
if ($value === null || $value === '' || !isset($value)) {
return '0';
}
if (is_numeric($value)) {
return number_format(floor($value), 0, '.', ',');
}
return $value;
}
@endphp
Occupancy
{{ round($property->vacancy_percentage) }}% | {{ $property->vacant_sf }} sf
Vacant
{{ round($property->occupancy_percentage) }}% | {{ $property->occupancy_sf }} sf
Total Income
$ {{ formatIfNumber($property->total_annual_base_rent) ?? "0" }}
Average Rent per sf
$ {{ formatIfNumber($property->total_average_rent_per_sf) ?? "0" }}