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

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames((['name', 'label', 'current' => null, 'help' => null]));

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', 'label', 'current' => null, 'help' => null]), '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); ?>
<div>
    <span class="mb-1.5 block text-[11px] font-bold text-slate-700 dark:text-slate-200"><?php echo e($label); ?></span>
    <label class="group flex min-h-36 cursor-pointer items-center gap-4 rounded-2xl border border-dashed border-slate-300 bg-slate-50 p-3 transition hover:border-orange-400 hover:bg-orange-50/30 dark:border-slate-700 dark:bg-slate-900">
        <?php if($current): ?>
            <img src="<?php echo e(asset(ltrim($current, '/'))); ?>" alt="Current <?php echo e(strtolower($label)); ?>" class="h-28 w-36 shrink-0 rounded-xl object-cover shadow-sm">
        <?php else: ?>
            <span class="grid h-28 w-36 shrink-0 place-items-center rounded-xl bg-white text-2xl text-slate-300 shadow-sm dark:bg-slate-800">+</span>
        <?php endif; ?>
        <span>
            <span class="block text-xs font-extrabold text-slate-700 group-hover:text-orange-600 dark:text-slate-200">Choose a replacement</span>
            <span class="mt-1 block text-[10px] leading-4 text-slate-400">PNG, JPG or WebP. Existing image remains when no file is selected.</span>
            <?php if($help): ?><span class="mt-1 block text-[10px] text-slate-400"><?php echo e($help); ?></span><?php endif; ?>
        </span>
        <input type="file" name="<?php echo e($name); ?>" accept="image/png,image/jpeg,image/webp" class="sr-only">
    </label>
    <?php if($errors->has(str_replace(['[', ']'], ['.', ''], $name))): ?><span class="mt-1 block text-[10px] font-semibold text-rose-600"><?php echo e($errors->first(str_replace(['[', ']'], ['.', ''], $name))); ?></span><?php endif; ?>
</div>
<?php /**PATH C:\xampp\htdocs\typingcenter\resources\views\components\cms\image-upload.blade.php ENDPATH**/ ?>