29 lines
		
	
	
		
			644 B
		
	
	
	
		
			PHP
		
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			644 B
		
	
	
	
		
			PHP
		
	
	
	
<?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'
 | 
						|
            <div {{ $attributes->merge(['class' => 'h-full items-center flex absolute top-0 right-0']) }}>
 | 
						|
                <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;
 | 
						|
    }
 | 
						|
}
 |