@if (count($propertyUnits) > 0)
@foreach ($propertyUnits as $key => $propertyUnit)
@if ($key < $property->number_of_unit)
@endif
@endforeach
@else
@for ($i = 0; $i < $property->number_of_unit; $i++)
@endfor
@endif
@if (count($propertyUnits) > 0 && count($propertyUnits) < $property->number_of_unit)
@for ($i = 0; $i < $property->number_of_unit - count($propertyUnits); $i++)
@endfor
@endif