@props([ 'label' => null, 'help' => null, 'error' => null, 'floating' => false, 'id' => null, 'name' => null, 'rows' => 4, 'required' => false, 'disabled' => false, 'placeholder' => null, 'value' => null, ]) @php $textareaClass = collect([ 'textarea', $floating ? 'ui-textarea-floating' : null, $error ? 'input-error' : null, $disabled ? 'input-disabled' : null, ])->filter()->implode(' '); @endphp @if ($floating) @php $floatingTextareaValue = $slot->isNotEmpty() ? trim((string) $slot) : trim((string) $value); @endphp
except(['class'])->class(['form-group', 'ui-floating-field', $error ? 'ui-floating-error' : null]) }} data-floating-filled="{{ $floatingTextareaValue !== '' ? '1' : '0' }}" > @if ($label) @endif @if ($error) {{ $error }} @elseif ($help) {{ $help }} @endif
@elseif ($label || $help || $error)
except(['class'])->class('form-group') }}> @if ($label) @endif @if ($error) {{ $error }} @elseif ($help) {{ $help }} @endif
@else @endif