loadDefaultActiveTab(); abort_unless(Forex::isEnabled(), 403); } protected function loadDefaultActiveTab(): void { if (filled($this->activeTab)) { return; } $this->activeTab = $this->getDefaultActiveTab(); } public function getDefaultActiveTab(): string | int | null { return 'currency-list'; } public function getViewData(): array { return [ 'currencyListQuery' => CurrencyList::query()->count(), 'companyCurrenciesQuery' => Currency::query()->count(), ]; } }