ldc-legaulois/app/View/Components/Fo/Story/WhoWeAre.php
2026-09-25 16:25:31 +02:00

35 lines
829 B
PHP

<?php
namespace App\View\Components\Fo\Story;
use App\Enums\StaticPageType;
use App\Models\StaticPage;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
class WhoWeAre extends Component
{
/** @var \App\Models\StaticPage */
public $staticPageModel;
public bool $displayButton;
/**
* Create a new component instance.
*/
public function __construct(bool $displayButton = false)
{
$this->staticPageModel = StaticPage::getCachedStaticPage(StaticPageType::story);
$this->displayButton = $displayButton;
}
/**
* Get the view / contents that represent the component.
*/
public function render(): View
{
return view('components.fo.story.who-we-are', [
'staticPageModel' => $this->staticPageModel,
]);
}
}