subtitle = html_entity_decode($value); } public function render(): string { $glyph = icon($this->glyph, 'flex-shrink-0 bg-base rounded-full w-8 h-8 p-2 text-accent-base'); if ($this->href !== null && $this->href !== '') { $chevronRight = icon('chevron-right'); $viewLang = lang('Common.view'); return <<
{$glyph}
{$this->title}
{$viewLang}{$chevronRight}

{$this->subtitle}

{$this->slot}
HTML; } return <<
{$glyph}
{$this->title}

{$this->subtitle}

{$this->slot}
HTML; } }