First commit
This commit is contained in:
commit
7cf3558ba7
12933 changed files with 1180047 additions and 0 deletions
29
app/Livewire/Web/Components/Sections/BrandWorlds.php
Normal file
29
app/Livewire/Web/Components/Sections/BrandWorlds.php
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<?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');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue