29 lines
686 B
PHP
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');
|
|
}
|
|
}
|