2021-09-10 16:02:25 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace App\Views\Components\Forms;
|
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
use ViewComponents\Component;
|
|
|
|
|
|
|
|
class Helper extends Component
|
2021-09-10 16:02:25 +00:00
|
|
|
{
|
2024-05-09 17:55:41 +00:00
|
|
|
// TODO: add type with error and show errors inline
|
2021-09-10 16:02:25 +00:00
|
|
|
|
|
|
|
public function render(): string
|
|
|
|
{
|
2024-05-09 17:55:41 +00:00
|
|
|
$this->mergeClass('text-skin-muted');
|
2021-09-10 16:02:25 +00:00
|
|
|
|
|
|
|
return <<<HTML
|
2024-05-09 17:55:41 +00:00
|
|
|
<small {$this->getStringifiedAttributes()}>{$this->slot}</small>
|
2021-09-10 16:02:25 +00:00
|
|
|
HTML;
|
|
|
|
}
|
|
|
|
}
|