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

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames((['type' => 'submit', 'variant' => 'primary', 'size' => 'md']));

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((['type' => 'submit', 'variant' => 'primary', 'size' => 'md']), '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
    $variants = [
        'primary' => 'bg-gradient-to-r from-ink via-charcoal to-ink bg-[length:200%_auto] text-ivory shadow-sm hover:bg-right hover:shadow-lg hover:-translate-y-0.5 focus:ring-ink/30',
        'accent' => 'bg-gradient-to-r from-champagne via-champagne-light to-champagne bg-[length:200%_auto] text-ink shadow-sm hover:bg-right hover:shadow-lg hover:-translate-y-0.5 focus:ring-champagne/40',
        'ghost' => 'bg-transparent text-ink/60 hover:bg-black/5 focus:ring-black/10',
        'danger' => 'bg-danger/10 text-danger hover:bg-danger/20 focus:ring-danger/30',
    ];
    $sizes = [
        'sm' => 'gap-1.5 rounded-md px-3 py-1.5 text-xs',
        'md' => 'gap-2 rounded-lg px-4 py-2 text-sm',
        'lg' => 'gap-2 rounded-xl px-5 py-2.5 text-sm',
    ];
?>
<button type="<?php echo e($type); ?>" <?php echo e($attributes->merge(['class' => 'btn inline-flex items-center justify-center font-medium transition-all duration-300 focus:outline-none focus:ring-2 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:translate-y-0 '.($sizes[$size] ?? $sizes['md']).' '.($variants[$variant] ?? $variants['primary'])])); ?>>
    <?php echo e($slot); ?>

</button>
<?php /**PATH C:\xampp\htdocs\ecommerce\resources\views/components/admin/button.blade.php ENDPATH**/ ?>