b2in/app/Livewire/Web/Components/Sections/BenefitsSection.php

28 lines
715 B
PHP

<?php
namespace App\Livewire\Web\Components\Sections;
use Livewire\Component;
class BenefitsSection extends Component
{
public $content = [];
public $layout = 'left'; // Standard-Layout
public $bg = 'bg-background';
public $section = 'card_section';
public function mount($layout = 'left', $bg = 'bg-background', $section = 'card_section')
{
$this->layout = $layout;
$this->bg = $bg;
$this->section = $section;
$theme = config('app.theme', 'b2in');
$this->content = config("content.themes.{$theme}.{$this->section}", []);
}
public function render()
{
return view('livewire.web.components.sections.benefits-section');
}
}