2022-06-30 18:11:24 +03:00
|
|
|
@php
|
|
|
|
$class= 'w-full h-24 text-sm px-3 py-2.5 mt-1 rounded-lg border border-light-gray text-black placeholder-light-gray bg-white disabled:bg-gray-200 focus:outline-none focus:ring-transparent focus:border-purple';
|
|
|
|
|
|
|
|
if ($attributes->has('override')) {
|
|
|
|
$class = $attributes->get('override');
|
|
|
|
} elseif ($attributes->get('class')) {
|
|
|
|
$class .= ' ' . $attributes->get('class');
|
|
|
|
}
|
|
|
|
@endphp
|
2022-06-01 10:15:55 +03:00
|
|
|
<textarea
|
|
|
|
name="{{ $name }}"
|
|
|
|
id="{{ $id }}"
|
2022-06-30 18:11:24 +03:00
|
|
|
class="{{ $class }}"
|
2022-06-01 10:15:55 +03:00
|
|
|
rows="{{ $rows }}"
|
|
|
|
placeholder="{{ $placeholder }}"
|
|
|
|
@if ($disabled)
|
|
|
|
disabled="disabled"
|
|
|
|
@endif
|
|
|
|
@if ($required)
|
|
|
|
required="required"
|
|
|
|
@endif
|
|
|
|
@if ($readonly)
|
|
|
|
readonly="readonly"
|
|
|
|
@endif
|
|
|
|
{{ $attributes->except(['rows', 'placeholder', 'disabled', 'required', 'readonly']) }}
|
|
|
|
>{!! $value !!}</textarea>
|