Comparables Search
Loading Comparables...
Search Comparables
Show Search Form
Comparables Results
Showing {{ $comparablesCount }} Comparables
Map View
Note: Sales highlighted in yellow are Potential Flips; green are Potential Distressed Sales.
| # | Photo | Dist | Address | Subdivision | Class/Style | School District | Sqft | Built | Lot | Rms | Beds | Bths | Garage | Price | PPSFT | Sale Date | Parties |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@php
$isSubject = $comp['isSubject'] ?? false;
// Count non-subject comparables before this one for numbering
$comparableNumber = 0;
if (!$isSubject) {
// Count how many non-subject comparables are before this one
foreach ($comparables as $i => $c) {
if ($i < $index && !($c['isSubject'] ?? false)) {
$comparableNumber++;
}
}
$comparableNumber++; // This is the next comparable number
}
@endphp
@if($isSubject)
S
@else
{{ $comparableNumber }}
@endif
|
@php
// Get location data (needed for both image URL and display)
$county = $comp['county'] ?? $comp['countyName'] ?? $comp['munname'] ?? '';
$state = $comp['state'] ?? $comp['countrySubd'] ?? '';
// Get coordinates
$lat = $comp['latitude'] ?? $comp['lat'] ?? $comp['location']['latitude'] ?? $comp['location']['lat'] ?? null;
$lng = $comp['longitude'] ?? $comp['lng'] ?? $comp['lon'] ?? $comp['location']['longitude'] ?? $comp['location']['lon'] ?? null;
// Build address string for image URL (with comma format)
$addressLine = $comp['address'] ?? $comp['fullAddress'] ?? $comp['line1'] ?? '';
if ($addressLine && isset($comp['locality'])) {
$addressLine .= ', ' . $comp['locality'];
} elseif ($addressLine && isset($comp['city'])) {
$addressLine .= ', ' . $comp['city'];
}
if ($addressLine && $state) {
$addressLine .= ', ' . $state;
}
if ($addressLine && isset($comp['postal1'])) {
$addressLine .= ' ' . $comp['postal1'];
} elseif ($addressLine && isset($comp['zip'])) {
$addressLine .= ' ' . $comp['zip'];
}
$addressEncoded = urlencode($addressLine);
// Build formatted address for display (separate lines)
$displayAddressLine1 = $comp['address'] ?? $comp['fullAddress'] ?? $comp['line1'] ?? 'N/A';
$displayAddressLine2 = '';
if (isset($comp['locality']) || isset($comp['city'])) {
$city = $comp['locality'] ?? $comp['city'] ?? '';
$stateDisplay = $comp['state'] ?? $comp['countrySubd'] ?? '';
$zip = $comp['postal1'] ?? $comp['zip'] ?? '';
$displayAddressLine2 = trim($city . ' ' . $stateDisplay . ' ' . $zip);
}
$displayAddressLine3 = $comp['subdivision'] ?? $comp['subdname'] ?? $comp['area']['subdname'] ?? '';
@endphp
@if($propertyId)
@php
// Build Property Image URL using ATTOM Property Navigator API (similar to subject property)
$imageUrl = 'https://via.placeholder.com/80x80?text=Property';
// Get imageId (ATTOM ID)
$imageId = $propertyId;
// Format: CO-Denver (state-county)
$countyState = '';
if ($state && $county) {
$countyState = $state . '-' . $county;
} elseif ($state) {
$countyState = $state;
}
// Build ATTOM Property Navigator image URL
if ($imageId) {
$imageUrl = 'https://propertynavigator.attomdata.com/ShowImage.ashx?imageid=' . $imageId .
'&Darkmode=false';
if ($countyState) {
$imageUrl .= '&countty=' . urlencode($countyState);
}
if ($addressEncoded) {
$imageUrl .= '&address=' . $addressEncoded;
}
if ($lat && $lng) {
$imageUrl .= '&latitude=' . $lat . '&longitude=' . $lng;
}
$imageUrl .= '&width=80&height=80';
}
@endphp
@if($propertyId && $propertyId != '')
@php
$detailUrl = route('property.show', ['attomId' => $propertyId]);
@endphp
No Image
@endif
|
{{ $distanceFormatted }} |
@if($propertyId && $propertyId != '')
@php
$detailUrl = route('property.show', ['attomId' => $propertyId]);
@endphp
{{ $displayAddressLine1 }} @if($displayAddressLine2) {{ $displayAddressLine2 }} @endif @if($displayAddressLine3) {{ $displayAddressLine3 }} @endif @elseif($addressLine && $addressLine != 'N/A') @php $fullAddressForSearch = $addressLine; $addressSearchUrl = route('property.by.address') . '?address=' . urlencode($fullAddressForSearch); @endphp {{ $displayAddressLine1 }} @if($displayAddressLine2) {{ $displayAddressLine2 }} @endif @if($displayAddressLine3) {{ $displayAddressLine3 }} @endif @else {{ $displayAddressLine1 }} @if($displayAddressLine2) {{ $displayAddressLine2 }} @endif @if($displayAddressLine3) {{ $displayAddressLine3 }} @endif @endif |
{{ $subdivision ?: '-' }} | {{ $classStyle ?: '-' }} | {{ $schoolDistrict ?: '-' }} | {{ $sqft > 0 ? number_format($sqft, 0) : '-' }} | {{ $yearBuilt ?: '-' }} | {{ $lot ?: '-' }} | {{ $rooms ?: '-' }} | {{ $beds ?: '-' }} | {{ $baths ?: '-' }} | {{ $garage ?: '-' }} | {{ $price > 0 ? '$' . number_format($price, 0) : '-' }} | {{ $pricePerSqft > 0 ? '$' . number_format($pricePerSqft, 0) : '-' }} | {{ $saleDate ?: '-' }} | {{ $parties ?: '-' }} |
No Comparables Found
@if($request->isMethod('post') || $request->has('search')) No comparables were found matching your search criteria. Please try adjusting your search parameters. @else Please use the search form above to find comparables for this property. @endif