2024-08-09 11:32:25 +02:00
|
|
|
@if( 'hidden' !== $attributes['type'] )
|
|
|
|
|
2024-08-08 11:22:35 +02:00
|
|
|
<div class="x-input"
|
|
|
|
title="{{ $attributes['title'] ?? $slot }}"
|
|
|
|
>
|
|
|
|
<label
|
|
|
|
for="{{ $slot }}"
|
|
|
|
>{{ $attributes['title'] ?? $slot }}</label>
|
|
|
|
<input
|
|
|
|
name="{{ $slot }}"
|
|
|
|
id="{{ $slot }}"
|
|
|
|
placeholder="{{ $attributes['title'] ?? $slot }}"
|
|
|
|
{{ $attributes->merge()->filter(fn ($value, $key) => !in_array($key, ['title'])) }}
|
|
|
|
>
|
|
|
|
|
|
|
|
@error( "$slot" )
|
|
|
|
<p class="error">{{ $message }}</p>
|
|
|
|
@enderror
|
2024-08-09 11:32:25 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
@endif
|