@extends('layouts.site') @section('content')
Back

{{ $property->name }}

{{ $property->address }}

{{ ucfirst(str_replace('_', ' ', $property->status)) }}
@if(!empty($property->all_images))
@foreach($property->all_images as $index => $image) @endforeach
@else

No images available for this property

@endif

Property Details

{!! nl2br(e($property->description ?? 'No description provided.')) !!}
@if($property->units->count() > 0)

Available Units

{{ $availableUnits->count() }} of {{ $property->units->count() }} Available
@if($availableUnits->count() > 0)
@foreach($availableUnits as $unit)

{{ $unit->display_name }}

@if($unit->description)

{{ $unit->description }}

@endif
@if($unit->is_featured) Featured @endif
@if($unit->formatted_details)

{{ $unit->formatted_details }}

@endif @if($unit->floor_number)

Floor {{ $unit->floor_number }}

@endif @if($unit->amenities && count($unit->amenities) > 0)
@foreach(array_slice($unit->amenities, 0, 3) as $amenity) {{ ucfirst($amenity) }} @endforeach @if(count($unit->amenities) > 3) +{{ count($unit->amenities) - 3 }} more @endif
@endif
Rent

UGX {{ number_format($unit->rent_amount) }}/mo

Book Viewing
@endforeach
@else

All units are currently occupied

Check back later for availability

@endif
@endif

Pricing Information

@if($property->units->count() > 0) @php $rents = $property->units->pluck('rent_amount')->filter(); $minRent = $rents->min(); $maxRent = $rents->max(); @endphp

Starting From

UGX {{ number_format($minRent) }}/mo

@if($minRent != $maxRent)

Up To

UGX {{ number_format($maxRent) }}/mo

@endif

Security Deposit

UGX {{ number_format($property->security_deposit) }}

@else

Monthly Rent

UGX {{ number_format($property->monthly_rent) }}

Security Deposit

UGX {{ number_format($property->security_deposit) }}

Total Move-In

UGX {{ number_format($property->monthly_rent + $property->security_deposit) }}

@endif

Property Information

Property Type

{{ $property->property_type ?? 'N/A' }}

@if($property->units->count() > 0)

Total Units

{{ $property->units->count() }} units

@else @if($property->bedrooms)

Bedrooms

{{ $property->bedrooms }}

@endif @if($property->bathrooms)

Bathrooms

{{ $property->bathrooms }}

@endif @endif @if($property->square_footage)

Square Footage

{{ number_format($property->square_footage) }} sqft

@endif @if($property->year_built)

Year Built

{{ $property->year_built }}

@endif

Pets Policy

{{ $property->pets_allowed ? 'Pets Allowed' : 'No Pets' }}

Listed On

{{ $property->created_at?->format('M d, Y') }}

@if($property->amenities && count($property->amenities) > 0)

Amenities

@foreach($property->amenities as $amenity) {{ ucfirst($amenity) }} @endforeach
@endif

Location

@if($property->latitude && $property->longitude)

Map integration

{{ $property->address }}

@else

Location data not available

@endif
@if(session()->has('success'))
{{ session('success') }}
@endif @endsection