2024-10-14 20:25:11 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\View\Form;
|
|
|
|
|
|
|
|
use App\View\Traits\HasFormDimensions;
|
|
|
|
use Illuminate\View\Component;
|
|
|
|
|
|
|
|
class Hint extends Component
|
|
|
|
{
|
|
|
|
|
|
|
|
use HasFormDimensions;
|
|
|
|
|
|
|
|
public function __construct(
|
|
|
|
public bool $required = false,
|
|
|
|
) {
|
|
|
|
}
|
|
|
|
|
|
|
|
public function render()
|
|
|
|
{
|
|
|
|
return <<<'HTML'
|
2024-10-19 21:25:03 +02:00
|
|
|
<div {{ $attributes->merge(['class' => 'h-full items-center flex absolute top-0 right-0']) }}>
|
2024-10-14 20:25:11 +02:00
|
|
|
<div x-tooltip.raw="{{$slot}}" class="mr-2">
|
|
|
|
<x-ui::sprite src="info-button" class="w-5 h-5 text-primary-700"></x-ui::sprite>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
HTML;
|
|
|
|
}
|
|
|
|
}
|