// Room Count Filter
protected function room_count($room_count)
{
return $this->builder
->where(function($query) use($room_count){
$query->whereJsonContains('rent_requests.rooms_count', $room_count[0]);
for($i = 1; $i < count($room_count); $i++) {
$query->orWhereJsonContains('rent_requests.rooms_count', $room_count[$i]);
}
return $query;
});
}