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

29 lines
686 B
PHP

<?php
namespace App\Livewire\Web\Components\Sections;
use Livewire\Component;
class BrandWorlds extends Component
{
public $title;
public $subtitle;
public $worlds = [];
public $bg = 'bg-background';
public function mount($bg = 'bg-background')
{
$theme = config('app.theme', 'b2in');
$content = config("content.themes.{$theme}.brand_worlds");
$this->title = $content['title'] ?? '';
$this->subtitle = $content['subtitle'] ?? '';
$this->worlds = $content['worlds'] ?? [];
$this->bg = $bg;
}
public function render()
{
return view('livewire.web.components.sections.brand-worlds');
}
}