{{-- Premium Textarea Component Modern textarea with elegant focus states and AI integration. --}}
$class])> {{-- Label Row --}} @if ($label || $rightText || $ai)
@if ($label) @if ($help) {!! $help !!} @endif @endif
@if ($rightText && $rightPosition == 'top')
@if ($rightLink) {!! $rightText !!} @else {!! $rightText !!} @endif
@endif @if ($ai) @php $aiName = $name; $locale = null; if (preg_match('/^(.*)\[(.*)\]$/', $name, $matches)) { $aiName = $matches[1]; $locale = $matches[2]; } @endphp
@endif
@endif {{-- Textarea --}}
@if ($icon)
@endif
{{-- Error / Help Text --}} @if ($errors->has($nameToDotNotation) || $text || ($rightText && $rightPosition === 'bottom'))
@error($nameToDotNotation)

{{ $message }}

@else @if ($text)

{!! $text !!}

@endif @enderror @if ($rightText && $rightPosition === 'bottom')
@if ($rightLink) {!! $rightText !!} @else {!! $rightText !!} @endif
@endif
@endif