plan7 selector - добавлена админка для сохранения api данных

This commit is contained in:
developer 2026-04-03 12:25:19 +08:00
parent 9647351258
commit 5bd002cb2c

View File

@ -30,6 +30,8 @@ public function mount()
}
#[On('client_form_complex_updated')]
public function load() {
$this->room = false;
$this->filter = [];
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;