diff --git a/app/Modules/CityManager/Http/Livewire/CityManagerInfo.php b/app/Modules/CityManager/Http/Livewire/CityManagerInfo.php index 801864b..5fdc052 100644 --- a/app/Modules/CityManager/Http/Livewire/CityManagerInfo.php +++ b/app/Modules/CityManager/Http/Livewire/CityManagerInfo.php @@ -7,9 +7,16 @@ class CityManagerInfo extends Component { + public $managers = []; public $manager = false; public function mount() { + $availableCities = GetAvailableCities(); + CityManager::whereIn('city_id', $availableCities->pluck('id'))->get()->each(function ($cityManager) { + $this->managers[] = $cityManager->user; + }); + + //depricated, but leave for now, maybe will be used in future for list of managers in city $city = false; if (($company = AdminCompanyOfUser()) || ($company = AgentCompanyOfUser())) { diff --git a/app/Modules/CityManager/Views/livewire/info/index.blade.php b/app/Modules/CityManager/Views/livewire/info/index.blade.php index fc0d8fa..02af691 100644 --- a/app/Modules/CityManager/Views/livewire/info/index.blade.php +++ b/app/Modules/CityManager/Views/livewire/info/index.blade.php @@ -1,16 +1,68 @@
- @if ($manager) -
-
-
Ваш менеджер:
-
- {{ $manager->name }} + @if($managers) + @php + $cardBg = array_key_exists('primary_color', DESIGN_PARAMETERS) + ? DESIGN_PARAMETERS['primary_color'] . '50' + : 'gray'; + @endphp + + + +
\ No newline at end of file