b2in/app/Livewire/Web/Components/Demo/ThemeSwitcher.php
2025-10-20 17:50:35 +02:00

25 lines
548 B
PHP

<?php
namespace App\Livewire\Web\Components\Demo;
use Livewire\Component;
class ThemeSwitcher extends Component
{
public $domains = [];
public function mount()
{
$this->domains = config('domains.domains');
foreach ($this->domains as $key => $domain) {
if ($domain['domain_name'] == config('domains.domain_portal')) {
unset($this->domains[$key]);
}
}
}
public function render()
{
return view('livewire.web.components.demo.theme-switcher');
}
}