helpers updated
This commit is contained in:
parent
4fcd31d75c
commit
90f4f6f39a
@ -105,7 +105,7 @@ function GetAvailableComplexes()
|
||||
$complexes = Complex::where('city_id', $cityManager->first()->city_id);
|
||||
} else {
|
||||
if ($agent = Agent::where('user_id', auth()->user()->id)->first()) {
|
||||
$complexes = Complex::where('city_id', $agent->company->city_id);
|
||||
$complexes = Complex::where('city_id', $agent->company?->city_id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user