diff --git a/app/Modules/Plan7/Http/Livewire/Plan7SelectorLivewire.php b/app/Modules/Plan7/Http/Livewire/Plan7SelectorLivewire.php index 38b0170..4a62ea7 100644 --- a/app/Modules/Plan7/Http/Livewire/Plan7SelectorLivewire.php +++ b/app/Modules/Plan7/Http/Livewire/Plan7SelectorLivewire.php @@ -22,6 +22,7 @@ class Plan7SelectorLivewire extends Component private $apiAll; public function mount() { + $this->containerId = $this->containerId . '__' . $this->complexId; if ($plan7ApiData = Complex::find($this->complexId)->getPlan7ApiData()) { $this->apiSummary = 'https://plan7.ru/catalog/exp/json/summary/?token=' . $plan7ApiData->token . '&zk=' . $plan7ApiData->zk; $this->apiAll = 'https://plan7.ru/catalog/exp/json/?token=' . $plan7ApiData->token . '&zk=' . $plan7ApiData->zk; diff --git a/app/Modules/Plan7/Views/livewire/selector.blade.php b/app/Modules/Plan7/Views/livewire/selector.blade.php index 5619d53..2a58ef0 100644 --- a/app/Modules/Plan7/Views/livewire/selector.blade.php +++ b/app/Modules/Plan7/Views/livewire/selector.blade.php @@ -1,219 +1,223 @@
- -
- @if($room) -
-
- {{ (($room['type'] == 0) ? $room['room'] . ' комн. ' . mb_strtolower($this->types[$room['type']]) : $this->types[$room['type']]) }} +
+ +
+ @if($room) +
+
+ {{ (($room['type'] == 0) ? $room['room'] . ' комн. ' . mb_strtolower($this->types[$room['type']]) : $this->types[$room['type']]) }} +
+
+
Помещение: {{ $room['name'] }}
+
Площадь: {{ $room['area'] }}
+
Этаж: {{ $room['level'] }}
+
-
-
Помещение: {{ $room['name'] }}
-
Площадь: {{ $room['area'] }}
-
Этаж: {{ $room['level'] }}
-
-
- @endif -
- - -
-
- - - - -