<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag;

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames(([
    'name',
    'id' => null,
    'value' => '',
    'label' => null,
    'placeholder' => 'Write content here...',
    'height' => '220px',
    'toolbar' => 'standard',
    'required' => false,
]));

foreach ($attributes->all() as $__key => $__value) {
    if (in_array($__key, $__propNames)) {
        $$__key = $$__key ?? $__value;
    } else {
        $__newAttributes[$__key] = $__value;
    }
}

$attributes = new \Illuminate\View\ComponentAttributeBag($__newAttributes);

unset($__propNames);
unset($__newAttributes);

foreach (array_filter(([
    'name',
    'id' => null,
    'value' => '',
    'label' => null,
    'placeholder' => 'Write content here...',
    'height' => '220px',
    'toolbar' => 'standard',
    'required' => false,
]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
}

$__defined_vars = get_defined_vars();

foreach ($attributes->all() as $__key => $__value) {
    if (array_key_exists($__key, $__defined_vars)) unset($$__key);
}

unset($__defined_vars, $__key, $__value); ?>

<?php
    $editorId = $id ?? 'rich-editor-'.preg_replace('/[^a-z0-9_-]/i', '-', $name);
    $inputId = $editorId.'-input';
    $content = old($name, $value);
?>

<div <?php echo e($attributes->merge(['class' => 'rich-editor-field mb-3'])); ?>>
    <?php if($label): ?>
        <label for="<?php echo e($editorId); ?>" class="form-label">
            <?php echo e($label); ?>

            <?php if($required): ?>
                <span class="text-danger">*</span>
            <?php endif; ?>
        </label>
    <?php endif; ?>

    <div
        id="<?php echo e($editorId); ?>"
        class="rich-editor <?php $__errorArgs = [$name];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
        data-rich-editor
        data-input-id="<?php echo e($inputId); ?>"
        data-placeholder="<?php echo e($placeholder); ?>"
        data-toolbar="<?php echo e($toolbar); ?>"
        style="min-height: <?php echo e($height); ?>;"
    ><?php echo $content; ?></div>

    <input
        type="hidden"
        name="<?php echo e($name); ?>"
        id="<?php echo e($inputId); ?>"
        value="<?php echo e($content); ?>"
        <?php if($required): ?> required <?php endif; ?>
    >

    <?php $__errorArgs = [$name];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
        <div class="invalid-feedback d-block"><?php echo e($message); ?></div>
    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div>
<?php /**PATH D:\RABI\rabi\module-laravel-platform\packages\eliteadmin-theme\src/../resources/views/components/rich-editor.blade.php ENDPATH**/ ?>