Merge pull request #120 from Ritikeshyadav/RitikeshFreeu

Ritikesh freeu
This commit is contained in:
Ritikeshyadav
2024-05-07 18:54:23 +05:30
committed by GitHub

View File

@@ -137,7 +137,12 @@ class MarketPlaceController extends Controller
}
$status .= 'OPEN';
} elseif (MarketplaceFractionalRealEstateSeller::where('id', $buyerData[0]->associated_id)->exists()) {
$status .= 'SOLD';
$freData = MarketplaceFractionalRealEstateSeller::where('id', $buyerData[0]->associated_id)->first();
if($freData->current_market_value_of_the_property < 0)
{
$status .= 'SOLD';
}
$status .= 'OPEN';
}
} else {
$status .= 'OPEN';