<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag; ?>
<?php foreach($attributes->onlyProps([
    'label' => '',
    'name' => '',
    'placeholder' => '',
    'value' => null,
    'variant' => 'primary',
]) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
} ?>
<?php $attributes = $attributes->exceptProps([
    'label' => '',
    'name' => '',
    'placeholder' => '',
    'value' => null,
    'variant' => 'primary',
]); ?>
<?php foreach (array_filter(([
    'label' => '',
    'name' => '',
    'placeholder' => '',
    'value' => null,
    'variant' => 'primary',
]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
} ?>
<?php $__defined_vars = get_defined_vars(); ?>
<?php foreach ($attributes as $__key => $__value) {
    if (array_key_exists($__key, $__defined_vars)) unset($$__key);
} ?>
<?php unset($__defined_vars); ?>

<?php
    // Resolver el contenido del textarea
    $content = old($name, $value);
?>

<?php
    // Paleta por variante
    $palette = [
        'primary'   => 'input-primary',
        'secondary'   => 'input-secondary',
    ][$variant] ?? '';
?>

<label <?php echo e($attributes->merge(['class' => "input-main $palette"])); ?>>
    <?php if($label): ?>
        <p class="label">
            <?php echo e($label); ?>

        </p>
    <?php endif; ?>
    <textarea name="<?php echo e($name); ?>" placeholder="<?php echo e($placeholder); ?>"><?php echo e($content); ?></textarea>

    <?php $__errorArgs = [$name];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
        <span class="text-red-500 text-sm mt-2 block"><?php echo e($message); ?></span>
    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</label><?php /**PATH C:\laragon\www\housecontract\resources\views/components/controls/textarea.blade.php ENDPATH**/ ?>