26 lines
520 B
PHP
26 lines
520 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\View\Ui;
|
||
|
|
||
|
use Illuminate\View\Component;
|
||
|
|
||
|
class SettingIntro extends Component
|
||
|
{
|
||
|
|
||
|
public function __construct(public ?string $title = null)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public function render()
|
||
|
{
|
||
|
return <<<'HTML'
|
||
|
<div {{$attributes}}>
|
||
|
@if ($title) <h2 class="text-lg font-semibold text-gray-300">{{$title}}</h2> @endif
|
||
|
<div class="text-gray-100 text-sm">
|
||
|
{{ $slot }}
|
||
|
</div>
|
||
|
</div>
|
||
|
HTML;
|
||
|
}
|
||
|
}
|