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

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames(([
    'label' => '',
    'value' => '',
    'icon' => null,
    'color' => 'primary',
    'badge' => 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(([
    'label' => '',
    'value' => '',
    'icon' => null,
    'color' => 'primary',
    'badge' => 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); ?>

<?php
    $colorClasses = [
        'primary' => 'border-bakery-gold/30 bg-gradient-to-br from-white to-bakery-cream/20',
        'success' => 'border-green-300 bg-gradient-to-br from-white to-green-50/50',
        'warning' => 'border-orange-300 bg-gradient-to-br from-white to-orange-50/50',
        'info' => 'border-blue-300 bg-gradient-to-br from-white to-blue-50/50',
        'purple' => 'border-purple-300 bg-gradient-to-br from-white to-purple-50/50'
    ];
    
    $badgeColors = [
        'primary' => 'bg-bakery-gold text-white',
        'success' => 'bg-green-500 text-white',
        'warning' => 'bg-orange-500 text-white',
        'info' => 'bg-blue-500 text-white',
        'purple' => 'bg-purple-500 text-white'
    ];
?>

<div class="relative rounded-2xl border-2 <?php echo e($colorClasses[$color] ?? $colorClasses['primary']); ?> p-6 shadow-lg hover:shadow-xl transition-all duration-300">
    <!-- Badge if provided -->
    <?php if($badge): ?>
        <div class="absolute top-3 right-3">
            <span class="px-3 py-1 rounded-full text-xs font-semibold <?php echo e($badgeColors[$color] ?? $badgeColors['primary']); ?>">
                <?php echo e($badge); ?>

            </span>
        </div>
    <?php endif; ?>
    
    <!-- Icon if provided -->
    <?php if($icon): ?>
        <div class="mb-3">
            <div class="w-10 h-10 rounded-lg bg-gradient-to-br from-bakery-gold to-bakery-secondary flex items-center justify-center">
                <?php echo $icon; ?>

            </div>
        </div>
    <?php endif; ?>
    
    <!-- Label -->
    <p class="text-sm font-medium text-gray-600 mb-2"><?php echo e($label); ?></p>
    
    <!-- Value -->
    <p class="text-3xl font-bold text-gray-900"><?php echo e($value); ?></p>
</div>
<?php /**PATH C:\Webs\PHP\panaderiapasteleria\resources\views/components/metric-card.blade.php ENDPATH**/ ?>